Last active
December 16, 2015 22:29
-
-
Save Starefossen/5507680 to your computer and use it in GitHub Desktop.
My default installation for Ubuntu 12.04 TLS servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "[email protected]" # add public key to github | |
git config --global user.name "Your Name Here" | |
git config --global user.email "[email protected]" | |
git config --global --add color.ui true # turn git colors on | |
git config --global core.editor vim | |
ssh -T [email protected] # test the connection | |
# dotfiles | |
cd ~ | |
git init | |
git remote add origin [email protected]: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