Sky: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (→Installation) |
|||
Zeile 11: | Zeile 11: | ||
adduser --uid=201 bupsrv | adduser --uid=201 bupsrv | ||
hostname sky.infeos.de | hostname sky.infeos.de | ||
apt-get install sudo rsync htop gdisk | apt-get install sudo rsync htop gdisk less | ||
mkdir /media /media/trg /media/src /media/sixpack | mkdir /media /media/trg /media/src /media/sixpack | ||
</pre> | </pre> |
Version vom 31. März 2019, 16:02 Uhr
- debian 9 (stretch)
- m2972.contaboserver.net
Installation
adduser wk adduser citmaster adduser sebastian adduser --uid=202 extbup adduser --uid=201 bupsrv hostname sky.infeos.de apt-get install sudo rsync htop gdisk less mkdir /media /media/trg /media/src /media/sixpack
# lokal:mk ssh-copy-id -i ~/.ssh/id_rsa wk@sky # installieren /home/bin
RAID erzeugen
# md0 und md1 existieren schon mknod /dev/md2 b 9 2 chmod 0660 /dev/md2 # 2 Partitionen: 32G + Rest gdisk /dev/sdc # 2 Partitionen: 32G + Rest gdisk /dev/sdd mdadm --create /dev/md2 --assume-clean --level=1 --verbose --raid-devices=2 /dev/sdc2 /dev/sdd2 /usr/share/mdadm/mkconf >/etc/mdadm/mdadm.conf
LVM einrichten
apt-get install lvm2 python3 python pvcreate /dev/md2 vgcreate --physicalextentsize 32M sixpack /dev/md2 #lvcreate --size=32M --name=bupdebian sixpack /usr/local/bin/restore/BupRestSky.sh python /usr/local/bin/restore/lvs2all.py lvcreate python /usr/local/bin/restore/lvs2all.py lvcreate | grep lvcreate python /usr/local/bin/restore/lvs2all.py mkdir python /usr/local/bin/restore/lvs2all.py mkdir | grep mkdir python /usr/local/bin/restore/lvs2all.py fstab python /usr/local/bin/restore/lvs2all.py fstab | grep fstab python /usr/local/bin/restore/lvs2all.py mkfs python /usr/local/bin/restore/lvs2all.py mkfs | grep mkfs
NGINX einrichten
apt-get install nginx-full ca-certificates certbot ssl-cert /usr/local/bin/restore/NginxRestSky.sh