Changed default filesystem layout

This commit is contained in:
Michiel Broek 2001-12-25 17:57:32 +00:00
parent eb3b2481d8
commit fddb600faa
5 changed files with 91 additions and 45 deletions

View File

@ -4375,6 +4375,8 @@ v0.33.19 26-Oct-2001
most people don't need it.
Starting utilities is now more relaxed using a 3 seconds
pause timer. Fixed some potential Sparc problems.
On new systems, all paths for MBSE are now created in the
/opt/mbse root.
mbmon:
Changed the lastcaller screen to display the External Door

View File

@ -113,19 +113,29 @@ install:
mkdir ${PREFIX}/german/macro ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/german; \
fi
@if [ ! -d /var/spool/mbse ] ; then \
mkdir /var/spool/mbse ; \
mkdir /var/spool/mbse/nodelist ; \
mkdir /var/spool/mbse/unknown ; \
mkdir /var/spool/mbse/inbound ; \
mkdir /var/spool/mbse/outbound ; \
mkdir /var/spool/mbse/msgs; \
mkdir /var/spool/mbse/badtic ; \
mkdir /var/spool/mbse/ticqueue ; \
mkdir /var/spool/mbse/ftp ; \
mkdir /var/spool/mbse/mail ; \
${CHOWN} -R ${OWNER}.${GROUP} /var/spool/mbse ; \
chmod -R 0755 /var/spool/mbse ; \
@if [ ! -d ${PREFIX}/ftp ] ; then \
mkdir ${PREFIX}/ftp ; \
mkdir ${PREFIX}/ftp/pub ; \
mkdir ${PREFIX}/ftp/incoming ; \
${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp ; \
chmod 0755 ${PREFIX}/ftp ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/pub ; \
chmod 0755 ${PREFIX}/ftp/pub ; \
${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp/incoming ; \
chmod 0755 ${PREFIX}/ftp/incoming ; \
fi
@if [ ! -d ${PREFIX}/var/bso ] ; then \
mkdir ${PREFIX}/var/nodelist ; \
mkdir ${PREFIX}/var/bso ; \
mkdir ${PREFIX}/var/bso/unknown ; \
mkdir ${PREFIX}/var/bso/inbound ; \
mkdir ${PREFIX}/var/bso/outbound ; \
mkdir ${PREFIX}/var/msgs; \
mkdir ${PREFIX}/var/badtic ; \
mkdir ${PREFIX}/var/ticqueue ; \
mkdir ${PREFIX}/var/mail ; \
${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/var ; \
chmod -R 0750 ${PREFIX}/var ; \
fi
for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done

View File

@ -11,7 +11,7 @@
</HEAD>
<BODY>
<BLOCKQUOTE>
<h5>Last update 07-Aug-2001</h5>
<h5>Last update 25-Dec-2001</h5>
<P>&nbsp;<P>
<h1>MBSE BBS Basic Installation</h1>
@ -24,27 +24,60 @@ environment. If you don't do this, things will fail.
<h3>Step 1: planning the filesystems.</h3>
<p>
MBSE BBS is default installed in <b>/opt/mbse</b>. The spoolfiles (in and
outbound, message bases) go into <b>/var/spool/mbse</b>. In the <b>/opt/mbse</b>
path are several subdirectories, <b>bin</b> for the binaries, <b>etc</b> for the
configuration and some scripts, <b>english, spanish, italian</b> and <b>dutch</b> for the language
files and menus, <b>home</b> for the users homedirectories, <b>log</b> for the
logfiles, <b>magic</b> for the filerequest magicnames, <b>fdb</b> for the files
database, <b>var</b> for some statistic files and <b>tmp</b> as temp directory.
MBSE BBS is default installed in <b>/opt/mbse</b>. The default filesystem
layout looks like this:<br>
<pre>
/opt/mbse Default MBSE_ROOT
/opt/mbse/bin Binaries
/opt/mbse/doc Generated sitedocs
/opt/mbse/dutch/macro N/A
/opt/mbse/dutch/menus Dutch menu files
/opt/mbse/dutch/txtfiles Dutch ANSI files
/opt/mbse/english/macro Default english macros, not yet.
/opt/mbse/english/menus Default english menus
/opt/mbse/english/txtfiles Default english ANSI files
/opt/mbse/etc System configuration files
/opt/mbse/fdb Files database
/opt/mbse/ftp Default FTP root
/opt/mbse/galego/macro N/A
/opt/mbse/galego/menus Galego menu files
/opt/mbse/galego/txtfiles Galego ANSI files
/opt/mbse/home Users homedirectories
/opt/mbse/home/bbs Newuser account
/opt/mbse/html HTML documentation
/opt/mbse/italian/macro N/A
/opt/mbse/italian/menus Italian menu files
/opt/mbse/italian/txtfiles Italian ANSI files
/opt/mbse/log MBSE BBS logfiles
/opt/mbse/magic Magic filerequest names
/opt/mbse/sema Semafore files
/opt/mbse/spanish/macro N/A
/opt/mbse/spanish/menus Spanish menu files
/opt/mbse/spanish/txtfiles Spanish ANSI files
/opt/mbse/tmp Temp directory
/opt/mbse/tmp/arc Temp archiver directory
/opt/mbse/var Var root
/opt/mbse/var/badtic Bad TIC files
/opt/mbse/var/bso Binkley Style Outbound directory
/opt/mbse/var/bso/inbound Protected inbound directory
/opt/mbse/var/bso/outbound Default outbound directory
/opt/mbse/var/bso/unknown Unprotected inbound directory
/opt/mbse/var/mail JAM messagebase root
/opt/mbse/var/mail/badmail Bad echomail
/opt/mbse/var/mail/dupmail Duplicate echomail
/opt/mbse/var/msgs *.msgs netmail directory (not yet in use).
/opt/mbse/var/nodelist Nodelists
/opt/mbse/var/ticqueue Queue for TIC files
</pre>
<p>
Don't use UMSDOS or SAMBA filesystems for the bbs, stick by the standard Linux
filesystems (ext2 or reiserfs). If you intent to make your bbs also accessible
filesystems (ext2 or reiserfs) or ufs if you use FreeBSD.
If you intent to make your bbs also accessible
by FTP and WWW you must create the directory structure under the ftp user
behind the pub directory. Read <a href="misc/ftpserver.html">the
ftp server</a> doc for details. If you don't follow these guidlines, you
will run into trouble later and have to spend a lot of time in correcting
this error.
<p>
The default setup will be as follows:<br>
<pre>
/opt/mbse binaries, config and user home directories.
/var/spool/mbse In/outbound, queues, download directories.
</pre>
<P>&nbsp;<p>
<h3>Step 2: Running the installation script.</h3>
@ -106,8 +139,8 @@ rm -Rf mbsebbs-0.33.nn
<h3>Step 4: Install the basic packages.</h3>
<p>
Login as user <b>mbse</b>. While in the home directory unpack the distribution
archives:
Login as user <b>mbse</b>. Yes, very important, <b>login as user mbse</b>.
While in the home directory unpack the distribution archives:
<pre>
tar xfvz /path/to/mbsebbs-0.33.nn.tar.gz
</pre>
@ -117,7 +150,7 @@ Next build the binaries and install them using the folowing commands:
cd ~/mbsebbs-0.33.nn
./configure
make
su
su <b>important, do not use "su -"</b>
password: <em>enter root password here</em>
make install
exit

View File

@ -11,7 +11,7 @@
</HEAD>
<BODY>
<BLOCKQUOTE>
<h5>Last update 08-Nov-2001</h5>
<h5>Last update 25-Dec-2001</h5>
<P>&nbsp;<P>
<H1>MBSE BBS Setup - Global Setup</H1>
@ -84,7 +84,7 @@ as well, for example binkd, or even a DOS binkly-style mailer running from
a network. All those mailer must "see" the same file attaches in the .flo
files. If you leave the DOS path empty, no translation will be performed
and the Unix paths will be stored in the .flo files. This is the best setting
if mbsebbs is the only mailer running on your system.
if mbsebbs is the only mailer running on your system and is the default.
<P>
<h3>1.5. Edit BBS Configuration</H3>

View File

@ -151,20 +151,21 @@ void load_maincfg(void)
sprintf(CFG.bbs_menus, "%s/english/menus", getenv("MBSE_ROOT"));
sprintf(CFG.bbs_txtfiles, "%s/english/txtfiles", getenv("MBSE_ROOT"));
sprintf(CFG.bbs_usersdir, "%s/home", getenv("MBSE_ROOT"));
sprintf(CFG.nodelists, "/var/spool/mbse/nodelist");
sprintf(CFG.inbound, "/var/spool/mbse/unknown");
sprintf(CFG.pinbound, "/var/spool/mbse/inbound");
sprintf(CFG.outbound, "/var/spool/mbse/outbound");
sprintf(CFG.msgs_path, "/var/spool/mbse/msgs");
sprintf(CFG.uxpath, "/var/spool/mbse");
sprintf(CFG.badtic, "/var/spool/mbse/badtic");
sprintf(CFG.ticout, "/var/spool/mbse/ticqueue");
sprintf(CFG.nodelists, "%s/var/nodelist", getenv("MBSE_ROOT"));
sprintf(CFG.inbound, "%s/var/unknown", getenv("MBSE_ROOT"));
sprintf(CFG.pinbound, "%s/var/inbound", getenv("MBSE_ROOT"));
sprintf(CFG.outbound, "%s/var/bso/outbound", getenv("MBSE_ROOT"));
sprintf(CFG.msgs_path, "%s/var/msgs", getenv("MBSE_ROOT"));
sprintf(CFG.uxpath, "%s/var", getenv("MBSE_ROOT"));
sprintf(CFG.badtic, "%s/var/badtic", getenv("MBSE_ROOT"));
sprintf(CFG.ticout, "%s/var/ticqueue", getenv("MBSE_ROOT"));
sprintf(CFG.req_magic, "%s/magic", getenv("MBSE_ROOT"));
CFG.leavecase = TRUE;
/*
* Newfiles reports
*/
sprintf(CFG.ftp_base, "/var/spool/mbse/ftp");
sprintf(CFG.ftp_base, "%s/ftp", getenv("MBSE_ROOT"));
CFG.newdays = 30;
CFG.security.level = 20;
CFG.new_split = 27;
@ -312,8 +313,8 @@ void load_maincfg(void)
*/
CFG.maxpktsize = 150;
CFG.maxarcsize = 300;
sprintf(CFG.badboard, "/var/spool/mbse/mail/badmail");
sprintf(CFG.dupboard, "/var/spool/mbse/mail/dupmail");
sprintf(CFG.badboard, "%s/var/mail/badmail", getenv("MBSE_ROOT"));
sprintf(CFG.dupboard, "%s/var/mail/dupmail", getenv("MBSE_ROOT"));
sprintf(CFG.popnode, "localhost");
sprintf(CFG.smtpnode, "localhost");
sprintf(CFG.nntpnode, "localhost");
@ -372,7 +373,7 @@ void load_maincfg(void)
/*
* WWW defaults
*/
sprintf(CFG.www_root, "/var/lib/apache/htdocs");
sprintf(CFG.www_root, "/var/www/htdocs");
sprintf(CFG.www_link2ftp, "files");
sprintf(CFG.www_url, "http://%s", CFG.sysdomain);
sprintf(CFG.www_charset, "ISO 8859-1");