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. most people don't need it.
Starting utilities is now more relaxed using a 3 seconds Starting utilities is now more relaxed using a 3 seconds
pause timer. Fixed some potential Sparc problems. pause timer. Fixed some potential Sparc problems.
On new systems, all paths for MBSE are now created in the
/opt/mbse root.
mbmon: mbmon:
Changed the lastcaller screen to display the External Door Changed the lastcaller screen to display the External Door

View File

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

View File

@ -11,7 +11,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<h5>Last update 07-Aug-2001</h5> <h5>Last update 25-Dec-2001</h5>
<P>&nbsp;<P> <P>&nbsp;<P>
<h1>MBSE BBS Basic Installation</h1> <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> <h3>Step 1: planning the filesystems.</h3>
<p> <p>
MBSE BBS is default installed in <b>/opt/mbse</b>. The spoolfiles (in and MBSE BBS is default installed in <b>/opt/mbse</b>. The default filesystem
outbound, message bases) go into <b>/var/spool/mbse</b>. In the <b>/opt/mbse</b> layout looks like this:<br>
path are several subdirectories, <b>bin</b> for the binaries, <b>etc</b> for the <pre>
configuration and some scripts, <b>english, spanish, italian</b> and <b>dutch</b> for the language /opt/mbse Default MBSE_ROOT
files and menus, <b>home</b> for the users homedirectories, <b>log</b> for the /opt/mbse/bin Binaries
logfiles, <b>magic</b> for the filerequest magicnames, <b>fdb</b> for the files /opt/mbse/doc Generated sitedocs
database, <b>var</b> for some statistic files and <b>tmp</b> as temp directory. /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> <p>
Don't use UMSDOS or SAMBA filesystems for the bbs, stick by the standard Linux 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 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 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 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 will run into trouble later and have to spend a lot of time in correcting
this error. 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> <P>&nbsp;<p>
<h3>Step 2: Running the installation script.</h3> <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> <h3>Step 4: Install the basic packages.</h3>
<p> <p>
Login as user <b>mbse</b>. While in the home directory unpack the distribution Login as user <b>mbse</b>. Yes, very important, <b>login as user mbse</b>.
archives: While in the home directory unpack the distribution archives:
<pre> <pre>
tar xfvz /path/to/mbsebbs-0.33.nn.tar.gz tar xfvz /path/to/mbsebbs-0.33.nn.tar.gz
</pre> </pre>
@ -117,7 +150,7 @@ Next build the binaries and install them using the folowing commands:
cd ~/mbsebbs-0.33.nn cd ~/mbsebbs-0.33.nn
./configure ./configure
make make
su su <b>important, do not use "su -"</b>
password: <em>enter root password here</em> password: <em>enter root password here</em>
make install make install
exit exit

View File

@ -11,7 +11,7 @@
</HEAD> </HEAD>
<BODY> <BODY>
<BLOCKQUOTE> <BLOCKQUOTE>
<h5>Last update 08-Nov-2001</h5> <h5>Last update 25-Dec-2001</h5>
<P>&nbsp;<P> <P>&nbsp;<P>
<H1>MBSE BBS Setup - Global Setup</H1> <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 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 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 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> <P>
<h3>1.5. Edit BBS Configuration</H3> <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_menus, "%s/english/menus", getenv("MBSE_ROOT"));
sprintf(CFG.bbs_txtfiles, "%s/english/txtfiles", getenv("MBSE_ROOT")); sprintf(CFG.bbs_txtfiles, "%s/english/txtfiles", getenv("MBSE_ROOT"));
sprintf(CFG.bbs_usersdir, "%s/home", getenv("MBSE_ROOT")); sprintf(CFG.bbs_usersdir, "%s/home", getenv("MBSE_ROOT"));
sprintf(CFG.nodelists, "/var/spool/mbse/nodelist"); sprintf(CFG.nodelists, "%s/var/nodelist", getenv("MBSE_ROOT"));
sprintf(CFG.inbound, "/var/spool/mbse/unknown"); sprintf(CFG.inbound, "%s/var/unknown", getenv("MBSE_ROOT"));
sprintf(CFG.pinbound, "/var/spool/mbse/inbound"); sprintf(CFG.pinbound, "%s/var/inbound", getenv("MBSE_ROOT"));
sprintf(CFG.outbound, "/var/spool/mbse/outbound"); sprintf(CFG.outbound, "%s/var/bso/outbound", getenv("MBSE_ROOT"));
sprintf(CFG.msgs_path, "/var/spool/mbse/msgs"); sprintf(CFG.msgs_path, "%s/var/msgs", getenv("MBSE_ROOT"));
sprintf(CFG.uxpath, "/var/spool/mbse"); sprintf(CFG.uxpath, "%s/var", getenv("MBSE_ROOT"));
sprintf(CFG.badtic, "/var/spool/mbse/badtic"); sprintf(CFG.badtic, "%s/var/badtic", getenv("MBSE_ROOT"));
sprintf(CFG.ticout, "/var/spool/mbse/ticqueue"); sprintf(CFG.ticout, "%s/var/ticqueue", getenv("MBSE_ROOT"));
sprintf(CFG.req_magic, "%s/magic", getenv("MBSE_ROOT")); sprintf(CFG.req_magic, "%s/magic", getenv("MBSE_ROOT"));
CFG.leavecase = TRUE;
/* /*
* Newfiles reports * Newfiles reports
*/ */
sprintf(CFG.ftp_base, "/var/spool/mbse/ftp"); sprintf(CFG.ftp_base, "%s/ftp", getenv("MBSE_ROOT"));
CFG.newdays = 30; CFG.newdays = 30;
CFG.security.level = 20; CFG.security.level = 20;
CFG.new_split = 27; CFG.new_split = 27;
@ -312,8 +313,8 @@ void load_maincfg(void)
*/ */
CFG.maxpktsize = 150; CFG.maxpktsize = 150;
CFG.maxarcsize = 300; CFG.maxarcsize = 300;
sprintf(CFG.badboard, "/var/spool/mbse/mail/badmail"); sprintf(CFG.badboard, "%s/var/mail/badmail", getenv("MBSE_ROOT"));
sprintf(CFG.dupboard, "/var/spool/mbse/mail/dupmail"); sprintf(CFG.dupboard, "%s/var/mail/dupmail", getenv("MBSE_ROOT"));
sprintf(CFG.popnode, "localhost"); sprintf(CFG.popnode, "localhost");
sprintf(CFG.smtpnode, "localhost"); sprintf(CFG.smtpnode, "localhost");
sprintf(CFG.nntpnode, "localhost"); sprintf(CFG.nntpnode, "localhost");
@ -372,7 +373,7 @@ void load_maincfg(void)
/* /*
* WWW defaults * 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_link2ftp, "files");
sprintf(CFG.www_url, "http://%s", CFG.sysdomain); sprintf(CFG.www_url, "http://%s", CFG.sysdomain);
sprintf(CFG.www_charset, "ISO 8859-1"); sprintf(CFG.www_charset, "ISO 8859-1");