X-Window in Linux
Linux中的X-Window,我們稱他為XFREE86,其中『86』指的是Intel x86。
Slackware中Disk Set 『X』、『XAP』、『XV』就是X-Windows相關的軟體,如果你在安裝過程中選擇了他們,你的X-Window即已安裝完成。不過這不代表你的X-Window可以用,你還要做一件很重要的事 – 設定你的X-Windows環境。(Configure X-Window)
X-Window Configure
Linux XFREE86的設定冗長而容易出錯,你必須回答一大堆關於硬體的問題,設定之前最好搞清楚你的電腦狀況,尤其是顯示卡的品牌與所用Chip。以下設定的例子假設你的電腦用的是一般15” Monitor,VGA卡為S3 Trio64V+ (With 1MB RAM),滑鼠為PS2 3-Button。
開始進行設定
nmc:~# xf86config
This program will create a basic XF86Config file, based on menu selections you
make.
…..
Before continuing with this program, make sure you know the chipset and
amount of video memory on your video card. SuperProbe can help with this.
It is also helpful if you know what server you want to run.
…
Please answer the following question with either 'y' or 'n'.
Do you want to use XKB? Y
…
Press enter to continue, or ctrl-c to abort. 『ENTER』
…
List of preconfigured keymaps:
1 Standard 101-key, US encoding
2
…
Enter a number to choose the keymap.
1
é這是電腦鍵盤選擇。『Standard 101-key, US encoding』的設定可以符合目前大多數電腦鍵盤種類的需求。
…
The valid range for horizontal sync and vertical sync should be documented
in the manual of your monitor. If in doubt, check the monitor database
/usr/X11R6/lib/X11/doc/Monitors to see if your monitor is there.
Press enter to continue, or ctrl-c to abort. 『ENTER』
…
hsync in kHz; monitor type with characteristic modes
…
5 31.5 - 37.9; Extended Super VGA, 800x600 @ 60 Hz, 640x480 @ 72 Hz
6 31.5 - 48.5; Non-Interlaced SVGA, 1024x768 @ 60 Hz, 800x600 @ 72 Hz
7 31.5 - 57.0; High Frequency SVGA, 1024x768 @ 70 Hz
…
11 Enter your own horizontal sync range
…
You must indicate the vertical sync range of your monitor….
…
1 50-70
2 50-90
3 50-100
4 40-150
5 Enter your own vertical sync range
Enter your choice:2
é這是電腦銀幕垂直掃描頻率設定。說明同水平掃描頻率設定。
You must now enter a few identification/description strings, namely an
identifier, a vendor name, and a model name. Just pressing enter will fill
in default names.
The strings are free-form, spaces are allowed.
Enter an identifier for your monitor definition: 『ENTER』
Enter the vendor name of your monitor:『ENTER』
Enter the model name of your monitor:『ENTER』
é設定銀幕代號。這個設定不會影響X-Window運作,你可以不回答。(Just Press Enter)
…
Now we must configure video card specific settings. …
…
Do you want to look at the card database? Y
…
…
452 S3 Trio32 (generic) S3 Trio32
453 S3 Trio3D Generic VGA
454 S3 Trio64 (generic) S3 Trio64
455 S3 Trio64V+ (generic) S3 Trio64V+
456 S3 Trio64V2 (generic) S3 Trio64V2
…
Enter a number to choose the corresponding card definition.
Press enter for the next page, q to continue configuration.
456
…
Your selected card definition:
Identifier: S3 Trio64V2 (generic)
Chipset: S3 Trio64V2
Server: XF86_S3
Do NOT probe clocks or use any Clocks line.
Press enter to continue, or ctrl-c to abort. 『ENTER』
…
2 The XF86_VGA16 server. This is a 16-color VGA server that should work on
any VGA-compatible card.
3 The XF86_SVGA server. This is a 256 color SVGA server that supports
a number of SVGA chipsets. On some chipsets it is accelerated or
supports higher color depths.
…
These four server types correspond to the four different "Screen" sections in
XF86Config (vga2, vga16, svga, accel).
5 Choose the server from the card definition, XF86_S3.
Which one of these screen types do you intend to run by default (1-5)? 5
é這是X Server設定。我們可以說X Server就是顯示卡在X-Window中的『驅動程式』,他是一個程式,而且這個程式除了在此應正確設定外,你還須確定在安裝DISK SET 『X』時,確實以裝此一Server。如果你的X Server選擇不Work,可以在此試著選擇『2』或『3』。
…
Please answer the following question with either 'y' or 'n'.
Do you want me to set the symbolic link? y
Do you want to set it in /var/X11R6/bin? y
You must now enter a few identification/description strings, namely an
identifier, a vendor name, and a model name. Just pressing enter will fill
in default names (possibly from a card definition).
Your card definition is S3 Trio64V2 (generic).
The strings are free-form, spaces are allowed.
Enter an identifier for your video card definition: [ENTER]
You can simply press enter here if you have a generic card, or want to
describe your card with one string.
Enter the vendor name of your video card: [ENTER]
Enter the model (board) name of your video card: [ENTER]
…
The RAMDAC setting only applies to the S3, AGX, W32 servers….
….
Just press enter if you don't want a Clockchip setting.
What Clockchip setting do you want (1-12)? [ENTER]
é這是顯示卡上ClockChip型號設定,說明同上。
For most modern configurations, a Clocks line…
…
...
You must be root to be able to run X -probeonly now.
The card definition says to NOT probe clocks.
Do you want me to run 'X -probeonly' now? N
For each depth, a list of modes (resolutions) is defined. The default
resolution that the server will start-up with will be the first listed
mode that can be supported by the monitor and card.
Currently it is set to:
….
1 Change the modes for 8pp (256 colors)
.
.
5 The modes are OK, continue.