Skip to content

Instantly share code, notes, and snippets.

@damirm
Last active August 29, 2015 14:27
Show Gist options
  • Save damirm/6f393da47b75cc1b01e5 to your computer and use it in GitHub Desktop.
Save damirm/6f393da47b75cc1b01e5 to your computer and use it in GitHub Desktop.
Ubuntu server setup
# 1. setting up locales
sudo tee -a /etc/default/locale <<EOF
LANGUAGE="en_US.UTF-8"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
EOF
# Или можно юзать update-locale:
sudo update-locale LANGUAGE="en_US.UTF-8" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8"
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
# 2. add php56 ppa repository
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo add-apt-repository ppa:nginx/stable
sudo apt-get update -y
sudo apt-get upgrade -y
# 3. install packages
sudo apt-get install -y wget mc htop git supervisor redis-server memcached
sudo apt-get install -y nginx php5 php5-mcrypt php5-cli php5-curl php5-fpm php5-json php5-mysql php5-memcache php5-pgsql php5-redis
# 4. install composer
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
# 5. setting up utc timezone
sudo dpkg-reconfigure tzdata
# 6. Install fresh pgsql client
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt-get install wget ca-certificates
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install postgresql-client-9.4
# 7. NPM
sudo apt-get install npm
sudo npm install -g gulp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment