Difference between revisions of "Post-Install Configuration"

From MineOS Wiki
Jump to navigation Jump to search
Line 12: Line 12:
  
 
Typical rules will include inbound connections for SSH (22), Minecraft (25565), HTTP (80), though any setup is possible.
 
Typical rules will include inbound connections for SSH (22), Minecraft (25565), HTTP (80), though any setup is possible.
 +
 +
== Changing Web-ui password ==
 +
 +
The default admin:password to the web-ui is <tt>admin:minecraft</tt>
 +
If you would like to change this, (either the username and/or password), open up /etc/hiawatha/passwords in your favorite text editor and replace the existing line.
 +
 +
Since the password is encrypted, you must first generate it. You can do so with the help of an [http://aspirine.org/htpasswd_en.html online generator].  Fill in the username to whatever you like, set the password and choose CRYPT as the password--it is essential to choose CRYPT.
 +
 +
For example:
 +
 +
<tt>nano /etc/hiawatha/passwords</tt>
 +
Replace the one existing line with the generated line, such as: will:/ZU9ss0WcLwmE
 +
Save and exit. The password will take effect on reboot or on hiawatha restart (<tt>/etc/rc.d/hiawatha restart</tt>).
 +
 +
Remember, any usernames listed in the passwords file will be accessible, so be sure to remove the existing admin:password line no matter what.

Revision as of 04:40, 2 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.

MySQL root password

The password is unset by default, and can only be set when the MySQL daemon is running (after first boot). To set the password, use the following command as root:

  1. ln -s /var/www/tmp/mysql.sock /tmp/mysql.sock
  2. mysql_secure_installation

iptables configuration

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).

Typical rules will include inbound connections for SSH (22), Minecraft (25565), HTTP (80), though any setup is possible.

Changing Web-ui password

The default admin:password to the web-ui is admin:minecraft If you would like to change this, (either the username and/or password), open up /etc/hiawatha/passwords in your favorite text editor and replace the existing line.

Since the password is encrypted, you must first generate it. You can do so with the help of an online generator. Fill in the username to whatever you like, set the password and choose CRYPT as the password--it is essential to choose CRYPT.

For example:

nano /etc/hiawatha/passwords Replace the one existing line with the generated line, such as: will:/ZU9ss0WcLwmE Save and exit. The password will take effect on reboot or on hiawatha restart (/etc/rc.d/hiawatha restart).

Remember, any usernames listed in the passwords file will be accessible, so be sure to remove the existing admin:password line no matter what.