Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
migrating_from_debian [2017/06/03 23:35]
msi
migrating_from_debian [2018/03/03 04:40] (current)
chillfan Remove this page and point to a newer version.
Line 1: Line 1:
-====== Migrating from Debian ====== +Please instead see the newer version of [[devuan_doc:howtos:​migrate_to_devuan_jessie|migrating ​to Devuan Jessie]]
- +
-  * This page provides an updated and otherwise modified ​version of https://​git.devuan.org/​dev1fanboy/​Upgrade-Install-Devuan/​wikis/​Upgrade-to-Devuan +
- +
-If you need to install Devuan from a bootable CD, DVD or USB drive please see [[https://​git.devuan.org/​dev1fanboy/​Upgrade-Install-Devuan/​wikis/​Installing-Devuan|this page]]. +
- +
-===== Migrating from Debian ===== +
- +
-This document describes how to upgrade ​to Devuan Jessie ​from a Debian Wheezy install or migrate from a Debian Jessie install, incorporating sysvinit and installing the new default desktop environment xfce. At time of writing Devuan Jessie has not yet been announced stable, nonetheless it is in a very usable state and it is possible to upgrade now as if it was simply the next release of Debian. +
- +
-Please note that I do not recommend upgrades to the testing or unstable branches at this time. If you decide to migrate one of those branches anyway you should know what you're doing and be prepared to fix any issues that arise. +
- +
-===== Supported architectures ===== +
- +
-At time of writing you can upgrade from the following architectures. +
- +
-  * amd64 +
-  * i386 +
-  * armhf +
- +
- +
-===== Target branches ===== +
- +
-All branches are supported for upgrades and migrations from Debian Wheezy and above. +
- +
-  * Jessie ​ (stable) +
-  * Ascii  (testing) +
-  * Ceres  (unstable) +
- +
-===== Upgrading to Devuan ===== +
- +
-First you will need to gain root access at a terminal. Enter your user password when asked. +
- +
-<​code>​user@debian:​~$ su</​code>​ +
- +
-We will now configure the Devuan repository as the source for packages. +
- +
-<​code>​root@debian:​~#​ nano /​etc/​apt/​sources.list</​code>​ +
- +
-Comment out all lines in the sources.list configuration file and add the Devuan repository. I do not recommend using the jessie-backports repo as they are not Devuanized yet. Substitute jessie for ascii or ceres if you want to migrate to those branches instead. +
- +
-<​code>​ +
-#deb http://​ftp.us.debian.org/​debian/​ wheezy main +
-#deb http://​ftp.us.debian.org/​debian/​wheezy-updates main +
-#deb http://​security.debian.org/​ wheezy/​updates main +
- +
-deb http://​auto.mirror.devuan.org/​merged jessie main +
-deb http://​auto.mirror.devuan.org/​merged jessie-updates main +
-deb http://​auto.mirror.devuan.org/​merged jessie-security main +
-</​code>​ +
- +
-If you are using any unofficial backports or repositories outside of Debian I suggest removing those packages and their repositories before continuing, unless you know they'​re not included in the Devuan branch you are migrating to. This will avoid having extra repositories where you don't need them and ensure you have up-to-date packages from Devuan. This is outside the scope of this document however as each case for user selected repositories will be different. +
- +
-In order to fetch packages from the devuan repository for upgrades we need to update the package cache using apt-get, and install the Devuan keyring. We need to allow unauthenticated packages for now or we won't be able to install the devuan keyring. +
- +
-<​code>​root@debian:​~#​ apt-get update && apt-get install devuan-keyring -y --allow-unauthenticated</​code>​ +
- +
-Now we need to update the package cache once more so that packages will be authenticated from here on in. +
- +
-<​code>​root@debian:​~#​ apt-get update -y</​code>​ +
- +
-It's time to complete the upgrade. +
- +
-<​code>​root@debian:​~#​ apt-get dist-upgrade</​code>​ +
- +
-===== Installing the desktop environment ===== +
- +
-I now recommend that you install xfce - the default desktop environment for Devuan. +
- +
-<​code>​root@devuan:​~#​ apt-get install xfce4</​code>​ +
- +
-Installing the slim display manager is also recommended. +
- +
-<​code>​root@devuan:​~#​ apt-get install slim</​code>​ +
- +
-If there are any remaining systemd components you can safely remove these now. If you are a desktop environment that depends on systemd the display manager may be removed as a result and disrupt your x session, so you should pay attention to the next set of instructions before doing this. +
- +
-<​code>​root@devuan:​~#​ apt-get purge systemd-shim libsystemd0</​code>​ +
- +
-If you installed the slim display manager it will start at boot, but you can start it now after logging in as root at a console. +
- +
-<​code>​root@devuan:​~#​ /​etc/​init.d/​slim start</​code>​ +
- +
-===== Housekeeping ===== +
- +
-Now that the upgrade is complete and you've installed your new desktop I recommend purging any unused packages left over from your previous Debian install. +
- +
-<​code>​root@devuan:​~#​ apt-get autoremove --purge</​code>​ +
- +
-It's a good time to reclaim some disk space by removing any cached packages that are not installed on the current system. +
- +
-<​code>​root@devuan:​~#​ apt-get autoclean</​code>​+