LXDE
SEE ALSO Projects/LXDE
LXDE is a new project aimed to provide a new desktop environment which is lightweight and fast. It's not designed to be powerful and bloated, but to be usable and slim enough, and keep the resource usage low. There are a number of active LXDE projects being considered by the development community.
Components
- PCManFM: File manager, provides desktop icons
- LXPanel: Feature-rich desktop panel
- LXSession Lite: Standard-compliant X11 session manager with shutdown/reboot/suspend support via HAL and user switching with gdm
- LXSession Edit: Tool to manage freedesktop.org compliant desktop session autostarts.
- LXAppearance: Feature-rich GTK+ theme switcher to change GTK+ themes, icon themes, and fonts
- LXTask: Lightweight task manager derived from xfce4 task manager
- LXTerminal: Desktop-independent VTE-based terminal emulator
- LXLauncher: Open source replacement for the Asus Launcher on the EeePC
- LXNM (still under development): Lightweight network manager for LXDE supporting wireless connections
- LXRandR: Monitor configuring tool.
- Openbox: Lightweight, standard-compliant, and highly-configurable window manager. This can be replaced by any other window manager like icewm, fluxbox, metacity, ...etc.
- GPicView: A very simple, fast, and lightweight image viewer
- Leafpad: Lightweight and simple text editor
- XArchiver: Lightweight, fast, and desktop-independent gtk+-based file archiver
LXDE uses a modular approach: Each component of LXDE can be used independently, so you don't need to install the whole Desktop, if you don't like it.
Installation
Get Root
Establish a connection to the internet. You will need the ability to connect to the internet to retrieve and update files from the OPLC's repositories. yum is the command that will retrieve the files you request and it will automatically install them. You will need to have root access to use yum.
If you can't get an internet connection first because of missing WPA encryption, follow WPA instructions first. These even work with Sugar.
Get "root": Use the Terminal Activity and type su
at the prompt and press the [enter] key. Your command prompt will now end with "#" this means you have "root" and can change any file on the computer.
$ su #
Install Packages
Install lxde, this will give you a very basic desktop environment and the ability to customize it. This will download about 25MBs to RAM then install the files automatically. Make sure, no other Activity is running. Otherwise during installation you will get 'error: can't allocate memory'. To proceed, stop Terminal Activity, reboot, restart the process. If you get a "Socket Error" that returns you to a prompt, use the up arrow to restore your original command and enter to restart the process.
# yum install lxde-common
This will install the LXDE core components: lxde-common, lxpanel, lxsession, pcmanfm and openbox.
Optional packages:
# yum install gpicview leafpad lxappearance lxlauncher lxsession-edit lxtask lxterminal obconf xarchiver
SLiM (Simple Login Manager)
if you want to have your own login screen (users acounts)
simply do this
# su # yum install slim
let it install after it installs do this
# nano /etc/inittab
replace the end line on the file with this
# x:5:respawn:/usr/bin/slim-dynwm
do this now on the keyboard
# CTRL-ALT-ERASE
to restart X, starting SLim.
To reboot or halt, login in as special username "reboot" or "halt" - using the root password.
To get a console prompt use username "console", and to switch sessions use F1, screenshot F11.
Configuration
Appearance
Use lxapperance
to configure the look and feel
- reduce the font size to 6-8
- set the GTK Window Theme to Sugar
- set to icon theme to Sugar
- Add Inherits=gnome after the [Icon Theme] line in /usr/share/icons/sugar/index.theme, so that sugar's theme properly pulls in the gnome filemanager icons (in ticket #7939 we suggest adding appropriate sugarized icons for folders, etc) (pilgrim patch)
Window Manger
Use obconf
to configure the OpenBox window manager
- reduce the font size to 6-8.
- select a display friendly window manager theme like natura
Usage
Mounting Removable Filesystems
- Insert SD card or usb drive.
- Run pcmanfm, the LXDE File Manager.
- The removable media should appear in the left-hand column. Click on it to mount it. A df will show that it has been mounted in the appropriate place (/mount/VOLUME_NAME)
- To unmount, right click on the media name in the same place and choose unmount.
Change default desktop
Turn LXDE to default desktop
In /home/olpc/
create a copy of .xsession-example
called .xsession
:
# cp /home/olpc/.xsession-example /home/olpc/.xsession
Edit the .xsession
file to launch LXDE on startup:
# nano /home/olpc/.xsession
Find the commented line that reads #exec xterm
- below that line, add the following code:
exec ck-xinit-session startlxde
- use CTRL+X to save and exit
- use CTRL+ALT+BACKSPACE to restart X, starting LXDE
Turn back to XO Sugar desktop
To make the original XO Sugar desktop the default boot again, rename the .xsession
file to anything other than .xsession (.xsession-lxde
for instance). Applied changes, e.g. networking, may stay persistent.
- Select Logout from the LXPanel menu and confirm to restart X, starting Sugar
References
See also
- XFCE and XFCE and Sugar
- Fedora on XO and Installing Debian as an upgrade to install a conventional desktop Linux distribution on the XO
- OpenBox, a faster window manager with a more complicated install process on the XO.