AlcugsInstall/Preparations
From Alcugs
This is the first part of the Alcugs server installation instructions.
1. You will need a MySQL install. Use a recent version if possible.
You should set a password for the mysql root user and create a separate mysql user for the alcugs servers so that they don't access the MySQL-Database with root privileges.:
Bourne Shell# to set the root password - you need to run this only once, but don't skip it! mysql_secure_installation # this will ask you for the root password you set above and log you in to the mysql server # run this whenever you need to issue mysql commands mysql -u root -p
Then create the databases and the mysql user with the following commands (fill in some random password):
SQLCREATE DATABASE alcugs_auth; CREATE DATABASE alcugs_vault; CREATE USER 'alcugs'@'localhost' IDENTIFIED BY 'change_this_password'; GRANT ALL PRIVILEGES ON alcugs_auth.* TO 'alcugs'@'localhost'; GRANT ALL PRIVILEGES ON alcugs_vault.* TO 'alcugs'@'localhost';
2. Make sure you have the standard development tools installed. Some OS distributions might allow you to select a group of packages named something like "development", others like Debian have a meta-package called e.g. "build-essential". Otherwise, a hopefully complete list of tools you will need is:
- g++
- make (may be in base install)
and of course all the dependencies.
3. You will also need development packages for:
- mysql (Debian packet: libmysqlclient15-dev)
- zlib (Debian packet: zlib1g-dev)
4. This software should not be run as a privileged user (root). If you do not already have a non-root user to run the shard as, create one, or plan to use something like "nobody" or "mysql". The Alcugs files refer to "alcugs", and you can create such a user as follows:
Bourne Shelladduser alcugs
After the packages and user are set up, no further use of root privileges is required. Log in as the user, or su to it:
Bourne Shellsu alcugs
Everything following now has to be done as low-privileged alcugs user, otherwise you will open serious security holes!
Now you can go on Building the Servers.

