Arch Linux: LXDE installation and start up

Install lxde

pacman -S lxde

Copy menu.xml, rc.xml and autostart to my home directory

Login with my own normal user account:

mkdir -p ~/.config/openbox

cp /etc/xdg/openbox/{menu.xml,rc.xml,autostart} ~/.config/openbox

Install gamin

pacman -S gamin

Modify .xinitrc to start lxde with startx

Use my own personal normal user account, open ~/.xinitrc

I created my own .xinitrc script because it did not exist.

touch ~/.xinitrc

Add this line into xinitrc:

exec ck-launch-session startlxde

Install power manager

pacman -S pm-utils upower

gpasswd -a <username> power

This is to add my username to the group power.

Installing these will allow shutdown, reboot, logout from the lxde session.

Start lxde after login (without lxdm)

Modify my own .bash_profile:

If you do not have .bash_profile you can copy it from /etc/skel/bash_profile.

if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then

exec startx
fi

This is suffice, everytime i login startx will start.

this is very light weight dm. and the easiest to install.
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s