X Window System/zh-cn
Funtoo Linux currently (as of 1.3-release) has xorg-server 1.20.
为了使用图形环境，需要安装 X.Org，它是 X Window 系统的一个实现。
Before we start it's a good idea to make sure that your system is configured correctly. If you've installed your kernel using the
binary USE flag, chances are that your video card is already supported. See Video for more information onthis.
You should also find your IP address, because if X freezes and you need to get out of it, the safest way is to SSH in from another computer/smartphone/tablet and issue
root # killall X
root # nano -w /etc/portage/make.conf ... VIDEO_CARDS="intel"
In the example above we're using Intel integrated graphics drivers. Examples of valid entries include
radeon for AMD Radeon cards, and
nvidia for NVIDIA cards, and
virtualbox if the installation is made through Virtualbox virtual machine. If you haven't yet switched to the
desktop profile it's a good idea to do it now.
Next comes the actual installation:
root # emerge xorg-x11
Now we need to test to make sure X.Org is working properly. To test it we will install twm, a simple window manager which has traditionally served as the standard window manager for X.Org. In Funtoo Linux it is included in the core X.Org meta-package
x11-apps/xinit, but is not installed by default.
It is possible to install twm directly by merging
x11-wm/twm but for the sake of this tutorial we will install the meta-package, which includes a few extra utilities which may come in handy. There are two ways to do this depending on whether you want it to be installed temporarily or permanently. If you just want it to test X.Org use the following command:
root # USE="-minimal" emerge -1 xinit
minimal USE flag is used in some ebuilds to install the bare minimum needed to get a working system. By passing
USE="-minimal" to the command line before
emerge, we are telling Portage to disable the flag and install the complete package. The
emerge tells Portage not to add the package to
world. This is useful when installing packages which are automatically pulled in as dependencies by other packages.
If you want the package installed permanently you will need to add a line to
root # echo 'x11-apps/xinit -minimal' >> /etc/portage/package.use
Next we reinstall
root # emerge -1N xinit
做完这些后，终于可以测试 X.Org 了：
root # startx
If you have no keyboard/mouse input in x11, check if your kernel supports dev
root # zgrep EVDEV /proc/config.gz
if your output is:
root # emerge xf86-input-evdev