Hi all sorry if this is a long post.
I need to modify a Kubuntu 8.10 machine so that user has the option of booting into a console instead of kdm. The user wants to see this option in the GRUB start screen.
I referred to manpages for grub, init, etc and scoured google for help. there is a lot out there, but most refer to Debian's inittab scheme not the new upstart method.
I finally came up with a solution... that does not work :-)
Having experience only with BSD style inits, I added the following lines to grub's menu.lst, thinking that it would boot up to level 3 which is multi-user console mode:
title Ubuntu 8.10 kernel 2.6.27-11 (console multi-user mode)
kernel /boot/vmlinuz-2.6.27-11-generic root=<long uid number> ro 3
initrd /boot/initrc.img-2.6.27-11-generic
Well it works. All bootup text gets displayed on tty1 (instead of the kdm login window
showing up), and when bootup is finished the login prompt is displayed on tty1.
But then after a few seconds the user is automatically switched to tty7 where the usual kdm login screen is presented. So this means that kdm is also run on level 3.
I then found out that kdm is run for EVERY level except 0,1,6.
I read about update-rc.d and it *seems* that the only option is to remove kdm from
all levels. It is an all-or-nothing option - either bootup to kdm or not, cannot have a choice.
I must have misunderstood something along the way.
The manpage for update-rc.d says to do the following to disable a service:
update-rc.d -f foobar remove
update-rc.d foobar stop 20 2 3 4 5 .
But I don't want to remove kdm, I just want to have it *NOT* run in level 3!
It can keep running on other levels.
The user would prefer not to have to wait for kdm to stop loading then have to switch
to console 1 (with alt-ctrl-F1).
Has anyone done what I'm trying to do?
Any help would be great - it is such a trivial need that brings great frustration!
Thanks.
I need to modify a Kubuntu 8.10 machine so that user has the option of booting into a console instead of kdm. The user wants to see this option in the GRUB start screen.
I referred to manpages for grub, init, etc and scoured google for help. there is a lot out there, but most refer to Debian's inittab scheme not the new upstart method.
I finally came up with a solution... that does not work :-)
Having experience only with BSD style inits, I added the following lines to grub's menu.lst, thinking that it would boot up to level 3 which is multi-user console mode:
title Ubuntu 8.10 kernel 2.6.27-11 (console multi-user mode)
kernel /boot/vmlinuz-2.6.27-11-generic root=<long uid number> ro 3
initrd /boot/initrc.img-2.6.27-11-generic
Well it works. All bootup text gets displayed on tty1 (instead of the kdm login window
showing up), and when bootup is finished the login prompt is displayed on tty1.
But then after a few seconds the user is automatically switched to tty7 where the usual kdm login screen is presented. So this means that kdm is also run on level 3.
I then found out that kdm is run for EVERY level except 0,1,6.
I read about update-rc.d and it *seems* that the only option is to remove kdm from
all levels. It is an all-or-nothing option - either bootup to kdm or not, cannot have a choice.
I must have misunderstood something along the way.
The manpage for update-rc.d says to do the following to disable a service:
update-rc.d -f foobar remove
update-rc.d foobar stop 20 2 3 4 5 .
But I don't want to remove kdm, I just want to have it *NOT* run in level 3!
It can keep running on other levels.
The user would prefer not to have to wait for kdm to stop loading then have to switch
to console 1 (with alt-ctrl-F1).
Has anyone done what I'm trying to do?
Any help would be great - it is such a trivial need that brings great frustration!
Thanks.
Comment