Code Journal

2 thoughts
last posted Dec. 26, 2015, 11:41 a.m.
0
get stream as: markdown or atom
1

I'm gonna use this to publish some random things I encounter in my dev work.

0

Setting up my Ubuntu Dev environments

  1. Install Ubuntu (Whatever flavor you like)
  2. sudo apt-get upgrade && sudo apt-get upgrade
  3. Copy over SSH keys
  4. chmod 600 .ssh/*
  5. sudo apt-get install emacs git vim make gnome-tweak-tool curl build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget llvm libncurses5-dev
  6. Run Tweak Tool -> Click Typing -> set Caps Lock key behavior to "Make Caps Lock an additional Ctrl" -> set Alt/Win key behavior to "Alt and Meta are on Alt keys"
  7. Setup Firefox Sync
  8. Copy down dotfiles: git clone git@github.com:jasonamyers/dots
  9. cd dots
  10. ./setup.sh
  11. rm .emacs.d
  12. Copy down emacs dotfiles: git clone git@github.com:jasonamyers/prelude .emacs.d
  13. Setup pyenv: curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
  14. Setup pyenv-virtualenvwrapper: git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper
  15. Install Python 2.7.11: pyenv install 2.7.11
  16. Install Python 3.5.1: pyenv install 3.5.1
  17. Install nvm: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
  18. Download the lastest version of Go from https://golang.org/dl/
  19. Install Go: sudo tar -C /usr/local -xzf go1.5.2.linux-amd64.tar.gz
  20. Install Rust: curl -sSf https://static.rust-lang.org/rustup.sh | sh
  21. Download Hack Font: http://sourcefoundry.org/hack/
  22. Install Hack Font: cd ~/Downloads && unzip Hack-v2_018-ttf.zip && mv *.ttf ~/.fonts/ && fc-cache
  23. Setup go-mode: mkdir -p ~/Misc/emacs && cd ~/Misc/emacs && git clone git@github.com:dominikh/go-mode.el.git 24 Open emacs, it will compile for a while and end in an error about go auto loads
  24. Run M-x update-file-autoloads, Use "~/Misc/emacs/go-mode.el/go-mode.el" as the first answer, and "~/Misc/emacs/go-mode.el/go-mode-el.load" as the autoloads files
  25. Exit and Save emacs
  26. Install goimports: go get golang.org/x/tools/cmd/goimports
  27. Install oracle: go get golang.org/x/tools/cmd/oracle && sudo mv $GOPATH/bin/oracle $GOROOT/bin/
  28. Setup emacs for rust: git clone https://github.com/phildawes/racer.git /tmp/racer && cd /tmp/racer && cargo build --release && mv /tmp/racer/target/release/racer /usr/local/bin && cd ~ && rm -rf /tmp/racer
  29. Download rust source for autocompletion: git clone https://github.com/rust-lang/rust.git ~/.rust
  30. Test it with: racer complete std::io::B