Skip to content

Instantly share code, notes, and snippets.

@nogo
Last active August 20, 2016 16:27
Show Gist options
  • Save nogo/a94ecfc9fb14139f924b855568edd72e to your computer and use it in GitHub Desktop.
Save nogo/a94ecfc9fb14139f924b855568edd72e to your computer and use it in GitHub Desktop.
#!/bin/bash
# System (Debian)
dpkg-reconfigure locales
apt-get install mc htop
# ZSH
apt-get install zsh git
chsh -s $(which zsh)
cd /usr/local/share
git clone https://github.com/robbyrussell/oh-my-zsh.git
# User
useradd -m -U -s $(which zsh) nogo
# Dotdeb
touch /etc/apt/sources.list.d/dotdeb.list
echo "deb http://packages.dotdeb.org jessie all" > /etc/apt/sources.list.d/dotdeb.list
echo "deb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list.d/dotdeb.list
wget -qO - https://www.dotdeb.org/dotdeb.gpg | apt-key add -
apt-get update
# PHP
apt-get install php7.0 php7.0-curl php7.0-cli php7.0-gd php7.0-intl php7.0-mbstring php7.0-sqlite3 php7.0-xml php7.0-zip
# New service
cd /srv
mkdir -p DOMAIN/{etc,htdocs,log}
a2enmod ssl rewrite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment