Oh, ok. Now I'm with you. Sure, for this you don't want mgetty. Just use
the regular getty that's already on the system. Here's what you do.
First edit /etc/inittab to get init to run a getty on your chosen serial
port (I'll assume for purposes of exposition you want to use the first
serial port, /dev/ttyS0). I'll also assume you want to run the port at
38400bps. Add the following line to /etc/inittab:

T0:23:respawn:/sbin/getty -L ttyS0 38400 vt100

Now to get init running this do 'kill -HUP 1' (init is always the first
process in linux and so will always have the pid 1, the HUP signal tells
init to reread /etc/inittab and act accordingly for any changes). Now
the getty should be running.

On your laptop you'll want to install a terminal program. I prefer seyon
(which is an X app) or minicom (curses app). Hook up your null-modem (Rx
and Tx are swapped) serial cable, run your terminal program, set the bps
to 38400 and you should be in business. You should get a login prompt.

Dinesh Nadarajah wrote:

> Sorry for the earler blank message. What I am trying
> to do is very simple actually. I would like to hookup
> my laptop to the seriel port of the linux machine and
> use a program like hyperterminal on the laptop to
> access the linux machine on COM1 or COM2. How will I
> do that. mgetty seems like a modem based access
> program that looks for dial tone etc. There is no
> info. on how to setup mgetty for this. Have
> sucessfully done this?
>
> Thanks a lot in advance for the advice.
>
> Regards,
>
> -Dinesh
>
> --- "Jens B. Jorgensen"
> <[EMAIL PROTECTED]> wrote:
> > This is easily done by running mgetty on the port.
> > Note that booting your computer
> > keyboard-less can be a problem. Many systems will
> > hang in the BIOS POST if they can't
> > sense the keyboard is present. On some systems this
> > can be turned off in the BIOS
> > setup. This has nothing to do with linux. I believe
> > you can buy little plugs which go
> > in the keyboard connector which will make the system
> > think there's a keyboard present.
> >
> > I also found that I had to modify the kernel source
> > to get linux to boot without a
> > keyboard but this was with a 2.0.X (where X == I
> > don't remember what) in order to get
> > it to work because there was some startup assembly
> > code which was making a call to
> > clear the keyboard buffer and it would cause the
> > system to hang (or crash, can't
> > remember which). Hopefully this is alleviated in
> > more recent kernels. Serial console
> > support should be set up in your kernel config
> > (you're going to need to compile your
> > own kernel) and lilo can be set up for serial
> > console support as well.
> >
> > Good luck,
> >
> > Dinesh Nadarajah wrote:
> >
> > > Hi:
> > >
> > > I am trying to setup several linux systems that I
> > > would like to administer over a network and/or via
> > the
> > > serial port. The serial port based admin. is
> > important
> > > in some cases when network is down etc. Is there
> > any
> > > way of running a Kermit like program to connect to
> > a
> > > linux box through COM ports and login to the
> > system.
> > > This feature (Monitor less, keyboard less, mouse
> > less)
> > > operation is available on IRIX, AIX and Solaris.
> > There
> > > there a similar service I can run in linux.
> > >
> > > Thanks in advance.
> > >
> > > -Dinesh
> >
> > --
> > Jens B. Jorgensen
> > [EMAIL PROTECTED]
> >
> >
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/

--
Jens B. Jorgensen
[EMAIL PROTECTED]


Reply via email to