| View previous topic :: View next topic |
| Author |
Message |
heavytull Guest
|
Posted: Sat Nov 01, 2008 9:33 am Post subject: run level 4 and kdm |
|
|
I'm using my linux box in runlevel 4, so it boots straight into the X. I
set kdm as the default password manager. It enables me to use many X
sessions without logging ans switching between them with Ctrl+Alt+Fn
(n>=7).
Ok, that's nice. But I noticed that I couldn't anymore logging into VT. It
is useful in case the X window crashes.
I would like to know whether that's normal that i cannot anymore logging
into VT. |
|
| |
|
Back to top |
Man-wai Chang ToDie (33.6 Guest
|
Posted: Sat Nov 01, 2008 9:33 am Post subject: Re: run level 4 and kdm |
|
|
heavytull wrote:
| Quote: | I'm using my linux box in runlevel 4, so it boots straight into the X. I
Ok, that's nice. But I noticed that I couldn't anymore logging into VT. It
is useful in case the X window crashes.
|
Are you X running in failsafe mode?
--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 8.04.1) Linux 2.6.26.7
^ ^ 17:26:01 up 3 days 17:45 2 users load average: 1.04 1.07 1.08
不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa |
|
| |
|
Back to top |
Bit Twister Guest
|
Posted: Sat Nov 01, 2008 1:00 pm Post subject: Re: run level 4 and kdm |
|
|
On 01 Nov 2008 09:17:53 GMT, heavytull wrote:
| Quote: | I'm using my linux box in runlevel 4, so it boots straight into the X. I
set kdm as the default password manager. It enables me to use many X
sessions without logging ans switching between them with Ctrl+Alt+Fn
(n>=7).
Ok, that's nice. But I noticed that I couldn't anymore logging into VT. It
is useful in case the X window crashes.
I would like to know whether that's normal that i cannot anymore logging
into VT.
|
For a Slackware install, yes.
Learn to use the grub editor mode to change runlevels at the grub prompt,
or add a separate runlevel selection to the grub menu.
Example snippet from my Mandriva Linux selections:
title failsafe
kernel (hd0,10)/boot/vmlinuz BOOT_IMAGE=failsafe root=LABEL=vm2008_1 failsafe
initrd (hd0,10)/boot/initrd.img |
|
| |
|
Back to top |
Bit Twister Guest
|
Posted: Sat Nov 01, 2008 4:17 pm Post subject: Re: run level 4 and kdm |
|
|
On 01 Nov 2008 15:48:35 GMT, heavytull wrote:
Then create a lilo stanza for a single user.
Duplicate current stanza, change title to single, add single to end of line.
Other option is add runlevel number to end of line.
run "lilo -v" after changes. |
|
| |
|
Back to top |
heavytull Guest
|
Posted: Sat Nov 01, 2008 8:45 pm Post subject: Re: run level 4 and kdm |
|
|
On Sat, 01 Nov 2008 17:27:05 +0800, Man-wai Chang ToDie (33.6k) wrote:
| Quote: | heavytull wrote:
I'm using my linux box in runlevel 4, so it boots straight into the X.
I Ok, that's nice. But I noticed that I couldn't anymore logging into
VT. It is useful in case the X window crashes.
Are you X running in failsafe mode?
|
no |
|
| |
|
Back to top |
heavytull Guest
|
Posted: Sat Nov 01, 2008 8:48 pm Post subject: Re: run level 4 and kdm |
|
|
On Sat, 01 Nov 2008 13:00:38 +0000, Bit Twister wrote:
| Quote: | On 01 Nov 2008 09:17:53 GMT, heavytull wrote:
I'm using my linux box in runlevel 4, so it boots straight into the X.
I set kdm as the default password manager. It enables me to use many X
sessions without logging ans switching between them with Ctrl+Alt+Fn
(n>=7).
Ok, that's nice. But I noticed that I couldn't anymore logging into VT.
It is useful in case the X window crashes. I would like to know whether
that's normal that i cannot anymore logging into VT.
For a Slackware install, yes.
Learn to use the grub editor mode to change runlevels at the grub
prompt, or add a separate runlevel selection to the grub menu.
Example snippet from my Mandriva Linux selections:
title failsafe
kernel (hd0,10)/boot/vmlinuz BOOT_IMAGE=failsafe root=LABEL=vm2008_1
failsafe initrd (hd0,10)/boot/initrd.img
|
i'm using lilo |
|
| |
|
Back to top |
Lew Pitcher Guest
|
Posted: Sat Nov 01, 2008 8:55 pm Post subject: Re: run level 4 and kdm |
|
|
On November 1, 2008 09:00, in alt.os.linux, Bit Twister
(BitTwister@mouse-potato.com) wrote:
| Quote: | On 01 Nov 2008 09:17:53 GMT, heavytull wrote:
I'm using my linux box in runlevel 4, so it boots straight into the X. I
set kdm as the default password manager. It enables me to use many X
sessions without logging ans switching between them with Ctrl+Alt+Fn
(n>=7).
Ok, that's nice. But I noticed that I couldn't anymore logging into VT.
It is useful in case the X window crashes.
I would like to know whether that's normal that i cannot anymore logging
into VT.
For a Slackware install, yes.
|
For a Slackware install, *no*.
VT6 is now, and has (almost) always been, available as a getty login under
Slackware's runlevel 4. In fact, if you look at Slackware's inittab, you'll
find...
# These are the standard console login getties in multiuser mode:
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
and
# 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.
x1:4:respawn:/etc/rc.d/rc.4
Note the comment ahead of the x1 entry, and that the c6 agetty runs when the
runlevel is 4.
[snip advice that doesn't apply to Slackware]
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------ |
|
| |
|
Back to top |
Lew Pitcher Guest
|
Posted: Sat Nov 01, 2008 9:00 pm Post subject: Re: run level 4 and kdm |
|
|
On November 1, 2008 05:17, in alt.os.linux, heavytull
(heavytull@hotmail.com) wrote:
| Quote: | I'm using my linux box in runlevel 4, so it boots straight into the X. I
set kdm as the default password manager. It enables me to use many X
sessions without logging ans switching between them with Ctrl+Alt+Fn
(n>=7).
Ok, that's nice. But I noticed that I couldn't anymore logging into VT. It
is useful in case the X window crashes.
I would like to know whether that's normal that i cannot anymore logging
into VT.
|
OK, so go edit your /etc/inittab, and change your VT getty entries so that
(at least) one runs during runlevel 4.
In the following example, VT5's getty only runs during runlevels 1, 2, 3,
and 5 while the VT6 getty (the example you want to follow) runs during
runlevels 1, 2, 3, *4*, and 5.
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
Save your /etc/inittab changes, and then 'telinit q' to have init re-examine
the inittab for changes (see telinit( - "man 8 telinit")
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------ |
|
| |
|
Back to top |
Lew Pitcher Guest
|
Posted: Sat Nov 01, 2008 9:31 pm Post subject: Re: run level 4 and kdm |
|
|
On November 1, 2008 12:17, in alt.os.linux, Bit Twister
(BitTwister@mouse-potato.com) wrote:
| Quote: | On 01 Nov 2008 15:48:35 GMT, heavytull wrote:
i'm using lilo
Then create a lilo stanza for a single user.
[snip unnecessary advice] |
heavytull:
When the boot presents you with the LILO prompt, hit the left "Alt" key.
This will bring you to a prompt, where you can type in the info you need.
If your lilo boot uses label "Linux", then entering "Linux single" to the
prompt will cause the system to boot to runlevel 1. Entering "Linux 3"
instead will cause the system to boot to runlevel 3. As for the other
runlevels, you get the picture.
Anyway, instead of fuxing with runlevels, etc., just fix your /etc/inittab
so that one or more virtual terminals have getty running during runlevel 4.
See the examples I posted (to this subject) earlier. And, read the
inittab(5) and telinit( manpages for instructions on how to properly
implement the change.
HTH
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------ |
|
| |
|
Back to top |
heavytull Guest
|
Posted: Sun Nov 02, 2008 11:50 pm Post subject: Re: run level 4 and kdm |
|
|
On Sat, 01 Nov 2008 11:55:18 -0400, Lew Pitcher wrote:
....
| Quote: | # 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.
x1:4:respawn:/etc/rc.d/rc.4
Note the comment ahead of the x1 entry, and that the c6 agetty runs when
the runlevel is 4.
ho yes, I actually added some change to the inittab to make the computer |
booting into runlevel4, but I didn't take time to read the comments.
Yes tty6 is actually ok for logging in.
> [snip advice that doesn't apply to Slackware] |
|
| |
|
Back to top |
Lew Pitcher Guest
|
Posted: Mon Nov 03, 2008 12:56 am Post subject: Re: run level 4 and kdm |
|
|
On November 2, 2008 12:50, in alt.os.linux, heavytull
(heavytull@hotmail.com) wrote:
| Quote: | On Sat, 01 Nov 2008 11:55:18 -0400, Lew Pitcher wrote:
...
# 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.
x1:4:respawn:/etc/rc.d/rc.4
Note the comment ahead of the x1 entry, and that the c6 agetty runs when
the runlevel is 4.
ho yes, I actually added some change to the inittab to make the computer
booting into runlevel4,
|
That would be the :initdefaut: line. In Slackware, it defaults to
id:3:initdefault:
but it is common to change it to
id:4:initdefault:
to get "X11 with KDM/GDM/XDM (session managers)"
| Quote: | but I didn't take time to read the comments.
Yes tty6 is actually ok for logging in.
|
Good. I'm glad to have helped.
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------ |
|
| |
|
Back to top |
|