Skip to content

Instantly share code, notes, and snippets.

@Starefossen
Last active December 16, 2015 22:29
Show Gist options
  • Save Starefossen/5507680 to your computer and use it in GitHub Desktop.
Save Starefossen/5507680 to your computer and use it in GitHub Desktop.
My default installation for Ubuntu 12.04 TLS servers
dpkg-reconfigure keyboard-configuration
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install python-software-properties # get add-apt-rerepository cmd
add-apt-repository ppa:pdoes/ppa # get Git v1.8
apt-get update
apt-get install openssh-client openssh-server fish git git-man unattended-upgrades
# fish shell install
# https://gist.github.com/Starefossen/5123874
# configure sshd
vim /etc/ssh/sshd_config
# configure auto updates
# http://askubuntu.com/questions/172524/how-can-i-check-if-automatic-updates-are-enabled
vim /etc/apt/apt.conf.d/10periodic
vim /etc/apt/apt.conf.d/50unattended-upgrades
# configuring git
# https://help.github.com/articles/generating-ssh-keys
ssh-keygen -t rsa -C "user@domain.com" # add public key to github
git config --global user.name "Your Name Here"
git config --global user.email "your_email@example.com"
git config --global --add color.ui true # turn git colors on
git config --global core.editor vim
ssh -T git@github.com # test the connection
# dotfiles
cd ~
git init
git remote add origin git@github.com:Username/dotfiles.git
git branch --set-upstream-to=origin/master master
git pull
git reset --hard HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment