Home » Shell Scripting » BASH » Adding new machine to rc files sync

About Peter Butkovic

Peter Butkovic
Peter is a java developer living in the Munich area. Prototyping is for him the most favourite part of the project work (especially in the phase when nobody really knows if things are really gonna work :) He is also quite influenced by the ideas of open source software. And important things except that? Family, friends and Jesus Christ (the best Friend :)

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:

Please note: order is important here, otherwise some install steps might fail.

oh-my-zsh

Install via:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

homeshick

Install via:

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:

  1. generate ssh key via (following https://help.github.com/articles/generating-ssh-keys/)
  2. go to repo on bitbucket via web browser
  3. add generated key at: Settings -> Deployment keys

And run the:

cd $HOME/.homesick/repos
$HOME/.homesick/repos/homeshick/bin/homeshick clone git@bitbucket.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:

:BundleInstall

tmuxinator

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

powerline fonts

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.

Done!

Reference: Adding new machine to rc files sync from our SCG partner Peter Butkovic at the pb’s blog about life and IT blog.
(0 rating, 0 votes)
You need to be a registered member to rate this.
Start the discussion Views Tweet it!
Do you want to know how to develop your skillset to become a sysadmin Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. Introduction to NGINX
2. Apache HTTP Server Cookbook
3. VirtualBox Essentials
4. Nagios Monitoring Cookbook
5. Linux BASH Programming Cookbook
6. Postgresql Database Tutorial
and many more ....
I agree to the Terms and Privacy Policy

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of