Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
| 
                    lpi1:x [2013/01/31 08:26] ingo_wichmann  | 
                
                    lpi1:x [2023/11/17 07:24] (aktuell) ingo_wichmann [CentOS / RedHat]  | 
            ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== X Bausteine ====== | + | ====== X Window System ====== | 
| ===== X Server ===== | ===== X Server ===== | ||
| ==== Konfiguration ==== | ==== Konfiguration ==== | ||
| Zeile 13: | Zeile 13: | ||
| less /var/log/Xorg.0.log | less /var/log/Xorg.0.log | ||
| Aufbau Konfigdatei: | Aufbau Konfigdatei: | ||
| - | egrep 'Section|Identifier|Device|Screen' /etc/X11/xorg.conf | + | egrep 'Section|Identifier|Device|Screen|Monitor' /etc/X11/xorg.conf | 
| grep -- '-->' /var/log/Xorg.0.log | grep -- '-->' /var/log/Xorg.0.log | ||
| Zeile 30: | Zeile 30: | ||
| Debian: | Debian: | ||
| aptitude install xserver-common | aptitude install xserver-common | ||
| + | |||
| + | CentOS 7: | ||
| + | yum install xorg-x11-apps | ||
| SuSE, Debian, CentOS: | SuSE, Debian, CentOS: | ||
| Zeile 52: | Zeile 55: | ||
| export DISPLAY=localhost:1 | export DISPLAY=localhost:1 | ||
| xclock & | xclock & | ||
| - | startet einen X-Client, hier z.B. xclock | + | xterm & | 
| + | startet einen X-Client, hier z.B. xclock oder xterm | ||
| ===== X Windowmanager ===== | ===== X Windowmanager ===== | ||
| Zeile 66: | Zeile 70: | ||
| startet einen Windowmanager, hier z.B. twm | startet einen Windowmanager, hier z.B. twm | ||
| - | ==== CentOS / RedHat ==== | + | ==== RockyLinux (8) ==== | 
| - | export DISPLAY=localhost:1 | + | export DISPLAY=:1 | 
| - | twm & | + | icewm & | 
| - | startet einen Windowmanager, hier z.B. twm | + | startet einen Windowmanager, hier z.B. icewm | 
| ====== X Window System starten ====== | ====== X Window System starten ====== | ||
| Zeile 76: | Zeile 80: | ||
| oder | oder | ||
| - | ''~/.xinitrc'' : | + | ''~/.xinitrc'' bzw. ''/etc/X11/xinit/xinitrc'': | 
| <file> | <file> | ||
| export DISPLAY=:1 | export DISPLAY=:1 | ||
| - | /usr/bin/xclock | + | /usr/bin/xclock & | 
| exec /usr/bin/twm | exec /usr/bin/twm | ||
| </file> | </file> | ||
| Zeile 137: | Zeile 141: | ||
| xterm | xterm | ||
| + | ====== xauth ====== | ||
| + | xauth cookies anzeigen: | ||
| + | xauth list | ||
| + | |||
| + | xauth cookies von anderem Benutzer (nutzer21) übernehmen: | ||
| + | xauth merge ~nutzer21/.Xauthority | ||
| + | |||
| + | ==== sudo / pam ==== | ||
| + | xauth cookies bei [[sudo]] setzen: | ||
| + | |||
| + | <file> | ||
| + | session  optional  pam_xauth.so | ||
| + | </file> | ||
| ====== X gemeinsam nutzen ====== | ====== X gemeinsam nutzen ====== | ||
| === Debian === | === Debian === | ||
| Zeile 147: | Zeile 164: | ||
| ===== Debian ===== | ===== Debian ===== | ||
| apt-get install msttcorefonts x-ttcidfont-conf | apt-get install msttcorefonts x-ttcidfont-conf | ||
| + | |||
| + | |||
| + | ====== TrackPoint ====== | ||
| + | |||
| + | |||
| + | ''/etc/X11/xorg.conf.d/01-trackpoint.conf'' : | ||
| + | |||
| + | <file> | ||
| + | Section "InputClass" | ||
| + | Identifier  "Wheel Emulation" | ||
| + | MatchIsPointer "on" | ||
| + | MatchProduct  "TrackPoint" | ||
| + | Option  "EmulateWheelButton" "2" | ||
| + | Option "EmulateWheel" "on" | ||
| + | EndSection | ||
| + | </file> | ||
| + | |||
| + | Beide Befehle sollten nach jedem systemstart mit root-Rechten ausgeführt werden. (genauer pfad in /sys muss je nach Hardware angepasst werden.) | ||
| + | |||
| + | echo -n 200 > /sys/devices/platform/i8042/serio1/serio2/sensitivity | ||
| + | |||
| + | echo -n 180 > /sys/devices/platform/i8042/serio1/serio2/speed | ||
| + | |||
| ====== Dokus & Links ====== | ====== Dokus & Links ====== | ||
| Zeile 153: | Zeile 193: | ||
| * [[ http://en.wikipedia.org/wiki/X_Window_System | Wikipedia zum X Window System ]] | * [[ http://en.wikipedia.org/wiki/X_Window_System | Wikipedia zum X Window System ]] | ||
| * [[ http://blog.mecheye.net/2012/06/the-linux-graphics-stack/ | The Linux Graphics Stack ]] | * [[ http://blog.mecheye.net/2012/06/the-linux-graphics-stack/ | The Linux Graphics Stack ]] | ||
| - | * [[ http://xming.sf.net | X11 unter Windows ]] | + | * X11 unter Windows: | 
| + | * http://x.cygwin.com/ | ||
| + | * http://xming.sf.net | ||