SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# Runlevel 4 used to be for an X window only system, until we discovered
# that it throws init into a loop that keeps your load avg at least 1 all
# the time. Thus, there is now one getty opened on tty6. Hopefully no one
# will notice. ;^)
# It might not be bad to have one text console anyway, in case something
# happens to X.
Well, I noticed, and I think it sucks. I would really like to get those other consoles (tty2 through tty5) open in runlevel 4. Does anyone know how to do it? I think Redhat does it in runlevel 5...
after a couple of reboots, it's working now without error (it errored the first two times with something about not a tty and where are you? but now it's working fine).
Great post. I was wondering about this for a while. Coming as a newbie from Red Hat (used for about a week), I was wondering how to simulate the same behavior. There is nothing like virtual console 1 to do all the cool stuff in console mode.
I had two things to add that I used your info to expand on, you could add a " &" onto the window manager call, so then you could login on console 1 if you wished (I couldn't before), and also if you'd rather not have the machine's boot information showing if physical access to machine is insecure (edit: I was wrong, this did wierd things when I tried it - adding "clear" after window manager call).
My only questions is does this configuration have the "load" problem mentioned in inittab?
I've encountered a problem with this setup. Ctrl + Alt + Backspace in X kills your X session, but another immediately starts, and the same for 'killall X', so you would have to switch to another runlevel to get rid of it. Any way around this?
Originally posted by stevenhasty I've encountered a problem with this setup. Ctrl + Alt + Backspace in X kills your X session, but another immediately starts, and the same for 'killall X', so you would have to switch to another runlevel to get rid of it. Any way around this?
Well, with the graphical login X get's
started (and "monitored") by the manager
(gdm, kdm, xdm, ...) and those restart the X
session ... to get rid of it, just kill the respective
manager :}
killall gdm
You can do it in runlevel 4 - change these lines in /etc/inittab:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
To:
c1:12345:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
c7:1235:respawn:/sbin/agetty 38400 tty7 linux
c8:12345:respawn:/sbin/agetty 38400 tty8 linux
c9:12345:respawn:/sbin/agetty 38400 tty9 linux
c10:12345:respawn:/sbin/agetty 38400 tty10 linux
c11:12345:respawn:/sbin/agetty 38400 tty11 linux
c12:12345:respawn:/sbin/agetty 38400 tty12 linux
This gives you F8 - F12
To allow root login on the extra consoles, add them to /etc/securetty
Cyclo--I just made the changes you suggested. I have yet to test in runlevel 4, but in runlevel 3, tty7 won't hold an X session if you switch out of it. shouldn't the c7 line be excluded?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.