E
E
electronauts2012-03-17 17:09:29
linux
electronauts, 2012-03-17 17:09:29

How to disable GDM server on hardware?

Inspired by this article:

<a href="http://habrahabr.ru/post/77159/">habrahabr.ru/post/77159/</a>

To run XDMCP/VNC and GDM on a headless server (VDS), you need to comment out the line:
0=Standard device=/dev/console
In Ubuntu 9.2 (Habr), this is done in /etc/gdm/gdm.conf;
On Debian Squeeze, this is done in /usr/share/gdm/defaults.conf.
<a href="http://www.digitalenginesoftware.com/blog/archives/73-Problems-with-XDMCPVNC-and-GDM-on-a-Headless-Server.html">www.digitalenginesoftware.com/blog/archives/73-Problems-with-XDMCPVNC-and-GDM-on-a-Headless-Server.html</a><br/>

I have Ubuntu Server 10.04 LTS. There are no such configuration files in these paths.
Where to comment? Thank you.

Answer the question

In order to leave comments, you need to log in

12 answer(s)
K
Korivanor, 2012-03-17
@Korivanor

Is he really worth it?

E
electronauts, 2012-03-17
@electronauts

[email protected]:/etc/gdm# aptitude show gdm
Package: gdm
State: installed
Automatically installed: no
Version: 2.30.2.is.2.30.0-0ubuntu5.2

K
Korivanor, 2012-03-17
@Korivanor

give a list of files in the /etc/gdm directory

E
electronauts, 2012-03-17
@electronauts

[email protected]:/etc/gdm# ll
total 64
drwxr-xr-x 6 root root 4096 Mar 17 13:07 ./
drwxr-xr-x 94 root root 4096 Mar 17 11:37 ../
drwxr-xr-x 2 root root 4096 Mar 17 12:35 Init/
drwxr-xr-x 2 root root 4096 Mar 17 12:35 PostLogin/
drwxr-xr-x 2 root root 4096 Mar 17 12:35 PostSession/
drwxr-xr-x 2 root root 4096 Mar 17 12:35 PreSession/
-rwxr-xr-x 1 root root 6111 Apr 28 2011 Xsession*
-rw-r--r-- 1 root root 261 Mar 17 11:36 custom.conf
-rw-r--r-- 1 root root 132 Apr 1 2010 failsafeBlacklist
-rwxr-xr-x 1 root root 4778 Apr 1 2010 failsafeXServer*
-rwxr-xr-x 1 root root 8778 Apr 1 2010 failsafeXinit*
-rw-r--r-- 1 root root 3157 Apr 28 2011 gdm.schemas

K
Korivanor, 2012-03-17
@Korivanor

Here. Now see if there is such a line in custom.conf?
If not, then the config is probably in Init /

E
electronauts, 2012-03-17
@electronauts

[email protected]:/etc/gdm# cat custom.conf
# GDM configuration storage
[daemon]
[security]
[xdmcp]
Enable=true
HonorIndirect=false
# following line fixes a problem with login/logout
DisplaysPerHost=2
[greeter]
[chooser]
[security]
DisallowTCP=false
[debug]
[servers]
#0=Standard device=/dev/console
[email protected]:/etc/gdm# find / -name gdm.conf
/etc/init/gdm.conf
/etc/dbus-1/system.d/gdm.conf
[email protected]:/etc/gdm# cat /etc/init/gdm.conf
# gdm - GNOME Display Manager
#
# The display manager service manages the X servers running on the
# system, providing login and auto-login services
description "GNOME Display Manager"
author "William Jon McCann <[email protected]>"
start on (filesystem
and started dbus
and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
or stopped udevtrigger))
stop on runlevel [016]
emits starting-dm
env XORGCONFIG=/etc/X11/xorg.conf
script
if [ -n "$UPSTART_EVENTS" ]
then
[ ! -f /etc/X11/default-display-manager -o "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/gdm" ] || { stop; exit 0; }
# Check kernel command-line for inhibitors
for ARG in $(cat /proc/cmdline)
do
case "${ARG}" in
text|-s|s|S|single)
plymouth quit || : # We have the ball here
exit 0
;;
esac
done
fi
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG LANGUAGE
elif [ -r /etc/environment ]; then
. /etc/environment
export LANG LANGUAGE
fi
export XORGCONFIG
exec gdm-binary $CONFIG_FILE
end script
[email protected]:/etc/gdm#

K
Korivanor, 2012-03-17
@Korivanor

#0=Standard device=/dev/console
Problem solved, line already commented out)

E
electronauts, 2012-03-17
@electronauts

Unfortunately no. Custom.conf is generated by this tutorial:
library.gnome.org/admin/gdm/stable/configuration.html.en
for experimentation

K
Korivanor, 2012-03-17
@Korivanor

Well then, since there is no config, no instruction is written anywhere, so it does not need to be commented.
I'm not a gdm master, try locate gdm.conf, maybe you have this config in another place.

K
Korivanor, 2012-03-17
@Korivanor

And so, in theory, defaults.conf is not a config, but just a file with examples of “what this custom.conf can be”

K
Korivanor, 2012-03-17
@Korivanor

5.4. Daemon Configuration
The GDM daemon is configured using the /gdm/custom.conf file. Default values ​​are stored in GConf in the gdm.schemas file. It is recommended that end-users modify the /gdm/custom.conf file because the schemas file may be overwritten when the user updates their system to have a newer version of GDM.
Written in that manual. Those. config == custom.conf.
Line commented out == problem solved.

E
electronauts, 2012-03-17
@electronauts

Thanks for the help. :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question