| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| minecraft [2019/05/06 23:16] – jnilsson | minecraft [2019/05/14 16:30] (current) – justip6 |
|---|
| * **IP Address**: **128.195.133.148** | * **IP Address**: **128.195.133.148** |
| |
| * **User accounts**: with SS2K domain account or local user "**mcuser**" (ask sscs@uci.edu if you do not know the password) | * **User accounts**: local user "**mcuser**" (ask sscs@uci.edu if you do not know the password). Specific SS2K domain accounts can also be setup to login. |
| |
| * **Local group**: the group "**mc-research**" is setup with write access to the necessary directories for rebuilding spigot and managing minecraft server instances. The mcuser and certain domain accounts are setup as members of this group. | * **Local group**: the group "**mc-research**" is setup with write access to the necessary directories for rebuilding spigot and managing minecraft server instances. The mcuser and certain domain accounts are setup as members of this group. |
| * ''**spigot-build.sh [version]**'' - rebuild the spigot.jar, optionally to a specified version number | * ''**spigot-build.sh [version]**'' - rebuild the spigot.jar, optionally to a specified version number |
| * ''**start-mc.sh [port]**'' - start a new minecraft server instance on a random port, or the optionally specified port | * ''**start-mc.sh [port]**'' - start a new minecraft server instance on a random port, or the optionally specified port |
| | |
| |
| |
| |
| When the start-mc.sh script starts a minecraft instance, it runs it in a screen so you can connect to the server console later to check it or to give it the "stop" command | When the start-mc.sh script starts a minecraft instance, it runs it in a screen so you can connect to the server console later to check it or to give it the "stop" command |
| | |
| | Send server to background without shutting down the server |
| | * Simply exiting the terminal window or putty session |
| | * ''Ctrl+a'' then ''d'' (Press ctrl+a, let go, then press d) |
| |
| screen names will be of the format "''mc-<port>''" | screen names will be of the format "''mc-<port>''" |
| * Make sure there is a ''eula.txt'' file in the template directory, with the setting ''eula=TRUE'' (this should already be there, unless you replace the entire template directory). | * Make sure there is a ''eula.txt'' file in the template directory, with the setting ''eula=TRUE'' (this should already be there, unless you replace the entire template directory). |
| * ensure there is a spigot.jar file or valid symlink | * ensure there is a spigot.jar file or valid symlink |
| | |
| |
| |
| The result of this script is a file called ''%%spigot-<version>.jar%%'' where <version> is the actual version number. If the script is able to, it will try to copy this file into the TEMPLATE directory used by the ''%%start-mc.sh%%'' script (see below), and setup a symlink to it called just "spigot.jar". | The result of this script is a file called ''%%spigot-<version>.jar%%'' where <version> is the actual version number. If the script is able to, it will try to copy this file into the TEMPLATE directory used by the ''%%start-mc.sh%%'' script (see below), and setup a symlink to it called just "spigot.jar". |
| |
| * **NOTE**: the ''spigot-build.sh'' script will NOT automatically update the spigot-<version>.jar file in any existing minecraft instances. You will have to manually stop any running instance and replace the spigot.jar symlink (see below) | * **NOTE**: the ''spigot-build.sh'' script will NOT automatically update the spigot-<version>.jar file in any existing minecraft instances. You will have to manually stop any running instances and update the spigot.jar symlink (see below) |
| |
| == Old versions of spigot == | == Old versions of spigot == |
| If you know which port you want to use, you can specify it on the command line. Keep in mind, it must be a valid port in the range defined above. For example, if I want to start a new instance on port 25570, I would use this command: | If you know which port you want to use, you can specify it on the command line. Keep in mind, it must be a valid port in the range defined above. For example, if I want to start a new instance on port 25570, I would use this command: |
| <code>start-mc.sh 25570</code> | <code>start-mc.sh 25570</code> |
| | |
| | |
| |
| |
| mv /usr/local/mc-research/25570 ~/archive/20190506-jnilsson-exp1 | mv /usr/local/mc-research/25570 ~/archive/20190506-jnilsson-exp1 |
| </code> | </code> |
| | |
| | === If you accidentally type ''screen'' without any arguments === |
| | Screen will tell you at the bottom of the terminal: [Press Space or Return to end.] |
| | |
| | Do so, and when the terminal clears, type exit |