Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 31st August 2008, 20:00
2smooth 2smooth is offline
Junior Member
Join Date: Oct 2006
Location: Netherlands
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set serial console in single user mode?


I'm running Hardy and i want to configure my system for use of IPMI 2.0 Serial over Lan.

I want configure Text Console Redirection in singel user mode, so that in case of serious problems i can remotely logging with IPMI view.

This is what the manual amongst other things says:

 c) LINUX OS: 
   (i) Add the following line into /etc/inittab. 
       s0:2345:respawn:/sbin/agetty ttyS1 19200 
  (ii) Edit /etc/securetty and add ttyS1

Searching through the forums i understand that ubuntu doesnt use inittab anymore but upstart. And that i have to to look in /etc/event.d

So i guess that i have to modify rc0.

# rc1 - runlevel 1 compatibility
# This task runs the old sysv-rc runlevel 1 ("single-user") scripts.

start on runlevel 1

stop on runlevel [!1]

console output
        set $(runlevel --set 1 || true)
        if [ "$1" != "unknown" ]; then
            export PREVLEVEL RUNLEVEL

        exec /etc/init.d/rc 1
end script

But what should i change?

I'd already post this on Ubuntu forum, but have not had any response
Ubuntu Forum
Reply With Quote
Sponsored Links
Old 31st August 2008, 20:02
2smooth 2smooth is offline
Junior Member
Join Date: Oct 2006
Location: Netherlands
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

after doing some more research i found this article:

HowtoForge: Setting up a serial console

In the comment section someone else added this:

3. On Ubuntu Edgy Eft (6.10) or later, Upstart is used instead of init. To configure ttyS0, create a new entry in /etc/event.d by copying one of the existing tty# entries and modifying it. Example ttyS0:

# ttyS0 - getty
# This service maintains a getty on ttyS0 from the point the system is
# started

start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5
Go to article to read further.

With this knowledge a find out that in single user mode
This script is being run
Which displays a menu

After selecting menu item "root"

This script is being run:
So i thougt this would do the trick

change this line
to this line

/sbin/sulogin /dev/ttyS1
And add ttyS1 to the file /etc/securetty

But unfortunately not.

First the menu after running grub is still being displayed on the console attached to the server.
Second there is some prompt showing on my IPMIview virtual terminal, but i cannot loggin?

Help please?
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Anon-FTP not creating user danie.robberts General 29 24th April 2007 19:35
Bind User, Bind Group set to root? danf.1979 General 2 22nd March 2006 18:18
Users and websites aren't created Glorfindel Installation/Configuration 9 23rd February 2006 05:20
set user login muco General 3 24th January 2006 20:41

All times are GMT +2. The time now is 16:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.