注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "X Window System"

From Funtoo
Jump to navigation Jump to search
m (remove extra space)
Line 5: Line 5:
=== X.Org Kits ===
=== X.Org Kits ===


Funtoo Linux currently has the option of running version 1.17 or 1.19 of xorg-server, and 1.17 is enabled by default. Many users will prefer to use version 1.19 as the basis for their graphical environment. To enable the 1.19 environment, perform the following steps. First, edit {{f|/etc/ego.conf}} and add the following lines to it:
Funtoo Linux currently (as of 1.3-release) has xorg-server 1.20.
 
{{file|path=/etc/ego.conf|body=
[kits]
 
xorg-kit = 1.19-prime
}}
 
Then, after saving the file, run the following commands to update your portage tree:
 
{{console|body=
# ##i##ego sync
# ##i##epro update
}}
 
You will now have the {{c|1.19-prime}} version of xorg-server active and ready to install.


=== X.Org ===
=== X.Org ===
Line 29: Line 14:


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
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
<console>
{{console|body=
# ##i##killall X
# ##i##killall X
</console>
}}


In order for Portage to know which [[Video | video]] card(s) you want to support, you'll need to add a line to your <code>[[make.conf | make.conf]]</code>.
In order for Portage to know which [[Video | video]] card(s) you want to support, you'll need to add a line to your <code>[[make.conf | make.conf]]</code>.
<console>
{{console|body=
# ##i##nano -w /etc/portage/make.conf
# ##i##nano -w /etc/portage/make.conf
...
...
VIDEO_CARDS="intel"
VIDEO_CARDS="intel"
</console>
}}


In the example above we're using Intel integrated graphics drivers. Examples of valid entries include <code>radeon</code> for AMD Radeon cards, and <code>nouveau</code> or <code>nvidia</code> for NVIDIA cards, and <code>virtualbox</code> if the installation is made through Virtualbox virtual machine. If you haven't yet switched to the <code>desktop</code> profile it's a good idea to do it now.
In the example above we're using Intel integrated graphics drivers. Examples of valid entries include <code>radeon</code> for AMD Radeon cards, and <code>nouveau</code> or <code>nvidia</code> for NVIDIA cards, and <code>virtualbox</code> if the installation is made through Virtualbox virtual machine. If you haven't yet switched to the <code>desktop</code> profile it's a good idea to do it now.


Next comes the actual installation:
Next comes the actual installation:
<console>
{{console|body=
# ##i##emerge xorg-x11
# ##i##emerge xorg-x11
</console>
}}


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 <code>x11-apps/xinit</code>, but is not installed by default.
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 <code>x11-apps/xinit</code>, but is not installed by default.


It is possible to install twm directly by merging <code>x11-wm/twm</code> 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:
It is possible to install twm directly by merging <code>x11-wm/twm</code> 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:
<console>
{{console|body=
# ##i##USE="-minimal" emerge -1 xinit
# ##i##USE="-minimal" emerge -1 xinit
</console>
}}


The <code>minimal</code> USE flag is used in some ebuilds to install the bare minimum needed to get a working system. By passing <code>USE="-minimal"</code> to the command line before <code>emerge</code>, we are telling Portage to disable the flag and install the complete package. The <code>-1</code> (<code>--oneshot</code>) following <code>emerge</code> tells Portage not to add the package to [[#Updating your system|<code>world</code>]]. This is useful when installing packages which are automatically pulled in as dependencies by other packages.
The <code>minimal</code> USE flag is used in some ebuilds to install the bare minimum needed to get a working system. By passing <code>USE="-minimal"</code> to the command line before <code>emerge</code>, we are telling Portage to disable the flag and install the complete package. The <code>-1</code> (<code>--oneshot</code>) following <code>emerge</code> tells Portage not to add the package to [[#Updating your system|<code>world</code>]]. 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 <code>package.use</code>:  
If you want the package installed permanently you will need to add a line to <code>package.use</code>:  
<console>
{{console|body=
# ##i##echo 'x11-apps/xinit -minimal' >> /etc/portage/package.use
# ##i##echo 'x11-apps/xinit -minimal' >> /etc/portage/package.use
</console>
}}


Next we reinstall <code>x11-apps/xinit</code>:
Next we reinstall <code>x11-apps/xinit</code>:
<console>
{{console|body=
# ##i##emerge -1N xinit
# ##i##emerge -1N xinit
</console>
}}


Once that's done, we're able to finally test X.Org:
Once that's done, we're able to finally test X.Org:


<console>
{{console|body=
# ##i##startx
# ##i##startx
</console>
}}


If everything is well, a simple GUI along with an analog clock and a terminal will appear.
If everything is well, a simple GUI along with an analog clock and a terminal will appear.
Line 77: Line 62:


If you have no keyboard/mouse input in x11, check if your kernel supports dev
If you have no keyboard/mouse input in x11, check if your kernel supports dev
<console>
{{console|body=
# ##i##zgrep EVDEV /proc/config.gz
# ##i##zgrep EVDEV /proc/config.gz
</console>
}}
if your output is:
if your output is:
<console>
{{console|body=
CONFIG_INPUT_EVDEV=y  
CONFIG_INPUT_EVDEV=y  
</console>
}}
Install xf86-input-evdev
Install xf86-input-evdev
<console>
{{console|body=
# ##i##emerge xf86-input-evdev
# ##i##emerge xf86-input-evdev
</console>
}}


[[Category:First Steps]]
[[Category:First Steps]]
[[Category:Articles]]
[[Category:Articles]]
{{ArticleFooter}}
{{ArticleFooter}}

Revision as of 01:02, January 3, 2019

   Support Funtoo!
Get an awesome Funtoo container and support Funtoo! See Funtoo Containers for more information.


X.Org Kits

Funtoo Linux currently (as of 1.3-release) has xorg-server 1.20.

X.Org

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

root # killall X

In order for Portage to know which video card(s) you want to support, you'll need to add a line to your make.conf.

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 nouveau or 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

The 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 -1 (--oneshot) following 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 package.use:

root # echo 'x11-apps/xinit -minimal' >> /etc/portage/package.use

Next we reinstall x11-apps/xinit:

root # emerge -1N xinit

Once that's done, we're able to finally test X.Org:

root # startx

If everything is well, a simple GUI along with an analog clock and a terminal will appear.

Keyboard/Mouse

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:

CONFIG_INPUT_EVDEV=y

Install xf86-input-evdev

root # emerge xf86-input-evdev


   Note

Browse all our available articles below. Use the search field to search for topics and keywords in real-time.

Article Subtitle
Article Subtitle
Awk by Example, Part 1 An intro to the great language with the strange name
Awk by Example, Part 2 Records, loops, and arrays
Awk by Example, Part 3 String functions and ... checkbooks?
Bash by Example, Part 1 Fundamental programming in the Bourne again shell (bash)
Bash by Example, Part 2 More bash programming fundamentals
Bash by Example, Part 3 Exploring the ebuild system
BTRFS Fun
Funtoo Filesystem Guide, Part 1 Journaling and ReiserFS
Funtoo Filesystem Guide, Part 2 Using ReiserFS and Linux
Funtoo Filesystem Guide, Part 3 Tmpfs and Bind Mounts
Funtoo Filesystem Guide, Part 4 Introducing Ext3
Funtoo Filesystem Guide, Part 5 Ext3 in Action
GUID Booting Guide
Learning Linux LVM, Part 1 Storage management magic with Logical Volume Management
Learning Linux LVM, Part 2 The cvs.gentoo.org upgrade
Libvirt
Linux Fundamentals, Part 1
Linux Fundamentals, Part 2
Linux Fundamentals, Part 3
Linux Fundamentals, Part 4
LVM Fun
Making the Distribution, Part 1
Making the Distribution, Part 2
Making the Distribution, Part 3
Maximum Swappage Getting the most out of swap
On screen annotation Write on top of apps on your screen
OpenSSH Key Management, Part 1 Understanding RSA/DSA Authentication
OpenSSH Key Management, Part 2 Introducing ssh-agent and keychain
OpenSSH Key Management, Part 3 Agent Forwarding
Partition Planning Tips Keeping things organized on disk
Partitioning in Action, Part 1 Moving /home
Partitioning in Action, Part 2 Consolidating data
POSIX Threads Explained, Part 1 A simple and nimble tool for memory sharing
POSIX Threads Explained, Part 2
POSIX Threads Explained, Part 3 Improve efficiency with condition variables
Sed by Example, Part 1
Sed by Example, Part 2
Sed by Example, Part 3
Successful booting with UUID Guide to use UUID for consistent booting.
The Gentoo.org Redesign, Part 1 A site reborn
The Gentoo.org Redesign, Part 2 The Documentation System
The Gentoo.org Redesign, Part 3 The New Main Pages
The Gentoo.org Redesign, Part 4 The Final Touch of XML
Traffic Control
Windows 10 Virtualization with KVM