Difference between revisions of "Debian"

From LXDE.org
Jump to: navigation, search
(Configuration for Reboot, Shutdown, and Suspend)
(Lightweight systems CD)
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Installing from an APT repository==
+
== Installing to a running system ==
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.
+
LXDE requires Debian Lenny or later editions to satisfy dependencies to libc6.
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.
+
aptitude update
 +
aptitude install lxde
  
So, if you're on lenny, please add those lines to your /etc/apt/sources.list, or using Synaptic, and add this repository.
+
Alternatively, if you want a minimal lxde without its recommended applications:
 +
aptitude install --without-recommends lxde-core
  
<nowiki>deb http://people.linux.org.tw/~andrew/debian/lxde/ ./ </nowiki>
+
=== Configuration for Reboot, Shutdown, and Suspend ===
 
+
'''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.
+
 
+
apt-get update
+
apt-get install lxde
+
 
+
Done!
+
 
+
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.
 
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.
  
Line 26: Line 14:
 
  gpasswd -a user powerdev
 
  gpasswd -a user powerdev
  
==Configuring Login Managers==
+
=== Configuring Login Managers ===
===GDM or KDM===
+
==== 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.
+
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===
+
==== SLIM ====
 
With this display manager, some manual configuration is needed. Please refer to their [http://slim.berlios.de/manual.php official document] and write your /etc/slim.conf and ~/.xinitrc. The command you should put in your ~/.xinitrc to start LXDE is:
 
With this display manager, some manual configuration is needed. Please refer to their [http://slim.berlios.de/manual.php official document] and write your /etc/slim.conf and ~/.xinitrc. The command you should put in your ~/.xinitrc to start LXDE is:
 
  exec startlxde
 
  exec startlxde
  
===WDM===
+
==== WDM ====
Anyone know how to use it please edit this.
+
WDM works the same as GDM or KDM: just select it from the menu.
  
===XDM===
+
==== XDM ====
 
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:
 
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:
  
Line 43: Line 31:
 
  exec startlxde
 
  exec startlxde
  
===No display manager, use startx===
+
==== No display manager, use startx ====
 
Run the following command with root access:
 
Run the following command with root access:
 
  update-alternatives --config x-session-manager
 
  update-alternatives --config x-session-manager
Then choose startlxde. The next time you run startx, LXDE will be started.
+
Then choose startlxde. (For the option to show-up, you may have to reboot your system first.) The next time you run startx, LXDE will be started.
  
==Configuration for locales and input method==
+
=== Configuration for locales and input method ===
*GDM or KDM: Setting locale is not needed. Input method can be specified by im-switch.
+
* 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.
+
* 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.
 
zh_TW.UTF-8 (traditional Chinese, Taiwan) is my locale, please replace it with yours.
 
  export LC_ALL=zh_TW.UTF-8
 
  export LC_ALL=zh_TW.UTF-8
Line 62: Line 50:
 
  scim -d
 
  scim -d
  
==Minimal Debian + LXDE Installation==
+
== Install to a new system ==
* Install Debian base system with Debian netinst.
+
=== i386 or amd64 ===
* During the installation, don't choose anything in "tasksel". Only install the base system. Then, add our preceding repository, and do this:
+
Debian uses codes for system architectures, at the official install images noted as amd64 and i386 the user can select LXDE in the menu marked "Advanced options".
apt-get install xorg xserver-xorg lxde
+
Use the following [http://www.debian.org/devel/debian-installer/index.en.html install images].
* To satisfy dependencies, testing (lenny) repositories have to be enabled.
+
* [http://www.debian.org/devel/debian-installer/ Minimal networkinstall cd] (netinst) Recommended!
'''(FIXME: The list is not complete. Please add required packages to run X11 here.)'''
+
** [http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/ amd64] [http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/ i386]
 +
* CD
 +
** [http://cdimage.debian.org/cdimage/weekly-builds/amd64/iso-cd/debian-testing-amd64-CD-1.iso amd64] [http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-cd/debian-testing-i386-CD-1.iso i386]
 +
* DVD
 +
** [http://cdimage.debian.org/cdimage/weekly-builds/i386/iso-dvd/debian-testing-i386-DVD-1.iso i386]
 +
* [http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/multi-arch/iso-cd/debian-testing-amd64-i386-powerpc-netinst.iso Multi-arch minimal cd] i386/amd64/powerpc
  
* Here is a custom debian-installer which automaticly installs minimal LXDE on EeePC:
+
Read more in the [http://d-i.alioth.debian.org/manual/en.i386/apa.html install notes] (this is for i386).
http://people.linux.org.tw/~andrew/debian/debian-eeepc-wpa-beta2+lxde.img
+
  
Copy it onto your USB stick in the normal way with dd
+
=== Other systems ===
 +
For other architectures you have to issue a boot parameter to install LXDE as your desktop environment.
  
dd if=debian-eeepc.img of=/dev/<YOUR-USB-DEVICE>
+
# Download a install image (the netinst is recomended)
 +
# Issue the boot parameter ''desktop=lxde''
 +
# Continue the install process as usual.
  
Note: <YOUR-USB-DEVICE> = the whole device, not a device partition (e.g. /dev/sdX NOT /dev/sdX1)  
+
Read more in the [http://d-i.alioth.debian.org/manual/en.i386/apa.html install notes] (this is for i386).
  
* most (if not all) ubuntu minimal desktop install guide should also works as [http://wiki.dennyhalim.com/ubuntu-minimal-desktop debian minimal desktop install]
+
=== Lightweight systems CD ===
 +
For simpler systems there is a special CD with XFCE (default) and LXDE as desktop environments, download the one for your system architecture.
 +
* [http://cdimage.debian.org/debian-cd/6.0.3/amd64/iso-cd/debian-6.0.3-amd64-xfce+lxde-CD-1.iso amd64]
 +
* [http://cdimage.debian.org/debian-cd/6.0.3/i386/iso-cd/debian-6.0.3-i386-xfce+lxde-CD-1.iso i386]
 +
* [http://cdimage.debian.org/debian-cd/6.0.3/ia64/iso-cd/debian-6.0.3-ia64-xfce+lxde-CD-1.iso ia64]
 +
Choose from installation menu Lxde to install lxde instead of xfce.
  
==Debian variants with LXDE pre-installed==
+
=== eee PC ===
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:
+
* [http://people.linux.org.tw/~andrew/debian/debian-eeepc-wpa-beta2+lxde.img CD image to install Debian with LXDE on to a eee PC]
 +
** Copy the CD-image on to a USB drive with ''dd''
 +
dd if=debian-eeepc.img of=/dev/<USB-DEVICE>
 +
Note: <USB-DEVICE> = the device, not a partition. ( for example: /dev/sdX  but '''NOT''' /dev/sdX1)
  
; 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.
+
== An easy way: Start with CrunchBang ==
Download: http://people.linux.org.tw/~andrew/debian/lxde/lxde-debian-eeepc-20080916.zip
+
  
How to use it:
+
[[CrunchBang]] 10 "Statler" is based on Debian Testing with Openbox, with easy setup scripts. Setting up LXDE should usually be straightforward - see the [[CrunchBang]] article for details.
  
1. Format a usb stick as FAT filesystem with bootable flag.
+
== See also ==
 
+
* At [http://www.debian.org/CD/index.en.html debian.org] more information about the various disc images can be found.
2. unzip everything into the stick and then run syslinux /dev/<YOUR-USB-DEVICE-PARTITION>
+
* Changes to the CD/DVD/Blue ray-images of Debian as of 7th of January 2009 is documented in the [http://lists.debian.org/debian-devel-announce/2009/01/msg00002.html Debian mailing list archive]
 
+
* [http://aptosid.com Aptosid] - a Debian Unstable based distribution with LXDE.
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)
+
 
+
; [http://cap.gediam.de (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).
+
  
  
 
[[Category:LXDE]]
 
[[Category:LXDE]]
 
[[Category:Linux Distributions]]
 
[[Category:Linux Distributions]]
 +
 +
[[es:Debian]]
 +
[[fa:دبیان]]
 +
[[fr:Debian]]
 +
[[sv:Debian]]
 +
[[tr:Debian]]
 +
[[zh:Debian]]

Revision as of 12:14, 24 November 2011

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

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 works the same as GDM or KDM: just select it from the menu.

XDM

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. (For the option to show-up, you may have 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

Install to a new system

i386 or amd64

Debian uses codes for system architectures, at the official install images noted as amd64 and i386 the user can select LXDE in the menu marked "Advanced options". Use the following install images.

Read more in the install notes (this is for i386).

Other systems

For other architectures you have to issue a boot parameter to install LXDE as your desktop environment.

  1. Download a install image (the netinst is recomended)
  2. Issue the boot parameter desktop=lxde
  3. Continue the install process as usual.

Read more in the install notes (this is for i386).

Lightweight systems CD

For simpler systems there is a special CD with XFCE (default) and LXDE as desktop environments, download the one for your system architecture.

Choose from installation menu Lxde to install lxde instead of xfce.

eee PC

dd if=debian-eeepc.img of=/dev/<USB-DEVICE>

Note: <USB-DEVICE> = the device, not a partition. ( for example: /dev/sdX but NOT /dev/sdX1)

An easy way: Start with CrunchBang

CrunchBang 10 "Statler" is based on Debian Testing with Openbox, with easy setup scripts. Setting up LXDE should usually be straightforward - see the CrunchBang article for details.

See also

  • At debian.org more information about the various disc images can be found.
  • Changes to the CD/DVD/Blue ray-images of Debian as of 7th of January 2009 is documented in the Debian mailing list archive
  • Aptosid - a Debian Unstable based distribution with LXDE.