Chapter 2. Desktop

[Note] Terminology
GUI (Graphical User Interface)

A GUI is a system that allows the user to interact with the operating system through clicking on icons on the screen. Icons are graphical representations of operating system functions. At its heart, Linux is a text based system. This requires you to type commands out in full. GUIs were developed to simplify the use of Linux for the desktop user. As you become expert in the use of Linux, you will need to become familiar with the text based system. This is not, however, the objective of these notes.

Distributions

A distribution is a bundled set of CDs which include the heart of the Linux operating system, known as the kernel, together with a set of applications. Each distribution in turn implements Linux slightly differently.

Desktop

The desktop is the actual GUI itself. There are a number of different desktop systems. The most popular are Gnome and KDE. The actual implementation of a desktop varies from distribution to distribution. KDE used with the Mandrake distribution will differ somewhat from when used with the Red Hat distribution. These notes are based on KDE running under Mandrake Linux 9.2

Work with Icons

Abstract

Recognize common desktop icons such as those representing: files, directories/folders, applications, printers, recycle bin/wastebasket.

The following screen illustrates a number of icons on the desktop.

CD-ROM and Floppy give you direct access to these devices.

Directories (folders) are presented by a directory icon as illustrated by Urgent.

Home is a shortcut to your home directory. When new users are added to the system, Linux creates home directories for them. As users do not have rights to other users' directories, the home directory provide a private location for the storage of files. The one exception is root who has complete access to the system.

Trash is a storage location where files are placed after they have been deleted. If trash has not been emptied, you can recover files you have deleted.

There are also desktop icons representing applications such as a word processing or spreadsheet application and other icons that represent printers eg, Laserjet 6L or Admin Deskjet.

Files can also be saved to the desktop. This will be explained in section 2.2.1.4. The desktop is a useful place to save work in progress as you then have immediate access. Files are represented by an appropriate application icon. In the above screen, Linux.swx is an OpenOffice.org Writer file while Sales.sxc is a Calc file.

Select and move desktop icons

You can move icons to a different position on the screen by dragging them. This allows you to group related icons in clusters.

  1. Click on a icon to select it.

  2. Hold down the left mouse button and drag the icon to its new position.

  3. Release the left mouse button.

Open a file, directory/folder, application from the desktop

Open a directory from the desktop

A directory is a location in which files are stored. You may visualise a directory as a drawer of a filing cabinet in which ordinary files are stored. Just as you would label the drawers of a filing cabinet, you give each directory an appropriate name. In many ways a hard disk drive is very much like a room containing many filing cabinets.

A directory may contain files of any type. It may also contain other directories. Directories which are located inside other directories are called sub-directories.

  • Double click on Home. This will open the Konqueror browser and display the contents of your home directory.

Notice that this directory contains a number of files and other directories.

Open an application from the desktop

  • Double click on an application icon on the desktop such as the icon representing OpenOffice.org.

This will open the application and you will then have to use the application's Open command to access the file.

A shorter method would be to double click on a file associated with an application which will open the file in the appropriate application. For example, if you wished to open the spreadsheet called Sales.sxc, you would normally have to load Calc, then use File->Open and locate the file. If you had saved it to the desktop, doubling clicking on the icon would open Calc and then load the spreadsheet.

Create a desktop shortcut icon, desktop menu alias

Save a file to the desktop

Suppose you are working on a file in Writer called Costs.sxw and you wish to save it to the desktop.

  1. In Writer, File->Save.

  2. Select the sub-directory called Desktop in your home directory.

  3. Click Save.

Create a shortcut to a menu item

Suppose you use Writer and Calc on a regular basis. Instead of accessing them through the menu system, you can place shortcut icons on the desktop.

  1. Right click anywhere on the desktop.

  2. Create New->Link to Application

  3. Click the General tab and enter the label Writer.

  4. Click the Execute tab and enter the command oowriter (all in lower case).

  5. Click OK.

    An icon will be displayed on the desktop. In order to use this method you need to know what command to use to run the application. How to determine this is explained in the following section.

  6. Double click on the desktop icon to run the application.

Determine the command name of an application

Suppose you wish to determine the command to run Calc.

  1. Right click on the Start Applications icon.

  2. Click Menu Editor.

  3. Scroll down to the Office entry and click on it to expand.

  4. Scroll down to the Spreadsheets entry and click to expand.

  5. Click on OpenOffice.org Calc.

  6. Read of the Command. In this case it is oocalc.

  7. Use this command to create a shortcut icon to Calc on the desktop.

Create a desktop shortcut to the KDE Control Centre

The KDE control centre provides the main tool for configuring your desktop. Using the menu editor, you could determine the command to run the control centre. This command is kcontrol.

  1. Right click on the desktop.

  2. Create New->Link to Application

  3. Click the General tab and enter the label KDE Control Centre.

  4. Click on the icon in the General tab, then click the Other icons radio button.

  5. Select an icon to be associated with the application and click OK.

  6. Click the Execute tab and enter the command kcontrol (all in lower case).

  7. Click OK.

  8. Go to the desktop and double click on the new icon.

    This will load the KDE control centre without having to access it through the menus.