You are not logged in.

#1 2009-04-20 23:23:34

Alberto Ferreira
Member
Registered: 2008-10-08
Posts: 41

Auto Start-up login [SOLVED]

Hi, I like booting to the terminal with no GUI since I might turn on the computer just for doing some computation-intensive tasks but I would like to have the convenience of the login managers from Gnome/Ubuntu. I don`t know what the real name is but if you boot to the GUI in Ubuntu this login can happen automatically-no need to fill the username and password, so, how is it possible to to this auto-login in the terminal when you first start up your ArchLinux or other distro without the overhead of starting the GUI `question mark`(i don`t know why but in the openbox session or firefox my keyboard layout is different than in the terminal)

Last edited by Alberto Ferreira (2009-04-24 15:31:15)

Offline

#2 2009-04-21 00:15:46

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: Auto Start-up login [SOLVED]

http://wiki.archlinux.org/index.php/Start_X_at_boot

Specifically installing gdm and adding it to the deamons list in rc.conf will do it

Last edited by Zariel (2009-04-21 00:28:22)

Offline

#3 2009-04-21 03:13:32

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Auto Start-up login [SOLVED]

I don't think that's what Alberto was asking - I think he wants to auto-login at the command prompt when he boots up (ie. instead of booting to the familiar "Username:" prompt, he just wants to go immediately to a terminal.)

Offline

#4 2009-04-21 03:52:25

crouse
Arch Linux f@h Team Member
From: Iowa - USA
Registered: 2006-08-19
Posts: 907
Website

Re: Auto Start-up login [SOLVED]

http://littlesvr.ca/linux-stuff/article … onsole.php

That might help get you started, although I personally see no good reason for this ...

Offline

#5 2009-04-21 16:26:57

Alberto Ferreira
Member
Registered: 2008-10-08
Posts: 41

Re: Auto Start-up login [SOLVED]

The reason is that I don't want to execute startx right away but I don't like logging in at the terminal either. So that when I boot the pc, as soon as the booting sequence is ready the pc is ready to work .. (because I'm the only pc  user it's boring as hell to always login)

Following crouse's link didn't work for me:
All the lines in the files that the guy talks about are different than in ARCH and when I compile the program it gives the warning :"incompatible implicit declaration of build-in function "execlp"".

Last edited by Alberto Ferreira (2009-04-21 16:40:21)

Offline

#6 2009-04-21 17:41:41

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: Auto Start-up login [SOLVED]

I have put this line at the end of /etc/inittab

# Example lines for starting a login manager
x:5:once:/bin/su -c 'bash --login -c startx' -l <username> &> /dev/null < /dev/null

Then when I boot in GUI (telinit 5 at the kernel command line or change the default runlevel) it automatically log me in.

Offline

#7 2009-04-22 12:52:00

Alberto Ferreira
Member
Registered: 2008-10-08
Posts: 41

Re: Auto Start-up login [SOLVED]

It didn-t work for me :s

Offline

#8 2009-04-22 13:08:00

PJ
Member
From: Sweden
Registered: 2005-10-11
Posts: 602

Re: Auto Start-up login [SOLVED]

Remember reading an article about this in the wiki a while back ago, maybe this could be useful:
http://wiki.archlinux.org/index.php/Aut … on_startup

Last edited by PJ (2009-04-22 13:08:36)

Offline

#9 2009-04-23 16:35:03

Alberto Ferreira
Member
Registered: 2008-10-08
Posts: 41

Re: Auto Start-up login [SOLVED]

Thanks, used the link and followed the compiling instructions. It works big_smile

Offline

Board footer

Powered by FluxBB