-   Slackware (
-   -   auto logon (

mm3000 02-24-2005 07:57 PM

auto logon
I am in the current planing stages of making a stereo mp3 player, and run it run linux. So I was wondering if it can be set to auto logon without any input, because it will not have a keyboard attached. It will not be connected to anything so there are not security issues. I found info on "cajun", but was wondering if there is another way?

onelung02 02-24-2005 08:17 PM

Now this will be interesting. Sorry I have no idea what to do with this, but I wanted to ask you a favor and see if you would keep this thread updated on the success/failure of the project.


coffeedrinker 02-24-2005 08:55 PM

Is this going to be in a car? Will it have a monitor and mouse?

One used to be able to set up kde to show a username for default and that matched with a blank password would get you in. There might be a way to get xdm to do it if you don't want/can't run kde on the machine.

killerbob 02-24-2005 09:01 PM

KDM will definitely allow you to autologin without a password. Of course, that requires that you install KDE... though it is possible to set it up so you aren't actually running KDE, just using KDM as your login manager.

mdarby 02-24-2005 09:14 PM

Could you run a script at startup that will log you in automatically? Perhaps a thread that waits 10s or so to trigger? Not sure but might be worth a try.

coffeedrinker 02-24-2005 09:38 PM

I think you might be able to change /etc/inittab and modify one of the agetty lines:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux

If you read the man for agetty it has some options to not ask for a login name, etc.

You might even replace it with something completely different too.

mm3000 02-24-2005 11:19 PM

killerbob, thought of that, however I was alittle worried that it might make the whole start up to long. I want to keep, the start-up as fast as possible, with the least amount of things running, so there is less to go wrong.
mdarby, will have to look into a script, I will proberly need one to handle coping mp3's into the unit.
coffeedrinker, No, it will be for home, I am planning to have a inbuilt LCD screen into the unit, and thats it. will look into the agetty line, sounds like it might work.

Still have to find a program that will automaticly start Lcdproc and XMMS, though. hopefully something that will run on the lcd and allow me to have other options as well.

cheers for all the info, so far.

gbonvehi 02-24-2005 11:28 PM

You could put something like this on your /etc/rc.d/rc.local file (this is the latest thing executed on boot so all will be loaded):

su - youruser -c 'source /etc/profile ; source /home/youruser/.bash_profile ; startx'
The sources are optional but recommended :)

Oh and the startup programs could be there too (actually you should put XMMS in your .xinitrc so it'll loaded when X does).

coffeedrinker 02-25-2005 02:53 PM

If you start up agetty with some command line parameters for the login program you can get login to start with a specific user and without authorization.

man agetty
man login

mm3000 02-26-2005 03:22 AM

thats sounds like it will work, now I have to figure out how the rest of the programing will work. Theres alot more reading for me to do yet.
thanks everybody

kyawkyaw 03-11-2007 09:41 PM

how to make auto run for drivers!
Hi everybody,
Now I am using TS-7200 for development and its TS_kernel version is 2.4.23 and based on RedHat. It has LCD display and 4x4 keypad for user interface. There is no compiler on the board and have to make development in Host computer. My host's linux is fedora (ver:5) and have communication of RS-232 and telnet with the board (RS-232 is default display for booting and login).

Here is my question. I want to see the boot and login mesg from LCD Display instead of Host monitor and, want to use 4x4 keypad instead of keyboard. I would like to make TS-7200 be independent of host computer and it can be run stand-alone. In order to do this, I need autorun for login and drivers for lcd display and 4x4 keypad. Currently I can make auto-login but cannot load driver during login. Could anybody give me the guide( way ) to make autorun?:scratch:

Thanks for your considerations and time!

P.S: I am a newbie in Linux.:newbie: :D :Pengy:

Best Regards,
Kyaw kyaw

All times are GMT -5. The time now is 02:50 AM.