L’ordre chronologique d’installation est de placer cet article après Optimiser l’environnement de Debian après l’installation..
Configuration de XFree86
Le fichier principal de la configuration de XFree86 est le fichier /etc/X11/XF86Config-4. Avant de l’éditer il convient de connaitre quelques éléments, comme quelle est votre carte graphique, quelle mémoire possède t’elle, quel est votre type d’écran, et quelles fréquences supporte t’il, etc.
Voici donc la commande qui vous permet de reconnaitre votre carte graphique : lspci. Pour ma part, cette commande me donne le résultat suivant :
00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
00:01.0 PCI bridge: Intel Corp. 82815 815 Chipset AGP Bridge (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 02)
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 02)
00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 02)
00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 02)
01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 PF/PRO AGP 4x TMDS
02:0b.0 SCSI storage controller: Adaptec AIC-7892B U160/m (rev 02)
02:0e.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 74)

On peut identifier la carte graphique comme étant une carte
ATI Technologies Inc Rage 128 PF/PRO AGP 4x TMDS. Une rapide recherche sur le net m’indique que le PCI-ID de cette carte est le 5046 pour un Vendor-Id de 1002... Je suis content ;o))

Voici donc mon fichier /etc/X11/XF86Config-4 :
# XF86Config-4 (XFree86 X server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
#
# This file is automatically updated on xserver-xfree86 package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xfree86
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4.custom
# md5sum /etc/X11/XF86Config-4 > /var/lib/xfree86/XF86Config-4.md5sum
# dpkg-reconfigure xserver-xfree86
Section "Files"
# FontPath "unix/:7110" # local font server for xtt
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
# FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection
Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
# Load "xtt"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "fr"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/psaux"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "off"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mouse0"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
EndSection
Section "Device"
Identifier "ATI Rage 128"
VendorName "Generic"
BoardName "r128"
Chipset "ATI Rage 128 RF (AGP)"
Driver "r128"
Option "AGPMode" "2"
Option "UseCCEFor2D" "true"
## BusID "PCI:01:00:00"
## VideoRam 8196
EndSection
Section "Monitor"
Identifier "IIYAMA Vision Master Pro 501"
HorizSync 27-96
VertRefresh 50-160
Option "DPMS"
vendorname "[IIYAMA Vision Master Pro 501]"
modelname "[IIYAMA Vision Master Pro 501]"
# ModeLine "1280x1024/76Hz" 135 1280 1312 1416 1664 1024 1027 1030 1064
# ModeLine "1152x864/99Hz" 137.65 1152 1184 1312 1536 864 866 885 902 -HSync -VSync
# ModeLine "1024x768/100Hz" 115.5 1024 1056 1248 1440 768 771 781 802 -HSync -VSync
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Rage 128"
Monitor "IIYAMA Vision Master Pro 501"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
SubSection "Display"
Depth 24
Modes "1152x864" "1024x768" "800x600" "640x480"
Virtual 0 0
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Generic Mouse"
EndSection
Section "ServerFlags"
Option "DontZap" "true"
Option "Xinerama"
EndSection
Section "DRI"
Mode 0666
EndSection
Mise à jour du fichier de configuration de X
Installez les polices complémentaires :
- apt-get install xfonts-konsole xfonts-cyrillic xfonts-intl-european xfonts-terminus
Editez le fichier /etc/X11/XF86Config-4.
Repérez la section Section "Files" définissant les chemns d’accès aux polices, et adaptez la de sorte à ce qu’elle ressemble a la section suivante :
Section "Files"
# FontPath "unix/:7110" # local font server for xtt
FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/Type1"
# FontPath "/usr/lib/X11/fonts/CID"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
FontPath "/usr/lib/X11/fonts/cyrillic"
EndSection

Sauvegardez vos modifications, puis éditez le fichier
/etc/X11/xinit/xserverrc puis remplacez le
-dpi 100 par
-dpi 75.

Sauvegardez vos modifications, puis éditez le fichier
/etc/X11/fs/config, puis repérez la variable
catalogue = et remplacez toute cette ligne par la définition suivante :
catalogue = /usr/lib/X11/fonts/75dpi/:unscaled,
/usr/lib/X11/fonts/100dpi/:unscaled,
/usr/lib/X11/fonts/75dpi/,
/usr/lib/X11/fonts/100dpi/,
/usr/lib/X11/fonts/misc/,
/usr/lib/X11/fonts/misc/:unscaled,
/usr/lib/X11/fonts/Speedo/,
/usr/lib/X11/fonts/Type1/,
/usr/lib/X11/fonts/cyrillic/:unscaled,
/usr/lib/X11/fonts/cyrillic/

Sauvegardez vos modifications, puis éditez le fichier
/etc/X11/fs-xtt/config, puis repérez la variable
catalogue = et remplacez tout le bloc définissant cette variable par la définition suivante :
catalogue = /var/lib/defoma/x-ttcidfont-conf.d/dirs/CID,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
/usr/lib/X11/fonts/75dpi/:unscaled,
/usr/lib/X11/fonts/100dpi/:unscaled,
/usr/lib/X11/fonts/75dpi/,
/usr/lib/X11/fonts/100dpi/,
/usr/lib/X11/fonts/misc/,
/usr/lib/X11/fonts/misc/:unscaled,
/usr/lib/X11/fonts/Speedo/,
/usr/lib/X11/fonts/Type1/,
/usr/lib/X11/fonts/cyrillic/:unscaled,
/usr/lib/X11/fonts/cyrillic/
Premier démarrage sous X
Suite à tout le rifinfoin que j’ai fait précedement, j’ai tout simplement fait un shutdown -r now pour re-démarrer ma station, mais cela n’était pas nécessaire, un simple startx aurait suffit. En tout cas, ça marche chez moi, gdm se lance.
Il est possible de paramétrer ce GDM qui est nativement assez laid. Après s’être connecté sous X, ouvrir une fenêtre de terminal, puis passer sous l’identité de root (su). Puis il est nécessaire d’installer les thèmes complémentaires de gdm :
apt-get install gdm-themes
Lorsque les thèmes complémentaires sont installés, il est possible de configurer son invite gdm depuis l’invite d’ouverture de session, en cliquant sur l’icône System, puis selectionner Configure. Je vous laisse découvrir cette interface de configuration qui est assez intuitive.
Nous allons pouvoir installer les applications comme cela est indiqué dans l’article Installation des logiciels indispensables.