Difference between revisions of "Minecraft"
m (Reworded the how-to paragraph) |
|||
(35 intermediate revisions by 16 users not shown) | |||
Line 1: | Line 1: | ||
− | Minecraft | + | [[ja:Minecraft]] |
− | |||
− | |||
==Installation== | ==Installation== | ||
{{AUR|minecraft}} is available in the [[AUR]]. This package includes the official game plus a script for launching it. | {{AUR|minecraft}} is available in the [[AUR]]. This package includes the official game plus a script for launching it. | ||
− | == | + | ==Update LWJGL== |
− | Minecraft | + | {{note|Minecraft 1.6 seems to ship a recent-enough LWJGL already.}} |
+ | Updating the bundled LWJGL is recommended. This is known to solve various issues: | ||
+ | * Black screen on start | ||
+ | * Sticky keys | ||
+ | * Stuck on pause menu | ||
+ | * Incompatibility with some NVIDIA drivers | ||
− | === | + | ===Manually=== |
− | Minecraft | + | After updating Minecraft using the launcher, download the newest LWJGL from [http://sourceforge.net/projects/java-game-lib/files/latest/download?source=files here] (tested with 2.9.0). |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | Replace the following files in {{ic|~/.minecraft/bin/}} with the corresponding versions in {{ic|lwjgl-*/jar/}}: | ||
jinput.jar | jinput.jar | ||
lwjgl.jar | lwjgl.jar | ||
− | lwjgl_util.jar | + | lwjgl_util.jar |
− | |||
− | |||
+ | Replace the following files in {{ic|~/.minecraft/bin/natives/}} with the corresponding versions in {{ic|lwjgl-*/natives/linux/}}: | ||
libjinput-linux.so | libjinput-linux.so | ||
libjinput-linux64.so | libjinput-linux64.so | ||
Line 31: | Line 26: | ||
libopenal.so | libopenal.so | ||
libopenal64.so | libopenal64.so | ||
+ | |||
+ | ===Script=== | ||
+ | ====Via AUR==== | ||
+ | Install {{AUR|minecraft-updatelwjgl}} from [[AUR]] and run | ||
+ | $ minecraft-update-lwjgl.sh | ||
+ | It will find what version is already installed and replace it with a newer version if found. | ||
+ | |||
+ | ====Manually via git==== | ||
+ | Install {{Pkg|git}} and clone the gist | ||
+ | $ git clone https://gist.github.com/2086385.git | ||
+ | |||
+ | '''cd''' into the directory and make it executable | ||
+ | $ cdmod +x update_lwjgl.sh | ||
+ | |||
+ | Run it | ||
+ | $ ./update_lwjgl.sh | ||
+ | |||
+ | ====Manually==== | ||
+ | Download the raw file from https://gist.github.com/aperson/2086385 | ||
+ | |||
+ | Make it executable | ||
+ | $ cdmod +x 2086385/update_lwjgl.sh | ||
+ | |||
+ | Run it | ||
+ | $ ./update_lwjgl.sh | ||
==Running Minecraft== | ==Running Minecraft== | ||
Line 43: | Line 63: | ||
$ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar | $ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar | ||
− | You can change these depending on the amount of RAM that you have. The Xms argument specifies the minimum amount of RAM to allocate to the program, and the Xmx argument specifies the maximum amount. | + | You can change these depending on the amount of RAM that you have. The {{ic|Xms}} argument specifies the minimum amount of RAM to allocate to the program, and the {{ic|Xmx}} argument specifies the maximum amount. |
==Extras== | ==Extras== | ||
Line 51: | Line 71: | ||
==Minecraft Server== | ==Minecraft Server== | ||
+ | There are two AUR packages for easy installation of a minecraft server. | ||
+ | For a server compatible with systemd, install {{ic|aur/minecraft-server}} and then enable the service: | ||
+ | $ systemctl enable minecraftd | ||
+ | $ systemctl start minecraftd | ||
+ | * Monitor the minecraft server by running the below command as root: | ||
+ | # screen -r | ||
+ | (Remember that one can exit screen sessions with {{ic|^A,D}}) | ||
+ | {{Note|This creates a user called minecraft with a home directory at {{ic|/srv/minecraft}}. Add your user to the {{ic|minecraft}} group to modify minecraft settings.}} | ||
+ | |||
+ | For a server that uses the legacy rc scripts, install {{ic|aur/minecraft-server}} | ||
+ | |||
You can also run a dedicated Minecraft server: | You can also run a dedicated Minecraft server: | ||
* Follow the steps above to install [[Java]] | * Follow the steps above to install [[Java]] | ||
* [http://www.minecraft.net/download.jsp Download] the multiplayer server from the Minecraft site | * [http://www.minecraft.net/download.jsp Download] the multiplayer server from the Minecraft site | ||
* Run the server: | * Run the server: | ||
− | $ java | + | $ java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui |
(You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.) | (You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.) | ||
* To configure the server, take a look at this [http://www.minecraftwiki.net/wiki/Server.properties wiki page]. | * To configure the server, take a look at this [http://www.minecraftwiki.net/wiki/Server.properties wiki page]. | ||
===Extras=== | ===Extras=== | ||
− | + | * Establishing a Minecraft-specific user is recommended for security. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours. | |
− | * Establishing a Minecraft-specific user is recommended for security. | + | * To leave the server running unattended, look into [[tmux]] or [[screen]]. |
− | + | * You may wish to modify your server, to provide additional features: | |
− | + | ** [http://www.minecraftwiki.net/wiki/Programs_and_editors#Server_Wrappers Server Wrappers] are one way to add administrative capabilities. | |
− | + | ** [http://bukkit.org/ Bukkit] is a powerful modding API, with a wide variety of plugins available. | |
− | * To leave the server running unattended, | ||
− | |||
− | * | ||
− | |||
− | ** [http://www.minecraftwiki.net/wiki/Programs_and_editors#Server_Wrappers Server Wrappers] are one way to add administrative capabilities | ||
− | ** [http://bukkit.org/ Bukkit] is a powerful modding API, with a wide variety of plugins available | ||
*** If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work. | *** If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work. | ||
− | * You might even set up a cron job with a [http://www.minecraftwiki.net/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world | + | * You might even set up a cron job with a [http://www.minecraftwiki.net/wiki/Programs_and_editors#Mappers mapper] to generate periodic maps of your world. |
− | * ...or you could use [[rsync]] to perform routine backups | + | * ...or you could use [[rsync]] to perform routine backups. |
+ | |||
+ | ==Mods== | ||
+ | |||
+ | * Terrafirmacraft : http://www.terrafirmacraft.com | ||
+ | * Technic pack / Tekkit : http://www.technicpack.net | ||
+ | * Feed The Beast Mod Pack : https://aur.archlinux.org/packages/feedthebeast/ | ||
+ | * List of mods : http://www.minecraftforum.net/topic/1434593-list-of-mods-for-146147-and-from-132-onward/#t | ||
+ | |||
==Useful links== | ==Useful links== | ||
Line 80: | Line 113: | ||
* Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values | * Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values | ||
* Reddit community : http://www.reddit.com/r/minecraft | * Reddit community : http://www.reddit.com/r/minecraft | ||
+ | * MineTest Tutorial : http://gotux.net/arch-linux/minetest-game-server/ | ||
[[Category:Gaming]] | [[Category:Gaming]] |
Revision as of 17:45, 4 July 2013
Contents
Installation
minecraftAUR is available in the AUR. This package includes the official game plus a script for launching it.
Update LWJGL
Updating the bundled LWJGL is recommended. This is known to solve various issues:
- Black screen on start
- Sticky keys
- Stuck on pause menu
- Incompatibility with some NVIDIA drivers
Manually
After updating Minecraft using the launcher, download the newest LWJGL from here (tested with 2.9.0).
Replace the following files in ~/.minecraft/bin/
with the corresponding versions in lwjgl-*/jar/
:
jinput.jar lwjgl.jar lwjgl_util.jar
Replace the following files in ~/.minecraft/bin/natives/
with the corresponding versions in lwjgl-*/natives/linux/
:
libjinput-linux.so libjinput-linux64.so liblwjgl.so liblwjgl64.so libopenal.so libopenal64.so
Script
Via AUR
Install minecraft-updatelwjglAUR from AUR and run
$ minecraft-update-lwjgl.sh
It will find what version is already installed and replace it with a newer version if found.
Manually via git
Install git and clone the gist
$ git clone https://gist.github.com/2086385.git
cd into the directory and make it executable
$ cdmod +x update_lwjgl.sh
Run it
$ ./update_lwjgl.sh
Manually
Download the raw file from https://gist.github.com/aperson/2086385
Make it executable
$ cdmod +x 2086385/update_lwjgl.sh
Run it
$ ./update_lwjgl.sh
Running Minecraft
If you installed Minecraft from the AUR, you can use the included script:
$ minecraft
Otherwise, you will need to manually launch Minecraft:
$ java -jar $HOME/.minecraft/minecraft.jar
To allocate more RAM to the game, include Xms and Xmx arguments:
$ java -jar -Xms1024M -Xmx2048M $HOME/.minecraft/minecraft.jar
You can change these depending on the amount of RAM that you have. The Xms
argument specifies the minimum amount of RAM to allocate to the program, and the Xmx
argument specifies the maximum amount.
Extras
There are several programs and editors which can make your Minecraft experience a little easier to navigate. The most common of these programs are map generators. Using one of these programs will allow you to load up a Minecraft world file and render it as a 2D image, providing you with a top-down map of the world.
Minutor
Minutor is described as a minimalistic map generator for Minecraft. Don't let this mislead you, it generates maps of existing worlds, not the other way around. You are provided with a simple GTK based interface for viewing your world. Several rendering modes are available, as well as custom coloring modes and the ability to slice through z-levels. minutorAUR is available in the AUR.
Minecraft Server
There are two AUR packages for easy installation of a minecraft server.
For a server compatible with systemd, install aur/minecraft-server
and then enable the service:
$ systemctl enable minecraftd $ systemctl start minecraftd
- Monitor the minecraft server by running the below command as root:
# screen -r
(Remember that one can exit screen sessions with ^A,D
)
/srv/minecraft
. Add your user to the minecraft
group to modify minecraft settings.For a server that uses the legacy rc scripts, install aur/minecraft-server
You can also run a dedicated Minecraft server:
- Follow the steps above to install Java
- Download the multiplayer server from the Minecraft site
- Run the server:
$ java -Xmx2048M -Xms2048M -jar minecraft_server.jar nogui
(You can sub the -Xmx and -Xms values for the amount of memory you want your server to use. A good rule of thumb is one GB per ten users.)
- To configure the server, take a look at this wiki page.
Extras
- Establishing a Minecraft-specific user is recommended for security. By running Minecraft under an unprivileged user account, anyone who successfully exploits your Minecraft server will only get access to that user account, and not yours.
- To leave the server running unattended, look into tmux or screen.
- You may wish to modify your server, to provide additional features:
- Server Wrappers are one way to add administrative capabilities.
- Bukkit is a powerful modding API, with a wide variety of plugins available.
- If installing the Dynmap plugin, you will need to install fontconfig and libcups to get it to work.
- You might even set up a cron job with a mapper to generate periodic maps of your world.
- ...or you could use rsync to perform routine backups.
Mods
- Terrafirmacraft : http://www.terrafirmacraft.com
- Technic pack / Tekkit : http://www.technicpack.net
- Feed The Beast Mod Pack : https://aur.archlinux.org/packages/feedthebeast/
- List of mods : http://www.minecraftforum.net/topic/1434593-list-of-mods-for-146147-and-from-132-onward/#t
Useful links
- Main site : http://www.minecraft.net/
- Community links: http://www.minecraft.net/community
- Crafting recipies : http://www.minecraftwiki.net/wiki/Crafting
- Data values (useful in multiplayer mode) : http://www.minecraftwiki.net/wiki/Data_values
- Reddit community : http://www.reddit.com/r/minecraft
- MineTest Tutorial : http://gotux.net/arch-linux/minetest-game-server/