CTKArch · Forums
You are not logged in. Please Register or Login.  |  Search
Posted: Jul 21, 2011 5:37:50 am

Is there any way to make a login screen at boot or even just have it boot to terminal so you have to login and startx or something? It would greatly ease my worrying mind if i knew that I could lock my computer and have it so you couldn't simply restart it and have it go directly to my desktop. Thank you so much in advance.
Posted: Jul 21, 2011 8:50:31 am

there's 3 ways to do that...

method 1:
you can remove the autostart: add a "#" at the begining of this line in /etc/inittab
c4:5:respawn:/sbin/agetty -n -l /etc/autostartx 38400 tty4 linux

in that case, you must type username, password, and the "startx" command...

method 2:
in /etc/autostartx, remove the "-f" on this line
/bin/login -f "${user}" STARTX=1

in /etc/inittab, add a "#" at the begining of this line
c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux

and replace
c4:5:respawn:/sbin/agetty -l /etc/autostartx 38400 tty4 linux
c1:5:respawn:/sbin/agetty -l /etc/autostartx 38400 tty1 linux

the autostart will ask your password...

method 3:
install a login manager (Slim is light, but you can also use Gdm, Kdm...) and in /etc/inittab, add a "#" at the begining of this line
c4:5:respawn:/sbin/agetty -n -l /etc/autostartx 38400 tty4 linux

and add a new line (or remove the "#" if the line is allready here)
x:5:respawn:/usr/bin/slim >& /dev/null
(for Slim)
x:5:respawn:/usr/sbin/gdm -nodaemon
(for Gdm)
x:5:respawn:/usr/bin/kdm -nodaemon
(for Kdm)

NB: this 3 method are for CTKArch installed on hard drive...

PS: there's allready 2 posts for this problem, but they are in french, so I only translated...
Posted: Jul 21, 2011 10:00:14 am

To complete method 1, add this to your .bash_profile :
[ "$(tty)" == "/dev/tty1" ] && startx

That way, logging in in the login prompt that will appear on boot will directly run the graphical session.
On tty1 only, by the way.
Powered by myUPB v2.2.7  ·   Creative Commons License PHP Outburst