EPONA INSTALLATION INSTRUCTIONS =============================== Table of contents ----------------- 1. Installing Epona 2. Upgrading Epona 3. Setting up the IRCd 4. Starting Epona 5. Setting up cron jobs You should also read the README and FAQ files! 1. Installing Epona ------------------- IMPORTANT NOTE: it is not recommended to use (and therefore install) Epona as root. Use an unprivilegied user instead -- the one you're using for the ircd or a dedicated one will be good enough. Make sure you have gcc 3.3 or later installed to compile Epona, and that the C++ compiler (g++) is installed too. I can't guarantee Epona will compile/run correctly with other compilers. perl needs to be installed. as well. Besides gcc, the following packages are needed for all features to be enabled: * Bzip2 library * MySQL client libraries 4.1.13 or later; * OpenSSL * Zlib The very first thing you need to do is to get the Epona package (if not already done). You may find it at the following locations: PegSoft (France) (always up-to-date) ftp://ftp.pegsoft.net/epona/ Next, unpack the package in your home directory, and go into the created repertory. Source code needs to be configured before it is compiled, so you'll now have to run the configure script by typing: ./configure options where options can be one or more of the following: * --prefix=path: installs Epona in a different location than the the default ($HOME/epona). * --with-ircd=type: selects the IRCd used by the network to which your services will be linked. Possible type values: bahamut, dreamforge, sequana, unreal and ultimate. (REQUIRED) * --with-bzlib=DIR: specifies an alternative root path for the system bzlib installation. By default, the configure looks for bzlib library in /usr/local, or /usr if it isn't found in /usr/local. If it can't find it at all, then some modules are disabled. * --with-mysql=DIR: specifies an alternative path for the mysql_config script installed with MySQL. By default, the configure script looks for it in the directories listed in the PATH environment variable. If MySQL can't be found, then some modules are disabled. * --with-openssl=DIR: specifies an alternative root path for the system OpenSSL installation. By default, the configure looks for OpenSSL library in /usr/local, or /usr if it isn't found in /usr/local. If it can't find it at all, then some modules are disabled. * --with-zlib=DIR: specifies an alternative root path for the system zlib installation. By default, the configure looks for zlib library in /usr/local, or /usr if it isn't found in /usr/local. If it can't find it at all, then some modules are disabled. You can now type make to compile Epona. Now type make install. This will install all the needed files in the directory determined by the configure script. You should ensure that this directory is not accessible by other users, as malicious people may cause troubles on your network if passwords are not encrypted, or read the memos of any user. If you got errors during this process, please mail me with the *complete* error output, and don't forget to mention your OS, compiler and C library versions. Now go into the installation directory (by default, ~/epona). Copy the epona.conf.dist file to epona.conf, and open the latter with your favourite text editor. It contains all the configuration directives Epona will use at startup. Read the instructions contained in the file carefully. Using only the default values is NOT a good idea, and will most likely not work! You may then need to edit the configuration files of the modules you're going to use. If you need help, you should subscribe to the Epona mailing list and mail there to get help from other users. See the README file for more information. DON'T ask for help to me directly; I unfortunately don't have the time to answer all technical questions (but I'm reading the mailing list so I'll be able to give you my thoughts if your problem is very special.) 2. Upgrading Epona ------------------ If you got a .diff file and want to patch the old Epona sources with it, do the following: * Copy the .diff file into the root Epona sources directory. * Type make distclean so that the source tree returns to its initial uncompiled and unconfigured state (you may get compilation errors if you don't do this). * Type patch -p1 /dev/null 2>&1 The */5 at the beginning means "check every 5 minutes". You may replace the 5 with other another number if you want (but less than 60). Save and exit, and it's installed. b. db-backup.sh --------------- This script is useful to do periodic backups of your data, no matter what database module you're using. Its use is therefore highly recommended. First rename the db-backup.sh.dist script that has been installed by Epona (by default, it's in ~/epona/sbin) to db-backup.sh (or what you like most) and edit it. You'll need to modify the CONFIGURATION part of the file. Then ensure that the file is marked as executable by typing chmod +x db-backup.sh, and try to launch the script to see if it works. When this is done, you'll have to add the crontab entry. Type crontab -e. This will open the default text editor with the crontab file (if you hate the default editor, type EDITOR=yourfavoriteeditorname crontab -e). Enter the following (change path as appropriate): 3 0 * * * /home/ircd/epona/sbin/db-backup.sh >/dev/null 2>&1 This runs the backup script every day, 3 minutes after midnight.