Skip to content

Instantly share code, notes, and snippets.

@broedli
Last active March 26, 2016 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save broedli/16ed3a2766156a820fec to your computer and use it in GitHub Desktop.
Save broedli/16ed3a2766156a820fec to your computer and use it in GitHub Desktop.

This describes my process of setting up a standard debian minimal installation to my needs and preferences.

apt-get update && apt-get upgrade

-[x] Secure SSH

Please refer to my snippets - SSH. Note: Don't forget to restart sshd and to test your setup before you disconnect your current SSH session:

systemctl restart ssh.service

-[] Setup local environment

sed -i 's/#Servers/Servers/g' /etc/systemd/timesyncd.conf
timedatectl set-ntp 1
hostnamectl set-hostname host.domain.tld

Now install some applications that I consider stadart:

apt-get install vim lsb-release zsh bash-completion iftop iotop sudo git curl wget nmap rsync duplicity backupninja tree
# Install the terminfo file for termite.
wget -P /usr/share/terminfo/x https://raw.githubusercontent.com/thestinger/termite/master/termite.terminfo

Get your dotfiles:

mkdir Github && cd Github && git clone --recursive https://github.com/broedli/dotfiles.git
cd dotfiles/setup && ./setup.sh
chsh -s /bin/zsh

Exit your shell, make shure that no sockets for your SSH connection are left and reconnect to enjoy the beauty :P

-[] MySQL

Installation:

apt-get install mysql-server mysql-client python-mysqldb libmysqlclient-dev
mysql_secure_installation

-[] nginx

Installation:

echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list
wget -P /tmp http://nginx.org/keys/nginx_signing.key && sudo apt-key add /tmp/nginx_signing.key
apt-get update && apt-get install nginx

Configuration: Please refer to my snippets - nginx.

-[] PHP

Installation: This is what I myself consider a default PHP installation with nginx.

apt-get install php5-fpm php5-cli php5-curl php5-mcrypt php5-gd php5-imagick php5-mysqlnd php5-intl php-pear

Configuration: Please refer to my snippets - php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment