- X
Server kurulumu ve ayarları
nasıl yapılır?
- ilk yapmamız gereken, eğer
henüz x server
kurulmamışsa x serveri derlemek için komutumuzu veririz..
Eğer
kde veya Gnome kurulmuşsa X serveride kurmuş olması gerekir.. Ama eğer
kurulmamışsa..
- emerge xorg-x11
- Bu derleme
biraz zaman alabilir..
Derleme hatasız tamamlanırsa, x server imiz kuruldu demektir. Şimdi
yapılacak şey hemen konsolda (mecburen konsoldayız
hala :) )
- X -configure
- Bu komut verildikten sonra /root dizini
altına xorg.conf.new
ismiyle bir configurasyon dosyamız oluşur.. Kernel-2.6 kullananlar
için bu dosya nın original haliyle X çalıştırmak
fatal
hata ile sonuçlanacaktır.. Çünki
kernel-2.6 da mouse aygıtı
/dev/mouse altında değil /dev/psaux altında olacaktır.. Kernel-2.4
kullananlar için /dev/mouse aygıtı doğru
seçim. Bu
sebeble kernel-2.6 kullanlar için, bu ayar dosyası ile
çalıştırmadan önce xorg.conf.new dosyasının
original halini
aşağıdaki gibi biçimlendirmeliyiz..
Önce nano için komut verelim..
- nano
-w /root/xorg.conf.new
- Section "ServerLayout"
Identifier "X.org Configured"
Screen 0
"Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath
"/usr/lib64/X11/rgb"
ModulePath
"/usr/lib64/modules"
FontPath
"/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath
"/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath
"/usr/share/fonts/75dpi/"
FontPath
"/usr/share/fonts/100dpi/"
EndSection
Section "Module"
Load "glx"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option
"Protocol" "auto"
-
Option
"Device" "/dev/mouse" (burasını silip
aşağıdaki gibi yapıyoruz Dikkat bu kernel-2.6 için)
Option
"Device" "/dev/psaux"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor
Vendor"
ModelName
"Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float,
<bool>: "True"/"False",
### <string>: "String", <freq>:
"<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option
"DigitalVibrance"
# <i>
#Option
"NoFlip"
# [<bool>]
#Option
"Dac8Bit"
# [<bool>]
#Option
"NoLogo"
# [<bool>]
#Option
"UBB"
# [<bool>]
#Option
"Stereo"
# <i>
#Option
"SWcursor"
# [<bool>]
#Option
"HWcursor"
# [<bool>]
#Option
"VideoKey"
# <i>
#Option
"NvAGP"
# <i>
#Option
"IgnoreEDID"
# [<bool>]
#Option
"NoDDC"
# [<bool>]
#Option
"ConnectedMonitor"
# <str>
#Option
"ConnectedMonitors"
# <str>
#Option
"TVStandard"
# <str>
#Option
"TVOutFormat"
# <str>
#Option
"RenderAccel"
# [<bool>]
#Option
"CursorShadow"
#
[<bool>]
#Option
"CursorShadowAlpha"
# <i>
#Option "CursorShadowXOffset"
# <i>
#Option "CursorShadowYOffset"
# <i>
#Option
"UseEdidFreqs"
#
[<bool>]
#Option "FlatPanelProperties"
# <str>
#Option
"TwinView"
# [<bool>]
#Option "TwinViewOrientation"
# <str>
#Option
"SecondMonitorHorizSync"
# <str>
#Option
"SecondMonitorVertRefresh"
# <str>
#Option
"MetaModes"
# <str>
#Option
"UseInt10Module"
#
[<bool>]
#Option
"NoTwinViewXineramaInfo"
# [<bool>]
#Option
"NoRenderExtension"
# [<bool>]
#Option
"Overlay"
# [<bool>]
#Option
"CIOverlay"
# [<bool>]
#Option "ForceEmulatedOverlay"
# [<bool>]
#Option
"TransparentIndex"
# <i>
#Option "OverlayDefaultVisual"
# [<bool>]
#Option
"NvEmulate"
# <i>
#Option
"NoBandWidthTest"
# [<bool>]
#Option
"CustomEDID-CRT-0"
# <str>
#Option
"CustomEDID-CRT-1"
# <str>
#Option
"CustomEDID-DFP-0"
# <str>
#Option
"CustomEDID-DFP-1"
# <str>
#Option
"CustomEDID-TV-0"
# <str>
#Option
"CustomEDID-TV-1"
# <str>
#Option
"TVOverScan"
# <f>
#Option "IgnoreDisplayDevices"
# <str>
#Option
"MultisampleCompatibility"
# [<bool>]
#Option
"RegistryDwords"
#
<str>
#Option
"RegistryBinary"
#
<str>
#Option "NoPowerConnectorCheck"
# [<bool>]
#Option
"AllowDFPStereo"
#
[<bool>]
#Option
"XvMCUsesTextures"
# [<bool>]
#Option
"HorizSync"
# <str>
#Option
"VertRefresh"
# <str>
#Option "AllowGLXWithComposite"
# [<bool>]
#Option
"RandRRotation"
#
[<bool>]
#Option "ExactModeTimingsDVI"
# [<bool>]
#Option
"Coolbits"
# <i>
#Option
"AllowDDCCI"
# [<bool>]
#Option "ConstantFrameRateHint"
# [<bool>]
#Option
"LoadKernelModule"
# [<bool>]
#Option
"ClearCube"
# [<bool>]
#Option
"PredefinedTimings"
# <i>
#Option
"EmulatedOverlaysTimerMs"
# <i>
Identifier "Card0"
Driver
"nvidia" (Burasını silip aşağıdaki gibi yapıyoruz. Bu işlemi nvidia
kartı olupta sürücüsünü
kurmamışsak yapacağız)
-
Driver
"nv"
VendorName "nVidia Corporation"
BoardName "NV11
[GeForce2 MX/MX 400]"
BusID
"PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor
"Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
- Bu haliyle xorg.conf.new
dosyamız artık X i
çalıştırabilir.. Ama ekran
çözünürlüğü
(renk kalitesi) hala
çok kötü durumda, Bunu düzeltmek
için
aşağıda yazılanlarıda de xorg.conf.new dosyamıza eklememiz
gerekir..
- DefaultColorDepth 16
Burasını
24
yada 32
olarakta seçebiliriz , tabii kartımızın hızında
düşme olacaktır..
- Ayrıca hala farenin tekeri
çalışır halde
değil, tekeri çalıştırabilmek içinde
aşağıdakileride
eklememiz gerekir..
- Option
"ZAxisMapping"
"4 5"
- Option
"Emulate3Buttons" "on"
- Ayrıca sistemimizde nvidia grafik
kartı varsa X -configure onu
algılayıp aşağıdaki satırıda ekleyecektir. Ama tabii buda bir hata,
çünki büyük bir ihtimalle nvidia
sürücümüz henüz eklenmedi
ve çalışmıyor.
- Bu sebebten aşağıdaki
bölümde
değiştirilmek zorunda.. Tabii eğer nvidia
sürücü
eklenmişse bu değişiklik yapılmamalı.
- Driver
"nvidia"
- Driver
"nv" olarak değişmek
zorunda. Nvidia sürücülerin
yüklenmesi konusunda
ayrıntılı açıklama Burada
mevcut..
- Şimdi
bu yaptığımız üç değişiklikle bu xorg.conf.new
dosyamız X
serverimizi güzelce çalıştıracak hale geldi.. Renk
kalitesi
için renk
çözünürlük 16 ya
çıkarıldı ve farenin tekeri artık çalışıyor.. Son
yapılan
değişiklikleri aşağıda tekrar görelim.. Değişiklik yaptığımız
yerler sarı renkle gösterildi.
- Section "ServerLayout"
Identifier "X.org Configured"
Screen 0
"Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath
"/usr/lib64/X11/rgb"
ModulePath
"/usr/lib64/modules"
FontPath
"/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath
"/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath
"/usr/share/fonts/75dpi/"
FontPath
"/usr/share/fonts/100dpi/"
EndSection
Section "Module"
Load "glx"
Load "record"
Load "extmod"
Load "dbe"
Load "dri"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol"
"IMPS/2" (Burası
"auto" olarakta kalabilir.. Çok önemli değil)
Option
"Device" "/dev/psaux"
-
Option
"ZAxisMapping"
"4
5"
Option
"Emulate3Buttons" "on"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor
Vendor"
ModelName
"Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float,
<bool>: "True"/"False",
### <string>: "String", <freq>:
"<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option
"DigitalVibrance"
# <i>
#Option
"NoFlip"
# [<bool>]
#Option
"Dac8Bit"
# [<bool>]
#Option
"NoLogo"
# [<bool>]
#Option
"UBB"
# [<bool>]
#Option
"Stereo"
# <i>
#Option
"SWcursor"
# [<bool>]
#Option
"HWcursor"
# [<bool>]
#Option
"VideoKey"
# <i>
#Option
"NvAGP"
# <i>
#Option
"IgnoreEDID"
# [<bool>]
#Option
"NoDDC"
# [<bool>]
#Option
"ConnectedMonitor"
# <str>
#Option
"ConnectedMonitors"
# <str>
#Option
"TVStandard"
# <str>
#Option
"TVOutFormat"
# <str>
#Option
"RenderAccel"
# [<bool>]
#Option
"CursorShadow"
#
[<bool>]
#Option
"CursorShadowAlpha"
# <i>
#Option "CursorShadowXOffset"
# <i>
#Option "CursorShadowYOffset"
# <i>
#Option
"UseEdidFreqs"
#
[<bool>]
#Option "FlatPanelProperties"
# <str>
#Option
"TwinView"
# [<bool>]
#Option "TwinViewOrientation"
# <str>
#Option
"SecondMonitorHorizSync"
# <str>
#Option
"SecondMonitorVertRefresh"
# <str>
#Option
"MetaModes"
# <str>
#Option
"UseInt10Module"
#
[<bool>]
#Option
"NoTwinViewXineramaInfo"
# [<bool>]
#Option
"NoRenderExtension"
# [<bool>]
#Option
"Overlay"
# [<bool>]
#Option
"CIOverlay"
# [<bool>]
#Option "ForceEmulatedOverlay"
# [<bool>]
#Option
"TransparentIndex"
# <i>
#Option "OverlayDefaultVisual"
# [<bool>]
#Option
"NvEmulate"
# <i>
#Option
"NoBandWidthTest"
# [<bool>]
#Option
"CustomEDID-CRT-0"
# <str>
#Option
"CustomEDID-CRT-1"
# <str>
#Option
"CustomEDID-DFP-0"
# <str>
#Option
"CustomEDID-DFP-1"
# <str>
#Option
"CustomEDID-TV-0"
# <str>
#Option
"CustomEDID-TV-1"
# <str>
#Option
"TVOverScan"
# <f>
#Option "IgnoreDisplayDevices"
# <str>
#Option
"MultisampleCompatibility"
# [<bool>]
#Option
"RegistryDwords"
#
<str>
#Option
"RegistryBinary"
#
<str>
#Option "NoPowerConnectorCheck"
# [<bool>]
#Option
"AllowDFPStereo"
#
[<bool>]
#Option
"XvMCUsesTextures"
# [<bool>]
#Option
"HorizSync"
# <str>
#Option
"VertRefresh"
# <str>
#Option "AllowGLXWithComposite"
# [<bool>]
#Option
"RandRRotation"
#
[<bool>]
#Option "ExactModeTimingsDVI"
# [<bool>]
#Option
"Coolbits"
# <i>
#Option
"AllowDDCCI"
# [<bool>]
#Option "ConstantFrameRateHint"
# [<bool>]
#Option
"LoadKernelModule"
# [<bool>]
#Option
"ClearCube"
# [<bool>]
#Option
"PredefinedTimings"
# <i>
#Option
"EmulatedOverlaysTimerMs"
# <i>
Identifier "Card0"
Driver "nvidia" (Buraya
dikkat eğer sistemimizde nvidia grafik varsa ve
sürücülerü eğer
yüklenmemişse "nv"
yapılmalı)
-
Driver
"nv"
VendorName "nVidia Corporation"
BoardName "NV11
[GeForce2 MX/MX 400]"
BusID
"PCI:1:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor
"Monitor0"
DefaultColorDepth 16
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
- Bu değişiklikler yapıldıktan sonra
dosyamızı
kaydedip çıkıyoruz ve aşağıdaki komutla dosyamızı olması
gereken
yere kopyalıyoruz..
- cp /root/xorg.conf.new
/etc/X11/xorg.conf
- Ve sonra da kde kulananlar şu komutu.
- kdm
- Gnome kullananlar şu komutu verecekler.
- gdm
- Ve X serverimizin gayet
düzgün bir
biçimde çalıştığını göreceğiz. Daha
sonra Gnome veya
KDE de ekranımızın son ayarlarınıda yaparız.. (Ekran
büyüklüğü ile ilgili
seçimler.) Örnek
olarak Gnome ayarları..

- Herkese renkli X server dileklerimle..
- S:
Boot yaparken Gnome ve KDE nin kendiliğinden çalışmasını
nasıl sağlarım?
- Bu basit işlem için hemen bir
editor ile /etc/rc.conf dosyasını açarız..
- nano -w /etc/rc.conf
- Burasını DISPLAYMANAGER="gdm"
veya "kdm" olarak değiştiririz..
- # /etc/rc.conf: Global
startup script configuration settings
# UNICODE specifies whether you want to have UNICODE support in the
console.
# If you set to yes, please make sure to set a UNICODE aware
CONSOLEFONT and
# KEYMAP in the /etc/conf.d/consolefont and /etc/conf.d/keymaps config
files.
UNICODE="yes"
# Set EDITOR to your preferred editor.
# You may use something other than what is listed here.
EDITOR="/bin/nano"
#EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"
# What display manager do you use ? [ xdm | gdm | kdm |
entrance ]
DISPLAYMANAGER="gdm"
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The
default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts are
smart enough to
# look in all bin directories if it cant find a match in
/etc/X11/Sessions/,
# so setting it to "enlightenment" can also work. This is
basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his
.bash_profile, etc.
#
# NOTE: 1) this behaviour is overridden when a ~/.xinitrc
exists, and startx
#
is called.
#
2) even if ~/.xsession exists, if XSESSION can be resolved, it will
#
be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
- Daha sonra konsolda şu komutu veririz..
- rc-update add xdm default
- Artık bundan sonra her boot yaptıktan
sonra Gentoo
konsola düşmeyecek ve direk olarak Gnome veya KDE start
yapacak..
Tabii bunun için X serverin ve KDE veya Gnomenin kurulmuş
olması
şart. :)
|