The average user may be frightened at the thought of having to type in commands. Why wouldn't he be able to point and click his way through the freedom provided by Gentoo (and Linux in general)? Well, *big smile*, of course you are able to do this. :-) Linux offers a wide variety of flashy user interfaces and environments which you can install on top of your existing installation.
This is one of the biggest surprises new users come across: a graphical user
interface is nothing more than an application which runs on your system. It is
As standards are important, a standard for drawing and moving windows on a
screen, interacting with the user through mouse, keyboard and other basic, yet
important aspects has been created and named the
The application that provides Linux users with the ability to run graphical user interfaces and that uses the X11 standard is Xorg-X11, a fork of the XFree86 project. XFree86 has decided to use a license that might not be compatible with the GPL license; the use of Xorg is therefore recommended. The official Portage tree does not provide an XFree86 package anymore.
The
Xorg provides an interface between your hardware and the graphical software you want to run. Besides that, Xorg is also fully network-aware, meaning you are able to run an application on one system while viewing it on a different one.
Before installing Xorg you have to configure two important variables in the
The first one is
The second variable is
Now you should decide which drivers you will use and add necessary settings to
the
(For mouse and keyboard support) INPUT_DEVICES="keyboard mouse"(For Nvidia cards) VIDEO_CARDS="nvidia"(OR, for ATI Radeon cards) VIDEO_CARDS="fglrx"
More instructions on how to configure nVidia and ATI cards can be found in
# emerge -pv xorg-server These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-base/xorg-server-1.2.0-r3 USE="dri nptl xorg (-3dfx) -debug -dmx -ipv6 -kdrive -minimal -sdl -xprint" INPUT_DEVICES="keyboard mouse -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -evdev -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="nvidia -apm -ark -chips -cirrus -cyrix -dummy -epson -fbdev -fglrx -glint -i128 (-i740) -i810 (-impact) (-imstt) -mach64 -mga -neomagic (-newport) (-nsc) -nv -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -vga -via -vmware -voodoo" 0 kB
After setting all the necessary variables you can install the Xorg package.
# emerge xorg-x11
When the installation is finished, you might need to re-initialise some
environment variables before you continue. Just run
# env-update # source /etc/profile
The configuration file of Xorg is called
# man 5 xorg.conf
Happy reading for those of you willing to. We surely don't so we'll continue with checking out how we can create the file automatically.
Xorg itself is able to guess most parameters for you. In most cases, you will only have to change some lines to get the resolution you want up and running. If you are interested in more in-depth tweaking, be sure to check the resources at the end of this chapter. But first, let us generate a (hopefully working) Xorg configuration file.
# Xorg -configure
Be sure to read the last lines printed on your screen when Xorg has finished
probing your hardware. If it tells you it failed at some point, you're forced to
manually write an
# X -config /root/xorg.conf.new
If all goes well, you should see a simple black and white pattern. Verify if
your mouse works correctly and if the resolution is good. If you received errors
about "/dev/mouse", try changing your mouse device to
Xorg provides a tool called
# xorgconfig
Another tool, also provided by Xorg, is
# xorgcfg(In case X crashes or the configuration fails, try:) # xorgcfg -textmode
Let us copy over the
# cp /root/xorg.conf.new /etc/X11/xorg.conf
Now try
# startx
If you see an ugly, loathsome, repulsive, deformed window manager, that's
If you feel that the screen resolution is wrong, you will need to check two
sections in your configuration. First of all, you have the
What happens is that Xorg checks the settings of
Now let us change the resolutions. In the next example from
Section "Screen" Identifier "Default Screen" Device "S3 Inc. ProSavage KN133 [Twister K]" Monitor "Generic Monitor" DefaultDepth 24# Skipping some text to improve readability SubSection "Display" Depth 24 Modes "1024x768" EndSubSection EndSection
Run X (
To setup X to use an international keyboard, search for the
Section "InputDevice" Identifier "Generic Keyboard" Driver "keyboard" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "be" EndSection
If your mouse isn't working, you will first need to find out if it is detected
by the kernel at all. Mice are (device-wise) seen as
# cat /dev/input/mouse0(Don't forget to press Ctrl-C to end this)
If your mouse isn't detected, verify if all the necessary modules are loaded.
If your mouse is detected, fill in the device in the appropriate
Section "InputDevice" Identifier "TouchPad Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mouse0" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" EndSection
Run
First of all,
Also, be sure to look at
You may find the X.org
There are also many online resources on editing
More information about installing and configuring various graphical desktop
environments and applications can be found in the