URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID15
Нить номер: 2318
[ Назад ]

Исходное сообщение
"xorg multihead (multiset,multiuser)"

Отправлено Магистр , 10-Ноя-08 14:26 
Дистрибутив Debian Etch. Хочется поднять несколько рабочих мест на одном системном блоке.
Пошарил в инете -- нашел примерные конфиги для Xorg, gdm. Состряпал свои (только у меня kdm)
Пока начинаю для 2-х рабочих мест.

================= xorg.conf ====================


# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
#       Load    "GLcore"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
#       Load    "speedo"
        Load    "type1"
        Load    "vbe"
EndSection

#======================= KEYBOARD ============================

Section "InputDevice"
        Identifier      "keyboard_skorik"
#       Driver          "kbd"
        Driver          "evdev"
        Option          "Device" "/dev/input/event0"
        Option          "CoreKeyboard"
#       Option          "Phys"          "isa0060/serio0/input0"
        Option          "XkbRules"      "xorg"
#       Option          "XkbModel"      "pc105"
        Option          "XkbModel"      "evdev"
        Option          "XkbLayout"     "us,ru(winkeys)"
        Option          "XkbOptions"    "grp:ctrl_shift_toggle"
#       Option          "AutoRepeat"    "250 30"
EndSection

Section "InputDevice"
        Identifier      "keyboard_kola"
#       Driver          "kbd"
        Driver          "evdev"
        Option          "Device" "/dev/input/event1"
        Option          "CoreKeyboard"
#       Option          "Phys"          "isa0060/serio0/input0"
        Option          "XkbRules"      "xorg"
#       Option          "XkbModel"      "pc105"
        Option          "XkbModel"      "evdev"
        Option          "XkbLayout"     "us,ru(winkeys)"
        Option          "XkbOptions"    "grp:ctrl_shift_toggle"
#       Option          "AutoRepeat"    "250 30"
EndSection

#======================= MOUSE ================================

Section "InputDevice"
        Identifier      "mouse_skorik"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"        "/dev/input/mouse2"
        Option          "Protocol"      "ImPS/2"
        Option          "Button"        "3"
        Option          "ZAxisMapping"  "4 5"
EndSection

Section "InputDevice"
        Identifier      "mouse_kola"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"        "/dev/input/mouse0"
        Option          "Protocol"      "ImPS/2"
        Option          "Button"        "3"
        Option          "ZAxisMapping"  "4 5"
EndSection

#======================== VIDEO CARD ===========================

Section "Device"
        Identifier      "video_1"
        Driver          "nvidia"
        BusID           "PCI:1:0:0"
        Option          "DPMS"
EndSection

Section "Device"
        Identifier      "video_2"
        Driver          "ati"
        BusID           "PCI:2:10:0"
        Option          "DPMS"
EndSection

#=========================== MONITORS ===========================

Section "Monitor"
        Identifier      "monitor_1"
#       Device          "video_1"
EndSection

Section "Monitor"
        Identifier      "monitor_2"
#       Device          "video_2"
EndSection

#========================== SCREEN =============================

Section "Screen"
        Identifier      "screen_1"
        Device          "video_1"
#       Monitor         "Generic Monitor"
        Monitor         "monitor_1"
        DefaultDepth    16
        SubSection "Display"
                Depth           16
                Modes           "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "Screen"
        Identifier      "screen_2"
        Device          "video_2"
#       Monitor         "Generic Monitor"
        Monitor         "monitor_2"
        DefaultDepth    16
        SubSection "Display"
                Depth           16
                Modes           "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

#====================== SERVER LAYOUT =========================

Section "ServerLayout"
        Identifier      "X1"
        Screen          "screen_1"
        InputDevice     "keyboard_skorik" "CoreKeyboard"
        InputDevice     "mouse_skorik" "CorePointer"
        Option          "SingleCard"    "true"
EndSection

Section "ServerLayout"
        Identifier      "X2"
        Screen          "screen_2"
        InputDevice     "keyboard_kola" "CoreKeyboard"
        InputDevice     "mouse_kola" "CorePointer"
        Option          "SingleCard"    "true"
EndSection

Section "DRI"
        Mode    0666
EndSection

==================================================================


======================= /etc/kde3/kdm/Xservers ===================

:0 local /usr/X11R6/bin/X -audit 0 -nopciaccessdisable
:1 local /usr/X11R6/bin/X -layout X2 -nopciaccessdisable -novtswitches -audit 0 :1 vt8

==================================================================

И вот в чем проблема...
Если набрать в консоли# "X -layout X1", то запускаются иксы на первом рабочем месте (серый  экран и курсор мыши), если "X -layout X2" тоже самое запускается на втором рабочем месте. Но ни как не получается заставить KDM выдать loginscreen на оба рабочих места, что бы ни делал запускается только на первом. Возможно нужно еще какие-то конфиги крутить?


Содержание

Сообщения в этом обсуждении
"xorg multihead (multiset,multiuser)"
Отправлено Магистр , 11-Ноя-08 11:53 
решено добавлением в /etc/kde3/kdm/kdmrc таких сторк


[X-:0-Core]
AutoLoginEnable=false
AutoLoginAgain=false
AutoLoginDelay=0
AutoLoginUser=admin
AutoLoginLocked=false
ClientLogFile=.xsession-errors
ServerArgsLocal=-nolisten tcp -layout X1 -sharevts
ServerCmd=/usr/X11R6/bin/X

[X-:1-Core]
ServerArgsLocal=-nolisten tcp -layout X2 -sharevts
ServerCmd=/usr/X11R6/bin/X