Difference between revisions of "X Window System/pt-br"

From Funtoo
Jump to navigation Jump to search
(Created page with "Para que o Portage saiba qual quais placas de video você deseja suportar, você precisará adicionar uma linha ao seu <code> make.conf </code>. {{con...")
(Created page with "No exemplo acima, estamos usando drivers de gráficos integrados da Intel. Exemplos de entradas válidas incluem <code>radeon</code> para placas AMD Radeon e <code>nouveau</co...")
Line 22: Line 22:
}}
}}


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.
No exemplo acima, estamos usando drivers de gráficos integrados da Intel. Exemplos de entradas válidas incluem <code>radeon</code> para placas AMD Radeon e <code>nouveau</code> ou <code>nvidia</code> para placas NVIDIA e <code>virtualbox</code> se a instalação é feita através da máquina virtual Virtualbox. Se você ainda não mudou para o perfil <code>desktop</code>, é uma boa ideia fazê-lo agora.


Next comes the actual installation:
Next comes the actual installation:

Revision as of 20:49, July 11, 2020

Other languages:
English • ‎português do Brasil • ‎中文(中国大陆)‎

X.Org Kits

O Funtoo Linux atualmente (a partir da versão 1.3) possui o xorg-server 1.20.

X.Org

Para usar um ambiente gráfico, é necessário instalar o X.Org, que é uma implementação do sistema de janelas X.

Antes que comecemos é uma boa ideia certifica-se de que seu sistema está configurado corretamente. Se você instalou seu kernel usando a USE flag binary , é provável que sua placa de vídeo já seja suportada. Veja Vídeo para mais informações sobre isso.

Você também deve encontrar seu endereço IP, porque se o X congelar e você precisar sair dele, a maneira mais segura é fazer o SSH a partir de outro computador/smartphone/tablet e emitir

root # killall X

Para que o Portage saiba qual quais placas de video você deseja suportar, você precisará adicionar uma linha ao seu make.conf .

root # nano -w /etc/portage/make.conf
...
VIDEO_CARDS="intel"

No exemplo acima, estamos usando drivers de gráficos integrados da Intel. Exemplos de entradas válidas incluem radeon para placas AMD Radeon e nouveau ou nvidia para placas NVIDIA e virtualbox se a instalação é feita através da máquina virtual Virtualbox. Se você ainda não mudou para o perfil desktop, é uma boa ideia fazê-lo agora.

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