Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting up a new Ubuntu installation with my personal dotfiles and other required software!
$ sudo apt-get install git curl xsel
$ sudo apt-get install silversearch-ag jq
$ sudo apt-get install zsh
$ mkdir -p ~/code ~/sandbox ~/personal
$ ssh-keygen -t rsa -b 4096
$ cat ~/.ssh/id_rsa.pub | xsel --input --clipboard
# Add your new SSH public key to your GitHub account!
$ git clone ...
$ cd dotfiles
$ git submodule update --init --recursive
$ bash bootstrap-dotfiles-only.sh
$ chsh -s /bin/zsh
# Logout of the account and log back in;
# We now have a bare zsh shell; Prezto still doesn't work for some reason
# Let's get Vundle and install some vim plugins
$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
$ sudo apt-get install make
$ make
# Vim needs a C compiler; It's not shipped with Ubuntu? :scream:
$ sudo apt-get install gcc
$ make
# Okay, vim install requires ncurses; Let's table the vim build for a while; I want to come back to it;
# Install tmux, for good measure
$ sudo apt-get install tmux
# AHA! I realize the problem with prezto now. The run configurations are not
# in `$ZDOTDIR/.zpreztorc` etc
# Let's run a command to fix that!
# from the prezto readme:
$ setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# Check that the symlinks were created
$ cd $ZDOTDIR
$ ls -lsh .z*
# Restart the shell
# WE HAVE PREZTO!
# Let's go back and try to build vim now!
$ make
# We still don't have ncurses!
$ sudo apt-get install libncurses-dev
$ make
# Vim successfully built! Let's copy it into the path!
$ cd src
$ ./vim --version
# Install vim locally now!
$ sudo make install
# Restart shell to get a full vim experience!
# Next: Color scheme!
# I need to get the base 16 solarized dark profile for Gnome Terminal
#
$ git clone https://github.com/aaron-williamson/base16-gnome-terminal.git ~/.config/base16-gnome-terminal
$ cd .config/base16-gnome-terminal/color-scripts
$ ./base16-solarized-dark-256.sh
# I MUST remap Caps Lock to Escape! I don't know how I did it on my other Ubuntu
# computer :cry: I have to go around foraging once more!
# Ah! Found it:
# https://era86.github.io/2017/01/14/remapping-capslock-to-escape-in-ubuntu-1604.html
$ dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"
$ dconf list /org/gnome/desktop/input-sources
$ dconf read /org/gnome/desktop/input-sources/xkb-options
# Get the tmux plugin manager!
$ git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
$ tmux source ~/.tmux.conf
$ tmux
# Now: Prefix + I => Installs all the plugins
# Get autojump
$ $ git clone git://github.com/wting/autojump.git
$ cd autojump
$ ./install.py
# Python is not in the env it seems like;
$ sudo ln -s /usr/bin/python3 /usr/bin/python
$ ./install.py
# Start a new shell
$ autojump --help
# Alright! Let's get fzf now!
$ git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
$ cd ~/.fzf
$ ./install --all
# And hub: the github cli
$ tar zxf hub.tar.gz
$ sudo mv hub/bin/hub /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.