Minecraft: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 40: | Line 40: | ||
On the Minecraft server command-line. | On the Minecraft server command-line. | ||
{{Command|stop}} | {{Command|stop}} | ||
== Configuration == | |||
ops.txt | |||
server.properties | |||
server-name=deltaquadrant.org | |||
server-port=25565 | |||
server-ip=xx.xx.xx.xx | |||
white-list=true | |||
snooper-enabled=false | |||
difficulty=1 | |||
gamemode=0 | |||
motd=your motd | |||
Revision as of 01:50, 29 October 2013
For running Minecraft you need to have Java (icedtea7) installed.
Client
Obtain and run the client launcher
Download the Minecraft.jar and run the Launcher.
$ java -jar Minecraft.jar
Sound issues when using PulseAudio
Minecraft uses OpenAL which seems to get confused sometimes (missing sounds or music), so tell it to use the pulse driver first.
File: /etc/openal/alsoft.conf
drivers=pulse,alsa,oss
Server
Create a user for running Minecraft
# useradd -m -s /bin/bash minecraft
Become the minecraft user so that any file you download is owned by the correct user.
# su -l minecraft
Obtain and run the server binary
Download the current server binary from, e.g. minecraft_server.1.7.2.jar and run it.
$ wget minecraft_server.1.7.2.jar
$ tmux new -s minecraft
$ java -Xms32M -Xmx1024M -jar minecraft_server.1.7.2.jar nogui
Stopping the server
On the Minecraft server command-line.
$ stop
Configuration
ops.txt
server.properties
server-name=deltaquadrant.org server-port=25565 server-ip=xx.xx.xx.xx white-list=true snooper-enabled=false difficulty=1 gamemode=0 motd=your motd