This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

Minecraft Installer for Linux (Updated 1/14/13)

By: thefinn93 on Jan 14th, 2013  |  syntax: Bash  |  size: 0.99 KB  |  views: 32  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #!/bin/bash
  2. mkdir /opt/minecraft
  3. echo "Downloading Minecraft..."
  4. wget -O /opt/minecraft/minecraft.jar https://s3.amazonaws.com/MinecraftDownload/launcher/minecraft.jar
  5. echo "Downloading icon..."
  6. wget -O /opt/minecraft/minecraft.png http://www.minecraft.net/favicon.png
  7. echo "Installing desktop entry..."
  8. echo "[Desktop Entry]" > /usr/share/applications/minecraft.desktop
  9. echo "Name=Minecraft" >> /usr/share/applications/minecraft.desktop
  10. echo "Comment=Place blocks and build anything you can imagine!" >> /usr/share/applications/minecraft.desktop
  11. echo "Exec=java -jar /opt/minecraft/minecraft.jar" >> /usr/share/applications/minecraft.desktop
  12. echo "Icon=/opt/minecraft/minecraft.png" >> /usr/share/applications/minecraft.desktop
  13. echo "Terminal=false" >> /usr/share/applications/minecraft.desktop
  14. echo "Type=Application" >> /usr/share/applications/minecraft.desktop
  15. echo "Categories=Application;Game;" >> /usr/share/applications/minecraft.desktop
  16. chmod +x /usr/share/applications/minecraft.desktop
clone this paste RAW Paste Data