LINUX.ORG.RU
ФорумAdmin

Не стартует gdm в свежеустановленном в Ubuntu 10.04.4 LTS


0

1

ставил так:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openssh-server
sudo apt-get install vnc4server xinetd gnome-core gdm vim mc

Потом добавил: /etc/gdm/custom.conf:

# GDM configuration storage

[daemon]

[security]

[xdmcp]
Enable=true
HonorIndirect=false
# following line fixes a problem with login/logout
DisplaysPerHost=2

[greeter]

[chooser]

[debug]

И еще создал файл /etc/xinetd.d/xvnc (adjust geometry to get different screen sizes):

service xvnc
{
        type = UNLISTED
        disable = no
        socket_type = stream
        protocol = tcp
        wait = no
        user = nobody
        server = /usr/bin/Xvnc
        server_args = -inetd -query 127.0.0.1 -geometry 800x600 -depth 16 -cc 3 -once -SecurityTypes=none
        port = 5900
}

Потом я делаю:

sudo service gdm restart
sudo /etc/init.d/xinetd restart

root@TEST1:/# sudo service gdm restart restart: Unknown instance:

На реальном сервере не работает, на виртуальном делал все один в один. На виртуальном работает. Результат на виртуалке - могу подцепиться vnc клиентом и увидить окно входа в систему.

На реальной тачке вижу только пустой экран.

Если ps -ef | grep gdm то там нет процессов. Они вернее есть первые секунды три потом исчезают.

root@TEST:~# ps -ef | grep gdm
root       939     1  0 02:00 ?        00:00:00 /bin/bash /etc/gdm/failsafeXServer
root       954   939  0 02:00 ?        00:00:00 xinit /etc/gdm/failsafeXinit /etc/X11/xorg.conf.failsafe -- /usr/bin/X -br -once -config /etc/X11/xorg.conf.fail                                                                                safe -logfile /var/log/Xorg.failsafe.log
root       959   881  0 02:00 pts/0    00:00:00 grep --color=auto gdm
root@TEST:~# ps -ef | grep gdm
root      1006   881  0 02:00 pts/0    00:00:00 grep --color=auto gdm
root@TEST:~# ps -ef | grep gdm
root      1008   881  0 02:00 pts/0    00:00:00 grep --color=auto gdm
root@TEST:~# ps -ef | grep gdm
root      1010   881  0 02:00 pts/0    00:00:00 grep --color=auto gdm
root@TEST:~#

Linux realserver 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64 GNU/Linux Ubuntu 10.04.4 LTS ----- Linux virtual 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011 x86_64 GNU/Linux Ubuntu 10.04.4 LTS

root@UTEST2:/etc/X11# gdm start
gdm-binary[2241]: WARNING: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors

root@UTEST2:/var/log# cat Xorg.0.log
…
Fatal server error:
no screens found
…
(EE) No devices detected.
(EE) open /dev/fb0: No such file or directory



root@UTEST2:/etc/X11# cat /var/log/Xorg.0.log

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-30-server x86_64 Ubuntu
Current Operating System: Linux UTEST2 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64
Kernel command line: root=/dev/xvda1 ro
Build Date: 25 February 2012  06:57:33AM
xorg-server 2:1.7.6-2ubuntu7.11 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.16.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 17 02:00:03 2012
(==) Using config directory: "/usr/lib/X11/xorg.conf.d"
(==) No Layout section.  Using the first Screen section.
(==) No screen section available. Using defaults.
(**) |-->Screen "Default Screen Section" (0)
(**) |   |-->Monitor "<default monitor>"
(==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
        Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
        Entry deleted from font path.
(WW) `fonts.dir' not found (or not valid) in "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType".
        Entry deleted from font path.
        (Run 'mkfontdir' on "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType").
(==) FontPath set to:
        /usr/share/fonts/X11/misc,
        built-ins
(==) ModulePath set to "/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
(II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
(II) Loader magic: 0x7cb840
(II) Module ABI versions:
        X.Org ANSI C Emulation: 0.4
        X.Org Video Driver: 6.0
        X.Org XInput driver : 7.0
        X.Org Server Extension : 2.0
(--) using VT number 2

(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.0.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.13.0
        Module class: X.Org Server Extension
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.0.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 1.1.0
        ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
Primary device is not PCI
(==) Matched vesa as autoconfigured driver 0
(==) Matched fbdev as autoconfigured driver 1
(==) Assigned the driver to the xf86ConfigLayout
(II) LoadModule: "vesa"
(II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
(II) Module vesa: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 2.3.0
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "fbdev"
(II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
(II) Module fbdev: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 0.4.1
        ABI class: X.Org Video Driver, version 6.0
(II) VESA: driver for VESA chipsets: vesa
(II) FBDEV: driver for framebuffer: fbdev
(WW) Falling back to old probe method for vesa
(WW) Falling back to old probe method for fbdev
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"
(II) Loading /usr/lib/xorg/modules/linux/libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
        compiled for 1.7.6, module version = 0.0.2
        ABI class: X.Org Video Driver, version 6.0
(EE) open /dev/fb0: No such file or directory
(EE) No devices detected.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

 ddxSigGiveUp: Closing log






root@UTEST2:/etc/X11# Xorg -configure

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-30-server x86_64 Ubuntu
Current Operating System: Linux UTEST2 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64
Kernel command line: root=/dev/xvda1 ro
Build Date: 25 February 2012  06:57:33AM
xorg-server 2:1.7.6-2ubuntu7.11 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.16.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 17 02:49:50 2012
List of video drivers:
        tdfx
        r128
        savage
        sis
        mach64
        i128
        mga
        nouveau
        trident
        cirrus
        siliconmotion
        v4l
        nv
        s3virge
        sisusb
        intel
        chips
        radeon
        s3
        ati
        apm
        tseng
        vmware
        vesa
        neomagic
        ark
        openchrome
        rendition
        voodoo
        fbdev
No devices to configure.  Configuration failed. 
 ddxSigGiveUp: Closing log
root@UTEST2:/etc/X11#

Боевой хост живет где-то на заокеанских серверах и на чем он крутится я не знаю. Помогите, спасибо.



Последнее исправление: dopedopedope (всего исправлений: 5)

sudo service gdm restart

Так может его сначала start, а потом restart? И вообще, по идее gdm должен запускаться вместе с запуском Х11-сервера, который в данном случае запускается с помощью xinetd.

PolarFox ★★★★★
()
Ответ на: комментарий от PolarFox

Без разницы, restart сперва сделает gdm stop, затем gdm start.

bhfq ★★★★★
()

ТС: тебе нужно запускать запускать GDM в режиме «без локального X-сервера» или чтобы X-сервер запускался с драйвером Xvfb.

no-dashi ★★★★★
()
Ответ на: комментарий от etwrq

Нашел это для Debian, где прописать это в Ubuntu?

Solution

Fixing this problem simply required disabling the GDM server instance running on the display hardware. With this server disabled in the GDM configuration, everything works smoothly regardless of whether or not a monitor is connected. On Debian, the default server can be disabled by editing /usr/share/gdm/defaults.conf and commenting out the following line (around line 604 in my version):

[servers] 0=Standard device=/dev/console

А на Хабре делают это патчем

#

-0=Standard device=/dev/console

+#0=Standard device=/dev/console

Только где это делать?

dopedopedope
() автор топика
Ответ на: комментарий от dopedopedope

ок, мужики. Я разобрался!

Нужно ставить старую версию gdm-2.20.

dopedopedope
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.