MAJOR PERFORMANCE IMPROVEMENTS!! Check out the latest version and it's new Java 7 functionality
I put together a Ubuntu debian file for Minecraft that will actually install a Minecraft app in a good looking format, rather than the yucky mess Mojang gave Linux users to deal with.
This Debian has been tested on Ubuntu but not the Debian OS, although it should work there.
Note: Minecraft generates error files if you use the quit game button on Linux, this is not any fault of mine and has always been an issue on Minecraft for Linux.
Please please please post bugs here, in all my testing of this debian file it has been flawless aside from glitches in Mojang's code, but if there is anything broken with my files I do sincerely want to fix it. I am very passionate about Ubuntu and Minecraft and it saddens me greatly that I have to step in and make a deb for Minecraft, but because I do have to I want this to be flawless.
Disclaimer: the minecraft.jar included with this, and favicon.png are Mojang properties, the rest is my work though.
1.1: Made the file mostly compliant with Ubuntu software center standards and specified usage of OpenJDK6
1.2: Quick fix to use actual OpenJDK6 folder and not the link which is there on some systems but not others.
1.3: Defined sh interpreter for wrapper script, and added performance improvements.
1.4: Made the package architecture independent!
1.5: YAY! Minecraft works with default configuration under OpenJDK 7 on Linux so this package now uses that for it's improved performance
1.0 Refresh for latest launcher
I am currently working on making this package entirely based on open source code, and then uploading it to the Ubuntu Software Center via a PPA. This is going well, I have found an open source alternative to everything included in the package and I'm now just ensuring I have permission to use the alternatives.
?? isn't installing minecraft on linux as simple as downloading and running the jar launcher????
yes and no, in some cases it is, in some cases it isn't, it depends on how your jvm is configured and not to mention the minecraft.jar file isn't exactly a Ubuntu friendly solution. This file makes having a good looking Minecraft installation easy.
Besides that, there are two things wrong with the start script, and some nitpicks:
1) It will only work randomly, because the first line does not say "#!/bin/sh". Without this, starting from the shell does work, but running from a different program is likely to fail.
2) It will keep the wrapper script in memory. To prevent this, you should write "exec java ..."
3) You put the backup file of the script into the .deb
4) You can use JAVA_HOME:
"if [ -n "$JAVA_HOME" ]; then
exec $JAVA_HOME/bin/java -jar foo.jar "[email protected]"
exec java -jar foo.jar "[email protected]"
Thank you for these suggestions I will implement as many as I can. I'm pretty new to the Linux scene and this is actually my first debian package, so I haven't achieved Linux perfection yet but I'm working on it