background img

The New Stuff

LXDE, Desktop Linux Yang Ringan


Installing to a running system

LXDE requires Debian Lenny or later editions to satisfy dependencies to libc6.

aptitude update
aptitude install lxde
Alternatively, if you want a minimal lxde without its recommended applications:

aptitude install --without-recommends lxde-core

Configuration for Reboot, Shutdown, and Suspend

On Debian, normal users by default do not have access to HAL power management. So, you need to add yourself to the group "powerdev". Otherwise, "shutdown", "suspend", "hibernate", and "reboot" won't be available when you log out LXDE.
You can do that by using the following command as root:

gpasswd -a user powerdev

Configuring Login Managers


No manual configuration is needed. Just select LXDE from the available sessions listed by the display manager. If you don't see LXDE, restart your gdm or kdm, or reboot.


With this display manager, some manual configuration is needed. Please refer to their official document and write your /etc/slim.conf and ~/.xinitrc. The command you should put in your ~/.xinitrc to start LXDE is:
exec startlxde


Please edit this section if you are knowledgeable about WDM.


XDM reads a file called .xsession in the user's home directory to determine which window manager (resp. desktop environment) to start. As it is usually not present on a fresh Debian installation, we have to create it and put LXDE's startup command there. As an example, this is a minimal working .xsession:

exec startlxde

No display manager, use startx

Run the following command with root access:

update-alternatives --config x-session-manager
Then choose startlxde. The next time you run startx, LXDE will be started. 

Configuration for locales and input method

  • GDM or KDM: Setting locale is not needed. Input method can be specified by im-switch.
  • SLIM: put this in your ~/.xinitrc before "exec startlxde" to set locales.
zh_TW.UTF-8 (traditional Chinese, Taiwan) is my locale, please replace it with yours.

export LC_ALL=zh_TW.UTF-8
export LANGUAGE=zh_TW.UTF-8
export LANG=zh_TW.UTF-8
If you need to use input method, add those lines, too. Please refer to the document of your input method. Here I use scim for example. (FIXME: Maybe we can use some im-switch compatible way here. Anyone know how to do it please fix this)

export GTK_IM_MODULE=scim
export QT_IM_MODULE=xim
scim -d

0 komentar:

Posting Komentar

Ramaikan Blog Ini Dengan Komentar-Komentar Anda

Bebas, Sopan, Ataktif, Kritik Juga Boleh

Popular Posts