Skip to content

Instantly share code, notes, and snippets.

@Leopere
Created February 28, 2014 07:22
Show Gist options
  • Save Leopere/9266765 to your computer and use it in GitHub Desktop.
Save Leopere/9266765 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 glpc-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 Connect[GLPC] ##
## Then it downloads and installs GLPP ##
## TODO: Write and set up an init.d script ##
########################################################
adduser --disabled-password -gecos "" glpc
#su glpc
echo User glpc created.
mkdir /home/glpc/.ssh/
touch /home/glpc/.ssh/authorized_keys
###########################################################
## Source http://ci.lilypadmc.org/job/Go-Server-Connect/ ##
###########################################################
wget -O /home/glpc/connect-linux-amd64 http://ci.lilypadmc.org/job/Go-Server-Connect/lastSuccessfulBuild/artifact/target/connect-linux-amd64
chmod +x /home/glpc/connect-linux-amd64
###########################################################################
## Editable Source https://gist.github.com/chamunks/d05908053b02c6ebb671 ##
###########################################################################
wget -O /home/glpc/glpc-start.sh https://gist.github.com/chamunks/d05908053b02c6ebb671/raw/5f460f23ef1ee02a204041fd7fe45db2d29da6fb/glpc-start.sh
chmod +x /home/glpc/glpc-start.sh
bash /home/glpc/glpc-start.sh
## cat /root/.ssh/authorized_keys >> /home/glpc/.ssh/authorized_keys
chown -R glpc:glpc /home/glpc/
echo glpc Installed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment