Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
config:nix [2011/06/21 19:30] – digitalman | config:nix [2023/02/12 20:17] (current) – [PidFile] Update the default value and description. digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== UNIX ====== | ====== UNIX ====== | ||
- | ===== sbbs.ini | + | Configuration of '' |
- | Unix Sysops will particularly want to pay attention to the '' | + | ===== User/Group ===== |
+ | If you are **not** | ||
+ | |||
+ | ==== User ==== | ||
+ | |||
+ | Default: < | ||
+ | |||
+ | ==== Group ==== | ||
+ | |||
+ | Default: < | ||
If you do not want to run Synchronet (and all external programs/ | If you do not want to run Synchronet (and all external programs/ | ||
- | root, you will have to set the '' | + | root (the Unix // |
- | User=sbbsgroup | + | Example: |
- | Group=sbbsuser | + | |
- | Also, the file | + | User=sbbsuser |
- | permissions/ | + | Group=sbbsgroup |
+ | |||
+ | NOTE: the '' | ||
+ | |||
+ | Also, the Synchronet | ||
+ | permissions/ | ||
and write access to them. The best way to accomplish this is a command | and write access to them. The best way to accomplish this is a command | ||
like: | like: | ||
Line 18: | Line 31: | ||
# chown -R sbbsuser: | # chown -R sbbsuser: | ||
- | If you want Synchronet | + | If you do this, then be sure to run any Synchronet utilities (e.g. [[util: |
- | via syslog rather than the local console, set Daemonize=True in this section. Example: | + | |
+ | # su -c / | ||
- | Daemonize=True | + | ===== Logging ===== |
+ | ==== LogFacility ==== | ||
- | To configure syslog | + | Default: '' |
+ | |||
+ | Supported Values: '' | ||
+ | |||
+ | If you have '' | ||
+ | via [[monitor: | ||
LogFacility=3 | LogFacility=3 | ||
- | + | Then, in ''/ | |
- | Then, in ''/ | + | |
- | local3.* | + | local3.* |
Depending on how your vendor set up '' | Depending on how your vendor set up '' | ||
Line 39: | Line 58: | ||
You will have to create this file manually initially by running: | You will have to create this file manually initially by running: | ||
- | # touch /var/log/synchronet.log | + | # touch /var/log/sbbs.log |
Then send a HUP to syslogd like so: | Then send a HUP to syslogd like so: | ||
# killall -HUP syslogd | # killall -HUP syslogd | ||
+ | | ||
+ | Or it might be necessary to: | ||
+ | # service syslogd restart | ||
+ | | ||
+ | You could then monitor the Synchronet daemon log output with: | ||
+ | # tail -f / | ||
You will want to investigate how your system rotates logs and set it up to | You will want to investigate how your system rotates logs and set it up to | ||
- | rotate '' | + | rotate '' |
+ | |||
+ | # cat / | ||
+ | / | ||
+ | weekly | ||
+ | missingok | ||
+ | rotate 52 | ||
+ | notifempty | ||
+ | create 640 root adm | ||
+ | sharedscripts | ||
+ | postrotate | ||
+ | invoke-rc.d rsyslog reload > /dev/null | ||
+ | endscript | ||
+ | } | ||
Further use of the '' | Further use of the '' | ||
Line 58: | Line 97: | ||
LOG_MAIL | LOG_MAIL | ||
LOG_CRON | LOG_CRON | ||
+ | | ||
+ | Note: the LogFacility value in the '' | ||
- | === LogIdent === | + | ==== LogIdent |
- | Default: Synchronet | + | Default: |
- | FIXME | + | This is the value passed as the '' |
- | === PidFile | + | ===== Process Control ===== |
- | Default: ''/ | + | ==== PidFile ==== |
- | FIXME | + | Default: '' |
- | === umask === | + | This key contains the path of the file which will contain the process identifier (PID) of Synchronet and may be used by background/ |
- | Default: 077 | + | # service sbbs status |
+ | Synchronet BBS services status: [running] | ||
+ | PID(s): 6270 | ||
- | FIXME | + | If you change the value of this key, you may also need to modify your startup script (e.g. ''/ |
- | ===== Terminal Capabilities ===== | + | ==== umask ==== |
- | As you may have noticed by now, most telnet clients designed for use with | + | Default: |
- | ANSI BBSes do not display full-screen Unix programs correctly. Included with | + | |
- | Synchronet is a pair of terminal capability definition files that enable you | + | |
- | to run native full-screen Unix programs and have the output displayed correctly | + | |
- | in a standard ANSI-BBS terminal. | + | |
- | located in your Synchronet install directory. | + | |
- | other, and it won't hurt to install both. You will need to be logged in as | + | |
- | root to install the files. | + | |
- | ==== Installing the terminfo | + | Sets '' |
- | 1) Get the Synchronet ANSI-BBS terminfo file from | + | Note: If the value begins with a '' |
- | [[http:// | + | |
- | 2) Enter the command: | + | Run '' |
- | # tic terminfo | + | |
- | ==== Installing the termcap file ==== | + | ==== Daemonize |
- | 1) Get the Synchronet ANSI-BBS termcap file from | + | Default: '' |
- | [[http:// | + | |
- | 2) Enter the command: | + | When set to '' |
- | # cat termcap >> / | + | |
- | + | ||
- | 3) **FreeBSD Only** run the command: | + | |
- | # cap_mkdb -f / | + | |
- | + | ||
- | Once the terminal capability files are installed, edit the '' | + | |
- | value in the '' | + | |
- | ExternalTermANSI=ansi-bbs | + | |
- | + | ||
- | Note: The default value of the '' | + | |
- | + | ||
- | Note: Once again, many Linux distros do not have a termcap. | + | |
- | You do NOT need to install the termcap-compat package. | + | |
- | isn't installed, it means nothing uses it. Only if there is a | + | |
- | termcap do you need to add the '' | + | |
- | + | ||
- | ===== Running Synchronet Automatically During Boot-up ===== | + | |
- | + | ||
- | If you want Synchronet to start automatically whenever your system boots, | + | |
- | you will need to set that up using the system rc scripts. | + | |
- | + | ||
- | ==== Linux ==== | + | |
- | + | ||
- | 1) Get the Synchronet service run script (init file) from | + | |
- | [[http:// | + | |
- | + | ||
- | 2) Copy the run script ('' | + | |
- | + | ||
- | 3) Add the Synchronet system service: | + | |
- | # chkconfig --add sbbs | + | |
- | + | ||
- | 4) Start the Synchronet system service: | + | |
- | # / | + | |
- | + | ||
- | ==== FreeBSD ==== | + | |
- | + | ||
- | 1) Get the Synchronet service | + | |
- | + | ||
- | 2) Copy the run script (sbbs) into your ''/ | + | |
- | + | ||
- | 3) Set up the sbbs settings: | + | |
- | In one of ''/ | + | |
- | line: | + | |
- | | + | |
- | + | ||
- | 4) In one of the files from step three, add appropriate lines from the following (Defaults are shown here): | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | # The rest of the sbbs_*dir derive | + | |
- | # from this be default | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | # not root, you cannot bind low ports | + | |
- | | + | |
- | + | ||
- | 5) Start the Synchronet system service (FreeBSD 5.x+): | + | |
- | # / | + | |
- | (FreeBSD 4.x and lower): | + | |
- | # / | + | |
- | + | ||
- | ===== A note on SysOp paging ===== | + | |
- | + | ||
- | For most systems, the BBS must either have write access to the sound card via | + | |
- | /dev/dsp, or run as root to page the SysOp. | + | |
- | method which requires one of the following: | + | |
- | + | ||
- | ==== On FreeBSD 4.x ==== | + | |
- | + | ||
- | A custom kernel with the following option in the config | + | |
- | pseudo-device speaker | + | |
- | + | ||
- | ==== On FreeBSD 5.x and higher ==== | + | |
- | + | ||
- | One of: | + | |
- | - A custom kernel with the following option in the config device speaker | + | |
- | - The speaker module loaded by either: | + | |
- | - Running | + | |
- | - The line '' | + | |
- | + | ||
- | ''/ | + | |
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: | ||
+ | * [[: | ||
+ | |||
+ | {{tag> |