Setting up a lightweight workstation
Sunday, December 13, 2009 12:00:00 PM
This is a supplement to my notes on installing a new distro. Refer to them as well.
If the box uses shared memory, setting aside part of RAM for graphics, then minimize this setting so as to maximize RAM available to the system.
CHOOSING A DISTRIBUTION
Most any modern distribution will do; the secret sauce is the wise selection of window manager and applications. Choose whatever distro you prefer -- in my case that is Mandriva -- and customize it as discussed below. Having said that, a specialty light distro will come out of the box with a window manager and applications preselected for lightweight use, depriving you of the fun (or the trouble, take your choice) of exploring software on your own. Well known specialty light distros include CrunchBang, DSL, Puppy, and TinyMe.
DESKTOP ENVIRONMENTS VS. WINDOW MANAGERS
A desktop environment is simply a window manager plus extra features to improve usability or aesthetics, such as desktop icons, user menus administration, or automounting of removable media. For an easy to implement solution, choose a ready-made lightweight desktop environment. For best performance, choose a window manager and add only those features you require. Read more on desktop environments and window managers here.
Lightweight desktop environments include:
- LXDE: Quite light. Available for Mandriva since 2009.0. GTK. No trash bin by default but can be added.
- Moblin: Untested. task-moblin available for Mandriva since 2010.0.
- Xfce: My current favorite but not light enough for some hardware. GTK.
Lightweight window managers include:
- Fluxbox: My all time favorite. Many themes. Supported by menumaker.
- FVWM+fvwm-crystal. FVWM is available from Mandriva repositories; fvwm-crystal has to be added manually. Project said to be dormant.
- IceWM: Windows-like. Out of the box it is unattractive but many themes are available.
- Openbox: Used by LXDE and Crunchbang; recommended by users. Supported by menumaker.
COMMON FEATURES ADDED ON TO WINDOW MANAGERS
- Automatic recreation of menu upon installation of conforming software: Desktop environments that conforms to the freedesktop.org standards, such as LXDE and Xfce, offer this via .desktop files. Alternatively, menumaker detects installed applications and creates menus for several window managers, including Fluxbox and Openbox. It is normally run manually, but perhaps it can be called automatically upon installing or removing an application.
- Automount removable media: thunar, ivman
- Desktop icons: idesk
- Trash bin: thunar
Choose your desktop environment or window manager first. Then choose applications that use the same widget toolkit as your desktop environment (e.g. Xfce uses GTK). If your window manager is toolkit-agnostic, then select one toolkit and limit yourself to applications that use it. Mixing and matching toolkits will affect performance on older hardware.
Choose a lightweight toolkit with the applications you want. GTK is a popular choice.
TODO: List commonly installed services that should be considered for removal or configuration to minimize resource consumption.
finit (available for mdv2009.0 and later) reduces boot time on slow machines.
When choosing an application for lightweight use, look for the following: low CPU and RAM consumption, uses your chosen widget toolkit, does not use heavy shared libraries like KDE. Lightweight desktop environments tend to have their own lightweight applications that use DE-specific shared libraries; these are often ideal choices.
The default applications of lighweight distributions and lightweight desktop environments are good candidates for consideration.
Remove any preinstalled applications that are heavy or use heavy shared libraries. Applications with names that begin with "K" or "G" are good candidates for removal.
After installing your applications, associate relevant file types with the light applications in your file manager. For example, if you have both Abiword and OpenOffice installed, relevant files should open by default in the lighter application.
- Audio player: Alsaplayer, LXMusic (GTK), Xfmedia (GTK), Xmms2, Zinf. Not Audacious (CPU hungry on one system). Lightweight audio players lack advanced file search and support for a broad range of formats; organize your files and convert them to common formats. See also video players below.
- Browser: Opera (static or linked QT, full featured), Midori (GTK, basic).
- Burner: Xfburn (GTK)
- CD ripper: Grip (GTK).
- Disk usage utility (non-KDE alternative to Filelight): ?
- File manager: Thunar (GTK) Recommended but not tried: Xfe. Not PCManFM (trash bin not yet in stable version).
- Image viewer: Gqview (GTK).
- IM client: Pidgin (full featured, GTK), CenterIM (basic, ncurses).
- Mail client: Claws Mail (GTK). Using a light email client is preferred over using heavy webmail interfaces like Hotmail (see notes).
- PDF viewer: ePDFview (GTK).
- Spreadsheet: Gunmeric (GTK).
- System monitor: Glrellm, Conky. Many desktop environments come with their own monitors (e.g. xfce4-sensors-plugin).
- Terminal: Terminal (GTK).
- Text editor: Bluefish (full featured, GTK), Leafpad or Mousepad (basic, GTK).
- Video player: Recommended but not yet tested: Gxine (GTK), Lumiere (GTK), Parole (GTK), Xmmsmplayer. Not Xfmedia (cannot resize video). Some video players strive to elegantly handle audio files as well; such an application might obviate the need for a separate audio player.
- Word processor: Abiword (GTK, full featured), Ted (GTK, basic).
If you prefer to use OpenOffice rather than Abiword + Gnumeric, then you might find this advice speeds up OpenOffice on slower hardware.
List of lightweight desktop distributions
List of lightweight DE/WMs and applications
Top 7 Xfce Applications