Tag Archives: gentoo

Xorg-server install and configure for Matrox Video in Gentoo

Tutorial for Gentoo and similar. Firstly, compile the kernel with framebuffer support.

Edit /etc/make.conf file:

  INPUT_DEVICES="evdev"
  VIDEO_CARDS="mga"

As you see, for Matrox videocards point a mga driver. To see all other opts, use:

  emerge -pv xorg-drivers

Then following:

  emerge xorg-server xf86-video-mga xf86-input-evdev xf86-video-vesa xf86-video-fbdev
  env-update && source /etc/profile

After X- configure under root in home dir you’ll see xorg.conf file. Copy it to /etc/X11 and modify as:

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen         "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/lib64/xorg/modules"
	FontPath     "/usr/share/fonts/misc/"
	FontPath     "/usr/share/fonts/TTF/"
	FontPath     "/usr/share/fonts/OTF/"
	FontPath     "/usr/share/fonts/Type1/"
	FontPath     "/usr/share/fonts/100dpi/"
	FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
	Load  "dbe"
	Load  "record"
	Load  "glx"
	Load  "extmod"
	Load  "dri"
	Load  "dri2"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver 	    "evdev"
	Option	    "Device" "/dev/input/event5"
	Option	    "XkbRules" "xorg"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
	Option	    "CoreKeyboard" "true"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "evdev"
#	Option	    "Protocol" "auto"
	Option	    "Device" "/dev/input/event4"
	Option	    "ZAxisMapping" "4 5 6 7"
	Option      "CorePointer" "true"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "mga"
	BusID       "PCI:4:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
	EndSubSection
EndSection

Next, install desktop env. (for ex. xfce, see docs) or window manager & run:

  startx

Also read http://www.gentoo.org/doc/en/xorg-config.xml,
http://www.gentoo.org/doc/en/xfce-config.xml

Full kernel config on next page…
read more »

Installing Xen-tools check_python FAILED error

If you got the error like this:

  *** check_python FAILED

Use next:

# eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *

And then choose 2.* one:

  # eselect python set 1

Would be helped.

Set domain name in Gentoo

You can set domain name in /etc/hosts:

    127.0.0.1 hostname.domain.com hostname localhost

Set in /etc/conf.d/net:

    (Set the dns_domain variable to your domain name)
    dns_domain_lo="homenetwork"

    (Set the nis_domain variable to your NIS domain name)
    nis_domain_lo="my-nisdomain"

Set in /etc/conf.d/domainname:

    OVERRIDE=1
    DNSDOMAIN="domain.com"
    #NISDOMAIN="" 

First method is good for me.