PiBack: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 26: | Zeile 26: | ||
bash /tmp/basic_install.sh | bash /tmp/basic_install.sh | ||
restoretool -v3 init linuxserver | restoretool -v3 init linuxserver | ||
vi /etc/default/zramswap | |||
</source> | </source> | ||
Zeile 38: | Zeile 39: | ||
adduser -uid 212 extcave | adduser -uid 212 extcave | ||
adduser -uid 215 exttmp | adduser -uid 215 exttmp | ||
mkdir home2 ; cd home2 | mkdir /home2 ; cd /home2 | ||
tar xzf /media/fs.black/bup.bahama/dayly/current/home.tgz | tar xzf /media/fs.black/bup.bahama/dayly/current/home.tgz | ||
cp -a bup* ext* /home | cp -a bup* ext* /home | ||
perl -pi -e 's/pi:1000/hm:1000/' /etc/passwd | |||
perl -pi -e 's/^pi:/hm:/' /etc/shadow | |||
perl -pi -e 's/pi:x:1000/hm:1000/' /etc/group | |||
passwd hm | |||
mv /home/pi /home/hm | |||
mkdir /etc2 ; cd /etc2 | |||
tar xzf /media/fs.black/bup.bahama/dayly/current/etc.tgz | |||
cp -a /etc2/pyrshell /etc | |||
cd /usr/local/bin2 | |||
mkdir /usr/local/bin2 | |||
tar xzf /media/fs.black/bup.bahama/dayly/current/usr=local=bin.tgz | |||
rsync -auv . /usr/local/bin | |||
</source> | </source> |
Aktuelle Version vom 3. Juni 2021, 19:51 Uhr
Zielsetzung[Bearbeiten]
Ein Ersatz von Bahama mittels Raspbery Pi
Installation[Bearbeiten]
- Image: 2021-03-04-raspios-buster-armhf-lite.zip
- Nach Booten: rasp-config aufrufen
- SSH freischalten
- Hostname ändern
- WLan eintragen
Statische Ethernet-Adresse[Bearbeiten]
- in /etc/dhcpcd.conf
static ip_address=192.168.2.57/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 static routers=192.168.2.3 static domain_name_servers=192.168.2.3 9.9.9.9
Blitzinstallation[Bearbeiten]
adduser hm
adduser wk
wget -O /tmp/basic_install.sh https://public.hamatoma.de/basic_install.sh
bash /tmp/basic_install.sh
restoretool -v3 init linuxserver
vi /etc/default/zramswap
Datenübernahme von Bahama[Bearbeiten]
adduser -uid 201 bupsrv
adduser -uid 202 extbup
adduser -uid 203 bupsupply
adduser -uid 204 extcloud
adduser -uid 205 extdata
adduser -uid 206 exthome
adduser -uid 212 extcave
adduser -uid 215 exttmp
mkdir /home2 ; cd /home2
tar xzf /media/fs.black/bup.bahama/dayly/current/home.tgz
cp -a bup* ext* /home
perl -pi -e 's/pi:1000/hm:1000/' /etc/passwd
perl -pi -e 's/^pi:/hm:/' /etc/shadow
perl -pi -e 's/pi:x:1000/hm:1000/' /etc/group
passwd hm
mv /home/pi /home/hm
mkdir /etc2 ; cd /etc2
tar xzf /media/fs.black/bup.bahama/dayly/current/etc.tgz
cp -a /etc2/pyrshell /etc
cd /usr/local/bin2
mkdir /usr/local/bin2
tar xzf /media/fs.black/bup.bahama/dayly/current/usr=local=bin.tgz
rsync -auv . /usr/local/bin