Saturday, December 1, 2012

How to move from initscript to systemd on Archlinux

Systemd is a application that replace initscripts, and systemd will be default on latest release of archlinux. To switch from initscripts to systemd on Archlinux, i just follow the wiki guide, and this is what i did. 

On Terminal
$sudo su
#nano /etc/default/grub
On this line

Add this
Beside quiet splash if you using plymouth

Id done save it, then continue like this

#pacman -R initscripts
make sure old package still on /var/cache/pacman/pkg so if there's problem you can revert back. Continue.

#mv /etc/rc.conf /etc/rc.conf.back
#mv /etc/rc.local /etc/rc.local.back
#mv /etc/rc.local.shutdown /etc/rc.local.shutdown.back
#grub-mkconfig -o /boot/grub/grub.cfg

You will login on terminal
$sudo su
#hostnamectl set-hostname myhostname
set hostname as you like

#nano /etc/locale.gen
uncomment that you needs (en is default)
en_US.UTF-8 UTF-8
en_US ISO-8859-1

set your keyboard, and location
#localectl set-locale LANG="en_US.UTF-8"
#localectl set-keymap en
#timedatectl set-timezone Asia/Jakarta

now enable systemd service, you can see the list here
for this example:

To enable it:
#systemctl enable dbus.service NetworkManager.service lxdm.service cronie.service etc-etc-etc.service
To disable it:
#systemctl disable dbus.service etc-etc-etc.service

Done, now you had move to systemd.
If you have a problem you can login using chroot with archlinux live cd, restore your initscripts package, then change grub settings to default initscripts.

Good luck.

Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : How to move from initscript to systemd on Archlinux