![]() |
![]() |
![]() |
|
|
|
|
|
|
|
|
|
|
Admin scriptsThis manual covers helper scripts for the Mix server, an InfoService, a firewall and a web proxy. They are useful if you often want to update the code with the newest CVS version. We also propose Operators to encrypt their server file system before installation.Hint: Normal Mix Operators do not need to install an InfoService. This is planned for the future. DirectoriesTo run the mix (and optionally an InfoService) you have to create the following directories:To create a directory, type
In each of the directories the subdirectories
will be generated by the scripts. ./backup holds old binaries and
their log files. As you see you may easily go back to an old but working
installation if an update has failed. In ./cvs the source files
are stored (and overwritten) when getting a new source code version.
ExecutablesPlease put the following executable files in the proper directories. Note that the InfoService files are optional. There is also a firewall script, but if you want to use it, you will have to adapt it to your needs first.
You might also need to convert the executable files to the unix format by installing the sysutils or tofrodos package e.g. with apt by
and typing
on each of the files.
Config filesFor running the mix, you only need the config file generated by the MixConfig tool. Please name and place the config files as shown below, otherwise you will have to adapt one or more of the executable scripts and the links to them.
Squid proxy installation (for last mixes)Download the newest squid 2.6 stable sourcecode from http://www.squid-cache.org/Versions/v2/2.6/ and unpack to /home/mix by typing
Copy the executable squidconfigure into the newly created directory squid-2.6.STABLE6 and type
Squid is now installed in /usr/local/squid. Link the squid executable to /usr/sbin Create the cache files
and start squid:
InfoService LibrariesIf you plan to run an InfoService, too, you need to copy the java libraries needed for compilation into the directory
If you choose an other directory, you have to adapt the file
/home/mix/InfoService/runInfoService.
For installing a java compiler and a runtime environment, you will find a very good installation guide for debian here . As this does not seem to work at the moment, try this. Soon Sun Java will be integrated into Debian stable, as Sun has changed its licence., and may then be easily installed. If you have several Java versions installed on your system, you can switch between them by typing
Links to the executablesYou should set some system-wide links, so that you can use the startup scripts from every directoy:
Before Mix compilation, may need to install some packages in order to compile the code:
and dependencies. If you do not find one or more of these libraries, you
may, on Debian/Ubuntu systems, look for them using the You may now update the mix with the newest CVS code by typing
Accounting database configurationIf you run pay Mixes, you moreover have to initialise the postgres database. it is only needed for the first Mix. However, you do not know if you may not switch position some time, and therefore also other Mixes should do that.
Start/Stop/RestartThe Mix server, InfoService and the firewall can be started with running the skripts with the 'start', 'stop' and 'restart' options. With the 'process' option you can list the running processes, 'log' will list the log file entries. 'status' Häufigkeit:- alle paar Wochenshows you if the servers are running at the moment. You can test if the Mix server has connected properly to a cascade by tying
If you see more than one running instance of the server process, everythin is OK. This can take about a minute after you started the Mix. Another indication is to check at the end of the logfile for an entry "connected" by typing
and after the log file has opened
The firewall has to be started with 'root' rights. If you do not have 'root' rights it's normally also ok to restart the system. This will automatically also restart the firewall with 'root' privileges. Runlevel linksIf you want the services started automatically when starting the server machine, you have to set links to the executables in runlevel 3 and runlevel 5.
Log filesNew messages will be appended on the end of the logfiles. InfoService can have more than just one logfile but should be configured with just one central log. Please configure the Mix/InfoService to store its logs at those positions:
Default runlevelThe default runlevel has been set to 3 so that the the graphical environment will not be loaded. This can be changed by the administrator either while the system is running with:
or permanently with editing the /etc/inittab entries.
|
|
||||||||||
|
|
|
|||||||||||