Automatic login at startup


Forum: Other Help Topics
Topic: Automatic login at startup
started by: Akula

Posted by Akula on Nov. 01 2006,19:47
I have a little problem with my DSL system. At startup the OS asks for login and password, but I would like the system to not ask these and start so that user does not need to do anything until the GUI loads. Is it possible?

Thanks in advance.

Posted by Zucca on Nov. 01 2006,20:28
I have opposite problem. =D
I need to make my server to ask it when logging locally...
I run my DSL from CD and settings are stored to USB stick.

But in your case you could add a line to the end of your /opt/bootlocal.sh
Code Sample
su - dsl


then it _should_ log user dsl in automatically.

Posted by ^thehatsrule^ on Nov. 01 2006,23:14
I think your 2 scenarios are a bit different.

Akula's probably used the 'traditional' hd-install script which sets up the login page for you, while Zucca is using a frugal.

Not sure about the trad hd-install, bit you could edit the startup scripts that contain the auth prompt.

For a frugal (to have the passworded stuff), you can boot with 'dsl secure'.  This will also encrypt your backup.tar.gz afaik.

Posted by Akula on Nov. 02 2006,21:06
Thanks. I got over the problem.
Posted by bkil on Nov. 02 2006,21:30
Quote (^thehatsrule^ @ Nov. 01 2006,18:14)
I think your 2 scenarios are a bit different.

At first glance I thought they both needed the other's /etc/inittab . The single-user + auto X vs. multi-user-traditional installation selection installs two different inittabs. The difference is merely the  last few lines, respawning getty vs. bash --login with redirection.  :)
Posted by Zucca on Nov. 03 2006,07:06
Quote (^thehatsrule^ @ Nov. 01 2006,20:14)
For a frugal (to have the passworded stuff), you can boot with 'dsl secure'.  This will also encrypt your backup.tar.gz afaik.

In my case that isnt accebtable method.
I have DSL that runs on server computer.
Mainly remotely contolled, via ssh or vnc.

Posted by mikshaw on Nov. 03 2006,15:07
As bkil said, the main file involved here is /etc/inittab. The multiuser version spawns virtual terminals on which you can log in manually, and the default one starts a bash login shell from the current shell.

Multiuser to single user:
< http://damnsmalllinux.org/cgi-bin....00;st=0 >

Single to multi:
< http://damnsmalllinux.org/cgi-bin....;t=7936 >

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.