diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 00000000..396c39df --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,41 @@ +Installation +================== +To install LBBS, please perform the following steps: + +0) Prerequisite + Follow README.md under [leafok_bbs](https://github.com/leafok88/leafok_bbs) to initialize the database structure shared by both web version and telnet version. + It is highly recommended to finish the configuration steps of web version first and make sure those features could work properly. + +1) Extract the source files from a tarball or export from GitHub + Run the following command to set up the autoconf/automake environment, + sh ./autogen.sh + and fix any error if exists. + +2) Compile source files + ./configure --prefix=/usr/local/lbbs + make + +3) Create user and group + sudo useradd bbs + +4) Install binary files and data files + sudo make install + +5) Modify following configuration files + Default configuration files is saved as *.default, you should rename them first. + /usr/local/lbbs/conf/bbsd.conf + /usr/local/lbbs/utils/conf/db_conn.inc.php + +6) Generate menu configuration file with section data by running the script + sudo -u bbs php /usr/local/lbbs/utils/bin/gen_section_menu.php + sudo -u bbs php /usr/local/lbbs/utils/bin/gen_ex_list.php + +7) Create or copy SSH2 RSA certificate into /usr/local/lbbs/conf + ssh-keygen -t rsa -C "Your Server Name" -f ssh_host_rsa_key + +8) Startup + sudo /usr/local/lbbs/bin/bbsd + +9) Set up systemd + Create your own /usr/lib/systemd/system/lbbs.service from the sample at conf/lbbs.service.default, and make any change if necessary. + Reload daemon config and start the service. diff --git a/README.md b/README.md index 9fe93697..fe299f53 100644 --- a/README.md +++ b/README.md @@ -21,44 +21,6 @@ System Requirement 3) MySQL database ( Version >= 8.4 ) -Quick Installation +Installation ================== -To install LBBS quickly, please do the following steps: - -0) Prerequisite - Follow README.md under [leafok_bbs](https://github.com/leafok88/leafok_bbs) to initialize the database structure shared by both web version and telnet version. - It is highly recommended to finish the configuration steps of web version first and make sure those features could work properly. - -1) Extract the source files from a tarball or export from GitHub - Run the following command to set up the autoconf/automake environment, - sh ./autogen.sh - and fix any error if exists. - -2) Compile source files - ./configure --prefix=/usr/local/lbbs - make - -3) Create user and group - sudo useradd bbs - -4) Install binary files and data files - sudo make install - -5) Modify following configuration files - Default configuration files is saved as *.default, you should rename them first. - /usr/local/lbbs/conf/bbsd.conf - /usr/local/lbbs/utils/conf/db_conn.inc.php - -6) Generate menu configuration file with section data by running the script - sudo -u bbs php /usr/local/lbbs/utils/bin/gen_section_menu.php - sudo -u bbs php /usr/local/lbbs/utils/bin/gen_ex_list.php - -7) Create or copy SSH2 RSA certificate into /usr/local/lbbs/conf - ssh-keygen -t rsa -C "Your Server Name" -f ssh_host_rsa_key - -8) Startup - sudo /usr/local/lbbs/bin/bbsd - -9) Set up systemd - Create your own /usr/lib/systemd/system/lbbs.service from the sample at conf/lbbs.service.default, and make any change if necessary. - Reload daemon config and start the service. +See guide in [INSTALL.md](INSTALL.md) diff --git a/configure.ac b/configure.ac index ef67b1b7..e8a8f39f 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([lbbs],[1.3.5]) +AC_INIT([lbbs],[1.3.6]) AC_CONFIG_SRCDIR([src/]) AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE([foreign]) @@ -10,7 +10,6 @@ AM_SILENT_RULES(yes) AC_USE_SYSTEM_EXTENSIONS # Checks for programs. -AC_PROG_GCC_TRADITIONAL LT_INIT AC_PROG_CXX AC_PROG_CC diff --git a/data/register.txt b/data/register.txt index e540b487..59fa1541 100644 --- a/data/register.txt +++ b/data/register.txt @@ -1,4 +1,4 @@  - 改功能尚未完成,请使用WWW方式注册新帐号。 - + 该功能尚未完成,请使用WWW方式注册新帐号。 + https://www.fenglin.info/bbs/user_reg.php  diff --git a/src/login.c b/src/login.c index b1356cf4..03d6152e 100644 --- a/src/login.c +++ b/src/login.c @@ -60,7 +60,7 @@ int bbs_login(void) { display_file(DATA_REGISTER, 1); - return 0; + return -1; } if (username[0] != '\0')