Skip to content

Latest commit

 

History

History
67 lines (47 loc) · 1.49 KB

README.md

File metadata and controls

67 lines (47 loc) · 1.49 KB

README.md

Set up a new Linux virtual machine & my account:

Bootstrap: sudo and set environment variables for my editor

Manually add to ~/.profile and /root/.profile

export EDITOR=vi
export VISUAL=vi

No password sudo: add to the bottom of /etc/sudoers

$(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

Install git

$ apt-get install git-all
$ git config --global user.name "mitch"
$ git config --global user.email "[email protected]"
$ git config --global color.ui true
$ git config --global core.editor vi
$ ssh-keygen -t rsa -C "[email protected]"
$ 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.

Keep this distro up-to-date daily

$ sudo su - root
# cat > .crontab
1 1 * * * ( apt-get update -y >& /dev/null && apt-get upgrade -y >& /dev/null )
^D
# crontab .crontab

Set up code editing in vim with syntastic (and pathogen)

$ 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 [email protected]:mitchwyle/dot-files.git

Oh My Bash

bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"