| 26 |
sudo useradd bbs |
sudo useradd bbs |
| 27 |
|
|
| 28 |
5) Install binary files and data files |
5) Install binary files and data files |
| 29 |
sudo make install |
sudo make install |
| 30 |
|
chown -R bbs:bbs /usr/local/lbbs |
| 31 |
|
|
| 32 |
6) Modify following configuration files |
6) Modify following configuration files |
| 33 |
Default configuration files is saved as *.default, you should rename them first. |
Default configuration files is saved as *.default, you should rename them first. |
| 42 |
ssh-keygen -t rsa -C "Your Server Name" -f ssh_host_rsa_key |
ssh-keygen -t rsa -C "Your Server Name" -f ssh_host_rsa_key |
| 43 |
|
|
| 44 |
9) Startup |
9) Startup |
| 45 |
sudo /usr/local/lbbs/bin/bbsd |
sudo -u bbs /usr/local/lbbs/bin/bbsd |
| 46 |
|
|
| 47 |
10) Set up systemd |
10) Set up systemd |
| 48 |
Create your own /usr/lib/systemd/system/lbbs.service from the sample at conf/lbbs.service.default, and make any change if necessary. |
Create your own /usr/lib/systemd/system/lbbs.service from the sample at conf/lbbs.service.default, and make any change if necessary. |
| 49 |
Reload daemon config and start the service. |
Reload daemon config and start the service. |
| 50 |
|
|
| 51 |
|
11) Cleanup on abnormal service termination |
| 52 |
|
In case of any unexpected failure or improper operation which results in abnormal termination of lbbs process, manual cleanup of shared memory / semaphore might be required before re-launch the process. Run the following command to check first: |
| 53 |
|
sudo -u bbs ipcs |
| 54 |
|
There should be no item owned by bbs. Otherwise, run the following command to cleanup: |
| 55 |
|
sudo -u bbs ipcrm -a |