Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plu:install_ax25 [2014/01/27 13:34]
gunn [AX.25]
plu:install_ax25 [2020/08/02 11:15] (current)
gunn [AX.25]
Line 6: Line 6:
 Below is a collection of links of good tutorials for setting up AX.25. I recommend you read them as what follows in this wiki is just a summary of what is needed to get AX.25 configured to run paclink-unix. Below is a collection of links of good tutorials for setting up AX.25. I recommend you read them as what follows in this wiki is just a summary of what is needed to get AX.25 configured to run paclink-unix.
  
-  * [[http://​www.febo.com/​packet/​linux-ax25/​index.html | Linux AX.25 Configuration]] - by John Ackermann +  * [[http://​www.febo.com/​packet/​linux-ax25/​index.html | Linux AX.25 Configuration]] - by John Ackermann, N8UR 
-  * Also check out [[http://​www.linux.com/learn/docs/ldp/415-AX25-HOWTO | Linux Amateur Radio AX.25 HOWTO]] - by Jeff Tranter, VE3ICH +  * Also check out [[http://​www.faqs.org/docs/Linux-HOWTO/AX25-HOWTO.html | Linux Amateur Radio AX.25 HOWTO]] - by Jeff Tranter, VE3ICH 
-  * Charles Schumann K4GBB has very good notes on [[http://​71.49.11.106:​800/​docs/​Myhowto.html | setting up AX.25 & an RMS Gateway]] on the Raspberry PI [[http://​71.49.11.106:​800/​docs/​Raspberry.html | here]]+ 
 ====== Install AX.25 library, apps & tools ====== ====== Install AX.25 library, apps & tools ======
-  * Install ​libax25, apps & tools from [[http://​www.linux-ax25.org/​wiki/​Main_Page | linux-ax25.org Main page]]+  * I usually pull the ax25 library from [[https://​github.com/​ve7fet/​linuxax25/​tree/​master/​libax25 | Craig Small VE7FET'​s github repo]] 
 +  * You could also install ​libax25, apps & tools from [[http://​www.linux-ax25.org/​wiki/​Main_Page | linux-ax25.org Main page]]
     * Download the 3 files under '​Latest Versions'​ from right hand side     * Download the 3 files under '​Latest Versions'​ from right hand side
     * There are other versions of these packages that have been modified or patched to be '​better'​ but let's get this going with the vanilla sanctioned packages first.     * There are other versions of these packages that have been modified or patched to be '​better'​ but let's get this going with the vanilla sanctioned packages first.
Line 19: Line 20:
 <code bash> <code bash>
 echo "/​usr/​local/​lib"​ >> /​etc/​ld.so.conf && /​sbin/​ldconfig echo "/​usr/​local/​lib"​ >> /​etc/​ld.so.conf && /​sbin/​ldconfig
 +</​code>​
 +  * Note: libncurses is a build dependency for ax25-apps, be sure it is installed.
 +    * As root
 +<code bash>
 +apt-get install libncurses5-dev
 </​code>​ </​code>​
   * Extract the three gzipped tar balls   * Extract the three gzipped tar balls
Line 39: Line 45:
 ====== Configure AX.25 ====== ====== Configure AX.25 ======
  
 +  * [[plu:​example_config_files:​systemd | example config using systemd]]
 ===== Basic Setup for Config files ===== ===== Basic Setup for Config files =====
  
Line 58: Line 64:
     * **installed from a package**, their config will be installed to ///​etc/​ax25// ​     * **installed from a package**, their config will be installed to ///​etc/​ax25// ​
 ==== AX.25 start-up & config scripts ==== ==== AX.25 start-up & config scripts ====
-  * Below is a simple ​example ​of the scripts & parameters required to bring up the AX.25 interface.+  * Below are simple ​**examples** ​of the scripts & parameters required to bring up the AX.25 interface. 
 +    * **At the very least you will need to edit /​usr/​local/​etc/​ax25-up**
   * Need scripts:   * Need scripts:
     * [[plu:​example_config_files:​ax25_init.d | /​etc/​init.d/​ax25]]     * [[plu:​example_config_files:​ax25_init.d | /​etc/​init.d/​ax25]]
Line 67: Line 74:
     * [[plu:​example_config_files:​lanparms | /​etc/​ax25/​Lanparms]]     * [[plu:​example_config_files:​lanparms | /​etc/​ax25/​Lanparms]]
  
 +=== startup script install ===
 +  * Scripts: ax25, ax25-up, ax25-down need to be copied/​installed to these directories:​
 +<​file>​
 +/​etc/​init.d/​ax25
 +/​usr/​local/​etc/​ax25-up
 +/​usr/​local/​etc/​ax25-down
 +</​file>​
 +
 +  * The /etc/init.d directory should ONLY contain scripts to start & stop services.  ​
 +    * These services are normally started at boot time. 
 +    * ax25-up & ax25-down are support scripts called by ax25 (read the scripts).
 +
 +  * You can manually stop the ax.25 service as root:
 +<code bash>
 +/​etc/​init.d/​ax25 stop
 +</​code>​
 +  * or start the ax.25 service as root:
 +
 +<code bash>
 +/​etc/​init.d/​ax25 start
 +</​code>​
 +  * or get the status of the ax.25 service:
 +
 +<code bash>
 +/​etc/​init.d/​ax25 status
 +</​code>​
 +  * You need to supply the complete /​etc/​init.d/​ path because it won't be in your PATH environment.
 +
 +<code bash>
 +echo $PATH
 +</​code>​
 +
 +  * **DO NOT** put /​etc/​init.d/​ in your path!
 +  * All 3 files are bash scripts (so read them) and you **absolutely need to edit the ax25-up script** to customize at least for your call sign and ax.25 port name.
 +
 +  * Permissions on these scripts should look like this, please verify:
 +<code bash>
 +ls -al /​etc/​init.d/​ax25
 +
 +-rwxr-xr-x 1 root root 2533 Feb 24  2011 /​etc/​init.d/​ax25
 +
 +ls -al /​usr/​local/​etc/​ax25/​ax25-*
 +
 +-rwxr-xr-x 1 root root  1743 Feb 24  2011 /​usr/​local/​etc/​ax25/​ax25-down
 +-rwxr-xr-x 1 root root  2758 Dec  1 16:32 /​usr/​local/​etc/​ax25/​ax25-up
 +</​code>​
 +
 +  * Make sure all these scripts are executable. ​
 +    * Look for the x in the ls -al response.
 +    * If the scripts are not executable then give them that permission as root.
 +
 +<code bash>
 +chmod +x /​etc/​init.d/​ax25
 +chmod +x /​usr/​local/​etc/​ax25/​ax25-up
 +chmod +x /​usr/​local/​etc/​ax25/​ax25-down
 +</​code>​
 ===== Linux AX.25 & TNC's ===== ===== Linux AX.25 & TNC's =====
 ==== Note about KISS mode ==== ==== Note about KISS mode ====
Line 75: Line 138:
  
 ===== Misc Notes ===== ===== Misc Notes =====
 +==== Is AX.25 Enabled in your kernel ====
 +<​code>​
 +netstat --ax25
 +</​code>​
 ==== Network Broadcast All ports ==== ==== Network Broadcast All ports ====
   * Note that bringing up another network interface, like AX.25 on Linux, causes any daemons that broadcast out ALL ports to broadcast out the new port as well.   * Note that bringing up another network interface, like AX.25 on Linux, causes any daemons that broadcast out ALL ports to broadcast out the new port as well.
-    * Examples: Samba, DropBox+    * Examples: Samba, DropBox, ntp
     * Depending on what is installed on your Linux machine you will have to go to each daemon'​s config to specify which ports they'​re allowed to broadcast on.     * Depending on what is installed on your Linux machine you will have to go to each daemon'​s config to specify which ports they'​re allowed to broadcast on.
 +=== ntp broadcast check ===
 +  * NTP is implemented via UDP over port 123, 
 +  * restrict ntp to using eth0 and **not** ax0 in ///​etc/​ntp.conf//​
 +    * when using //netstat -an// you should **not** see any reference to the 44.128.0.0 net
  
 +<​file>​
 +interface listen eth0
 +interface ignore ax0
 +</​file>​
 +
 +  * If you see ntp using the 44.128.0.0 net then check /​etc/​ntp.conf
 +
 +<code bash>
 +$ netstat -an | grep 123
 +</​code>​
 ==== USB WiFi dies after kissattach ==== ==== USB WiFi dies after kissattach ====
   * After running kissattach USB WiFi stops working   * After running kissattach USB WiFi stops working
plu/install_ax25.1390858474.txt.gz · Last modified: 2014/01/27 13:34 by gunn
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0