Adding new machine to rc files sync
Some time ago I wrote a post on linux productivity tools I use. As from time to time I need to install new machine that would benefit from the synced rc files, I’ll document the steps required (as rediscovering it every time is rather a waste of time).
What I’d need
I’ll use the previously introduced:
- homeshick vim’s vundle plugin and
- tmux with tmuxinator
- powerline fonts
Please note: order is important here, otherwise some install steps might fail.
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick
Get existing dotfiles via:
cd $HOME/.homesick/repos $HOME/.homesick/repos/homeshick/bin/homeshick clone <your git repo>
For me, as I use the private bitbucket repo, I just had to add the ssh keys generated to bitbucket first:
- generate ssh key via (following https://help.github.com/articles/generating-ssh-keys/)
- go to repo on bitbucket via web browser
- add generated key at:
And run the:
cd $HOME/.homesick/repos $HOME/.homesick/repos/homeshick/bin/homeshick clone firstname.lastname@example.org:typekpb/dotfiles.git
Make sure to let homeshick symlink all the dotfiles from the repo (you might want to back up those to be overwritten). You’ll be prompted for symlinking stuff.
vim’s vundle plugin
As a prerequisite you’d need (g)vim installed (install instructions would be distro specific).
Install vundle plugin via:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Afterwards install all the vundle managed plugins via running in the vim:
Make sure to install tmux and ruby first (probably from the distro packages available).
gem install tmuxinator
if it’s to be installed globally, use:
sudo gem install tmuxinator
Following the official instructions:
cd /tmp wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf mkdir ~/.fonts mv PowerlineSymbols.otf ~/.fonts/ fc-cache -vf ~/.fonts/ mkdir -p ~/.config/fontconfig/conf.d/ mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
after restart seems to work OK.
|Reference:||Adding new machine to rc files sync from our SCG partner Peter Butkovic at the pb’s blog about life and IT blog.|