دبیان
محتویات
نصب در دبیان
LXDE در نسخهٔ لنی (Lenny) دبیان و نسخههای بعدی آن موجود است. برای نصب دستورات زیر را توسط root اجرا کنید:
aptitude update aptitude install lxde
در صورتی که میخواهید lxde حداقلی را بدون بستههای پیشنهادی نصب کنید، به جای دستور دوم درستور زیر را اجرا کنید:
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
GDM or KDM
For GDM and 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.
SLIM
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
WDM
WDM همچون GDM و KDM است: فقط آنرا از منو انتخاب کنید.
XDM
XDM فایلی به نام .xsession را در دایرکتوری خانگی کاربر میخواند تا مدیر پنجرهای (window manager) را که باید اجرا شود را تشخیص دهد.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. (For the option to show-up, you may hve to reboot your system first.) 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