LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2015, 09:20 AM   #1
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,149
Blog Entries: 2

Rep: Reputation: 261Reputation: 261Reputation: 261
One time auto console login.


I know I can auto-login on the console using this in /etc/inittab:

Code:
1:2345:respawn:/sbin/getty --autologin <user-name> tty1
Can I limit it to allow only one auto-login per boot?
 
Old 02-27-2015, 01:01 PM   #2
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,149

Original Poster
Blog Entries: 2

Rep: Reputation: 261Reputation: 261Reputation: 261
There might be a better way to do this: I added this to /etc/rc.local

Code:
openvt -f -c 7 -- /bin/login -f <user-name> &
chvt 7
Now I just need to figure out how to get the openvt command to run again (no auto this time) after an exit or after exec startx has exited.
 
  


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 login on virtual console Mint 9 XFCE Drwfan54 Linux Mint 0 11-02-2011 12:43 AM
[ubuntu 10.04] root auto login to console mode 54781 Linux - Desktop 8 05-30-2010 03:30 PM
auto login as root (or other user) in console mode Peter_Peck Linux - General 4 05-01-2009 02:05 AM
Auto login on first console? jon_k Linux - Software 3 11-15-2006 12:42 PM
Is it possible to auto login from console rrautens Linux - Newbie 10 10-15-2003 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:45 AM.

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