Set up a new Linux virtual machine & my account:
Manually add to ~/.profile and /root/.profile
export EDITOR=vi
export VISUAL=vi
$(id $USER>&/dev/null) || echo "The account $USER does not exist."
SUDOCMD=${SUDOCMD-"sudo EDITOR='tee -a' visudo"}
echo "$USER ALL=(ALL:ALL) ALL" | $SUDOCMD
echo "$USER ALL=NOPASSWD: ALL" | $SUDOCMD
$ apt-get install git-all
$ git config --global user.name "mitch"
$ git config --global user.email "mitch@mydomain.com"
$ git config --global color.ui true
$ git config --global core.editor vi
$ ssh-keygen -t rsa -C "mitch@mydomain.com"
$ cat ~/.ssh/id_rsa.pub
Copy the public key text into your clipboard and web in to github.com to add the key to your github account.
$ sudo su - root
# cat > .crontab
1 1 * * * ( apt-get update -y >& /dev/null && apt-get upgrade -y >& /dev/null )
^D
# crontab .crontab
$ mkdir -p ~/.vim/autoload ~/.vim/bundle
$ curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
$ cat >> ~/.vimrc
$ execute pathogen#infect()
$ cd ~/.vim/bundle
$ git clone --depth=1 git@github.com:mitchwyle/dot-files.git
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"