starting console on ttyS0
sktsee
sktsee at tulsaconnect.com
Fri Jul 6 13:37:42 UTC 2007
On Fri, 2007-07-06 at 10:35 +0900, Tomoki Taniguchi wrote:
> I have been trying to get serial console login working on feisty
> server (not desktop).
> I have been following the directions on the following documentation.
> https://help.ubuntu.com/community/SerialConsoleHowto
>
> I have gotten it to redirect the console output
> so that i can watch the start up message
> but i can't get a login message to start up.
>
> according to the doc i am supposed to edit "/etc/inittab"
> but inittab did not exist. so i created one and added the
> "T0:2345:respawn:/sbin/getty -L 115200 ttyS0 vt100"
> line to the file and saved it
>
> as instructed in the doc i ran
> >$ sudo /sbin/telinit q
> checked the console .... nothing
> i rebooted the machine just to be sure...
> same thing, just see the boot message and no login prompt.
>
> i do a
> >$ ps -auxwww |grep tty
> i get
> <snip>
> Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
> root 3580 0.0 0.0 1668 512 tty4 Ss+ 10:03 0:00
> /sbin/getty 38400 tty4
> root 3581 0.0 0.0 1664 508 tty5 Ss+ 10:03 0:00
> /sbin/getty 38400 tty5
> root 3584 0.0 0.0 1664 508 tty2 Ss+ 10:03 0:00
> /sbin/getty 38400 tty2
> root 3594 0.0 0.0 1664 508 tty3 Ss+ 10:03 0:00
> /sbin/getty 38400 tty3
> root 3597 0.0 0.0 1668 508 tty1 Ss+ 10:03 0:00
> /sbin/getty 38400 tty1
> root 3598 0.0 0.0 1668 508 tty6 Ss+ 10:03 0:00
> /sbin/getty 38400 tty6
> tomoki 4080 0.0 0.0 2740 760 pts/1 R+ 10:27 0:00 grep tty
> <snip>
> doesn't seem to be a getty running on ttyS0.
>
> next i manually ran the getty command
> >$ sudo /sbin/getty -L 115200 ttyS0 vt100
> i finially got a login prompt on the serial console.
> I can login and do stuff...
> i do a
> >$ ps -auxwww |grep tty
> again and i get the exact same thing as before no getty listed for ttyS0
> but i am definitely got a console running on serial right now.
>
> anyway. how do i get it so i can get a respawning getty on ttyS0?
>
> TIA,
> Tomoki
>
Take a look at /usr/share/doc/upstart-compat-sysv/README.Debian.gz under
the section of "How do I increase the number of gettys?".
--
sktsee
More information about the ubuntu-users
mailing list