Installing ArchLinux with LXDE Desktop

Home » Computer Articles » Linux » Installing ArchLinux with LXDE Desktop
March 7, 2010 Linux No Comments

Do the base installation, see link below: Guide

Installing the Base system
# /arch/setup as the root user.
Go through all the screens so you can install base system.

Step 1: Configuring the network (if necessary)
Hopefully this is working after the reboot.

Step 2: Update, Sync, and Upgrade the system with pacman
nano /etc/pacman.d/mirrorlist and uncomment the mirror's in your location.

Initially force pacman to refresh the package lists:
# pacman -Syy

Step 3: Update System
# pacman -Syu

Step 4: Add a user and setup groups
# useradd -m -G users,audio,lp,optical,storage,video,wheel,power -s /bin/bash archie
# passwd archie

Step 5: Install and setup Sudo (Optional)
# rm /usr/bin/{view,rview}
# pacman -S sudo vim
# EDITOR=nano visudo

Install X and configure ALSA

Step 1: Configure sound with alsamixer
nano /etc/modprobe.d/modprobe.conf and add this line "options snd-pcsp index=2" without quotes.

# pacman -S alsa-utils
# pacman -S alsa-oss
# alsaconf
# su - yourusername
$ alsamixer
Unmute the Master and PCM channels by scrolling to them with cursor left/right and pressing M.
Increase the volume levels with the cursor-up key. (70-90 Should be a safe range.)

Sound test
$ aplay /usr/share/sounds/alsa/Front_Center.wav

Saving the Sound Settings
$ exit
# alsactl store
# nano /etc/rc.conf
DAEMONS=(syslog-ng network crond alsa)

Step 2: Install X
# pacman -S libgl (The NVIDIA driver will remove this)
# pacman -S xorg
# pacman -S mesa

Install Video Driver Package
lspci | grep VGA
# pacman -Ss xf86-video | less
# pacman -S xf86-video-what is your video card.

NVIDIA Graphics Cards, which I have.
1. nvidia-96xx slightly newer cards up to the GF 4.
2. nvidia-173xx Geforce FX series cards
3. nvidia newest GPUs after the GF FX

Install Input Driver Packages
# pacman -S xf86-input-keyboard xf86-input-mouse

Step 3: Configure X
# Xorg -configure
# cp /root/ /etc/X11/xorg.conf

Nvidia card setup
# nvidia-xconfig
# nvidia-xconfig --composite --add-argb-glx-visuals

Some useful tweaking under the Section "Device" in the xorg.conf
Option          "RenderAccel" "true"
Option          "NoLogo" "true"
Option          "AGPFastWrite" "true"
Option          "EnablePageFlip" "true"

If there are instances of DRI, ensure they are commented out:
#    Load        "dri"

Input hotplugging
# pacman -S hal dbus xf86-input-evdev

Laptop users will also need the synaptics package to allow X to configure the touchpad:
# pacman -S xf86-input-synaptics

The HAL daemon
# /etc/rc.d/hal start
DAEMONS=(syslog-ng network crond dbus hal alsa)

C: Test X
Before you test make sure to load hal daemon(/etc/rc.d/hal start) as the root user.
# su - yourusername
$ cp /etc/skel/.xinitrc ~/
$ nano ~/.xinitrc and add exec "exec xterm" with quotes.
$ startx

When you get to the "Installing and configuring a Desktop Environment"
Step 1: Install Fonts
pacman -S ttf-ms-fonts ttf-dejavu ttf-bitstream-vera

Step 2: ~/.xinitrc (again)
# su - yourusername
$ nano ~/.xinitrc and remove "exec xterm" and add "exec startlxde" with quotes.

Then choose LXDE and go here for more information:
# pacman -S lxde gamin openbox
# pacman -S leafpad xarchiver obconf

Auto Mount

# gpasswd -a your_username hal
# pacman -S pmount

Codecs and plugins
# pacman -S mplayer gecko-mediaplayer xine-lib xine-ui libdvdread libdvdcss alsa-oss flashplugin

Disabling IPv6

# nano /etc/modprobe.d/modprobe.conf
# disable autoload of ipv6
alias net-pf-10 off

Applications I like to add
# pacman -S conky
Goto this url for my conky.conf file which I "nano /etc/conky/conky.conf"

Autostart Programs
nano /etc/xdg/lxsession/LXDE/autostart and add application to start at login "@conky" without quotes.

Other Applications
Installing Packages from the AUR and here for more information:

# pacman -S base-devel
# su - yourusername

Goto this webpage and download the Yaourt Tarball:

$ tar -zxvf yaourt.tar.gz
$ makepkg -s
$ sudo pacman -U yaourt-

Now you can install applications from the AUR which is a community-driven repository for Arch users.
$ yaourt -S zenman follow the directions to install package.
$ sudo nano /etc/xdg/lxsession/LXDE/autostart and add application to start at login "@zenman" without quotes.

Caching DNS

Mirror Status
Now we want the mirror's that are the most up to date.
As the root user
# pacman -S reflector
# mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrlist.orig
# reflector -l 8 -r -o /etc/pacman.d/mirrorlist (8 most up to date mirrors)

Mirror Speed
As the root user
# cd /etc/pacman.d/
# cp mirrorlist mirrorlist.backup
# rankmirrors -n 8 mirrorlist.backup > mirrorlist

Now refresh the package list
# pacman -Syy

Extra Articles I found, click on the links to see information.
The Perfect ArchLinux Semi-Lightweight Desktop / LXDE by Dr Rockhopper.
Easy Arch linux Setup Guide
Screen resolution in Virtual Machine (Vmware)
Slim - Simple Login Manager

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.