Last active
March 28, 2017 13:42
-
-
Save imWildCat/806264d3c0e930d8c7d7a842287fbc0c to your computer and use it in GitHub Desktop.
Set up new VPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sSL https://get.docker.com/ | sh | |
curl -L "https://github.com/docker/compose/releases/download/1.8.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
echo 'docker installed, cheers!' | |
# apt-get install -y zsh | |
# zsh | |
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# echo 'zsh and oh-my-zsh installed, cheers!' | |
echo 'Next step: scp your ssh key and turn off password login' | |
docker version | |
docker-compose --version |
Execute this script:
curl -sSL https://gist.githubusercontent.com/imWildCat/806264d3c0e930d8c7d7a842287fbc0c/raw/new_vps.sh | sh
Install Rancher:
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
ssh-keygen
cat /root/.ssh/id_rsa.pub
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set up ssh key login: https://segmentfault.com/a/1190000000393904