LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-03-2006, 07:13 PM   #1
jakubi
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
multiuser console mode via grub option?


I have installed Debian 3.1 Sarge r1 from a pair of DVDs and later on installed the kernel 2.4.27-3-686-smp.

I wish to have the option to boot kernels into a multiuser console mode (a shared wish it seems). My plan is to add an entry to /boot/grub/menu.lst so that the kernel passes the option 3 to init. Something like:

Code:
title      Debian GNU/Linux, kernel 2.4.27-3-686-smp (console)
root      (hd0,2)
kernel      /boot/vmlinuz-2.4.27-3-686-smp root=/dev/hda3 ro 3
initrd      /boot/initrd.img-2.4.27-3-686-smp
savedefault
boot
Then make the required changes in /etc/rc3.d, like removing or renaming to lower case the links S99kdm and S99gdm that I have there. Presumably I should add also a link to a script that starts the console login in this multiuser mode.

Please advice on whether this scheme is sound, which is the proper multiuser console login script that I should link to, and any further step that should be made.

Regards, Alejandro
 
Old 08-04-2006, 05:20 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
all actions you describe are completely ok, Debian by default configures all multiuser runlevels as the same, so using 2,3 or 5 will result in mutliuser with network and X11.

so simply remove the X start entries stated by you from /etc/rc3.d and bott with kernel parameter "3".
there is no script to launch the console logins, as they already are launched by your init process (for more info see "man inittab" and /etc/inittab (be cautionous!)

btw. you can switch from a running X-Window to one of your consoles by pressing Ctrl+Alt+F1 through Ctrl+Alt+F6
(tty1 to tty6) the X normally runs on tty7.

When you are on a tty, you can switch them using Alt+Fn (so Alt+F7 will take you back into X)

If enabled in /etc/syslog.conf (see last but one comment section) you can see your syslog on tty8

I added this line at the very end of by /etc/inittab, so i have a process monitor running on tty9:
Code:
t2:2345:respawn:/usr/bin/top -s </dev/tty9 >/dev/tty9 2>/dev/tty9
this will start top in secure mode in runlevel 2,3,4 and 5 and pipes all input and output to tty9. When the process ends, it will be restarted (=respawn)

HTH,
Florian
 
  


Reply

Tags
console, runlevels, solution


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
From console mode to x graphical mode gubak Linux - Newbie 3 12-13-2005 04:18 PM
Keyboard not working in multiuser mode rajesh123 Red Hat 0 09-10-2004 08:37 PM
Mandrake 9.2's boot process entirely done in console mode before loading in X mode... mishmash Mandriva 6 02-17-2004 09:19 PM
Console option in KDE menu disappeared... nocturna_gr Linux - Newbie 0 02-15-2004 03:25 AM
console mode ? johnyy Linux - Software 1 12-30-2003 09:36 AM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration