2021-08-12 21:41:10 +02:00
|
|
|
#Empiezo en Hetzner con una máquina Debian 9 tal cual.
|
|
|
|
|
|
|
|
#Actualizo los paquetes:
|
|
|
|
|
|
|
|
aptitude update ; aptitude upgrade -y
|
|
|
|
|
|
|
|
#Para migrar a Devuan sigo https://www.devuan.org/os/documentation/dev1fanboy/en/stretch-to-beowulf.html pero con mi propio estilo:
|
|
|
|
|
|
|
|
aptitude install sysvinit-core -y
|
|
|
|
aptitude purge --purge-unused libpam-systemd -y
|
|
|
|
sed -i 's/^deb/#deb/g' /etc/apt/sources.list
|
2021-09-17 00:44:01 +02:00
|
|
|
# creamos un lugar donde dejar las listas que si se encuentran en apt darán problema por la extensión: parará el proceso
|
|
|
|
mkdir /delist
|
2021-08-12 21:41:10 +02:00
|
|
|
mv /etc/apt/sources.list.d/hetzner-mirror.list /etc/apt/sources.list.d/hetzner-mirror.listNO
|
|
|
|
mv /etc/apt/sources.list.d/hetzner-security-updates.list /etc/apt/sources.list.d/hetzner-security-updates.listNO
|
2021-09-17 00:44:01 +02:00
|
|
|
mv /etc/apt/sources.list.d/hetzner-* /delist/
|
2021-08-12 21:41:10 +02:00
|
|
|
echo deb http://deb.devuan.org/merged beowulf main > /etc/apt/sources.list.d/devuan-beowulf.list
|
|
|
|
echo deb http://deb.devuan.org/merged beowulf-updates main >> /etc/apt/sources.list.d/devuan-beowulf.list
|
|
|
|
echo deb http://deb.devuan.org/merged beowulf-security main >> /etc/apt/sources.list.d/devuan-beowulf.list
|
|
|
|
echo "#deb http://deb.devuan.org/merged beowulf-backports main" >> /etc/apt/sources.list.d/devuan-beowulf.list
|
2021-09-17 00:44:01 +02:00
|
|
|
# instalamos llavero a pelo, porque el apt no funciona al ser primera vez
|
|
|
|
wget https://pkgmaster.devuan.org/devuan/pool/main/d/devuan-keyring/devuan-keyring_2017.10.03_all.deb
|
|
|
|
dpkg -i devuan-keyring_2017.10.03_all.deb
|
2021-08-12 21:41:10 +02:00
|
|
|
aptitude update
|
|
|
|
aptitude install libtinfo6 -y
|
|
|
|
aptitude upgrade -y
|
|
|
|
sed -i '/does nothing/ a /etc/init.d/networking restart' /etc/rc.local
|
|
|
|
reboot
|
|
|
|
aptitude -y install eudev
|
|
|
|
aptitude -y full-upgrade
|
|
|
|
aptitude purge --purge-unused systemd -y
|
|
|
|
apt-get autoclean
|
|
|
|
|
|
|
|
#Con esto tengo una máquina Devuan perfectamente funcional en Hetzner.
|