Skip to content

Instantly share code, notes, and snippets.

@lcdss

lcdss/Ubuntu Server Setup

Last active Jun 19, 2016
Embed
What would you like to do?
ubuntu-server-setup
sudo apt-add-repository -y ppa:git-core/ppa
sudo apt-add-repository -y ppa:nginx/stable
sudo apt-add-repository -y ppa:ondrej/php
# sudo apt-add-repositpry -y ppa:chris-lea/redis-server
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial main'
# sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
# sudo add-apt-repository -y 'deb [arch=amd64,i386] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu trusty main'
sudo apt-get update
sudo apt-get -y dist-upgrade
sudo apt-get install -y git
sudo apt-get install -y nginx
sudo apt-get install -y php7.0-fpm php7.0-mbstring php7.0-mysql php7.0-gd
# sudo apt-get install -y redis-server
sudo apt-get install -y nodejs
sudo apt-get install -y mariadb-server
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin -- --filename=composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment