- 1 Installing from an APT repository
- 2 Configuration for Reboot, Shutdown, and Suspend
- 3 Configuring Login Managers
- 4 Configuration for locales and input method
- 5 Minimal Debian + LXDE Installation
- 6 Debian variants with LXDE pre-installed
Installing from an APT repository
Some of the LXDE packages are already in the official Debian repository. The rest and the latest packages are in our own repository maintained by Andrew Lee. In order to use this repository, you should be using Debian testing (aka lenny) because the new LXDE packages provided by this repository have dependencies that can not be fulfilled by packages from Debian stable (aka etch). For example, etch ships a libc6 package that is too old for LXDE to work.
So, if you're on lenny, please add those lines to your /etc/apt/sources.list, or using Synaptic, and add this repository.
deb http://people.linux.org.tw/~andrew/debian/lxde/ ./
update now lxde is in debian lenny official repo. no need to add other repo. just do the install.
After adding our repository, execute the following commands with root access.
aptitude update aptitude install lxde
alternative if you want a minimal lxde without its recommended apps:
aptitude install --without-recommends lxde
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
GDM or KDM
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:
Anyone know how to use it please edit this.
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:
#!/bin/sh 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
Minimal Debian + LXDE Installation
- Install Debian base system with Debian netinst.
- During the installation, don't choose anything in "tasksel". Only install the base system. Then, add our preceding repository, and do this:
apt-get install xorg xserver-xorg lxde
- To satisfy dependencies, testing (lenny) repositories have to be enabled.
(FIXME: The list is not complete. Please add required packages to run X11 here.)
- Here is a custom debian-installer which automaticly installs minimal LXDE on EeePC:
Copy it onto your USB stick in the normal way with dd
dd if=debian-eeepc.img of=/dev/<YOUR-USB-DEVICE>
Note: <YOUR-USB-DEVICE> = the whole device, not a device partition (e.g. /dev/sdX NOT /dev/sdX1)
- most (if not all) ubuntu minimal desktop install guide should also works as debian minimal desktop install
Debian variants with LXDE pre-installed
If you want to make a fresh installation of Debian and use LXDE with it, keep in mind that there is some existing Debian-based distros that use LXDE. Maybe you can try that first:
- A custom installer with tweaked Debian+LXDE for EeePC from LXDE's debian package maintainer which reflash your Eee within 5mins to a new system.
How to use it:
1. Format a usb stick as FAT filesystem with bootable flag.
2. unzip everything into the stick and then run syslinux /dev/<YOUR-USB-DEVICE-PARTITION>
3. Boot from the usb stick, choose "YES" reflash your Eee to debian-lxde within 5mins.
Note: <YOUR-USB-DEVICE-PARTITION> = a device partition, not the whole device,(e.g. /dev/sdX1 NOT /dev/sdX)
- (Sidux/Debian Sid-based) GNU/Linux LXDE version
- Lightweight and small Sidux-based installable live CD featuring LXDE (default: booting in German, use F-key when you see the grub-screen to change your language to english).