- Configuring Your Linux GUI Desktop -


This document began as the notes for a SFVLUG presentation at a general membership meeting at Village Coffee Roaster in Woodland Hills, CA on December 18, 2004. Hopefully, we learn from experience and from our mistakes of commission and omission. This is an attempt to rectify any mistakes and to polish these notes into a better learning experience and provide the information to anyone with interest that was not in attendance at the meeting.

For SFVLUG specific links please click here

Contents

  1. Introduction
  2. Overview
  3. Boot Loader
  4. Grub
  5. Display Managers
  6. kdm
  7. gdm
  8. Desktop Environment
  9. KDE
  10. Gnome
  11. Window Manager
  12. KWM
  13. Metacity

Introduction

Why worry about style? The purpose of this document is to address the issue of style and how it relates to function. This is not a one size fits all world, if it were ice cream parlors wouldn't have thirty one flavors and we would still all be driving around in model T Ford cars painted black. The GNU/Linux working environment is designed to serve the needs of many people wanting to perform all manner of tasks and having quite different opinions on how best to accomplish those tasks. Style and function need to complement each other and any compromise between style and function needs to be balanced by the individual user.

We all feel better when surrounded by things we like. Working in an enjoyable environment is good for you, it is good for your overall well being. The virtual world of your computer's desktop environment is no different and has no less of an effect on you than your physical environment. The wallpaper on your computer is as important to your environment as the wallpaper on the wall behind your computer. You may not be able to change the wallpaper in your office, but you can change it on your computer's desktop.

Most compromise between style and function comes in balancing resources and depends on the capability of your system vs your requirements. It takes a lot more resources to display a full color world map clock than it does to display a simple digital clock. Keep your personal needs in mind as you make your decisions. If you are using your computer to do complicated mathematical analysis of large amounts of data you may not want to waste your resources on a world map clock. However, if all you are doing is just surfing the Internet or writing a letter to your cousin it may not matter that much, and that world map clock looks real cool, it is always nice to know the time in Paris, and Tux prancing across your desktop makes you laugh.

contents

Overview

Define elements that lend themselves to customization. Splash images, backgrounds, panels, icons, and window decorations are the components of the Linux desktop GUI that provide some of the best opportunities for customizations. There are two boot managers, two major desktop environments, and literally dozens of Linux window managers. So, for the purpose of this documentation, to keep its scope to a practical level, we will concentrate on those components with a high capability of customization.

Create a theme on which to base your customization. To take full advantage of customized settings and to achieve a good overall look to your desktop you need to establish an overall theme or plan for your desktop. You may want to design your theme around a personal interest, hobby, game, movie, or favorite colors. When designing your look you also need to remain practical. Dark text against a dark background or light text against a light background can be difficult to read. Colors focus at different distances due to a difference in wavelength and can create strikingly beautiful or visually confusing effects.

If you share your computer with other users you may need to keep their preferences in mind. This is especially true in setting the resolution of the monitor. Each user can easily set their own desktop look, but the screen resolution can create problems that can't be easily resolved just by changing the size of icons and fonts. Login and other start up screens can be effected by screen resolution as well. It might be necessary to make a compromise when sharing a workstation with other users.

It is helpful to use a color scheme when designing a look for your desktop. If you have experience with graphic design and color you can go wild and use any of your favorite schemes. If you don't have a lot of experience with graphic design I will give a few tips to help give you a good overall look.

http://www.appleblossomart.com/linux.htm
http://unix.freshmeat.net/browse/55/
http://directory.google.com/Top/Computers/Software/Desktop_Customization/Themes/Linux/
http://www.themedepot.org/

contents

Boot Loader

Grub

Boot manager with the greatest flexability. You can make changes, like recompiling your kernel without the need to reconfigure Grub each time. It also allows you to easily default to the last choice run, very handy in dual boot systems.

To customize the look of grub you can add the following line to menu.lst:

splashimage /boot/grub/splash.xpm.gz

The file named in this line needs to be in .xpm.gz format with 14 colors at 640x480 resolution. There are some security issues with the .xpm format which may explain why many distributions have switched to using the .png format for icons. You may encounter problems with Gimp and other graphic applications saving images in the .xpm format. Grub still requires that format and I don't know when that might change but it is apparently planned.

WARNING: Because of security issues it wold be best not to be using .xpm images from anywhere but a completely trusted source.

http://www.linux101.org/grub (splashimage HOWTO)
http://www.gnu.org/software/grub/ (project home page)
http://www-106.ibm.com/developerworks/edu/l-dw-linuxgrub-i.html (requires registration)

contents

Display Managers

The display manager provides a graphical login to the X Window System. You can actually use more than one display manager at a time if they are configured to manage different servers. If you have more than one display manager installed and intend to use both, configure the display managers accordingly, edit their init scripts in /etc/init.d and disable the check for the default display manager. The most common display managers are xdm, kdm, and gdm, but there are others. For this presentation only the gdm and kdm display managers will be covered.

It is possible to have problems with a display manager and a particular graphic card. If you are experiencing problems try switching to a different display manager. In Debian you can run dpkg-reconfigure kdm replacing kdm if necessary with the name of your current display manager, but note you must already have installed the other display manager(s) you want to use.

If you aren't sure if a particular display manager is installed, from a command line type 'which kdm' replacing kdm with the display manager you are checking for. If you get a result like /usr/bin/kdm you know kdm is installed and located in /usr/bin/.

contents

kdm

Configure kdm from the Control Center under System Administration > Login Manager. If you may also configure kdm at login if permission has been given for configuration at login.

http://gershwin.ens.fr/vdaniel/Doc-Locale/Outils-Gnu-Linux/Kde/kdm/index-3.html
http://howtos.linux.com/howtos/XFree-Local-multi-user-HOWTO/dm_conf-xdm_kdm.shtml

contents

gdm

Configure gdm by running gdmsetup from a console or using your distributions configuration accessible at login or from your main menu in your desktop environment.

http://howtos.linux.com/howtos/XFree-Local-multi-user-HOWTO/dm_conf-gdm.shtml

contents

Desktop Environment

KDE

KDE is currently the desktop environment that has the most options easily set from built in settings controls. Most settings can be found in the Control Center directly under K-Menu > Control Center or in some distributions under K-Menu > Settings > Control Center.

Desktop Settings Wizard

This wizard runs at the first start of KDE or you can run it later from the K-Menu, usually at the lower left corner of the screen,select Settings > Desktop Settings Wizard at any time to run the wizard.

  1. Introduction – Choose your country and primary language

  2. Select Perfered System Behavior – Choose to have your system act similar to KDE, UNIX, Microsoft Windows, or Apple MacOS

  3. Eyecandy-O-Meter – Sliding scale or pick individual features by selecting Details, the trade off is speed vs style

  4. Themes – These themes are the equivelent of styles selected in the KDE Control Center. They may include KDE Classic, Keramik, Plastik, Platinum, Redmond, and Sunshine. You may find these looks familiar to those from other famous operating systems.

  5. Finish – You will also have the opportunity of starting the Control Center,

Control Center

You can use the Control Center to make additional adjustments to the look and feel of KDE as well as make other system settings. The list of KDE Control Center settings given in this presentation are based on KDE 3.3 under Debian Sid, the exact settings may be different on other versions and distributions. This list is not meant to take the place of the Control Center documentation but to give a general overview of graphical settings available from the Control Center.

Appearance and Themes

Desktop

Skipping over other settings not related to graphical customization

Peripherals

System Administration

For more detailed help on these and other KDE Control Center sections click on the Help tab at the top of the left hand column, then for even more information go to the KDE Help Center by clicking on the link that says, “To read the full manual click here.” The KDE Help Center is available directly by clicking on K-Menu > Help.

http://kde.org/
http://people.fruitsalad.org/phil/kde/userguide-tng/index.html
http://kde-look.org/
http://www.appleblossomart.com/linux.htm
http://themes.freshmeat.net/browse/57/
http://www.linux-mag.com/2000-05/tip_01.html

contents

Gnome

Once my favorite desktop environment its following has suffered in the commercialization process it has undergone since the upgrade to Gnome 2 and the switch to Metacity as the default window manager. The philosophy seems to be to tightly integrate the window manager into the Gnome desktop environment. Design is to be simple and the limited configuration is considered a desirable feature and not a flaw. Most settings are under the Gnome Control Center but much of the flexibility in changing the look and feel through the GUI settings has been lost.

http://gnome.org/
http://www.linuxinfor.com/english/Gnome-User-Guide/part1-1.html
http://art.gnome.org/
http://gnome-look.org/

contents

Window Manager

The window manager works in the desktop environment specifically to draw the application window. The dividing line between the window manager and the desktop environment isn't always sharp and clear. The discussion on this section is limited to the default window managers for KDE and Gnome. This document is structured in this manner for consistancy and future development. The default window managers for KDE and Gnome are KWM and Metacity respectively, both are tightly integrated into their desktop environments.

contents

KWM

KWM is the built in window manager for KDE. Most settings actually take place here, but the integration is so complete that it is difficult to distinguish the division. While it is possible to use other window managers under KDE most people stick with KWM.

http://gershwin.ens.fr/vdaniel/Doc-Locale/Outils-Gnu-Linux/Kde/kwm/

contents

Metacity

Metacity has become the default window manager for Gnome 2 in the attempt to satisfy corporate and government requirements for internationalization and accessibility. As an old Gnome/Sawfish fan I hated to see the change, but it was necessary in the long run. Unfortunately, written by Havoc Pennington of red Hat, Metacity seems to be under the control of a relatively small group of developers and been constrained by their design philosophy. Gnome and Metacity still has a very dedicated following.

I believe that the open source movement is about choice. While I personally don't like the direction which Gnome/Metacity has taken, its simplicity and limited customization may be just the right thing for you. At some point in the future I may put more effort into this section, but for now I don't see much reason. Just go to the Gnome Control Center and find the settings you like, they are simple, easy to make, and usually take effect immediately.

http://ftp.gnome.org/pub/gnome/sources/metacity/
http://people.redhat.com/~hp/metacity/
http://www.plig.org/xwinman/metacity.html

contents