public inbox for blinux-list@redhat.com
 help / color / mirror / Atom feed
From: Nicolas Pitre <nico@cam.org>
To: Dave Mielke <dave@mielke.cc>
Cc: blinux-list@redhat.com
Subject: re: virtual dumbness
Date: Mon, 25 Mar 2002 09:07:18 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0203250846450.2251-100000@xanadu.home> (raw)
In-Reply-To: <Pine.LNX.4.30.0203242350040.1009-100000@dave.private.mielke.cc>

On Mon, 25 Mar 2002, Dave Mielke wrote:

> You can, somewhat simplistically, think of each virtual console as being the
> root of an entirely different process tree. You're starting a shell in virtual
> console 1 (by starting it from rc.local), and sending all of the output from
> that sehll (and its descendant processes) to the VB2+.

If I'm not mistaken, the VB2+ sits on a serial port.  That serial port is 
totally separae from virtual consoles.  The serial port can be a "console" 
of its own.  However, Linux presents a console abstraction for the 
computer's video output and keyboard input.  The fact that they are called 
virtual consoles is because the kernel fakles multiple console terminals but 
all multiplexed on the same screen and keyboard.

Therefore, if a process (or better yet a getty) is started on a serial port, 
then it is considered as yet another console separate from the others.  To 
multiplex multiple "consoles" over a serial port, then the only solution is 
to use the 'screen' program.

More on that shell started from rc.local: this is really not the best way to 
handle this.  Instead, the following line should be added to /etc/inittab:

S0:12345:respawn:/sbin/getty ttyS0 9600 vt100

or, if agetty is installed on your system instead of getty:

S0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100

One of those lines, along with the already existing ones for the virtual
consoles, will add another console device to the existing ones, i.e. through
the serial port.  All console signals (CTRL-Z & al) will work without any
trouble, etc.


Nicolas




  reply	other threads:[~ UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Brian Tew
 ` Dave Mielke
   ` Nicolas Pitre [this message]
  -- strict thread matches above, loose matches on Subject: below --
 Brian Tew
 ` L. C. Robinson
 Brian Tew
 Brian Tew
 ` Dave Mielke
 Brian Tew
 ` Dave Mielke
 Brian Tew
 ` Henry Yen
 ` Dave Mielke
 ` A. R. Vener
 ` Janina Sajka
   ` Dave Mielke
     ` Janina Sajka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0203250846450.2251-100000@xanadu.home \
    --to=nico@cam.org \
    --cc=blinux-list@redhat.com \
    --cc=dave@mielke.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).