| 48 |
|
|
| 49 |
make |
make |
| 50 |
|
|
| 51 |
3) Install binary files and data files |
3) Create user and group |
| 52 |
|
|
| 53 |
make install |
sudo useradd bbs |
| 54 |
|
|
| 55 |
4) Create user and group |
4) Install binary files and data files |
| 56 |
|
|
| 57 |
groupadd bbs |
sudo make install |
| 58 |
|
|
| 59 |
useradd bbs |
5) Modify following configuration files |
|
|
|
|
5) Set privileges of files |
|
|
|
|
|
cd /usr/local/lbbs |
|
|
|
|
|
chown bbs:bbs -R lbbs |
|
|
|
|
|
chmod 750 -R lbbs |
|
|
|
|
|
chmod 4750 lbbs/bin/bbsd |
|
|
|
|
|
6) Modify following configuration files |
|
| 60 |
|
|
| 61 |
Default configuration files is saved as *.default, you should rename them first. |
Default configuration files is saved as *.default, you should rename them first. |
| 62 |
|
|
| 64 |
|
|
| 65 |
/usr/local/lbbs/utils/conf/db_conn.inc.php |
/usr/local/lbbs/utils/conf/db_conn.inc.php |
| 66 |
|
|
| 67 |
7) Startup |
6) Startup |
| 68 |
|
|
| 69 |
|
sudo /usr/local/lbbs/bin/bbsd |
| 70 |
|
|
| 71 |
|
7) Set up systemd |
| 72 |
|
|
| 73 |
|
Create your own /usr/lib/systemd/system/lbbs.service from the sample at conf/lbbs.service.default, and make any change if necessary. Please note that the startup argument "-f" with bbsd should be used in systemd notify mode. |
| 74 |
|
|
| 75 |
|
Run the following bash command to startup the service: |
| 76 |
|
|
| 77 |
|
systemctl daemon-reload |
| 78 |
|
|
| 79 |
/usr/local/lbbs/bin/bbsd |
systemctl start lbbs |
| 80 |
|
|