Initial Setup of a GCloud VM

Some directions on what I did to set up my GCloud vm for work.Some

Git

  • make sure git is installed sudo apt-get install git
  • generate new ssh key ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  • copy ssh key from ~/.ssh/id_rsa.pub, add this ssh key to Github, and Gitlab

Neovim

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim
sudo apt-get install python-dev python-pip python3-dev python3-pip

And for shortcuts:

sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
sudo update-alternatives --config vi
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
sudo update-alternatives --config vim
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
sudo update-alternatives --config editor
  • make directory mkdir nvim, then clone gist git clone git@gist.github.com:cc998378d0f4db5aa5d81a736627f610.git gist_nvim, finally symlink gist file to nvim folder ln -s ~/GitProjects/gist_nvim/init.vim ~/.config/nvim/init.vim
  • install vim-plug
    • bash curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  • install python support for neovim pip install neovim and pip3 install neovim
  • install sudo apt-get install taskwarrior

LaTeX

  • Install texlive
    • git clone git@github.com:scottkosty/install-tl-ubuntu.git
    • run ./install-tl-ubuntu
    • add export PATH=/home/brett_israelsen/texlive/2017/bin/x86_64-linux:$PATH

Julia

  • download Julia git clone git@github.com:JuliaLang/julia.git, switch to correct version
    • install dependencies link
    • alias the julia command: sudo update-alternatives --install "/bin/julia" "julia" "/home/brett_israelsen/julia/bin/julia" 1
    • clone the gist git clone git@gist.github.com:33c33bf43fcd41951966f15e0de52d3d.git gist_juliarc, symlink .julia.rc file ln -s ~/GitProjects/gist_juliarc/.juliarc.jl ~/.juliarc.jl
    • Install PyPlot (the complicated one)
      • Command Line:
        • sudo apt-get install python3-matplotlib
        • don’t have a gui backend, but that is ok, we can just write to image files for now
        • sudo apt-get install pdf2svg
      • In julia:
        • ENV["PYTHON"]=""
        • Pkg.add("PyPlot")

Tmux

  • install tmux sudo apt-get install tmux, clone gist git clone git@gist.github.com:26224a1a4cd977a0b1ecbb095d115198.git gist_tmuxrc, symlink gist file to home folder ln -s ~/GitProjects/gist_tmuxrc/.tmux.conf ~/.tmux.conf
comments powered by Disqus