LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 07: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, 08: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, 08: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, 09:01 PM   #4
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
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, 09: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, 09: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-24-2005, 11:19 PM   #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-24-2005, 11:28 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
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, 02: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, 03: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, 09: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 05:51 AM
eth0 Auto Connect, How to auto start on logon cornish Linux - Networking 2 05-09-2005 12:02 PM
GUI Auto Logon dlublink Linux - Security 1 02-04-2005 09:14 AM
Auto Logon clients ishmael437 Linux - Security 1 12-11-2002 03:46 PM
Auto Logon and Auto Run OKCHelpDesk Linux - General 0 05-03-2002 02:02 PM


All times are GMT -5. The time now is 06:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration