See the article How to install a server on DO
Optional step. Configurate your SSH
Do it only if the name of your SSH key is not id_rsa
[edit tool] ~/.ssh/configAdd the followig lines (do not forget to do required changes)
Host my_rails_server 257.123.45.67
HostName 257.123.45.67
IdentityFile ~/.ssh/my_rsa_key
ForwardAgent yesThis is an optional step.
Authorize your public key on your new Server.
cat ~/.ssh/my_rsa_key.pub | ssh root@257.123.45.67 'cat >> ~/.ssh/authorized_keys'Visit your server ssh root@257.123.45.67
Install TMUX
apt update
apt-get install tmux -yOpen a new TMUX session
tmux new -s rails_server_installDownload and run the install script
wget https://raw.githubusercontent.com/DeployRB/SetupServer/master/article-2/install_script.sh
time ( source ./install_script.sh )Even If you close your terminal window, Installation script and TMUX session will be alive. We will back later when Installation will be finished
In 5-20 minutes (depends on powerful of your droplet) Installation process will be finished.
Visit your server and check TMUX console.
tmux ls
tmux a -t rails_server_install
exitScreen of the successful installation
wget https://raw.githubusercontent.com/DeployRB/SetupServer/master/article-2/check_soft_script.sh
time ( source ./check_soft_script.sh )You will see something like that:
Linux 3.16.0-4-amd64 1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)"
Check LANG vars:
LANGUAGE has value: en_US:en
LANG has value: en_US.UTF-8
LC_ALL has value: en_US.UTF-8
LC_CTYPE has value: en_US.UTF-8
Programming Langs:
rvm : Not found
/usr/bin/ruby
/usr/bin/node
/usr/bin/python
Converters:
/usr/bin/convert
CacheStores:
/usr/local/bin/redis-server
DataBases:
/usr/bin/psql
/usr/bin/mysql
Search:
/usr/bin/searchd
Helpers:
/usr/bin/git
/usr/bin/tmux
/usr/local/bin/pygmentize
Image Optimizers:
/usr/bin/gifsicle
/usr/bin/jhead
/usr/bin/jpegoptim
/usr/bin/jpegtran
/usr/bin/optipng
/usr/bin/pngcrush
/usr/bin/pngout
/usr/bin/pngquant
WebServer:
/usr/sbin/nginx~/credentials.txt/home/rails/credentials.txt








