HowTo: Install Drush on Ubuntu Box

Download Drush

Find the download URL of the recommended release from the Drush project page and download with WGET

cd ~/
http://ftp.drupal.org/files/projects/drush-All-versions-3.0.tar.gz

Extract the archive
tar -xvzf drush-All-versions-3.0.tar.gz

Check Command Line PHP Install

whereis php

If it throws up:
php:

Install command line options and restart
sudo apt-get install php5-cli
sudo /etc/init.d/apache2 restart

Set up an Alias

Create an alias for Drush in .bash_profile (this can also go in .profile or .bash_aliases)
echo "alias drush='php ~/drush/drush.php'" >> ~/.bash_profile

Load aliases (or reconnect)
source .bash_profile

Thanks for help from Michael Chelen on Knol and a d.o. forum post.

 

Note for local DAMP install the alias command looks something like
Cousett-Ruelass-MacBook-Pro:drush cousett$ alias drush='/Applications/acquia-drupal/php/bin/php ~/drush/drush.php'

 

CREATE Symbolic link to drush ln -s /home/cousett/drush/drush /usr/local/bin/drush

 

Drupal 7 and Drush