Skip to content

Instantly share code, notes, and snippets.

@kevineduardo
Last active February 9, 2018 00:56
Show Gist options
  • Save kevineduardo/234f86b25750ffd4f9529ea07581909e to your computer and use it in GitHub Desktop.
Save kevineduardo/234f86b25750ffd4f9529ea07581909e to your computer and use it in GitHub Desktop.
#!/bin/bash
############################################
## Install Script for Ubuntu 16 ##
## Exclusive Use for ApolloServidores.com ##
## Made by @KevinEduardo ##
############################################
apt-get -y update
apt-get -y upgrade
apt-get -y install linux-image-extra-$(uname -r) linux-image-extra-virtual
apt-get -y install software-properties-common
add-apt-repository -y ppa:certbot/certbot
apt-get -y update
apt-get -y install certbot
curl -sSL https://get.docker.com/ | sh
systemctl enable docker
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get -y install nodejs
apt-get -y install tar unzip make gcc g++ python
mkdir -p /srv/daemon /srv/daemon-data
cd /srv/daemon
curl -Lo daemon.tar.gz https://github.com/Pterodactyl/Daemon/releases/download/v0.4.5/daemon.tar.gz
tar --strip-components=1 -xzvf daemon.tar.gz
npm install --only=production
cd ~
wget https://gist.githubusercontent.com/KevinEduardo/330699ecdc4e189fc019289e97143710/raw/ed24c05ea0ddda7983b6bd67539d52c8926c3e32/wings.service
mv ./wings.service /etc/systemd/system/wings.service
systemctl daemon-reload
systemctl enable wings
ln -s /srv/daemon/src/services/ /srv/daemon/
echo "Done"
echo "Setup core.json first."
echo "Then: systemctl start docker"
echo "And then: systemctl start wings"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment