Ubuntu

Submitted by furriephillips on Mon, 11/07/2016 - 15:11

Install Ubuntu as normal, defining the hostname & IP address
While the install is progressing, configure DNS for the new hostname
Run the following commands, substituting NEW_HOST_NAME in the first line, with the new hostname

NEWHOST="NEW_HOST_NAME"
ssh ${NEWHOST}
ssh-keygen -t ecdsa
touch .ssh/authorized_keys
chmod 644 .ssh/authorized_keys
su -
apt-get update && apt-get -y install vim zsh screen wget git && update-alternatives --config editor
exit
visudo
/sudo
:x
exit
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
exit
exit
ssh-copy-id ${NEWHOST}
ssh ${NEWHOST}
scp -r [email protected]:.oh-my-zsh/themes/whereismyfuckingprompt.zsh-theme .oh-my-zsh/themes/
scp -r '[email protected]:.oh-my-zsh/custom/*s.zsh' .oh-my-zsh/custom/
scp -r [email protected]:.zshrc .
exit
ssh ${NEWHOST}
sudo apt-get update && sudo apt-get -y upgrade && sudo reboot
ssh ${NEWHOST}