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
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.
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.
Summary: Needs some help. I did a HD install of Knoppix 3.3 on my old machine. Works quite well. It currently has KDE 3.1.4 and I have a CD from Linux Format Magazine with the deb packages of KDE 3.2. I...
Summary: Hi 3Dave, Tks for your advice. I have my problem solved as follows:- - rebooted PC with slamd64-11.0-installer - saved LILO on floppy - booted floppy to start slamd64-11.0 - edited /etc/lilo.conf - c...
Summary: Add the command to your rc.local if you are running one. What command are you using to start it? Does the /etc/init.d script work OK? Do you have BUM installed (Boot Up Manager)? Alternatively create ...