Difference between revisions of "Post-Install Configuration"

From MineOS Wiki
Jump to navigation Jump to search
Line 30: Line 30:
 
=== Crontabs ===
 
=== Crontabs ===
  
Minecraft related cron-jobs can be managed from the web-ui, such as backup, archiving, mapping, as well as [onreboot] restoring and server starting.  For any other tanks, you will need to create a cron script yourself.  For your benefit, however, the process has been greatly simplified.  The directory <tt>/etc/cron/</tt> has several sub-directories, (hourly, daily, weekly, etc). Instead of having to learn standard crontab syntax, each sub-directory (and its contained files) gets executed at its respective interval.
+
Minecraft related cron-jobs can be managed from the web-ui, such as backup, archiving, mapping, as well as [onreboot] restoring and server starting.  For any other tanks, you will need to create a cron script yourself.  For your benefit, [[crontabs|creating crontabs]] has been greatly simplified.   
 
 
For example, if you want to gzip your server log every week, you can create a script as 'root':
 
 
 
# touch /etc/cron/weekly/gzipserverlog
 
# chmod +x /etc/cron/daily/gzipserverlog
 
# nano /etc/cron/daily/gzipserverlog
 
 
 
(backupscript contents)
 
<nowiki>
 
cd /usr/games/minecraft
 
./mineos_console.py log_archive servername
 
</nowiki>
 
 
 
Remember, these crontabs are usable for any purpose, not just Minecraft maintenance!
 
  
 
=== Hosting a Website ===
 
=== Hosting a Website ===
  
 
The most common web-language on Linux servers is PHP.  With Hiawatha webserver and PHP, you can easily host forums, image galleries, and countless other website features to your server.  Provided are [[PHP|instructions to enable PHP]].
 
The most common web-language on Linux servers is PHP.  With Hiawatha webserver and PHP, you can easily host forums, image galleries, and countless other website features to your server.  Provided are [[PHP|instructions to enable PHP]].

Revision as of 04:18, 20 August 2011

A few configurations must occur after the first reboot, and some are not implemented to greatly simplify the setup. These steps, however, are important for the securing of the server.

System management

Passwords

MySQL root password

The MySQL password is not set by default (blank), and can only be set when the MySQL daemon is running (upon first boot). Instructions to secure or disable MySQL

Changing the web-ui password

The default admin:password to the web-ui is admin:minecraft Since this is common among all installs, it is advised to change the web-ui password immediately.

Using RSA-key to log into SSH/SFTP

For additional security, or to employ password-free SSH/SFTP logins, you can generate a public/private RSA-key pair

Other configuration

iptables

iptables filters inbound and outbound traffic by a sequence of rules. These rules are to prevent undesired traffic from being responded to, helping defend against DOS attacks and to prevent unauthorized access (such as permitting SSH connections only from an IP address/range).

The default rules include inbound connections for SSH (22), Minecraft (25565), HTTP (80), and HTTPS (443) though it is fully customizable.

Crontabs

Minecraft related cron-jobs can be managed from the web-ui, such as backup, archiving, mapping, as well as [onreboot] restoring and server starting. For any other tanks, you will need to create a cron script yourself. For your benefit, creating crontabs has been greatly simplified.

Hosting a Website

The most common web-language on Linux servers is PHP. With Hiawatha webserver and PHP, you can easily host forums, image galleries, and countless other website features to your server. Provided are instructions to enable PHP.