Como usar o comando xf86cfg

O comando xf86cfg é um novo cliente inckuindo com X11 da distribuição Xfree86 que você pode usar para configurarar o X11. O comando lançara uma sessão X11 usando o controlador de janela twm e mostrará uma interface gráfica para ajustar o seu arquivo XF86Config. Você pode lançar o cliente usando a linha de comando assim:

# xf86cfg

Depois que você pressionar Enter, a tela limpará e você verá (ou não ) um diálogo que poderá usar para configurar vários componentes. Observe que esse cliente é um "trabalho em andamento"; se funciona em seu computador, ótimo! Se não, tente usar em método diferente para configurar o seu XF86Config. O comando xf86cfg, tal como o servidor Xfree86, criará um arquivo chamado XF86Config.new no diretório /root.


Como usar o comando xf86config

O Xfree86 também vem com uma versão melhorada de seu comando legado de configuração, o xf86config, encontrado no diretório /usr/X11R6/bin. Esse comando funciona da linha de comando de seu console ou de uma janela terminal do X11. Inicie o comando assim:

# xf86config

Depois de pressionar Enter, você verá:

This program will create a basic XF86Config file, based on menu selections you
make.

The XF86Config file usually resides in /usr/X11R6/etc/X11 or /etc/X11. A sample
XF86Config file is supplied with XFree86; it is configured for a standard
VGA card and monitor with 640x480 resolution. This program will ask for a
pathname when it is ready to write the file.

You can either take the sample XF86Config as a base and edit it for your
configuration, or let this program produce a base XF86Config file for your
configuration and fine-tune it.

Before continuing with this program, make sure you know what video card
you have, and preferably also the chipset it uses and the amount of video
memory on your video card. SuperProbe may be able to help with this.

Press enter to continue, or ctrl-c to abort.


Pressione Enter novamente. Você então obterá a tela de configuração do mouse, que contém esse texto:


First specify a mouse protocol type. Choose one from the following list:

1. Microsoft compatible (2-button protocol)
2. Mouse Systems (3-button protocol)
3. Bus Mouse
4. PS/2 Mouse
5. Logitech Mouse (serial, old type, Logitech protocol)
6. Logitech MouseMan (Microsoft compatible)
7. MM Series
8. MM HitTablet
9. Microsoft IntelliMouse
If you have a two-button mouse, it is most likely of type 1, and if you have
a three-button mouse, it can probably support both protocol 1 and 2. There are
two main varieties of the latter type: mice with a switch to select the
protocol, and mice that default to 1 and require a button to be held at
boot-time to select protocol 2. Some mice can be convinced to do 2 by sending
a special sequence to the serial port (see the ClearDTR/ClearRTS options).

Enter a protocol number: 4


Como pode var, você tem uma escolha de nove ponteiros diferentes. Se você usa um mouse USB, não se preocupe! Você ainda pode configurar o X11 para usar o seu ponteiro. Por enquanto, digite um número correspondente ao seu ponteiro e pressione Enter. Você é perguntado se quer uma emulação de três botões:

If your mouse has only two buttons, it is recommended that you enable
Emulate3Buttons.
Please answer the following question with either 'y' or 'n'.
Do you want to enable Emulate3Buttons? Y

Now give the full device name that the mouse is connected to, for example
/dev/tty00. Just pressing enter will use the default, /dev/mouse.

Mouse device:

Se você tiver um ponteiro deferente, digite o nome de seu dispositivo do diretório /dev e pressione Enter. O comando xf86config segue em frente e pergunta sobre sua escolha de teclados:

Please select one of the following keyboard types that is the better
description of your keyboard. If nothing really matches,
choose

1 (Generic 101-key PC)
2 Generic 102-key (Intl) PC
3 Generic 104-key PC
4 Generic 105-key (Intl) PC
5 Dell 101-key PC
6 Everex STEPnote
7 Keytronic FlexPro
8 Microsoft Natural
9 Northgate OmniKey 101
10 Winbook Model XP5
11 Japanese 106-key
12 PC-98xx Series
13 Brazilian ABNT2
14 HP Internet
15 Logitech iTouch
16 Logitech Cordless Desktop Pro
17 Logitech Internet Keyboard
18 Compaq Internet
19 Microsoft Natural Pro
20 Genius Comfy KB-16M
21 IBM Rapid Access
22 IBM Rapid Access II
23 Chicony Internet Keyboard

Enter a number to choose the keyboard. 1

Depois de escolher um teclado, o xf86config então o pede para escolher um país (ou idioma) para o teclado:

1 U.S. English
2 U.S. English w/ISO9995-3
3 U.S. English w/ deadkeys
4 Armenian
5 Azerbaidjani
6 Belarusian
7 Belgian
8 Brazilian
9 Bulgarian
10 Canadian
11 Czech
12 Czech (qwerty)
13 Danish
14 Dvorak
15 Estonian
16 Finnish
17 French
18 Swiss French

Enter a number to choose the country.
Press enter for the next page

Se você não vê seu país listado, pressione Enter novamente:

19 German
20 Swiss German
21 Greek
22 Croatian
23 Hungarian
24 Icelandic
25 Israeli
26 Italian
27 Japanese
28 Lithuanian qwerty "numeric"
29 Lithuanian azerty standard
30 Lithuanian qwerty "programmer's"
31 Latvian
32 Macedonian
33 Norwegian
34 Polish
35 Portuguese
36 Romanian

Enter a number to choose the country.
Press enter for the next page
8

Após escolher o seu idioma, você será então apresentado a uma pequena tela de introdução antes de ser perguntado pelas especificações de seu monitor.
I am going to write the XF86Config file now. Make sure you don't accidently
overwrite a previously configured one.

Do you want it written to the current directory as 'XF86Config'?
Please give a filename to write to: dony
File has been written. Take a look at it before running 'startx'. Note that
the XF86Config file must be in one of the directories searched by the server
(e.g. /etc/X11) in order to be used. Within the server press
ctrl, alt and '+' simultaneously to cycle video resolutions. Pressing ctrl,
alt and backspace simultaneously immediately exits the server (use if
the monitor doesn't sync for a particular mode).

For further configuration, refer to the XF86Config(5) manual page.

Finalmente, se você não quiser usar o Xconfigurador, o xf86cfg ou xf86config para gerar um arquivo XF86Config, pode criar o seu próprio. Você vai encontrar um arquivo de modelo, XF86Config.eg, no diretório/usr/X11R6/X11. Copie esse arquivo para o seu diretório e edite-o no seu editor de texto favorito, inserindo especificações para o seu sistema e servidor X.

Hosted by www.Geocities.ws

1