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, 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 you can install Xorg, you need to prepare your system for it. First,
we'll set up the kernel to support input devices and video cards. Then we'll
prepare
By default, Xorg uses
Device Drivers ---> Input device support ---> <*> Event interface
Modern open-source video drivers rely on kernel modesetting (KMS). KMS provides an improved graphical boot with less flickering, faster user switching, a built-in framebuffer console, seamless switching from the console to Xorg, and other features. KMS conflicts with legacy framebuffer drivers, which must remain disabled in your kernel configuration.
First, prepare your kernel for KMS. You need to do this step regardless of which Xorg video driver you're using.
Device Drivers --->
Graphics support --->
Support for frame buffer devices --->
(Disable all drivers, including VGA, Intel, nVidia, and ATI)
(Further down, enable basic console support. KMS uses this.)
Console display driver support --->
<*> Framebuffer Console Support
Next, configure your kernel to use the proper KMS driver for your video card. Intel, nVidia, and AMD/ATI are the most common cards, so follow code listing for your card below.
For Intel cards:
Device Drivers --->
Graphics support --->
/dev/agpgart (AGP Support) --->
<*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
<*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)
i915 driver
[*] Enable modesetting on intel by default
For nVidia cards:
(Enable DRM) Device Drivers ---> Graphics support ---> <*> Direct Rendering Manager --->(Nouveau is currently in the Staging drivers section) Device Drivers ---> Staging drivers ---> [ ] Exclude Staging drivers from being built <*> Nouveau (nVidia) cards
For newer AMD/ATI cards (
(Setup the kernel to use the radeon-ucode firmware) Device Drivers ---> Generic Driver Options ---> [*] Include in-kernel firmware blobs in kernel binary# RadeonHD 2000, 3000, and 4000 series cards: (radeon/R600_rlc.bin radeon/R700_rlc.bin) External firmware blobs# RadeonHD 5000, a.k.a Evergreen, and newer cards: (radeon/CEDAR_me.bin radeon/CEDAR_pfp.bin radeon/CEDAR_rlc.bin radeon/CYPRESS_me.bin radeon/CYPRESS_pfp.bin radeon/CYPRESS_rlc.bin radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin radeon/REDWOOD_me.bin radeon/REDWOOD_pfp.bin radeon/REDWOOD_rlc.bin) External firmware blobs# Radeon HD 6200/6300 aka. Ontario/Zacate: (radeon/PALM_me.bin radeon/PALM_pfp.bin radeon/SUMO_rlc.bin) External firmware blobs# Radeon HD 6400-6900 aka. Northern Islands: (radeon/BARTS_mc.bin radeon/BARTS_me.bin radeon/BARTS_pfp.bin radeon/BTC_rlc.bin radeon/CAICOS_mc.bin radeon/CAICOS_me.bin radeon/CAICOS_pfp.bin radeon/TURKS_mc.bin radeon/TURKS_me.bin radeon/TURKS_pfp.bin) External firmware blobs (/lib/firmware/) Firmware blobs root directory(Enable Radeon KMS support) Device Drivers ---> Graphics support ---> <*> Direct Rendering Manager ---> <*> ATI Radeon [*] Enable modesetting on radeon by default
Now that you're done setting up KMS, continue with preparing
Now that your kernel is prepared, you have to configure two important variables
in the
The first variable is
The
The second variable is
Now you should decide which drivers you will use and add necessary settings to
the
(For mouse, keyboard, and Synaptics touchpad support) INPUT_DEVICES="evdev synaptics"(For nVidia cards) VIDEO_CARDS="nouveau"(For AMD/ATI cards) VIDEO_CARDS="radeon"
If the suggested settings don't work for you, you should run
# emerge -pv xorg-drivers These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] x11-base/xorg-drivers-1.9 INPUT_DEVICES="evdev synaptics -acecad -aiptek -elographics% -fpit% -joystick -keyboard -mouse -penmount -tslib -virtualbox -vmmouse -void -wacom" VIDEO_CARDS="radeon -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx (-geode) -glint -i128 (-i740) (-impact) -intel -mach64 -mga -neomagic (-newport) -nouveau -nv -nvidia -r128 -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware (-voodoo) (-xgi)" 0 kB
After setting all the necessary variables you can install the Xorg package.
(Make sure udev is in your USE flags) # echo "x11-base/xorg-server udev" >> /etc/portage/package.use(Install Xorg) # emerge xorg-server
When the installation is finished, you will need to re-initialise some environment variables before you continue:
# env-update # source /etc/profile
The X server is designed to work out-of-the-box, with no need to manually edit Xorg's configuration files. It should detect and configure devices such as displays, keyboards, and mice.
You should first try
The configuration files of Xorg are stored in
Now try
$ startx
If you haven't yet installed a window manager, all you'll see is a black screen.
Since this can also be a sign that something's wrong, you may want to emerge
Once those two programs are installed, run
If you feel that the screen resolution is wrong, you will need to check two
sections in your
Now let us change the resolution. In the next example from
# nano -w /etc/X11/xorg.conf.d/40-monitor.conf Section "Device" Identifier "RadeonHD 4550" Option "Monitor-DVI-0" "DVI screen" EndSection Section "Monitor" Identifier "DVI screen" Option "PreferredMode" "1440x900" EndSection
Run X (
You can configure more than one monitor in
# nano -w /etc/X11/xorg.conf.d/40-monitor.conf Section "Device" Identifier "RadeonHD 4550" Option "Monitor-DVI-0" "DVI screen" Option "Monitor-VGA-0" "VGA screen" EndSection Section "Monitor" Identifier "DVI screen" EndSection Section "Monitor" Identifier "VGA screen" Option "RightOf" "DVI screen" EndSection
To setup X to use an international keyboard, you just have to create the
appropriate config file in
# nano -w /etc/X11/xorg.conf.d/30-keyboard.conf
Section "InputClass"
Identifier "keyboard-all"
Driver "evdev"
Option "XkbLayout" "us,cz"
Option "XkbModel" "logitech_g15"
Option "XkbRules" "xorg"
Option "XkbOptions" "grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_alt_bksp"
Option "XkbVariant" ",qwerty"
MatchIsKeyboard "on"
EndSection
The "terminate" command (
Run
First of all,
There are also many online resources on editing config files in
More information about installing and configuring various graphical desktop
environments and applications can be found in the
If you're upgrading to
X.org provides many