Thursday, April 1, 2010

Basic ubuntu improvements

In all my linux installations I usually do some 'hacks'

Standard dir for user scripts

Usually I create a bin directory in my home dir and I add this dir to the PATH.

  1. create the bin dir:
    mkdir ~/bin
  2. Edit the environment:
    sudo gedit /etc/environment  
  3. find the line export PATH... and add ':$HOME/bin' to the end of that line
  4. reboot
Now the shell will look for executable in the user's bin dir. So that is the place where you can move executable scripts and the like.

1 comment:

  1. The .profile file in your home directory should already do that for you by default.