You are not logged in.

#1 2009-02-22 19:30:12

kateeus
Member
From: /usr/bin
Registered: 2009-02-18
Posts: 15

[Solved]Automatic Login wont work in GDM

Well, as the title says it doesen't login automatically although I made the changes via System > Administration > Login Window.

I don't know what is wrong, am probably missing something. Here is how the GDM Custom Configuration File looks like:

# GDM Custom Configuration file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration.   If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration.  Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# This file overrides the default configuration settings.  These settings 
# are stored in the GDM System Defaults configuration file, which is found
# at the following location.
#
# /usr/share/gdm/defaults.conf.  
#
# This file contains comments about the meaning of each configuration option,
# so is also a useful reference.  Also refer to the documentation links at
# the end of this comment for further information.  In short, to hand-edit
# this file, simply add or modify the key=value combination in the
# appropriate section in the template below this comment section.
#
# For example, if you want to specify a different value for the Enable key
# in the "[debug]" section of your GDM System Defaults configuration file,
# then add "Enable=true" in the "[debug]" section of this file.  If the
# key already exists in this file, then simply modify it.
#
# Older versions of GDM used the "gdm.conf" file for configuration.  If your
# system has an old gdm.conf file on the system, it will be used instead of
# this file - so changes made to this file will not take effect.  Consider
# migrating your configuration to this file and removing the gdm.conf file.
#
# If you hand edit a GDM configuration file, you can run the following
# command and the GDM daemon will immediately reflect the change.  Any
# running GDM GUI programs will also be notified to update with the new
# configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# e.g, the "Enable" key in the "[debug]" section would be "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings.  You can also restart GDM by sending
# a HUP or USR1 signal to the daemon.  HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category.  You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!

[daemon]

AutomaticLoginEnable=true

AutomaticLogin=pasi

[security]

[xdmcp]

[gui]

[greeter]







[chooser]

[debug]

# Note that to disable servers defined in the GDM System Defaults
# configuration file (such as 0=Standard, you must put a line in this file
# that says 0=inactive, as described in the Configuration section of the GDM
# documentation.
#
[servers]

# Also note, that if you redefine a [server-foo] section, then GDM will
# use the definition in this file, not the GDM System Defaults configuration
# file.  It is currently not possible to disable a [server-foo] section
# defined in the GDM System Defaults configuration file.
#

Help appreciated smile

Thanks

Last edited by kateeus (2009-02-23 14:32:06)

Offline

#2 2009-02-23 00:32:59

CheesyBeef
Member
Registered: 2008-06-04
Posts: 190

Re: [Solved]Automatic Login wont work in GDM

Hmm.  Unfortunately, I don't have GDM installed right now to see how my gdm file would be set up.

However, I just followed some guides in the Arch wiki today which allowed me to start X without a greeter (ie. gdm), or with a greeter for that matter.

Since you are automatically logging into your desktop, you don't really need a greeter, but you may prefer to have a greeter - it is up to you.  If you don't care about having a greeter, then you can stop gdm from running and set it up so you automatically startx from the virtual console.



If you need some more help to automatically login with a greeter:  http://wiki.archlinux.org/index.php/Add … on_startup


If you would rather just log straight in after booting and not have to load a greeter, follow these 4 simple steps: 

1) First edit /etc/rc.conf and in the "DAEMONS" section at the bottom, remove gdm.
2) Then make sure your ~/.xinitrc is configured correctly to start gnome-session (or whatever session you wish).  Follow this wiki if you need more detail: http://wiki.archlinux.org/index.php/Xin … d_.xinitrc
3) Install mingetty to automatically log you in (from when you boot and it comes to the black screen saying "Login:").  Follow this guide to help:
http://wiki.archlinux.org/index.php/Aut … on_startup
4) Configure to start X after logging in above, using the session you added to the ~/.xinitrc file in step 2:
add:

[ -f ~/.bash_login ] && . ~/.bash_login

to the bottom of your ~/.bash_profile.

Then, in your ~/.bash_login (if ~/.bash_login doesn't exist, you can create it), add:

startx

More here

This should do it, enjoy!

Offline

#3 2009-02-23 08:10:17

kateeus
Member
From: /usr/bin
Registered: 2009-02-18
Posts: 15

Re: [Solved]Automatic Login wont work in GDM

The login without a greeter guide worked like a charm smile

Thanks a bunch

Kateeus

Offline

#4 2009-02-23 14:13:50

CheesyBeef
Member
Registered: 2008-06-04
Posts: 190

Re: [Solved]Automatic Login wont work in GDM

Awesome, I'm glad it did big_smile

Offline

#5 2009-05-21 18:48:41

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: [Solved]Automatic Login wont work in GDM

I'm glad I found this thread. GDM has caused me problems from time to time, now I can ditch it!

Offline

Board footer

Powered by FluxBB