Computing.Net > Forums > Linux > Autologin to Runlevel 3

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Autologin to Runlevel 3

Reply to Message Icon

Name: Dr. Nick
Date: October 11, 2004 at 16:45:42 Pacific
OS: WinXP Pro SP1a
CPU/Ram: P4 2.0Ghz / 1024MB
Comment:

I'm using Fedora Core 2 and I'm wondering if there's a way to automatically login into Runlevel 3. I've already added an option to get to RL3 in GRUB, which works and takes me to the console where it prompts for a username and password.

Now I'd like to have it automatically log in using a user I've already created, then run a shell script.

How can I do this?

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Wolfbone
Date: October 12, 2004 at 16:38:50 Pacific
Reply:

Install mingetty if you're not already using it and use it's 'autologin' option. Modify the tty1 entry in /etc/inittab accordingly.

When it logs in it'll run ~/.bash_profile or whatever as normal but you don't need to be logged in just to run a shell script at start up. The only point of autologin is to reduce inconvenience for interactive users on single user machines.

You don't need to use grub/kernel boot parameters just to get to RL3 at startup either - the correct way to do it is to modify the initdefault line in /etc/inittab


0

Response Number 2
Name: Dr. Nick
Date: October 12, 2004 at 16:47:28 Pacific
Reply:

Thanks. I've done some additional looking and that's what I've found out.

If I change the initdefault to RL3, can I still get to RL5 by running telinit 5?

The reason I ask is that when I change runlevels with telinit I get an error messages saying that the "kernel doesn't support this mode". It usually boots fine anyway, but I'm curious what this error means.

Thanks.


0

Response Number 3
Name: Wolfbone
Date: October 12, 2004 at 19:01:53 Pacific
Reply:

If telinit doesn't work properly with your kernel it's probably a Fedora problem. I've never come across that error before.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Autologin to Runlevel 3

Upgrading to KDE 3.2 on Knoppix 3.3 www.computing.net/answers/linux/upgrading-to-kde-32-on-knoppix-33/25645.html

slamd64 fails to boot after install www.computing.net/answers/linux/slamd64-fails-to-boot-after-install/29309.html

How to autostart tomcat init.d/rc.d www.computing.net/answers/linux/how-to-autostart-tomcat-initdrcd/29307.html