Saturday, September 19, 2015

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:
* oh-my-zsh
* homeshick
* vim’s vundle plugin and
* tmux with tmuxinator
* powerline fonts

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 :)

Tuesday, January 6, 2015

Ubuntu 14.04 with HP Deskjet 930c

I’ve got old printer: HP Deskjet 930c. Following steps were necessary to use it with my Ubuntu 14.04:

  1. Printer: start + connect it via USB
  2. download HP drivers bundle called: HP Linux Imaging and Printing from: http://hplipopensource.com/hplip-web/gethplip.html
  3. install bundle via (answering couple yes/overwrite questions):
chmod +x hplip-3.14.10.run && ./hplip-3.14.10.run 

You should see your new printer afterwards.