X configuration -zz

xiaoxiao2021-03-06  14

The first paragraph is the Files section. This section is used to configure the X system that can use the font, each line represents a directory, saves the configuration information of the specific font and font.

Code:

Section "Files"

FontPath "/ usr / x11r6 / lib / x11 / fonts / xp"

Fontpath "/ usr / x11r6 / lib / x11 / fonts / xchinese"

FontPath "UNIX /: 7100" # This is a local font server

# If the local font server has a problem, we can use the following configuration.

Fontpath "/ usr / lib / x11 / fonts / misc"

Fontpath "/ usr / lib / x11 / fonts / cyrillic"

Fontpath "/ usr / lib / x11 / fonts / 100dpi /: unscaled"

Fontpath "/ usr / lib / x11 / fonts / 75dpi /: unscaled"

FontPath "/ usr / lib / x11 / fonts / type1"

Fontpath "/ usr / lib / x11 / fonts / speedo"

FontPath "/ usr / lib / x11 / fonts / 100dpi" # These two fonts are each X

FontPath "/ usr / lib / x11 / fonts / 75dpi" # system must install English font

Endsection

The following is a module segment, configured to configure the module loaded by the X system.

Code:

Section "Module"

Load "XTT" # GTK1 The font engine, the effect is good, the speed is slow

Load "Glcore" # If you use NVIDIA graphics card, it seems to be able to identify this line

Load "Bitmap"

LOAD "DBE"

LOAD "DDC"

LOAD "dri"

Load "ExtMod"

# Loading "freetype" # If you use the XTT module, then the Freetype module needs to be canceled.

LOAD "GLX"

LOAD "int10"

Load "Record"

Load "speedo"

Load "Type1"

LOAD "VBE"

Endsection

The following segment is used to configure your keyboard, which belongs to "Enter Device"

Code:

Section "InputDevice"

Identifier "Generic Keyboard" # This is the name of your keyboard, just you :)

Driver "Keyboard" # Drive of the keyboard ... Wow, keyboard also drives

Option "Corekeyboard" # If you have multiple keyboards, then you need to specify which keyboard is the main keyboard.

Option "xkbrules" "xfree86"

Option "xkbmodel" "pc104" # keyboard distribution format, in general

Option "xkbleout" "US" # US 104 keyboard is versatile.

Endsection

Configure your mouse here, of course you can configure two mouse, if you have something

Code:

Section "InputDevice"

Identifier "Configured Mouse" # 名 Driver "Mouse" # Mouse driver

Option "Corepointer"

Option "device" "/ dev / input / m"

# Note, here is important, this is the device file of the mouse

# My mouse is the optical mouse, the usb interface, the corresponding mouse file is / dev / input / mice

# If your mouse is an ordinary roller mouse, use the PS2 interface, then you should use

# / dev / mouse or / dev / psaux or / dev / ttys0

Option "protocol" "IMPS / 2"

# This is the type of mouse, if it is not a roller mouse, use PS / 2

Option "emulate3buttons" "true"

# In the Linux system, the third key of the mouse is very useful.

# If your mouse does not have a third key, then we should allow the use of the double button to simulate simulation.

Option "ZAXISMApping" "4 5"

Endsection

The following device is a graphics card, which is the most headache device. If your graphics card is too new, it is very likely to support it. NVIDIA's GForce2 graphics card must compile the graphics driver to use

Code:

Section "Device"

Identifier "Generic Video Card"

Driver "ATI" # If you are a NiVida graphics card, here should be "nvidia"

Endsection

This device is a display.

Code:

Section "Monitor"

Identifier "Generic Monitor" # Name of the display

HorizSync 30-60 # monitor frequency, half of your monitor

Vertrefresh 50-75 # should be able to achieve my level

# Because my monitor is 15 "old displays

# Everyone's computer is better than me?

Option "DPMS"

Endsection

Below is a variety of display effects of the device that integrated above your configuration.

Code:

Section "Screen"

Identifier "Default Screen" # 效 的

Device "Generic Video Card" # You can specify your graphics name

Monitor "generic monitor" # Specify the name of your monitor

DefaultDepth 24 # default color depth

Subsection "Display"

DEPTH 1

Modes "1024x768"

Endsubsection

Subsection "Display"

Depth 4

Modes "1024x768"

Endsubsection

Subsection "Display"

DEPTH 8

Modes "1024x768"

Endsubsection

Subsection "Display"

DEPTH 16

MODES "1024x768" # Here you can specify the scan frequency, for example

# "1024x768 @ 85" is the frequency of 85MHz

Endsubsection

Subsection "Display"

DEPTH 24

MODES "1024x768" endsubsection

Endsection

Eventually you must define the following paragraphs to tell the X server you use the configuration

Code:

Section "ServerLayout"

Identifier "Default Layout" # Just now we give our configured name

Screen "Default Screen" # gives us the name of the effect

InputDevice "Generic Keyboard" # Our keyboard name

InputDevice "configured mouse" # 我们 名

# These names must be defined in the previous configuration

Endsection

Section "Dri"

Mode 0666

Endsection

Generally, we will encounter when X startup is:

1: No Screen Found

This is likely that you don't have the right definition, or it is possible that your other part is defined in an error. You can't be implemented.

2: The conflict between XTT and Freetype, can be canceled

3: Driver is not found, if your graphics card is very trend, so most of this mistake, compile your driver ...

转载请注明原文地址:https://www.9cbs.com/read-46319.html

New Post(0)