Linux - Jnos Setup and Configuration HOW-TO

By John Martin KF8KK

Basic Autoexec.nos configurations

 

The autoexec.nos file is the granddaddy of all the jnos configuration files.

You are well advised to peruse the full jnos documentation and look up the various commands and see the options and particular functions that are available to you.  There are many more potential commands that can be added to the autoexec.nos you see here to make your system function at peak performance.

The autoexec.nos is NOT a germain file that can simply be copied from one jnos system to another.  This file MUST be modified for your particular setup.

As with the other files, once a '#' is detected on a line, jnos assumes any text remaining on the line is a comment.

All commands in the actual file is in BRIGHT BLUE,  comments that reside in the file are in DARK BLUE.  Comments  made for this web page are in GREEN. 

Parameters you MUST change are in BOLD BRIGHT BLUE! (though there are many more you should change so that you don't confuse the people who use your system).

Please also note that any email addresses in the file have been mucked up so I don't start getting spammed because of this.

 

#
# autoexec.nos for linux
#
#
# MEMORY MANAGEMENT
#==================
#

log off
#
#
# IDENTITY
#=========

ax25 mycall KF8KK-3  [as you would expect... mycall, myalias, and bbs calls]
ax25 alias KKBBS
ax25 bbs KF8KK-4
hostname hamgate.leelanau.ampr.org.
[don't forget the trailing period!]
#
# ----------------------------------------------
# ETHERNET
#=========

attach tun tun0 1500 0
ifconfig tun0 ipaddress 192.168.1.12 
[This is the jnos address on your LAN!]
ifconfig tun0 netmask 255.255.255.0
ifconfig tun0 mtu 1500
pause 2

#
shell /sbin/ifconfig tun0 192.168.1.112 pointopoint 192.168.1.12 mtu 1500 up
[On the above line you need to change the '192.168.1.112' to the LINUX IP address on your LAN
and change the '192.168.1.12' to the JNOS IP address on your LAN]

pause 5
shell /sbin/arp -s 192.168.1.12 00:aa:00:5c:e4:c8 pub
[On the above line you need to change the '192.168.1.12' to the JNOS IP address on your LAN
and also change the '00:aa:00:5c:e4:c8' to the MAC address of your network card-- see special
comment above for how to get the MAC address]

#
echo "**** tun0 has been configured and arp broadcasted ...."
pause 3

#
#
# ENCAP
#======

ifconfig encap ipaddress 44.102.152.1 [You need to enter your ham TCP/IP address here]
ifconfig encap netmask 255.255.255.255
ifconfig encap broadcast 255.255.255.255

#
echo "********** ENCAP has been configured.........."
pause 5

#
#shell /sbin/setserial /dev/ttyS3 port 0x000
#shell /sbin/setserial /dev/ttyS0 port 0x2e8 irq 10 uart 16550A
[In my case, I am running an internal AEA PCB88 TNC which has an interrupt conflict with
com:1.  I need to run the /sbin/setserial command to change the interrupts and ports around
so I can use my first  motherboard serial port as COM1.]

#
echo "******* Serial port adjustments made......"
pause 3

#
# COMM PORT 1 (external MFJ1278)
#============

ip address 44.102.152.1 [You can provide each port with an individual IP address if you want]
attach asy ttyS0 - ax25 145.09 4096 256 9600
[This is a standard com-1 TNC hookup]
[The '145.09' in that line is the name we use in jnos to address the port. You will likely want
to change the '145.09' to something more specific to your system.  If you do that, you MUST
change all references to '145.09' throughout the Autoexec.nos and routes.lcl files to reflect
the change!]

param 145.09 up # 130 (129 = down)
param 145.09 txd 60 # 1
[These are parameters sent to the TNC in KISS mode as needed]
param 145.09 persist 228 # 2
param 145.09 slot 7 # 3
param 145.09 txt 10 # 4
param 145.09 5 0 # 5 0=half 1=full duplex
param 145.09 dtr 1 # 8
param 145.09 rts 1 # 9

# param <intfc> 255 # 255 = kiss off
#
#
#
# COMM PORT 2 (external PK232)
#============

ip address 44.102.152.1
attach asy ttyS1 - ax25 80M 4096 256 9600
[This is for an experimental HF port that jnos called '80M']
param 80M up # 130 (129 = down)
param 80M txd 60 # 1
param 80M persist 128 # 2
param 80M slot 8 # 3
param 80M txt 10 # 4
param 80M 5 0 # 5 0=half 1=full duplex
param 80M dtr 1 # 8
param 80M rts 1 # 9

# param <intfc> 255 # 255 = kiss off
#
#
#
# COMM PORT 3 (internal PK88)
#============

ip address 44.102.152.1
attach asy ttyS2 - ax25 RF 4096 256 1200
[This is for my primary UHF backbone port called 'RF'.  The internal PK88 is rather
cumbersome to setup and so when I got it to work at 1200 baud between the TNC
and the computer, I figured I was lucky and left it that way.  It's not ideal, but I have
only so much time to play with such things.]

param RF up # 130 (129 = down)
param RF txd 60 # 1
param RF persist 228 # 2
param RF slot 7 # 3
param RF txt 10 # 4
param RF 5 0 # 5 0=half 1=full duplex
param RF dtr 1 # 8
param RF rts 1 # 9

# param <intfc> 255 # 255 = kiss off
#
#
#--------------------------------------
# INTERFACE DESCRIPTIONS
#=======================

ifc tun0 descript "Ethernet to the local lan" [descriptions are shown with the port names when someone issues a P command]
ifc encap descript "IPIP Encapulation interface"
ifc RF descript "Primary VHF packet (145.07MHz via 433.1MHz backbone"
ifc 80M descript "Experimental 3.610MHz HF packet port"
ifc 145.09 descript "145.09mhz legacy packet"

#
ifc RF ax25 bct "IOOK Internet HamGate - TCP/IP (44.102.152.1) & AX.25 (KF8KK-3)"
ifc 80M ax25 bct "Empire Michigan HamGate Testing. Info: kf8kk @ 1ook.org"
ifc 145.09 ax25 bct "Empire MI Hamgate. Info: kf8kk @1ook.org"
[the 'bct' is for broadcast text.  This is the text that goes out with a node beacon]
#
#

echo "********** ASY ports have been configured.........."
pause 2

#
#--------------------------------------
# GLOBAL AX25 PARAMETERS
#=======================

ax25 maxf 2
ax25 timert linear
ax25 version 2
ax25 win 2048
ax25 pacl 256
ax25 bcinterval 6000
[the interval between beacons]
ax25 ret 12   
[the number of ax25 retries]
ax25 irtt 2500
ax25 maxw 7000
ax25 blimit 3
ax25 hsize 10
[The maximum number of stations on the heard list]
ax25 hport RF off
[Turns on/off the heard list by port]
ax25 hport 80M on
ax25 hport 145.09 on
ax25 bcport RF on
[You can enable beacons by port too]
ax25 bcport 80M on
ax25 bcport 145.09 on

#
#--------------------------------------
# GLOBAL TCP/IP PARAMETERS
#=========================

tcp timert linear
tcp irtt 5500 
[Initial round trip time expected for tcp/ip is 5.5 seconds]
tcp maxw 9000
tcp bl 2
tcp ret 12
tcp mss 512
tcp win 2048
tcp syn on

#
ip ttl 225
ip rt 4
ip hp tun0 on
ip hsize 10
[TCP/IP has a heard list and you can limit it's size]
ip hp RF on
[TCP/IP also has a heard list enabled by port]
#
echo "********** Global AX25 and TCP/IP params are set.........."
pause 1

#
#--------------------------------------
# ARP SETTINGS
#=============

arp eaves tun0 on
arp eaves RF on
arp eaves encap on
arp poll tun0 on
arp poll RF on
arp poll encap on
arp maxq 10

#
echo "********** ARP has been configured.........."
#
#---------------------
# NETROM STUFF
#

attach netrom RF  [My main access port is via a multiport TheNet node so I need netrom]
netrom interface RF 225
netrom interface 145.09 200
netrom load 
[I load the local netrom nodes so I don't have to wait for a node broadcast to use them]
#
#
#--------------------------------------
# START SERVICES
#===============

start ax25
start ftp 
[Starts the FTP server]
start smtp
start telnet
start ttylink
start forward
start finger
start pop3
start convers
start netrom

#start remote
#

echo "********** Services STARTed.........."
pause 3

#
#--------------------------------------
# FTP SERVICES
#=============

ftptd 300
#
#--------------------------------------
# CONVERSE BRIDGE PARAMETERS
#===========================

conv host LEELANAU
conv interface RF on
conv interface 145.09 on

#conv interface 80M on
conv interface tun0 on
conv interface encap on
conv setinfo on
conv channel 45

# chnl 45 is leelanau & chnl 10 is benzie
##conv link 44.102.24.8
#

echo "********** CONV Bridge configured.........."
pause 2

#
#--------------------------------------
# STMP-MAILBOX SERVICE SETTINGS
#======================

smtp mode route
smtp quiet on
smtp use on
smtp timer 600
smtp batch on
smtp maxclients 3
smtp t4 920
smtp tdisc 920

#
bulletin check on
bulletin return on
bulletin date on
bulletin loop 2

#
mb attend off
mb show off
mb secure off
mb smtp on
mb qth "Leelanau County Michigan"
mb ha "kf8kk.#nwmi.mi.usa.noam"
mb sendquery on
mb header on
mb nrid off
mb show on
mbox zip 49630
mbox tmsg "Your callsign is your login name."
mb newmail on
mb nobid off

#mb timer 1500
mb timer 0 [This is the forwarding timer-- used with forward.bbs file]
[I have it set to 0 so it doesn't automatically run-- I'm still testing with it]

mb td 2300
mb mp RF on

#
# *** MISC ***
###pop add 44.102.1.32 9425 00:00-23:59 pop3 ka8pog ka8pog phillip
#

prompt on
attend off
third on
strace on
mbox alias mapsys "@more /jnos/public/mapsys.txt"
mbox alias maplcl "@more /jnos/public/maplcl.txt
[The mbox alias commands allow you add to the alphabet soup in the BBS
some commands that are frequently used.  In the above, it displays to the
user text files with local packet system information.]

mbox alias 145.07 "c ben11"
mbox alias empire "c ben11"

mbox alias grtr "c 145.09 grtr00"
mbox alias colarc "c 145.09 colarc"

#
#
#

echo "********** BBS/MB has been configured.........."
pause 2

#
#--------------------------------------
# DOMAIN NAME SERVICE
#====================

domain suffix ampr.org.
domain ret 2
domain maxw 60
domain add 192.168.1.1
[make sure to change this to YOUR dns!]
domain cache clean on
domain cache wait 3300

#domain cache size 15
domain upd on
domain translate no # Turning this on causes severe delays :-(
domain verbose yes
domain dns on
domain ttl 500000

#domain trace on
#

echo "********** DNS has been configured.........."
pause 3

#--------------------------------------
# ROUTING TABLES
#===============
# First load the worlds gateway routes

source /jnos/encap.txt
#
echo "******* ENCAP routes loaded......"
#
# Now load our local routes

source /jnos/routes.lcl
#
echo "********** LOCAL routes loaded.........."
#pause 5
#
#
#

echo "********** ROUTE Tables have been configured.........."
#
#-------------------------------------
# NNTP News Client Configuration
#=====================
#

#nntp lzw on
#nntp firstpoll 120
#nntp trace 4

#nntp active
#nntp addserver freetext.usenetserver.com 9000 03:30-23:59 alt.ham-radio.packet
#nntp group alt.ham-radio.packet
[The above NNTP lines are supposed to download the alt.ham-radio.packet newsgroup
into the mailbox but I have not yet been able to make it do that... sad to say]

#
#

#echo "******** NNTP configuration completed........"
#
#--------------------------------------
# SECURITY (access.rc) Not compiled into jnos-kk
#=====================
#source /jnos/access.rc
#

#echo "********** ACCESS.RC has been sourced.........."
#pause 3
#
#--------------------------------------
# Timed Pings Kludge
#===================
#

#source /jnos/kludge.txt
#
#echo "****** Kludge Ping loaded-------------"
[The 'Kludge Ping' is a temporary workaround for an issue regarding the encap mode and
my alloted time for that issue has expired for a couple of months.  It's an issue that will either
require a different DSL modem, or a different ISP.  It's not quick or simple and I ran out of time
right now to address it.  I will continue after I crank out a few other items on the list.]

#
#
#-------------------------------
# MISC. LEFTOVERS
#=================
#
# Tracing

tr RF 0333
tr tun0 000

#
#watchdog on
#lzw bits 12

pause 3
log on
rdate server time.nist.gov
[Its nice to have the accurate time!]
pause 6
ping hamgate.washtenaw
pause 2
conv link hamgate.washtenaw.ampr.org encap washtenaw
[The above line connects my converse server with the washtenaw server which is
a Michigan ARPSC converse hub]

pause 2
#
#
#

echo "########## AutoExec.NOS is ALL DONE ##########
#
# -- end of file ---
#
#

 

 

Introduction
Obtaining The Software
Installing a DOS partition
Slackware Installation A
Slackware Installation B
Selecting Packages
Configuring Linux
Linux Network Configuration
Starting Slackware Linux
Basic Jnos Installation
Jnos Localization & Config
Starting Jnos
Compiling Jnos