Beruflich Dokumente
Kultur Dokumente
Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
5.1
Unit Objectives
After completing this unit, you should be able to: Log in and out of the system State the structure of Linux commands Execute basic Linux commands Use Linux commands to communicate with other users Use the keyboard and mouse effectively Introduction to the X window system
Virtual Terminals
In most Linux distributions, the console emulates a number of virtual terminals.
Typical setup:
VT 1 through 6: Text mode logins VT 7: Graphical mode login prompt (if enabled)
Note: Different distributions and desktop environments will display different login prompts
Linux Commands
Everything on a Linux system can be done by typing commands.
(Even browsing the World Wide Web...)
The Graphical User Interface (X Window System or X) is not needed for running a Linux system.
But is sometimes more convenient
SUSE:
Command Prompt
The command prompt indicates that the system is ready to accept commands.
Examples:
[user@host dir]$ dir$ $ #
$ $ $ $
ls ls -l ls /dev ls -l /dev
Fr 5 12 19 26
Sa 6 13 20 27
Jan 1
11:04
Tty 2 *1
Idle 7
$ finger tux1 Login: tux1 Name: Tux (1) Directory: /home/tux1 Shell: /bin/bash On since Mon Jan 1 11:04 (UTC) on tty2 No mail. No plan.
Copyright IBM Corporation 2008
Tux1
Copyright IBM Corporation 2008
Tux2
Client/Server Architecture
Window Manager
Application 1
Copyright IBM Corporation 2008
Application n
X Components
An X Server:
Controls keyboard, mouse and one or more screens Controls resolution, refresh rate and color depth Allows simultaneous access by several clients Performs basic graphic operations Forwards keyboard and mouse events to the correct clients
An X Client:
Is for instance an application Receives keyboard and mouse inputs from server Sends output to be displayed to server
A Window Manager:
Is a special X client Performs window dressing on other clients Allows other client windows to be moved, iconified, and so forth
Copyright IBM Corporation 2008
X Servers in Linux
Most distributions use XFree86 (www.xfree86.org) or Xorg (www.X.org) as their X server.
Open Source Supports most video adapters
X Configuration
X needs to be configured for your hardware:
Keyboard Mouse Graphical adapter Monitor
Desktop Environments
A Desktop Environment is:
A set of tools, libraries, and standards that allows rapid development of X clients A set of X clients (including one or more window managers) that are developed with these tools, libraries and standards
Examples:
GNOME (GNU Network Object Model Environment) KDE (K Desktop Environment) ...
K Desktop Environments
Starting X
If logged in on a text terminal, run startx.
Only starts a single session. When session ends, you are back in your text terminal.
If you want to enable the graphical login screen, bring the system into runlevel 5.
To switch manually, use init 5 command. To make change permanent, edit /etc/inittab: id:5:initdefault:
Checkpoint
1. True or False? A Linux system always needs a Graphical User Interface.
Unit Summary
The GUI of Linux is based on the X Window System (X for short).