On Mon, 19 Feb 2001 00:41:35 +0100, Michael Polak wrote:

> Today, I was playing with serial cable connection my HP-CX
> paltop to PC, and I failed to setup serial connection
> between COMTOOL as terminal on DOS (HP-CX) side and MINICOM
> on Linux side (/dev/modem linking to /dev/ttyS1, where laplink
> is connected...)

> Is it possible to setup PPP connection over standard HP-CX(LX)
> laplink cable ? I am not sure if I don't need special
> "crossed" cable, ie. I am not sure if null-modem cable and
> laplink cables are the same, or not.

An ordinary null modem cable can be used to setup PPP connection.
And yes, null-modem and laplink serial cables are the same.

If ttyS0 (aka COM1) is where the null modem cable is located on the
Linux server, here's what I remember doing with Red Hat 6.x

- you need mgetty to be installed ("rpm -q mgetty" to see if it is
installed) to monitor and answer the serial line. Edit /etc/inittab
and put this line

    #Null modem link
    S0:2345:respawn:/sbin/mgetty -r -D s 57600 /dev/ttyS0

where 57600 is the baud rate

- you (obviously) must have ppp installed to order for Linux to
  provide PPP services

  In /etc/ppp , you need two files

* options.ttyS0 :

  #90.0.0.1:90.0.0.10
  local

  90.0.0.1 is the Linux server IP and 90.0.0.10 is the IP assigned to
  the null modem link

* options.server :

  asyncmap 0
  -detach
  crtscts
  lock
  noauth
  login
  ms-dns 90.0.0.1     ; replace with your DNS
  require-pap
  refuse-chap

* The line "require-pap" in options.server means you'll be using PAP to
  authenicate users. You should have a pap-secrets file in /etc/ppp
  like this :

* * "" *
root * - *
bin  * - *
daemon * - *
.....
....

which essentially means : the first allows anyone with an account can
be authenicated. The rest of the lines says that root, bin and deamon
cannot login using PAP. You should also add these users in a similar
fashion so these wont be used : adm, lp , gopher, uucp, nobody, ftp
shutdown (any user listed in /etc/passwd who shouldn't be allowed to
login)

* finally (hoping nobody is totally confused as yet :-) )
  edit the remarked line in the file /etc/mgetty+sendfax/login.config :

  /AutoPPP/ - - /usr/sbin/pppd /etc/ppp/options.server

* create a login script to launch pppd immediately for those
  users using a terminal program to login :

  /usr/sbin/pppd /etc/ppp/options.server

  and modify /etc/passwd for users to use that login script

Whew, I think that it .......hope I remembered everything :-)

Dev Anand Teelucksingh
Interesting DOS programs at http://www.opus.co.tt/dave
Trinidad and Tobago Computer Society at http://www.ttcsweb.org

Reply via email to