Skip to content

Instantly share code, notes, and snippets.

@Leopere
Created February 28, 2014 07:24
Show Gist options
  • Save Leopere/9266783 to your computer and use it in GitHub Desktop.
Save Leopere/9266783 to your computer and use it in GitHub Desktop.
Install GoLilyPadConnect

Maybe One day I'll write this bit. But basically download this thing run chmod +x glpp-install.sh and it will create a user and install a basic script for launching it.

Planned: LSB Init.D script for auto recover etc.

#!/bin/bash
######################################################
## This installs a user for Go Lily Pad Proxy[GLPP] ##
## Then it downloads and installs GLPP ##
## TODO: Write and set up an init.d script ##
######################################################
adduser --disabled-password -gecos "" glpp
echo User glpp created.
mkdir /home/glpp/.ssh/
#########################################################
## Source http://ci.lilypadmc.org/job/Go-Server-Proxy/ ##
#########################################################
wget -O /home/glpp/proxy-linux-amd64 http://ci.lilypadmc.org/job/Go-Server-Proxy/lastSuccessfulBuild/artifact/target/proxy-linux-amd64
chmod +x /home/glpp/proxy-linux-amd64
###########################################################################
## Editable Source https://gist.github.com/chamunks/f9354b8b3b73cd025330 ##
###########################################################################
wget -O /home/glpp/glpp-start.sh https://raw.github.com/MagicTrixor/nx-deploy/master/resources/golilypad/glpp-start.sh
chmod +x /home/glpp/glpp-start.sh
bash /home/glpp/glpp-start.sh
## cat /root/.ssh/authorized_keys >> /home/glpp/.ssh/authorized_keys
chown -R glpp:glpp /home/glpp/
echo glpp Installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment