Skip to content

Instantly share code, notes, and snippets.

@darthschmoo
Last active December 21, 2015 04:48
Show Gist options
  • Save darthschmoo/6251759 to your computer and use it in GitHub Desktop.
Save darthschmoo/6251759 to your computer and use it in GitHub Desktop.
How to set up an empty vserver in DigitalOcean.
Create droplet
log in
change password for root (passwd)
# Alter default useradd behavior:
useradd -D -s /bin/bash
create user andersbr (useradd -m andersbr)
change password for andersbr (passwd)
add to sudoers file
( replace line in /etc/sudoers )
root ALL=(ALL:ALL) ALL
andersbr ALL=(ALL:ALL) ALL
log in as andersbr
# install curl (sudo apt-get install curl) (curl already at newest version)
\curl -L https://get.rvm.io | bash # For some reason, the leading backslash is important
# There's also a ruby-rvm package... nah.
rvm install 1.9.3
# rvm install 2.0
bash --login (weird)
rvm --default use 1.9.3
# install mysql
sudo apt-get install mysql-server mysql-client
# install apache2
sudo apt-get install apache2
mkdir ~/git/
sudo mkdir /var/www/sorcery
sudo mkdir /var/www/sorcery
sudo chown andersbr /var/www/sorcery/
# cap deploy sorcery app that direction.
# bundle install
# add vhosts file for apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment