Skip to content

Instantly share code, notes, and snippets.

@robacourt
Last active August 1, 2016 09:31
Show Gist options
  • Save robacourt/0b4f2fb248c5cbf44201302f25c75efe to your computer and use it in GitHub Desktop.
Save robacourt/0b4f2fb248c5cbf44201302f25c75efe to your computer and use it in GitHub Desktop.

##Install Debian

Download image: http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso

Install options:

  • use LVM
  • separate home var etc directories
  • do not install a GUI
  • do not put it on the domain

##Setup Debian

###Stop apt-get from trying to install from a CD/DVD

su

nano /etc/apt/sources.list

Remove the line that mentions the CD

###Install stuff

apt-get install sudo git vim

###Give your user sudo access

sudo add-user rob sudo

###Give your user a SSH key

ssh-keygen -t rsa -b 4096 -C "[email protected]"

###Setup with our VIMRC

git clone https://github.com/cloudhousetech/vimrc

cd vimrc

setup_dotfiles.sh

###Setup git

git config --global user.name "rob"

git config --global user.email [email protected]

git config --global push.default simple

Install developement dependencies from github/da. Hub requires exiting and logging back in install_dev

##Setup Cygwin

To get cygwin to connect without a password. In Cygwin type:

ssh-keygen -t rsa -b 4096 -C "[email protected]"

cat /home/rob/.ssh/id_rsa.pub | ssh rob@robdev 'cat >> .ssh/authorized_keys'

ssh rob@robdev "chmod 700 .ssh; chmod 640 .ssh/authorized_keys"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment