Last active
July 28, 2016 12:27
-
-
Save ismailakbudak/6e42120bc86b20b7dc15 to your computer and use it in GitHub Desktop.
server-base.sh
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
## Run this script with root user | |
# After installation check this | |
# vi /etc/ssh/sshd_config # Change ssh post | |
# vi /etc/environment # Write below locales | |
# LANGUAGE="en_US.utf8" | |
# LC_ALL="en_US.utf8" | |
# dpkg-reconfigure locales # Configure locales | |
## 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 |
MuhammetDilmac
commented
Feb 18, 2016
- satırda olan apt-get install'a -y parametresini ekler misin İsmail
Merhaba muhammet hangi satırı kast ettin acaba?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment