| 1 |
sysadm |
1.7 |
# LBBS - Classical terminal server of LeafOK BBS
|
| 2 |
sysadm |
1.1 |
|
| 3 |
sysadm |
1.11 |
Copyright (C) 2004-2025 by Leaflet
|
| 4 |
|
|
Email : leaflet@leafok.com
|
| 5 |
|
|
Demo site : bbs.fenglin.info (Telnet 2323 / SSH2 2322)
|
| 6 |
sysadm |
1.1 |
|
| 7 |
|
|
|
| 8 |
|
|
Introduction
|
| 9 |
|
|
=================
|
| 10 |
sysadm |
1.15 |
This software (named as LBBS) aims to providing a telnet-based interface for a pure web-based BBS (LeafOK BBS @ https://github.com/leafok88/leafok_bbs).
|
| 11 |
|
|

|
| 12 |
|
|

|
| 13 |
|
|

|
| 14 |
|
|

|
| 15 |
sysadm |
1.1 |
|
| 16 |
|
|
|
| 17 |
|
|
System Requirement
|
| 18 |
|
|
==================
|
| 19 |
sysadm |
1.13 |
1) GNU C Compiler
|
| 20 |
|
|
2) PHP ( Version >= 8.2 )
|
| 21 |
|
|
3) MySQL database ( Version >= 8.4 )
|
| 22 |
sysadm |
1.1 |
|
| 23 |
|
|
|
| 24 |
|
|
Quick Installation
|
| 25 |
|
|
==================
|
| 26 |
|
|
To install LBBS quickly, please do the following steps:
|
| 27 |
|
|
|
| 28 |
sysadm |
1.13 |
0) Prerequisite
|
| 29 |
|
|
Follow README.md under https://github.com/leafok88/leafok_bbs to initialize the database structure shared by both web version and telnet version.
|
| 30 |
|
|
It is highly recommended to finish the configuration steps of web version first and make sure those features could work properly.
|
| 31 |
sysadm |
1.9 |
|
| 32 |
sysadm |
1.11 |
1) Extract the source files from a tarball or export from GitHub
|
| 33 |
|
|
Run the following command to set up the autoconf/automake environment,
|
| 34 |
|
|
sh ./autogen.sh
|
| 35 |
sysadm |
1.1 |
and fix any error if exists.
|
| 36 |
|
|
|
| 37 |
sysadm |
1.11 |
2) Compile source files
|
| 38 |
|
|
./configure --prefix=/usr/local/lbbs
|
| 39 |
sysadm |
1.1 |
make
|
| 40 |
|
|
|
| 41 |
sysadm |
1.11 |
3) Create user and group
|
| 42 |
sysadm |
1.2 |
sudo useradd bbs
|
| 43 |
sysadm |
1.1 |
|
| 44 |
sysadm |
1.11 |
4) Install binary files and data files
|
| 45 |
sysadm |
1.2 |
sudo make install
|
| 46 |
sysadm |
1.1 |
|
| 47 |
sysadm |
1.11 |
5) Modify following configuration files
|
| 48 |
|
|
Default configuration files is saved as *.default, you should rename them first.
|
| 49 |
|
|
/usr/local/lbbs/conf/bbsd.conf
|
| 50 |
sysadm |
1.13 |
/usr/local/lbbs/utils/conf/db_conn.inc.php
|
| 51 |
sysadm |
1.1 |
|
| 52 |
sysadm |
1.11 |
6) Generate menu configuration file with section data by running the script
|
| 53 |
sysadm |
1.13 |
sudo -u bbs php /usr/local/lbbs/utils/bin/gen_section_menu.php
|
| 54 |
|
|
sudo -u bbs php /usr/local/lbbs/utils/bin/gen_ex_list.php
|
| 55 |
sysadm |
1.6 |
|
| 56 |
sysadm |
1.11 |
7) Create or copy SSH2 RSA certificate into /usr/local/lbbs/conf
|
| 57 |
sysadm |
1.8 |
ssh-keygen -t rsa -C "Your Server Name" -f ssh_host_rsa_key
|
| 58 |
|
|
|
| 59 |
sysadm |
1.11 |
8) Startup
|
| 60 |
sysadm |
1.3 |
sudo /usr/local/lbbs/bin/bbsd
|
| 61 |
sysadm |
1.1 |
|
| 62 |
sysadm |
1.11 |
9) Set up systemd
|
| 63 |
sysadm |
1.12 |
Create your own /usr/lib/systemd/system/lbbs.service from the sample at conf/lbbs.service.default, and make any change if necessary.
|
| 64 |
|
|
Reload daemon config and start the service.
|