X Window System
In order to use a graphical environment it's necessary to install X.Org, which is an implementation of the X Window system.
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
# killall X
# 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. If you haven't yet switched to the
desktop profile it's a good idea to do it now.
Next comes the actual installation:
# 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:
# 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
# echo 'x11-apps/xinit -minimal' >> /etc/portage/package.use
Next we reinstall
# emerge -1N xinit
Once that's done, we're able to finally test X.Org:
If everything is well, a simple GUI along with an analog clock and a terminal will appear.
If you have no keyboard/mouse input in x11, check if your kernel supports dev
# zcat /proc/config.gz | grep EVDEV
if your output is:
# emerge xf86-input-evdev
Daniel Robbins is best known as the creator of Gentoo Linux and author of many IBM developerWorks articles about Linux. Daniel currently serves as Benevolent Dictator for Life (BDFL) of Funtoo Linux. Funtoo Linux is a Gentoo-based distribution and continuation of Daniel's original Gentoo vision.
RSS/Atom SupportYou can now follow this news feed at http://www.funtoo.org/news/atom.xml .
Creating a Friendly Funtoo CultureThis news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
CPU FLAGS X86CPU_FLAGS_X86 are being introduced to group together USE flags managing CPU instruction sets.
Browse all our Linux-related articles, below:
- Funtoo Filesystem Guide, Part 1
- Funtoo Filesystem Guide, Part 2
- Funtoo Filesystem Guide, Part 3
- Funtoo Filesystem Guide, Part 4
- Funtoo Filesystem Guide, Part 5
- LVM Fun
- Learning Linux LVM, Part 1
- Learning Linux LVM, Part 2
- Linux Fundamentals, Part 1
- Linux Fundamentals, Part 1/pt-br
- Linux Fundamentals, Part 2
- Linux Fundamentals, Part 3
- Linux Fundamentals, Part 4
- Making the Distribution, Part 1
- Making the Distribution, Part 2
- Making the Distribution, Part 3
- Maximum Swappage
- POSIX Threads Explained, Part 1
- POSIX Threads Explained, Part 2
- POSIX Threads Explained, Part 3
- Partition Planning Tips
- Partitioning in Action, Part 1
- Partitioning in Action, Part 2
- Prompt Magic
- SAN Box used via iSCSI
- Sed by Example, Part 1
- Sed by Example, Part 2
- Sed by Example, Part 3
- Slowloris DOS Mitigation Guide
- The Gentoo.org Redesign, Part 1
- The Gentoo.org Redesign, Part 2
- The Gentoo.org Redesign, Part 3
- The Gentoo.org Redesign, Part 4
- Traffic Control
- X Window System