autologin in gnome [Solved]

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

autologin in gnome [Solved]

Postby jspeybro » Sat Apr 18, 2009 16:04

Hello,

I'm running Sabayon 4.1 with gnome.
I'm trying to find the option where I can set my user to log in automatically (I'm the only user of the machine and I don't want to login each time I boot my computer)

I thought it was under 'system=>Preferences or administration' but I cannot find it. Did it disappear in this version?

Johan
jspeybro
Simple Hen
 
Posts: 48
Joined: Fri Dec 28, 2007 14:34

Re: autologin in gnome

Postby xlnagla » Sat Apr 18, 2009 16:45

check this out:

http://library.gnome.org/admin/gdm/2.26 ... emonconfig

It does require editing a config file, but is probably what you are looking for.

~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: autologin in gnome

Postby Thev00d00 » Sat Apr 18, 2009 17:12

as root:

Code: Select all
gdmsetup
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: autologin in gnome

Postby xlnagla » Sat Apr 18, 2009 17:35

'tis what I thought too, v00d00, but gdmsetup doesn't seem to exist for me...

~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: autologin in gnome

Postby microman777 » Mon Apr 20, 2009 20:39

I need to get auto-login setup also!!!
microman777
Young Hen
 
Posts: 21
Joined: Mon Mar 09, 2009 20:08

Re: autologin in gnome

Postby WarraWarra » Mon Apr 20, 2009 21:30

WarraWarra
Sagely Hen
 
Posts: 1989
Joined: Wed Jan 03, 2007 21:01
Location: 31.324270, -113.585511

Re: autologin in gnome

Postby microman777 » Tue Apr 21, 2009 4:34

WarraWarra wrote:http://www.linfo.org/automatic_login.html

http://www.go2linux.org/how_to_enable_a ... untu_gnome

This second one seem much more up to date and has pics yeah.


Both these options are disabled in Sabayon 4.1!

There must be a way to do this!!!!
microman777
Young Hen
 
Posts: 21
Joined: Mon Mar 09, 2009 20:08

Re: autologin in gnome

Postby dagurasu » Tue Apr 28, 2009 19:32

no problem... I know it for kde, but can't be that diferent fro gnome:

make a script something like

#!/bin/bash
export DISPLAY=:0
X :0 & startkde

save it somewhere like /usr/local/bin/myscript
make sure your user can run it. If you're root
chmod 755 /usr/local/bin/myscript

you need to become our user before you run it so in /etc/conf.d/local
add something like
su -c /usr/local/bin/myscript - myusername

and that should about do it.
You won't be runnign a kdm login, just a pure kde session. You don't have the ability to logout or switch users in the usual way. To do that you have to kill X, cntrl-backspace twice fast, login from a console as another user... and run the script again.

You might be able to find a startx script somewhere that starts X a little better than this, it may already be installed even, but this should work.

edit:
there is a startx command, so try that instead of the script. You'll still want the conf.d/local but can maybe replace your script with startx. I can't test now cause startx is default configured to run on display 0 and I am using my display 0. You may need to play with some configs to get the window manager you want to start. alot of this stuff should be in /etc/X11. in the xinit subdirectory you'll find xinitrc that startx runs. You can by hand force the window manager there or paly with getting the variables setup for chooser to get it right. been awhile since I played with that. startx is likely to still sttart gdm if you don't get it configure right. Once upon a time... this was just how it was done.
Last edited by dagurasu on Tue Apr 28, 2009 19:51, edited 3 times in total.
dagurasu
Simple Hen
 
Posts: 82
Joined: Fri Jun 01, 2007 23:33

Re: autologin in gnome

Postby dagurasu » Tue Apr 28, 2009 19:33

by the way, change 0 for 1 and you can run two X sessions at once. Switch between them with
cntrl-alt-F7 and cntrl-alt-F8
dagurasu
Simple Hen
 
Posts: 82
Joined: Fri Jun 01, 2007 23:33

Re: autologin in gnome

Postby dagurasu » Tue Apr 28, 2009 19:49

strange that you don't have gdmsetup though:

> equery b gdmsetup
[ Searching for file(s) gdmsetup in *... ]
gnome-base/gdm-2.20.9-r1 (/etc/security/console.apps/gdmsetup)
gnome-base/gdm-2.20.9-r1 (/etc/pam.d/gdmsetup)
gnome-base/gdm-2.20.9-r1 (/usr/sbin/gdmsetup)


Alot of linuxes don't put all the binary paths in your path anymore by default. It's annoying.
try explicitly /usr/sbin/gdmsetup.
dagurasu
Simple Hen
 
Posts: 82
Joined: Fri Jun 01, 2007 23:33

Next

Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests