LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2005, 08:57 PM   #1
mm3000
Member
 
Registered: Jul 2004
Location: Victoria, OZ
Distribution: Slackware x64_Current
Posts: 82

Rep: Reputation: 15
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?
cheers
 
Old 02-24-2005, 09:17 PM   #2
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
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.

-onelung
 
Old 02-24-2005, 09:55 PM   #3
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
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.
 
Old 02-24-2005, 10:01 PM   #4
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
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.
 
Old 02-24-2005, 10:14 PM   #5
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
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.
 
Old 02-24-2005, 10:38 PM   #6
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
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.
 
Old 02-25-2005, 12:19 AM   #7
mm3000
Member
 
Registered: Jul 2004
Location: Victoria, OZ
Distribution: Slackware x64_Current
Posts: 82

Original Poster
Rep: Reputation: 15
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.
 
Old 02-25-2005, 12:28 AM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
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):
Code:
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).
 
Old 02-25-2005, 03:53 PM   #9
coffeedrinker
Member
 
Registered: Sep 2003
Posts: 173

Rep: Reputation: 30
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
 
Old 02-26-2005, 04:22 AM   #10
mm3000
Member
 
Registered: Jul 2004
Location: Victoria, OZ
Distribution: Slackware x64_Current
Posts: 82

Original Poster
Rep: Reputation: 15
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
 
Old 03-11-2007, 10:41 PM   #11
kyawkyaw
LQ Newbie
 
Registered: Mar 2007
Posts: 3

Rep: Reputation: 0
Exclamation 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?

Thanks for your considerations and time!

P.S: I am a newbie in Linux.

Best Regards,
Kyaw kyaw
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
auto logon Ammad Linux - Networking 1 06-01-2005 06:51 AM
eth0 Auto Connect, How to auto start on logon cornish Linux - Networking 2 05-09-2005 01:02 PM
GUI Auto Logon dlublink Linux - Security 1 02-04-2005 10:14 AM
Auto Logon clients ishmael437 Linux - Security 1 12-11-2002 04:46 PM
Auto Logon and Auto Run OKCHelpDesk Linux - General 0 05-03-2002 03:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration