Difference between revisions of "Membangun F6FBB BBS di Linux"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
[[Image:Orari.jpg|right|100px|thumb|[[Organisasi Amatir Radio Indonesia]]]]
 
==Orek-Orekan Instalasi F6FBB BBS di Linux==
 
==Orek-Orekan Instalasi F6FBB BBS di Linux==
  
Line 47: Line 48:
 
  default=0
 
  default=0
  
Kernel & Sistem operasi siap untuk mendukung jaringan packet radio.
+
Kernel & Sistem operasi siap untuk mendukung jaringan [[packet radio]].
  
  
Line 88: Line 89:
 
==MASUKAN TERMINAL NODE CONTROLLER (TNC) PADA MODE KISS==
 
==MASUKAN TERMINAL NODE CONTROLLER (TNC) PADA MODE KISS==
  
Pastikan speed Serial PC yang digunakan & Speed TNC sama. Default speed TNC-PC biasanya 1200bps. Sebaiknya naikan speed TNC-PC, menggunakan perintah
+
Pastikan speed Serial [[PC]] yang digunakan & Speed [[TNC]] sama. Default speed TNC-PC biasanya 1200bps. Sebaiknya naikan speed TNC-PC, menggunakan perintah
  
 
  cmd: abaud 9600
 
  cmd: abaud 9600

Revision as of 05:54, 3 February 2010

Orek-Orekan Instalasi F6FBB BBS di Linux

Sumber: Onno W. Purbo YC0MLC


PERSIAPAN SOFTWARE

  • Instal linux di PC, saya menggunakan Fedora Core 5
    • Ambil update kernel terbaru dari www.kernel.org
    • Ambil AX.25 dari SourceForge www.sf.net, file
      • ax25-apps
      • ax25-tools
      • libax25
    • Ambil F6FBB dari www.f6fbb.org


COMPILE KERNEL LINUX

# cp linux-2.6.19.1.tar.bz2 /usr/src
# cd /usr/src
# tar xlvf linux-2.6.19.1.tar.bz2
# cd /usr/src/linux-2.6.19.1/
# make menuconfig

Lakukan

Networking -> (Select) Amateur Radio Support -> (Select) Semua Driver di bawahnya -> Exit
-> Exit -> Exit -> Exit -> Save (Yes).

Lanjutkan compile kernel

# make
# make bzImage
# make modules
# make install
# make modules_install

Booting Linux, coba gunakan kernel yang baru. Jika gagal, compile ulang kernel baru, boot lagi. Lakukan terus sampai kernel berhasil di booting.

Edit file

/etc/grub.conf

Pastikan

default=0

Kernel & Sistem operasi siap untuk mendukung jaringan packet radio.


COMPILE & INSTALL PENDUKUNG AX.25

Compile & Install libax25

# cp libax25-0.0.11.tar.gz /usr/local/src
# cd /usr/local/src
# tar zxvf libax25-0.0.11.tar.gz
# cd libax25-0.0.11
# ./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var
# make
# make install
# make installconf

Compile & Install ax25-tools

# cp ax25-tools-0.0.8.tar.gz /usr/local/src
# cd /usr/local/src
# tar zxvf ax25-tools-0.0.8.tar.gz
# cd ax25-tools-0.0.8
# ./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var
# make
# make install
# make installconf

Compile & Install ax25-apps

# cp ax25-apps-0.0.6.tar.gz /usr/local/src
# cd /usr/local/src
# tar zxvf ax25-apps-0.0.6.tar.gz
# cd ax25-apps-0.0.6
# ./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var
# make
# make install
# make installconf


MASUKAN TERMINAL NODE CONTROLLER (TNC) PADA MODE KISS

Pastikan speed Serial PC yang digunakan & Speed TNC sama. Default speed TNC-PC biasanya 1200bps. Sebaiknya naikan speed TNC-PC, menggunakan perintah

cmd: abaud 9600

Untuk VHF TNC-220 (1200bps packet radio)

cmd: kiss on
cmd: restart

Untuk HF TNC-241 (300bps packet radio)

cmd: mode hf
cmd: maxframe 2
cmd: paclen 80
cmd: mcom y
cmd: softdcd on
cmd: kiss on
cmd: restart


Edit file

/etc/modules.conf

masukan entry di bawah ini:

alias net-pf-3		ax25
alias net-pf-6		netrom
alias net-pf-11	rose
alias tty-ldisc-1	slip
alias tty-ldisc-3	ppp
alias tty-ldisc-5	mkiss
alias bc0		baycom
alias nr0		netrom
alias pi0a		pi2
alias pt0a		pt
alias scc0		optoscc
alias sm0		soundmodem
alias tunl0		newtunnel
alias char-major-4	serial
alias char-major-5	serial
alias char-major-6	lp 


Edit file /etc/ax25/axports

ada dua (2) port packet radio ax0 & ax1


# /etc/ax25/axports
#
# The format of this file is:
#
# name callsign speed paclen window description
#
ax0     YC0XXX	9600  256     2       1200bps 144.160 MHz
ax1     YC0XXX-7	9600  256     2       300bps 7.033 MHz


KONFIGURASI AX25D MENERIMA SAMBUNGAN DARI AX.25

Konfigurasi ax25d.conf

# /etc/ax25/ax25d.conf
#
# ax25d Configuration File.
#
# AX.25 Ports begin with a '['.
#
# <peer> Win T1  T2  T3  idl N2 <mode> <uid> <exec> <argv[0]>[<args....>]
#
[YC0XXX VIA ax0]
NOCALL   * * * * * * L
VK2XLZ   * * * * * * * root  /usr/sbin/axspawn axspawn %u +
VK2DAY   * * * * * * * root  /usr/sbin/axspawn axspawn %u +
NOCALL   * * * * * * L
# default  1 10  5 100 180 5   *    root  /usr/sbin/pms pms -a -o yc0mlc
default  * * * * * * - root /usr/local/sbin/ttylinkd ttylinkd
#
[YC0XXX-4 VIA ax0]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node node
#
[MLCNOD VIA ax0]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node node
[MLCNOD VIA ax0]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node node
#
[YC0XXX-4 VIA ax1]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node node
#
[MLCNOD VIA ax1]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node node
#
#
# NET/ROM Ports begin with a '<'.
#
<netrom>
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node node


KONFIGURASI NETROM

Edit file /etc/ax25/nrports

# /etc/ax25/nrports
#
# The format of this file is:
#
# name callsign alias paclen description
#
netrom  YC0XXX-9 	#XXXSW	235	YC0XXX Switch
netnod  YC0XXX-4 	XXXNOD	235	YC0XXX Node

Edit file /etc/ax25/nrbroadcast

# /etc/ax25/nrbroadcast
#
# The format of this file is:
#
# ax25_name min_obs def_qual worst_qual verbose
#
ax0     5       192     100     0
ax1     5       255     100     1


FILE STARTUP AX.25

Masukan ke rc.local (autoexec.bat di linux) agar ada perintah

/usr/sbin/kissattach /dev/ttyS1 -m 255 ax0 44.132.xx.xxx
/usr/sbin/kissattach /dev/ttyS0 -m 255 ax1 44.132.xx.xxx
/usr/sbin/kissparms -p ax0 -t 100 -s 100 -r 25
/usr/sbin/kissparms -p ax1 -t 100 -s 100 -r 25
/usr/sbin/beacon -c YC0XXX -d QST -t 10 ax0 "YC0XXX Experimental BBS AXIP Gateway"
/usr/sbin/beacon -c YC0XXX -d QST -t 10 ax1 "YC0XXX Experimental BBS AXIP Gateway"

Untuk keperluan packet radio sederhana, konfigurasi di atas sudah cukup. Konfigurasi selanjutnya diperlukan jika anda menggunakan jaringan TCP/IP & NETROM di atas packet radio.

/sbin/ifconfig ax0 44.132.xx.xxx netmask 255.255.255.0
/sbin/ifconfig ax1 44.132.xx.xxx netmask 255.255.255.0
/sbin/route add -net 44.132.xx.0 netmask 255.255.255.0
/sbin/route add -net 44.132.xx.0 netmask 255.255.255.0
/usr/sbin/nrattach -i 44.132.xx.xxx netrom
/usr/sbin/nrattach -i 44.132.xx.xxx netnod
/usr/sbin/nrattach -i 44.132.xx.xxx netrom
/usr/sbin/nrattach -i 44.132.xx.xxx netnod
/usr/sbin/netromd
/usr/sbin/ax25d
/usr/sbin/mheardd

Untuk menggunakan F6FBB tambahkan perintah

/usr/sbin/fbb

Ganti IP address 44.132.xx.xxx dengan IP yang 44.132 yan dialokasikan oleh koordinator IP AMPR.NET lokal anda.


INSTALASI & KONFIGURASI F6FBB BBS

Ambil source F6FBB untuk Linux dari

http://www.gb7abc.net/xd704j-src.tgz

Juga ambil patch F6FBB untuk kernel 2.6 dari

http://www.gb7abc.net/fbbsrc_704l_patch

Lakukan

# cp xd704j-src.tgz /usr/local/src
# cp fbbsrc.704l.patch /usr/loca;/src
# cd /usr/local/src
# tar zxvf xd704j-src.tgz
# patch -p0 < fbbsrc.704l.patch
# cd /usr/local/src/fbbsrc.704j/src
# make

Instalasi F6FBB

# cd /usr/local/src/fbbsrc.704j
# ./install_sh
# cp /usr/local/sbin/fbb /usr/sbin

Konfigurasi F6FBB

Edit file /etc/ax25/fbb.conf

di sesuaikan dengan Callsign & berbagai data anda

#
# FBB Set-up file
#
version = FBB7.03
# Callsign of BBS
callsign = YC0XXX.IDN.AS
# SSID of BBS
ssid = 1
# Qra Locator of BBS
qraloc = OI33nt
# Qth of BBS
city = Jakarta
# First name of SYSOP
name = XXX
# Callsign of SYSOP
sysop = YC0XXX
# Local time
loca = +7
# servers
server = REQDIR reqdir Directory request

Edit file /etc/ax25/fbb/passwd.sys

#
# Password for all non defined callsigns (one case dependant line)
#
password
#
# Rights and password specific to callsigns (one or more lines)
#
F6ZZZ  63 1023 THIS_IS_THE_PASSWORD_OF_F6ZZZ
YC0XXX 63 1023 XXX
#
# End of passwd.sys file
#

Edit /etc/ax25/fbb/port.sys

# FBB7.03
#
#Ports TNCs
 4     4
#
#Com Interface Adress (Hex) Baud
 1    9         0            9600
 2    9         0            9600
#
# Telnet on port 6300 (189c hex)
 3    9         189c        0
#
# Pop3/Smtp/Nntp 110(6e hex)/25(19 hex)/119(77 hex)
 4    9         6e:19:77     0
#
#TNC NbCh Com MultCh Pacln Maxfr NbFwd MxBloc M/P-Fwd Mode  Freq
 0	0	0   0      0     0     0     0	00/00	----	    File-fwd.
 1	10	1   ax0    250   2     1     10	00/15	XUWYL 144.16MHz
 2	10	1   ax1    250   2     1     10	00/15	XUWYL 7.033MHz
 3	8	1   0      250   2     1     10	00/15	TUWYR  Telnet
 4	4	2   0      250   2     1     10	00/10	SU	     Pop
# End of file.
#

Edit file /etc/ax25/fbb/redist.sys

#
# Configuration of the REDIST server
#
# Route for the local BBS (SP LOCBBS)
LOCBBS=F6FBB
# Name of the BBS coverage
LOCBBS_DESC=F6FBB BBS
#
#Route(s) for local bulletins (SP LOCAL)
LOCAL=F6FBB,F6CDD
# Coverage of the local BBS
LOCAL_DESC=Kemayoran
#
# Route(s) for regional bulletins (SP REGION)
REGION=JAKARTA
# Name of the region
REGION_DESC=Jakarta
#
# Route(s) for national bulletins (SP NATION)
NATION=IDN
# Name of the country
NATION_DESC=Indonesia
#
# Default destination
DEFAULT_TO=INFO
#
# Send a mail to the sysop
MAIL_SYSOP=YES
#



Pranala Menarik