You are not logged in.

#1 2011-06-28 15:38:09

Behemot
Member
Registered: 2010-12-10
Posts: 96

[SOLVED] Automatic logon without display manager?

I found some guides for other distributions, but I am not able to make this thing work in Arch. Does anybody know what is the correct setting for automatic logon without display manager? :-)

I installed fgetty and tried to change the first line in /etc/innttab as follows:

x:5:respawn:/sbin/fgetty --autologin uzivatel tty1

But obviously it does not work :-)

Last edited by Behemot (2011-07-03 11:39:54)

Offline

#2 2011-06-28 15:40:39

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Automatic logon without display manager?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-06-28 16:36:22

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED] Automatic logon without display manager?

Behemot wrote:

I found some guides for other distributions, but I am not able to make this thing work in Arch. Does anybody know what is the correct setting for automatic logon without display manager? :-)

I installed fgetty and tried to change the first line in /etc/innttab as follows:

x:5:respawn:/sbin/fgetty --autologin uzivatel tty1

But obvisously it does not work :-)

--autologin only works with mingetty, not fgetty (this should be added to the wiki i guess).


ᶘ ᵒᴥᵒᶅ

Offline

#4 2011-06-28 17:56:03

Behemot
Member
Registered: 2010-12-10
Posts: 96

Re: [SOLVED] Automatic logon without display manager?

Thats what I've been afraid of. Is there any sbustitution for --autologin working with fgetty?

Inxsible: I tried it, but it's not exactly what I want. If I understand it, this way it starts X directly, but I have taken care of this through .xinitrc with all the dbus and ck-launch-session stuff. I also removed password, so I just need to log in with username automatically which will cause to start XFCE4 and everything :-)

Offline

#5 2011-06-28 21:07:48

kinhodder
Member
From: UK
Registered: 2010-04-18
Posts: 65
Website

Re: [SOLVED] Automatic logon without display manager?

I'm not 100% sure what you mean, but if you put something like the following in your shell config file (bashrc, zshrc, etc.) you can have X start up as soon as you log in on tty1:

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
  startx
  logout
fi

If you combine that with mingetty's autologin for tty1 in your inittab:

c1:2345:respawn:/sbin/mingetty --autologin yourusername tty1 linux

you'll boot right into XFCE4. No login required.

Edit: and of course you can use fgetty for your other ttys, if that's what you prefer.

Last edited by kinhodder (2011-06-28 21:10:17)

Offline

#6 2011-07-03 11:39:41

Behemot
Member
Registered: 2010-12-10
Posts: 96

Re: [SOLVED] Automatic logon without display manager?

Awesome! I did not use mingetty first time because it was not in repository, but I forgot to have a look into AUR. Great. So now I have this up'n'running on my desktop machine here, will try at home later. Thanks!

Offline

Board footer

Powered by FluxBB