First start of OpenBCM V1.08-3-g9b42

The first time you start BCM, the directories and files that are needed for BCM are created.
You are getting a error message about a wrong H-boxaddress. You can close BCM with “Ctrl C”

16.11.18 10:40:17z SYSTEM: #S cron: no valid H-boxaddress MYCALL.#BAY.DEU.EU

Let’s have a look in de directory of openBCM.

pd9q@pd9q:~/bcm-setup $ ls -l
total 1584
-rwxr-xr-x 1 pd9q pd9q 890996 Nov 15 15:16 bcm
-rw-r--r-- 1 pd9q pd9q 262144 Nov 16 10:39 bidh2.bcm
-rw-r--r-- 1 pd9q pd9q     36 Nov 16 10:39 bids3.bcm
-rw-r--r-- 1 pd9q pd9q     30 Nov 16 10:39 bulletin.bak
-rw-r--r-- 1 pd9q pd9q     30 Nov 16 10:40 bulletin.bcm
-rw-r--r-- 1 pd9q pd9q    612 Nov 16 10:40 crontab.bcm
drwxr-xr-x 6 pd9q pd9q   4096 Nov 16 10:39 fwd
-rw-r--r-- 1 pd9q pd9q     66 Nov 16 10:39 fwd.bcm
-rw-r--r-- 1 pd9q pd9q   1024 Nov 16 10:39 hadr4.bcm
-rw-r--r-- 1 pd9q pd9q 131072 Nov 16 10:39 hadrhash.bcm
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:39 http
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:40 info
-rw-r--r-- 1 pd9q pd9q   1460 Nov 16 10:40 init.bcm
-rw-r--r-- 1 pd9q pd9q    384 Nov 16 10:39 init.l2
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:39 log
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:39 msg
-rw-r--r-- 1 pd9q pd9q    403 Nov 16 10:39 speech.bcm
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:39 temp
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:39 trace
drwxr-xr-x 2 pd9q pd9q   4096 Nov 16 10:40 user
-rw-r--r-- 1 pd9q pd9q 262144 Nov 16 10:39 userh2.bcm
-rw-r--r-- 1 pd9q pd9q      0 Nov 16 10:39 users4.bak
-rw-r--r-- 1 pd9q pd9q    640 Nov 16 10:39 users4.bcm
pd9q@pd9q:~/bcm-setup $

The most important configuration file is the init.bcm

; --- mailbox ---
boxaddress MYCALL.#BAY.DEU.EU
boxheader OpenBCM
sysopcall DL8MBT
guestcall off
savebroken 0
infopath info
userpath user
fspath off
fsbmail 1
remerase 1
maxbids 8388608
; --- packet interface ---
mycall
fwdssid 8
ax25k_if off
; --- tcp/ip interface ---
http_port 8080
ftp_port 8021
smtp_port 8025
pop3_port 8110
nntp_port 8119
telnet_port 4719
serv_port 8123
radio_port 0
nopopsmtp 0
httpaccount 0
httpguestfirst 0
httpttypw 0
httpshowsysopcall 1
httprobots 1
unsecurettypw 0
internetmailgate off
; --- timers ---
infolife 999
userlife 999
oldestfwd 30
oldestbeacon 1
fwdtimeout 60
usrtimeout 0
autofwdtime 0
holdtime 0
; --- logging ---
tracelevel 1
fwdtrace 0
tcpiptrace 0
eraselog 0
; --- system ---
disable 1
sfonly 0
usvsense 0
watchdog 6
timeslot 2
ttymode off
dosinput 0
addlinuxsystemuser 0
; --- user constraints ---
paclen 0
minpaclen 40
maxpaclen 256
mailbeacon 1
altboardinfo 0
timeoutwarning 1
nounknownroute 0
asklogin 0
smoothheader 0
userquota 0
maxlogins 0
userpw 1
readlock 0
createboard 1
nopurge 0
ltquery 0
m_filter off
; --- server ---
maillistserv 0
maillistsender 0
pocsaglistserv 0
tellmode 2
oldumail 0
defswaplf 2
; --- user defaults ---
defstatus 0
deffbbcheckmode 0
defprompt (%b)-->
defcmd D
defhelp 2
deflines 0
deflf 0
defidir ADEKLMWYZ
defudir ADKLMTWYZ
defilist ABDJQTWXY
defulist ABDJQTWXY
defiread ABDEILMPRTUWYZ
defuread ABDEILMPRTUWYZ
defcheck ABDEJLMWXY
defps
defrea 0
defhold 0
defhttpsurface 1

In the init.bcm file it is important to adjust some things first. You can of course do this entirely according to your own interests.

In the mailbox section

boxaddress PI8LAP.#ZL.NLD.EU
boxheader OpenBCM
sysopcall PD9Q
guestcall GUEST

In the tcp/ip interface section

httpaccount 0
httpguestfirst 1
httpttypw 1
httpshowsysopcall 1
httprobots 0

In the logging section

tracelevel 0
fwdtrace 2
tcpiptrace 1
eraselog 1

In the system section

disable 0

In theĀ user constraints section

asklogin 1
userpw 1

In theĀ user defaults section

defprompt %m %d %t %w (%b)->%r

Okay that’s it. Now start BCM again.

OpenBCM V1.08-3-g9b42 (Linux)(c) GNU GPL 1992-2013 F. Radlherr, DL8MBT et al.
OpenBCM is maintained by Markus Baumann, DH8YMB
16.11.18 11:14:24z SYSTEM: #R working dir: '/home/pd9q/bcm-setup'
16.11.18 11:14:24z SYSTEM: #R l1axip: 127.0.0.1 rxport=14866 txport=14867
16.11.18 11:14:24z SYSTEM: #R l1axip: initialised to channel 0
16.11.18 11:14:24z SYSTEM: #L Start: V1.08-3-g9b42 Linux mem 884160kB hd 11856MB
16.11.18 11:14:24z SYSTEM: #R init_tnc: 200 ports
16.11.18 11:14:24z SYSTEM: #R ax25k_init: Kernel AX25 disabled
16.11.18 11:14:24z SYSTEM: #R initfwdlist: 0 partners, 0 destinations
16.11.18 11:14:24z SYSTEM: #R readtree: 0 bulletins
16.11.18 11:14:24z SYSTEM: #R telnetd: initialised to port 4719
16.11.18 11:14:24z SYSTEM: #R httpd: initialised to port 8080
16.11.18 11:14:24z SYSTEM: #R ftpd: initialised to port 8021
16.11.18 11:14:24z SYSTEM: #R sendmail: initialised to port 8025
16.11.18 11:14:24z SYSTEM: #R popper: initialised to port 8110
16.11.18 11:14:24z SYSTEM: #R nntpd: initialised to port 8119
16.11.18 11:14:24z SYSTEM: #R radiod: radio connectivity disabled
16.11.18 11:14:24z SYSTEM: #R serv: initialised to port 8123
16.11.18 11:14:25z SYSTEM: #R mbcron: started

That look fine to me.

Now we can telnet to BCM. “telnet localhost 4719”

pd9q@pd9q:~ $ telnet localhost 14719
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


OpenBCM-Mailbox V1.08-3-g9b42 (Linux)

PI8LAP login: pd9q


OpenBCM V1.08-3-g9b42 (Linux)
Helplevel = 2, Lines = 0, first login.
Please enter your Home-BBS by typing "A F <boxcall>"

No messages found for PD9Q @ ???.
Help Dir Read Erase Check REPly Send Alter Quit
PI8LAP 16.11.2018 11:14:49z 213 Bytes (PD9Q)->

Very nice. Firt let set a password for the sysop user (pd9q) Give the command “a” on the command prompt.

Parameters of PD9Q: (see HELP ALTER)
New callsign..(A NE).none
Home-BBS.......(A F).?
Reject-boards..(A R).
Prompt.........(A P).%m %d %t %w (%b)->%r
Login-command..(A C).D                   Name........(A N).
QTH...........(A QT).
ZIP-Code.......(A Z).
Language.......(A S).??                  Lines.......(A L).0
Helplevel......(A H).2                   Linefeeds..(A LF).0
Info-dir......(A ID).ADEKLMWYZ           User-dir...(A UD).ADKLMTWYZ
Info-list.....(A IL).ABDJQTWXY           User-list..(A UL).ABDJQTWXY
Info-read.....(A IR).ABDEILMPRTUWYZ      User-read..(A UR).ABDEILMPRTUWYZ
Check-opt.....(A CH).ABDEJLMWXY          PS-Options.(A PS).
FHold.........(A FH).0                   FWD-Delay..(A FD).0 min
User-Forward..(A UF).passive
Status........(A ST).0                   No-Purge...(A NO).0
Passwordlen...(A PW).0                   TTYPWlen..(A TTY).0
Readlock.....(A REA).0                   FBBCheckmode (A FBB).0
Binmode........(A B).AutoBIN             HTTP-Surface.........1
Away...........(A A).0
Notification.(A NOT).off
Last D N...(Check)...16.11.2018 11:14:49z
Last login...........16.11.2018 11:14:49z  via TELNET
Logins 1, mails received 0, read 0, sent 0
Help Dir Read Erase Check REPly Send Alter Quit
PI8LAP 16.11.2018 11:14:59z 1556 Bytes (PD9Q)->

With the command “a ttypw (password)” you set the password for the sysop.

PI8LAP 16.11.2018 11:23:28z 1575 Bytes (PD9Q)->
a ttypw pancake

TTYPW ok.
Help Dir Read Erase Check REPly Send Alter Quit
PI8LAP 16.11.2018 11:23:34z 1703 Bytes (PD9Q)->

Okay the password for the sysop has been set. Now you probably think that if you log in via “telnet localhost 4719” you will encounter a password prompt. Wrong. This is because the ip-address of the localhost (127.0.0.1) is included in the file rhosts.bcm. Actually, this file means that the IP addresses that are listed here are trusted.

; OpenBCM sample rhosts.bcm file
; might be unsecure!
;
127.0.0.1

Just try, put one; for the ip address 127.0.0.1

;127.0.0.1

Now telnet again to localhost. There is the password prompt.

pd9q@nl9nkg:~/bcm-setup $ telnet localhost 14719
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


OpenBCM-Mailbox V1.08-3-g9b42 (Linux)

PI8LAP login: pd9q
password: pancake


OpenBCM V1.08-3-g9b42 (Linux)
Helplevel = 2, Lines = 0, last login 16.11.2018 11:25:18z
Please enter your Home-BBS by typing "A F <boxcall>"

No messages found for PD9Q @ ???.
Help Dir Read Erase Check REPly Send Alter Quit
PI8LAP 16.11.2018 11:26:19z 232 Bytes (PD9Q)->

Now it’s time to look at the http server. In the beginning, in init.bcm in the mailbox section put “guestcall GUEST”. Now of course it is nice to let users use the possibilities of OpenBCM. Of course we will not make an account for everyone who want to use the http server. Here we have the GUEST call for. Lets create a password GUEST. Now users can log in with call GUEST and Password Guest.

If you dont do that, you get a error.

PI8LAP 16.11.2018 11:40:42z 432 Bytes (PD9Q)->
setuser guest ttypw guest

TTYPW ok.
Help Dir Read Erase Check REPly Send Alter Quit
PI8LAP 16.11.2018 11:41:42z 569 Bytes (PD9Q)->

Okay done.

Have a look at the website off your OpenBCM. http://ip-address:8080