As I promised in an earlier blog entry, here are the steps to installing Xorg and KDE on Arch Linux.
I am making the assumption that you have just completed your installation of Arch Linux
When you boot up your machine, you’ll be brought into the login screen. Login as root.
The first thing you should do is sync all your pacman software lists. This is accomplished by running
Here’s what it’ll look like when it’s completed
Now lets install Xorg, which is simply done by doing
It’ll list the packages of the xorg group, and as if you want to install all the content (just say Y)
Now it’ll list all the packages being installed, and you’ll say Y to proceed with the installation.
Yawn.. It’s installing:
Yay, back at the prompt after everything installed.
Now lets install the KDE group of packages, which is easily done by running
We’ll again be given a list of everything in the group, where you’ll put Y to install.
You’ll then be asked if you want to proceed with the installation, where you’ll happily type Y.
Awesome, it all installed (but wait, there’s more). Back at the prompt now.
We’ll have to configure our default runlevel to boot to init 5, and also configure our default login manager to KDM instead of xdm. This is done by editing /etc/inittab with
Scroll down using your down key (or your j key since we’re using vi) until you’re on the i in the line id:3:initdefault:, you’ll then press i, and put in a # to comment out the line. Now press the esc key, and go down to the # in front of the i in the id:5:initdefault: line, and press the x key. This should remove the # from that line. Here is a before and after of what it should look like:
Now press the down arrow, or the j key until you’re on the x in the line, x:5:respawn:/usr/bin/xdm -nodaemon. Press the i key, and enter in a # to comment out the line. Now go down to # in front of the x in the line #x:5:respawn:/usr/bin/kdm -nodaemon and press your x key, which should remove the # thus uncommenting the line. Here’s a before and after:
Now hold the Shift key, and press ZZ. This will save and close the vi editor.
We’ll now edit the starting daemons in /etc/rc.conf to add the hal daemon. We’ll using
When in the vi editor go down using the down arrow, or j key until you’re on the line that starts with DAEMONS=. Now navigate to the blank space after syslog-ng using your right arrow key, or your l (small L) key. Press i (to enter insert mod) and type in hal (hal plus a space afterwards) so your modifications look like this before and after:
Note: This is important as if you don’t start the hal daemon you’ll most likely not have any Keyboard or Mouse when your Xorg launches when you boot into runlvl 5.
Now press the esc key (to get out of insert mode) and hold the shift key, and press ZZ to save and exit.
Now we’re going to create a user (since by default you cannot log into your KDE installation with the root account).
This is accomplished by running the following commands:
passwd (username) (change password for newly addded user)
mkdir /home/(username) (creates the home directory for newly added user)
chown (username):(username) /home/(username) (sets the proper permissions for the newly created home directory).
Now reboot your machine, and you’ll be booted into a very nice KDM screen where you’ll put in your new users name, and password.
And you’l then be rewarded with an awesome KDE Installation.
If you have any questions or problems please let me know, and I’ll help you out.
If you want one for GNOME, Enlightenment or another DE, please feel free to comment (they are quite alike, with only a few modifications).