-
-
Save leylaKapi/a8098e64332b26acac81 to your computer and use it in GitHub Desktop.
server-base.sh
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
## Run this script with root user | |
## Fancy echo | |
fancy_echo() { | |
printf "\n%b\n" "$1" | |
} | |
fancy_echo "Updating system packages ..." | |
apt-get -y update | |
apt-get -y upgrade | |
fancy_echo "Installing python-software-properties..." | |
apt-get -y install python-software-properties | |
fancy_echo "Installing software-properties-common..." | |
apt-get -y install software-properties-common | |
fancy_echo "Exporting language" | |
export LANGUAGE=en_US.UTF-8 && export LANG=en_US.UTF-8 && export LC_ALL=en_US.UTF-8 && locale-gen en_US.UTF-8 && dpkg-reconfigure locales | |
fancy_echo "Installing libraries for common gem dependencies ..." | |
apt-get -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
apt-get install git-core openssl curl libreadline-dev libxslt1-dev libcurl4-openssl-dev ruby-dev make make-doc | |
fancy_echo "Installing nodejs ..." | |
add-apt-repository -y ppa:chris-lea/node.js | |
apt-get -y update | |
apt-get -y install nodejs | |
apt-get -y install libxslt-dev libxml2-dev | |
fancy_echo "Installing imagemagick ..." | |
apt-get install -y imagemagick | |
fancy_echo "Installing nginx ..." | |
add-apt-repository -y ppa:nginx/stable | |
apt-get -y update | |
apt-get -y install nginx | |
service nginx start | |
fancy_echo "Installing postgresql ..." | |
apt-get -y install postgresql libpq-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment