Sunday, November 25, 2012

Archlinux Gnome Issue

sudo pacman -Syu used to work fine for the most part, but some changes are bigger than others and your current configuration cannot handle them.

I came across such a change, when systemd is now the default init system for Arch Linux. This affected Gnome; each time I tried to log in my system it said that something went wrong and fails to proceed.

Of-course, I need to research on how to solve the problem. That's a bit hard with no GUI so I opened up X Window System by typing in start x in the terminal. Finding a solution didn't seem that simple so first I opted for a better GUI till I fix the Gnome issue.

The other major player in Linux GUI is KDE. Since I wasn't planning to use it for a long time, I went with the minimal install. To fire up the KDE I just had to write sudo KDM on start up.

I also had to install KMix so that I could have sound. sudo pacman -S kdemultimedia-kmix

First I started reading this forum post and which says to install Systemd.

Annoyingly I was stuck in the first step which says to include init=/usr/lib/systemd/systemd in the kernel line but failed to mention which.

Luckily I came across this post which indicated to add the line in /boot/grub/menu.lst

In the following sections:

# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/1b861675-ae37-4f04-acdd-42da522772ae
init=/usr/lib/systemd/systemd ro
initrd /kernel26.img

# (1) Arch Linux
title Arch Linux Fallback
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/1b861675-ae37-4f04-acdd-42da522772ae
init=/usr/lib/systemd/systemd ro
initrd /kernel26-fallback.img

After a reboot the system fired up gnome on start up, and I successfully logged into my user account. The only thing that didn't fire up is the network manager. Since systemd replaced the init scripts, network manager had to be reconfigured to load on start up which I did through this wiki. It was a simple process of running the following line:

systemctl enable NetworkManager.service

I also used systemctl enable gdm so that gnome fires up using systemd instead of using the added code in /boot/grub/menu.lst.