HOWTO X.org
From Gentoo Linux Wiki
| XOrg Index | Configuration | HIDevices | Fonts | Video Cards | Monitors |
Contents |
[edit] Introduction
This is just a quick howto for X11. As of right now it just covers the basics. Perhaps it will grow.
[edit] Hardware
[edit] Mouse
For the simplest mouse configuration, add the following section to /etc/xorg.conf:
| File: /etc/X11/xorg.conf |
Section "InputDevice" Identifier "Mouse" Driver "mouse" Option "Protocol" "PS/2" Option "Device" "/dev/input/mice" EndSection |
for 2 button mice or laptop trackpads, add:
Option "Emulate3Buttons"
[edit] Other
See also:
- Hardware 3D Acceleration Guide
- Gentoo Linux ATI FAQ
- HOWTO DRI with ATi Open-Source Drivers
- HOWTO ATI Drivers
| Code: Specialized video packages |
emerge ati-drivers VIDEO_CARDS="yourcard" emerge x11-drm (for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and other cards) |
| Code: Available entries for your video card |
VIDEO_CARDS="fglrx radeon vesa vga -apm -ark -chips -cirrus -cyrix -dummy -fbdev -glint -i128 -i740 -i810 -imstt -mach64 -mga -neomagic -nsc -nv -nvidia -r128 -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb -tdfx -tga -trident -tseng -v4l -via -vmware -voodoo" |
You can include VIDEO_CARDS="yourcard" in your make.conf file.
[edit] x.org
Here are a couple of hints for configuring X before you actually use it:
[edit] Installing
| Code: Installing x.org |
emerge xorg-x11 env-update source /etc/profile |
[edit] Configuring Video in X11
| Code: Configuring x.org |
# Text configuration
xorgconfig
# Automatic Xorg Configuration
X -configure
mv /root/xorg.conf.new /root/xorg.default.conf
# The knoppix configuration
emerge mkxf86config
mkxf86config.sh
mv /etc/X11/xorg.conf /root/xorg.knoppix.conf
# Example of Configuration with Special Drivers
# emerge nvidia-kernel nvidia-glx nvidia-settings; eselect opengl set nvidia
# modprobe nvidia
# X -configure
# mv /root/xorg.conf.new /root/xorg.nvidia.conf
# Test and then use <CTRL>+<ALT>+<BKSP> to kill X
X -config /root/xorg.default.conf
X -config /root/xorg.knoppix.conf
X -config /root/xorg.nvidia.conf
echo "Choose the best configuration and then:"
mv /root/xorg.${BEST}.conf /etc/X11/xorg.conf
# Test and then use <CTRL>+<ALT>+<BKSP> to kill X
startx
|
NOTICE: that if you have an ati or nvidia card and run `X -configure` after loading the module for it, you get a more complete xorg.conf.
NOTICE 2: You must run hwsetup once before mkxf86config to generate some configuration files!
Of course, you can't really test your configuration to much of a great extent without installing a desktop environment such as Gnome, KDE or Xfce, but xorgcfg does a decent job at graphically tuning the configuration you've just generated.
You may find it useful to look at the text of each config file and then mix and match the best ones.
NOTICE 3: as Feb 20, 2008 mkxf86config is currently masked.
| Code: /usr/portage/profiles/package.mask: |
# Chris Gianelloni <wolf31o2@gentoo.org> (20 Feb 2008) # Masking these so people will quit installing them on their systems. These # packages are designed for use on the LiveCD only and will do unspeakably # horrible and unexpected things on a normal system. YOU HAVE BEEN WARNED!!! |
[edit] Don't Forget
[edit] Set Default Depth
| File: /etc/X11/xorg.conf |
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24 # Don't forget
# ~~ stuff ~~
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
|
And if you did in fact have an nvidia card, you would want to run nvidia-settings and tweak a little once you got into X. YOU NEED TO RUN nvidia-settings inside of an X session by running startx or you will get a Gtk-Warning.
[edit] Allow root to start X applications after su'ing:
| File: /etc/profile |
export XAUTHORITY="${HOME}/.Xauthority"
|
One can also use the utility called sux. Just emerge sux and sudo sux -.
this advise is not correct, it results in;
- cannot connect to X server
[edit] Enable Euro Symbol
Find iso8859-1 in variable definitions of /usr/X11R6/lib/X11/fonts/misc/fonts.alias and replace with iso8859-15.
