INSTALL en - ptt/pttbbs GitHub Wiki
Quick Installation
Install System dpkgs by root:
apt-get -y git bmake clang ccache libevent-dev pkg-config
Use root
Goal:
- Add bbs and bbsadm as user with same uid (9999).
- group-name: bbs
- gid: 99
- home directory: /home/bbs
- shell for bbsadm: /bin/sh (or /bin/bash, /bin/csh, etc)
- shell for bbs: /home/bbs/bin/bbsrf
- bbsadm: with password
- bbs: no password
You can use adduser and related commands to achieve the goal.
Example for Debian / Ubuntu:
-
vipw and add the following two lines:
bbs::9999:99:PttBBS,,,:/home/bbs:/home/bbs/bin/bbsrf bbsadm::9999:99:PttBBS,,,:/home/bbs:/bin/bash
-
passwd bbsadm
-
add the following line in /etc/group:
bbs:x:99:
-
mkdir -p /home/bbs
-
chown -R bbs:bbs /home/bbs
-
chmod 700 /home/bbs
Use bbsadm
In /home/bbs:
-
git clone http://github.com/ptt/pttbbs
-
cd /home/bbs/pttbbs
-
cp sample/pttbbs.conf pttbbs.conf
-
Change pttbbs.conf based on your need. Uncomment the following two lines if you are in 64-bit Linux OS:
#define SHMALIGNEDSIZE (1048576*4) //for 64-bit Linux OS #define TIMET64 //for 64-bit OS
-
(If you are in linux:
alias make=pmake
)make all install clean
-
If you are setting up a new site:
cd sample; make install cd /home/bbs; bin/initbbs -DoIt
Start BBS
-
/home/bbs/bin/shmctl init
-
Use root to do the following:
/home/bbs/bin/mbbsd -p 23 -d
-
Test with the following:
telnet localhost 23
-
new a bbs-account named SYSOP
-
logout and then re-login as SYSOP, then you have SYSOP privilege.
- Thanks to : chhsiao1981@github