[Packet] Linux & axports.
Shane Deering
[email protected]
Mon, 26 May 2003 14:52:39 +1000
Anyone that would like to try packet on Linux and think it might be too hard,
skip to the bottom of this message.
On Mon, 26 May 2003 12:45, Doug Laidlaw wrote:
> On Sunday 25 May 2003 5:47 pm, Shane Deering wrote:
> > On Sun, 25 May 2003 03:32, Doug Laidlaw wrote:
> > > Thanks. I gave you the wrong axports. It must have been the precedent
> > > in $HOME. /etc/ax25/axports is
> > >
> > > # Axports file
> > > Port1 VK3KDI-1 1200 255 1 VHF Port
> >
> > Keep in mind that any time you refer to that port you will have to call
> > it Port1. Not port1 or PORT1.
> > and remember that 1200 is the baud rate between the computer and the TNC.
> > Not the on air baud rate. Make sure that the TNC is set to that. You
> > should get better throughput if you up that speed a bit.
> >
> > > The modprobe worked O.K. I am using Mandrake 9.0 and installed the
> > > libax25 and libax25-devel RPMs, but I don't seem to have
> > > /usr/sbin/kisattach.]
> >
> > It's in ax25-tools.
> > Download ax25-tools-0.0.8-3mdk.i586.rpm
> > and ax25-apps-0.0.6-1mdk.i586.rpm
> > as well.
> > There is also a ax25spyd-0.23-5mdk.i586.rpm that you can look at one day.
> > For the latest node you can rebuild node-0.3.1-1.src.rpm. Maybe someone
> > has done an MDK version now.
> >
> > > Should I change 192.168.0.10 to 127.0.0.1 for my system, as I don't
> > > have my own domain name?
> >
> > That's why I picked 192.168.0.10 (at random). 127.0.0.1 is your loopback
> > port and should not be uased for anything else. Too many things would
> > break. Just use a non routable IP address that isn't in the subnet of
> > anything else on your computer/LAN. To make it easy you could use
> > something like 192.168.44.1 if you are already using 192.168.0.x on your
> > lan.
>
> Thanks Shane. I don't have a lan. The TNC 9an MFJ1270B TNC-2 clone) is
> set to 9600 bd - enough to stop it working. I thought that you were
> referring to 9600 bd packet. My rig doesn't support that.
Here's one I prepared earlier for my MFJ-1270B.
I operate mine at 4800bd terminal baud rate (2400bd on air) on my 3rd port.
# MFJ-1270B to KISS mode
stty -F /dev/ttyS2 speed 4800
echo -en "KISS ON\015" > /dev/ttyS2
echo -en "RESTART\015" > /dev/ttyS2
echo "MFJ-1270B should be in KISS mode now"
#
>
> I had ax25-apps, but ax25-tools-0.0.8 had dependency problems, so I
> installed the .tar.gz (naughty, I know.) The port is now listed in xcall.
Good stuff.
Until MDK9.0 I'd compiled the kernels and all the related stuff (not FBB
though. Mongrel source code).
Just have to change the baud rate in axports from 1200 to 9600 to match what
you are using and the TNC should go into KISS mode. You should see STA and
CON LED's flash three times.
>
> One last question: I have to run startax25 as root. Can I configure it to
> start on bootup?
Yep. Stick it in rc.local.
#This is the last line in my /etc/rc.local
/etc/ax25/startax25
You can call it anything you like.
Or even put the lines themselves into rc.local. Not a good idea though.
I prefer seperate start and stop scripts.
So you should end up with something like the following.
#/etc/ax25/axports
Port1 VK3KDI-1 9600 255# Use any 192.168.x.x 1 VHF Port
And a startup script something like-
#!/bin/sh
# MFJ-1270B to KISS mode if not already.
stty -F /dev/ttyS1 speed 9600
echo -en "KISS ON\015" > /dev/ttyS1
echo -en "RESTART\015" > /dev/ttyS1
echo "MFJ-1270B should be in KISS mode now"
#
modprobe mkiss
# Use any 192.168.x.x
/usr/sbin/kissattach /dev/ttyS1 Port1 192.168.0.10
# That should get Linux on air.
>
> Doug.
>
> 73,
>
> Doug.
Simple instructions.
Install Mandrake Linux 9.0. Choose everything. Takes about 1/2 an hour.
Download the small packet packages off the internet.
At a prompt type this -
rpm -ivh *
in the dir where the downloaded files are.
Then edit /etc/ax25/axports like that above.
Back at the prompt type these two lines-
modprobe mkiss
/usr/sbin/kissattach /dev/ttyS1 Port1 192.168.0.10
And you'll have a more powerfull/flexable setup that the windows stuff I show
on my website.
--
Shane Deering Sent using Kmail v1.4.3
[email protected] on Mandrake Linux, the Desktop OS
vk3bvp@vk3bvp.#sev.vic.aus.oc MDK9.0 Up 5 hours and 4 minutes
http://www.qsl.net/vk3bvp/ RH7.2 Up 2 days, 18 hours and 51 minutes