Last active
December 18, 2015 01:49
-
-
Save walm/5706438 to your computer and use it in GitHub Desktop.
Ubuntu 12.10 base setup
This file contains hidden or 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
SERVER=127.0.0.1 | |
USER=deployer | |
PASSWORD=superpass | |
ssh $SERVER | |
# add deployer user | |
groupadd admin | |
useradd $USER -m -s /bin/bash -G admin | |
echo $USER:$PASSWORD | chpasswd | |
exit | |
# copy ssh key | |
cat ~/.ssh/id_rsa.pub | ssh $USER@$SERVER 'mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys' | |
ssh $SERVER | |
sudo apt-get update -qq | |
sudo apt-get install -q -y curl git-core inotify-tools | |
sudo apt-get install -q -y software-properties-common | |
sudo apt-get install -q -y ufw | |
sudo ufw allow ssh | |
sudo ufw allow http | |
sudo ufw allow https | |
sudo ufw enable | |
# optional add docker.. as it's awesome | |
sudo add-apt-repository -y ppa:dotcloud/lxc-docker | |
sudo apt-get update -qq | |
sudo apt-get install -q -y lxc-docker | |
# optional add rvm | |
curl -s -L https://get.rvm.io | bash | |
source ~/.rvm/scripts/rvm | |
rvm install 1.9.3-p125 | |
gem install bundler --no-ri --no-rdoc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment