Difference between revisions of "Minecraft"

From Q
Jump to navigation Jump to search
Line 25: Line 25:
 
{{Root|useradd -m -s /sbin/nologin minecraft}}
 
{{Root|useradd -m -s /sbin/nologin 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 ==
 
== Obtain and run the server binary ==

Revision as of 01:52, 29 October 2013

For runnign 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

We create a user which has a home /home/minecraft created and is not able to login via shell and/or ssh.

# useradd -m -s /sbin/nologin 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 Minecraft.jar run it.

$ java -jar Minecraft.jar