Gentoo installation (4)-install X Desktop Environment, gentoo
Install X Desktop Environment: Install Xorg:
- Detect video card information:
dmesg | grep videolspci | grep -i VGA
- Configure the INPUT_DEVICE and VIDEO_CARDS variables:
Before installing Xorg, you need to set two important variables in the/etc/portage/make. conf file.
(For mouse, keyboard, and Synaptics touchpad support) INPUT_DEVICE = "evdev synaptics" (For nVidia graphics cards) VIDEO_CARDS = "nvidia" (or, For ATI Radeon graphics cards) VIDEO_CARDS = "radeon" (vmwarevm) VIDEO_CARDS = "vmware" (VirtualBox VM) VIDEO_CARDS = "virtualbox"
emerge -pv xorg-drivers
First of all, make sure udev is in your USE flags:
echo "x11-base/xorg-server udev" >> /etc/portage/package.use
Note: The keyboard and mouse are replaced with evdev in the latest version of Xorg (later than 1.5) to ensure that the udev flag is enabled when xorg-server is installed.
Next, install Xorg:
emerge -av xorg-server
- Update environment variables:
env-update source /etc/profile
After twm and xterm are installed, run startx to test whether X is normal.
After the test is normal, you can delete twm and xterm.
emerge -v twm xtermstartx
Install the desktop environment: