Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

01 October 2014

Update bash on OS X using homebrew

Default bash on MAC OS X sucks, that's why we have to get a better one. The easiest way is using homebrew.

First step is to install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
then install bash
brew install bash
after that, you can go to see if new bash is install correctly
ls -al /usr/local/bin | grep bash
The result should show the symlink (->) like this
lrwxr-xr-x   (some useless info here)  bash -> ../Cellar/bash/4.3.18/bin/bash
The version might not be exactly 4.3.18, but everything above that is okay.


Now it's time to update your bash by create symlink to /usr/bin/bash.
But, before we can create symlink, just in case something go wrong, we have to backup the existing bash first.
sudo mv -r /usr/bin/bash /usr/bin/bash_old
then crete symlink from /usr/local/bin/bash to /usr/bin/bash
sudo ln -s /usr/local/bin/bash /usr/bin/bash 
After you restart terminal, everything should be ready

If you're still not convince, you can try
bash --version 

08 July 2013

how to set different wallpaper for each monitor in Ubuntu

Update: Nitrogen doesn't work well on Ubuntu 13.04

Setting different wallpaper for each screen is really more difficult than on Windows or OS X but isn't that difficult

There are just 2 steps.

First install GNOME Tweak Tool using command line.

sudo apt-get install gnome-tweak-tool

Now we have to stop file manager from handle the desktop background.


The desktop is now gone black, so we can use another application to handle it



Second, install nitrogen.

sudo apt-get install nitrogen

But nitrogen doesn't have icon so we have to launch it from a command line by typing

nitrogen

Now we can set different wallpaper for each screen.