This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/html/mgetty.html

190 lines
5.6 KiB
HTML
Raw Normal View History

2001-10-22 17:33:55 +00:00
<HTML>
2002-02-16 21:44:25 +00:00
<!-- $Id$ -->
2001-10-22 17:33:55 +00:00
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO 8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<META name="author" lang="en" content="Michiel Broek">
<META name="copyright" lang="en" content="Copyright Michiel Broek">
<META name="description" lang="en" content="MBSE BBS Manual">
<META name="keywords" lang="en" content="MBSE BBS, MBSE, BBS, manual, fido, fidonet, gateway, tosser, mail, tic, mailer">
<TITLE>Setup mgetty for MBSE BBS.</TITLE>
<LINK rel=stylesheet HREF="manual.css">
</HEAD>
<BODY>
<BLOCKQUOTE>
2002-01-07 22:11:33 +00:00
<h5>Last update 07-Jan-2002</h5>
2001-10-22 17:33:55 +00:00
<P>&nbsp;<P>
<H1 ALIGN="CENTER">Setup mgetty for MBSE BBS</H1>
<P>
To handle incoming calls you can use <strong>mgetty</strong> written by
Gert Doering, (gert@greenie.muc.de). Others may work. You have to compile
<strong>mgetty</strong> with the -DFIDO flag to accept Fidonet mailer calls.
2001-12-09 16:29:03 +00:00
If you want incoming PPP calls as well, add the -DAUTO_PPP as well. If you want
to use ISDN, make sure you have ISDN support compiled in the kernel.
Below you can see the mgetty.config and login.config for mgetty that you may
need.
I have also included a part of my /etc/inittab to show how <strong>mgetty
2001-10-22 17:33:55 +00:00
</strong> will spawn from <strong>init</strong>.
<P>
<HR>
<PRE>
2001-12-09 16:29:03 +00:00
# inittab This is only a part of /etc/inittab!
2001-10-22 17:33:55 +00:00
# In this example it runs in runlevel 3 and 4.
#
# Serial lines
s1:34:respawn:/usr/local/sbin/mgetty -i /opt/mbse/etc/issue ttyS0
#
2001-12-09 16:29:03 +00:00
# ISDN lines, two channels
I1:34:respawn:/usr/local/sbin/mgetty -i /opt/mbse/etc/issue ttyI0
I2:23:respawn:/usr/local/sbin/mgetty -i /opt/mbse/etc/issue ttyI1
#
2001-10-22 17:33:55 +00:00
# End of /etc/inittab
</PRE>
<HR>
<PRE>
# mgetty configuration file: mgetty.config
#
# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below
#
# set the global debug level to "4" (default from policy.h)
debug 4
#
# set the local fax station id
fax-id ++31-255-515973
#
# access the modem(s) with 38400 bps
speed 38400
#
# use these options to make the /dev/tty-device owned by "uucp.uucp"
# and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
port-owner uucp
port-group uucp
port-mode 0664
#
# use these options to make incoming faxes owned by "root.uucp"
# and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
fax-owner root
fax-group uucp
fax-mode 0640
#
#
# ----- port specific section -----
#
# Here you can put things that are valid only for one line, not the others
#
# Dynalink 1428EXTRA faxmodem at port 0 (COM1).
#
port ttyS0
speed 57600
switchbd 19200
modem-type cls2
init-chat "" \d\dAT&F&C1&D3X4W2B0M0Q0V1H0&K3S0=0 OK
#
2001-12-09 16:29:03 +00:00
#
# ISDN ports.
# With AT&E you set the MSN/EAZ the device should listen to.
# This should for an MSN be your telephone number _with_ the area
# code but _without_ the leading 0.
# For an EAZ the last digit of your EAZ.
#
port ttyI0
modem-type data
init-chat "" ATZ OK AT&E714015437&W0 OK AT&B512 OK
#
port ttyI1
modem-type data
init-chat "" ATZ OK AT&E714017198&W0 OK AT&B512 OK
#
2001-10-22 17:33:55 +00:00
# end of mgetty.config
</PRE>
<HR>
<PRE>
# login.config
#
# This is a sample "login dispatcher" configuration file for mgetty
#
# Format:
# username userid utmp_entry login_program [arguments]
#
# Meaning:
# for a "username" entered at mgettys login: prompt, call
# "login_program" with [arguments], with the uid set to "userid",
# and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
#
# Use this one for fido calls (login name /FIDO/ is handled specially)
#
# mgetty has to be compiled with "-DFIDO", otherwise a fido call won't
# be detected.
#
/FIDO/ mbse fido /opt/mbse/bin/mbcico @
#
#
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
# mgetty has to be compiled with "-DAUTO_PPP" for this to work.
# Warning: Case is significant, AUTOPPP or autoppp won't work!
# Consult the "pppd" man page to find pppd options that work for you.
# See also PPP-HOWTO on how to set this up.
#
/AutoPPP/ - a_ppp /etc/ppp/paplogin
#
# This is the "standard" behaviour - *dont* set a userid or utmp
# entry here, otherwise /bin/login will fail!
# This entry isn't really necessary: if it's missing, the built-in
# default will do exactly this.
2002-01-07 22:11:33 +00:00
# Here we replace the standard login with MBSE BBS login:
2001-10-22 17:33:55 +00:00
#
2002-01-07 22:11:33 +00:00
* - - /opt/mbse/bin/mblogin @
2001-10-22 17:33:55 +00:00
#
#
# end of login.config
</PRE>
<HR>
<P>
2002-01-07 22:11:33 +00:00
I have added the <strong>-i /opt/mbse/etc/issue</strong> options to the
<strong>mgetty</strong> line in /etc/inittab.
The file /opt/mbse/etc/issue is a plain textfile to give a small banner just
before the login prompt.
It could look like this:<br>
2001-10-22 17:33:55 +00:00
<pre>
.--. Welcome at MBSE BBS Development.
|o_o | --------------------------------
|:_/ |
// \ \ This may or may not work today...
(| | )
/'\_ _/`\
\___)=(___/
Powered by Linux.
</pre>
There is a default /opt/mbse/etc/issue installed by the installation script.
You need to edit this to insert your bbs name in it or even completely replace
this file for a nicer one. Don't make it too big, don't put control characters
2002-01-07 22:11:33 +00:00
or ANSI sequences in it as this may prevent some mailers to connect to your system.
2001-10-22 17:33:55 +00:00
<p>
I discovered that some systems don't have the right permissions on the serial
port for MBSE BBS. To fix this type the following commands:
<pre>
su
password: <em>enter root password here</em>
chmod 666 /dev/ttyS0
chown uucp.uucp /dev/ttyS0
exit
</pre>
2001-12-09 16:29:03 +00:00
Note that /dev/ttyS0 is for COM1, /dev/ttyS1 for COM2 etc. This is not a nice
solution. If youre system allows it, try to add the the user <b>mbse</b> as
a legal user of your serial ports. Most distributions have some tool for this.
2001-10-22 17:33:55 +00:00
<p>
2002-01-07 22:11:33 +00:00
<A HREF="index.htm"><IMG SRC="images/b_arrow.gif" ALT="Back" Border="0">Go Back</A>
2001-10-22 17:33:55 +00:00
</BLOCKQUOTE>
</BODY>
</HTML>