Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old November 20th, 2006   #1
kerry_s
WTF?
 
Join Date: Jul 2006
Location: Lost!
Beans: 7,154
Another autologin how to

1

Last edited by kerry_s; August 19th, 2008 at 08:39 PM..
kerry_s is offline   Reply With Quote
Old April 24th, 2007   #2
VileTimes
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 16
Re: Another autologin how to

Just a note for anyone trying to get this autologin method working in Feisty, follow all of the steps as per an Edgy install with the exception of editing the tty1 file. Instead of adding a line like this:

Code:
respawn /sbin/getty -n -l /usr/bin/autologin 38400 tty1

... make sure your edit looks like this:

Code:
respawn

exec /sbin/getty -n -l /usr/bin/autologin 38400 tty1
Here is my tty1 file in its entirety:

Code:
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system
start on runlevel 2
start on runlevel 3
start on runlevel 4
start on runlevel 5

stop on runlevel 0
stop on runlevel 1
stop on runlevel 6

stop on shutdown

respawn

exec /sbin/getty -n -l /usr/bin/autologin 38400 tty1
Thanks again for the howto and I hope this helps someone.
VileTimes is offline   Reply With Quote
Old June 13th, 2007   #3
xi0n0ix
First Cup of Ubuntu
 
xi0n0ix's Avatar
 
Join Date: Jun 2007
Beans: 5
Ubuntu 7.04 Feisty Fawn
Re: Another autologin how to

Hello,

Great tutorial! Worked like a charm!

I was just wondering, how would I automatically start a program (PD for example) after auto startx completes...

So when I (re)boot the system I am automatically logged in, X automatically starts, and then my program automatically starts and runs..

Do I just add a line at the bottom of my ~/.profile like 'exec pd' or do I need more to make sure that X is started properly and has finished.

thanks
mark
xi0n0ix is offline   Reply With Quote
Old June 18th, 2007   #4
ways
5 Cups of Ubuntu
 
Join Date: Feb 2006
Location: Norway
Beans: 21
Ubuntu Intrepid Ibex (testing)
Re: Another autologin how to

Quote:
Originally Posted by xi0n0ix View Post
Hello,

Great tutorial! Worked like a charm!

I was just wondering, how would I automatically start a program (PD for example) after auto startx completes...

So when I (re)boot the system I am automatically logged in, X automatically starts, and then my program automatically starts and runs..

Do I just add a line at the bottom of my ~/.profile like 'exec pd' or do I need more to make sure that X is started properly and has finished.

thanks
mark
you add the program name and an '&' in ~/.xprofile

Code:
gaim &
ways is offline   Reply With Quote
Old July 8th, 2007   #5
regomodo
Has an Ubuntu Drip
 
Join Date: Mar 2007
Location: #
Beans: 720
Send a message via AIM to regomodo
Re: Another autologin how to

something is wrong with this "howto". It works fine until i reboot where tty1 hangs at

# running local bootscripts (etc/rc.local)

I have to get into tty2 and then login, thus rendering the autologin procedure useless.
__________________
#
regomodo is offline   Reply With Quote
Old July 8th, 2007   #6
kerry_s
WTF?
 
Join Date: Jul 2006
Location: Lost!
Beans: 7,154
Re: Another autologin how to

now a days you should use gdm, it use's less resources and everything is so tied into a login manager, that when you don't use one you get all these little quirks/errors that continue to build up. i've run several tests and with gdm it use's less resources then startx, i have no idea why.
kerry_s is offline   Reply With Quote
Old July 8th, 2007   #7
VileTimes
5 Cups of Ubuntu
 
Join Date: Feb 2007
Beans: 16
Re: Another autologin how to

Quote:
Originally Posted by regomodo View Post
something is wrong with this "howto". It works fine until i reboot where tty1 hangs at

# running local bootscripts (etc/rc.local)

I have to get into tty2 and then login, thus rendering the autologin procedure useless.
I was experiencing the same issue until I changed the tty1 file.

Did you try what I wrote in my reply up above?
VileTimes is offline   Reply With Quote
Old July 9th, 2007   #8
regomodo
Has an Ubuntu Drip
 
Join Date: Mar 2007
Location: #
Beans: 720
Send a message via AIM to regomodo
Re: Another autologin how to

Quote:
Originally Posted by VileTimes View Post
I was experiencing the same issue until I changed the tty1 file.

Did you try what I wrote in my reply up above?
@ viletimes - no i didn't see yours. I'll give it another try. Cheers for the heads up
__________________
#
regomodo is offline   Reply With Quote
Old September 3rd, 2007   #9
jkat
First Cup of Ubuntu
 
jkat's Avatar
 
Join Date: Jun 2007
Location: Calgary, Canada
Beans: 1
Ubuntu 6.06 Dapper
Re: Another autologin how to

Excellent article. One small error, though, in the inittab changes for Dapper: a colon is needed after respawn, ie.

Code:
1:2345:respawn /sbin/getty -n -l /usr/bin/autologin 38400 tty1
should be

Code:
1:2345:respawn:/sbin/getty -n -l /usr/bin/autologin 38400 tty1
Otherwise at boot init responds with errors of the action field being too long.
__________________
Jan Kat
jan-kat.blogspot.com
jkat is offline   Reply With Quote
Old December 5th, 2007   #10
UmbraMalison
First Cup of Ubuntu
 
Join Date: Dec 2007
Beans: 6
Xubuntu 7.04 Feisty Fawn
Re: Another autologin how to

Hi,

i just can't get this to work on my machine.

im using feisty fawn, and i took note of VileTimes' tty information. but to no avail.

i've read and re-read the entire post. but perhaps there is something i keep missing.

my error is:

init: tty1 main process (3279) terminated with status 1

the tty1 is completely dead, i have to change to tty2 to do anything.

Has anyone else seen this before? perhaps some recent updates has caused my machine to behave differently to the fesity fawn that VileTimes used??

any help would be great, thanks
UmbraMalison is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:02 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry