Skip to content

checklist to set up a new dev environment on a virtual machine faster

Notifications You must be signed in to change notification settings

mitchwyle/dot-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 "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.

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 git@github.com:mitchwyle/dot-files.git

Oh My Bash

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

About

checklist to set up a new dev environment on a virtual machine faster

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages