Skip to content

Latest commit

 

History

History
127 lines (100 loc) · 3.85 KB

server.md

File metadata and controls

127 lines (100 loc) · 3.85 KB

ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIiR4PhPkO5jgxwSZtrm506wmyqn83riPCsWyk9vZ9/P [email protected]

  • ip adress 37.205.14.245
  • hostaname zazvor

heslo a virtuální konzole: https://vpsadmin.vpsfree.cz/ -> vps -> id

vypout ssh příhlašování heslem & vytvořit uživatele

apt install vim
root@zazvor:~ $ cat /etc/ssh/sshd_config 
PermitRootLogin yes
PasswordAuthentication no
root@zazvor12:~# systemctl restart sshd
adduser jitka
mkdir -p /home/jitka/.ssh && cp /root/.ssh/authorized_keys /home/jitka/.ssh/ && chmod 700 /home/jitka/.ssh && chmod 600 /home/jitka/.ssh/authorized_keys && chown -R jitka:jitka /home/jitka/.ssh
usermod -aG sudo jitka
locale-gen
update-locale LANG=en_US.UTF-8
sudo apt install git docker-compose nginx python3-certbot-nginx certbot wget
ssh-keygen -t ed25519 -C "[email protected]"
cat ~/.ssh/id_ed25519.pub
mkdir git && cd git
git clone [email protected]:jitka/brum.git
cd && rm -r .bashrc .gitconfig .vimrc
for i in bashrc gitconfig vimrc; do ln -s $HOME/git/brum/config/$i .$i; done

nginx / homepage

sudo certbot --nginx --email [email protected] -d jitka.ucw.cz
sudo ln -s /home/jitka/git/brum/server/index.html /var/www/html/index.html
sudo ln -s /home/jitka/git/brum/server/jitka.ucw.cz.conf /etc/nginx/conf.d/jitka.ucw.cz.conf
sudo chmod o+x /home/jitka /home/jitka/git /home/jitka/git/brum /home/jitka/git/brum/server

sudo nginx -t
sudo tail -f /var/log/nginx/error.log
sudo service nginx restart

docker / services

sudo usermod -aG docker $USER
# log out & log in
docker run hello-world

planka

planka docker-compose

mkcd services/planka
wget https://raw.githubusercontent.com/plankanban/planka/master/docker-compose.yml
# manual changes
docker-copmose up &

tiny-tiny-rss

návod v env jsem měnila:

docker-compose down && docker-compose up &

TODO spouštění přes systemd

v tuto chvílí běží zde

nastavit ssl nastavit nginx v docker-compose zakomentovat web odkomentovat web-nginx, ta konfigurace patří do části server v /etc/nginx/conf.d/jitka.ucw.cz.conf

přihlásit je jako admin password, změnit heslo, vytvořit uživatele jitka

sync thing

calibre

official manual

home assitant tunel

on haos

  • sshkeygen -> copy to vpsfree admin sshkeys
ssh -N -R 8123:homeassistantlocalhost:8123 [email protected]
echo "pokus" > index.html
python -m http.server 8080
ssh -N -R 44400:localhost:8080 [email protected]

samba

(source)[https://askubuntu.com/questions/781963/simple-samba-share-no-password]

sudu su
mkdir /data/
mkdir /data/nase
mkdir /data/video
sudo chown -R nobody.nogroup /data
sudo chown -R nobody.nogroup /data/nase
sudo chown -R nobody.nogroup /data/video
sudo chmod -R 777 /data/nase
sudo chmod -R 777 /data/video

jekyll webs

install