Difference between revisions of "Minecraft"

From Q
Jump to navigation Jump to search
(Created page with "== Client == === Running the Client === Download the [https://minecraft.net/download Minecraft.jar] and run the Launcher, be sure to install Java (icedtea7) first though. {{...")
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
For running Minecraft you need to have Java (icedtea7) installed.
 +
 
== Client ==
 
== Client ==
=== Running the Client ===
+
=== Obtain and run the client launcher ===
  
Download the [https://minecraft.net/download Minecraft.jar] and run the Launcher, be sure to install Java (icedtea7) first though.
+
Download the [https://minecraft.net/download Minecraft.jar] and run the Launcher.
  
 
{{Command|java -jar Minecraft.jar}}
 
{{Command|java -jar Minecraft.jar}}
Line 16: Line 18:
  
 
== Server ==
 
== Server ==
 +
 +
== Create a user for running Minecraft ==
 +
 +
{{Root|useradd -m -s /bin/bash minecraft}}
 +
 +
Become the minecraft user so that any file you download is owned by the correct user.
 +
 +
{{Root|su -l minecraft}}
 +
 +
== Obtain and run the server binary ==
 +
 +
Download the current server binary from, e.g. minecraft_server.1.7.4.jar and run it.
 +
 +
{{Command|wget minecraft_server.1.7.4.jar}}
 +
 +
{{Command|tmux new -s minecraft}}
 +
 +
{{Command|java -Xms32M -Xmx1024M -jar minecraft_server.1.7.4.jar nogui}}
 +
 +
== Stopping the server ==
 +
{{Root|su -l minecraft}}
 +
{{Command|tmux attach -t minecraft}}
 +
On the Minecraft server command-line.
 +
{{Command|stop}}
 +
 +
== Configuration ==
 +
 +
{{File|ops.txt|
 +
<pre>
 +
tgurr
 +
</pre>
 +
}}
 +
 +
{{File|server.properties|
 +
<pre>
 +
level-name=deltaquadrant
 +
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
 +
</pre>
 +
}}
 +
 +
{{File|white-list.txt|
 +
<pre>
 +
username1
 +
username2
 +
</pre>
 +
}}

Latest revision as of 01:18, 14 December 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.4.jar and run it.

$ wget minecraft_server.1.7.4.jar
$ tmux new -s minecraft
$ java -Xms32M -Xmx1024M -jar minecraft_server.1.7.4.jar nogui

Stopping the server

# su -l minecraft
$ tmux attach -t minecraft

On the Minecraft server command-line.

$ stop

Configuration

File: ops.txt
tgurr
File: server.properties
level-name=deltaquadrant
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
File: white-list.txt
username1
username2