Ruby + RVM Ubuntu xfce4-terminal, RVM is not a function

When running Xubuntu with xfce4-terminal, after running rvm install 2.1.1 , the following error appears:

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash –login` as the command.
Please visit for a example.

You need to right click the terminal, click Preferences, tick “Run command as login shell”, then click Close, then reopen the terminal and you should be able to run rvm use 2.1.1 !



imapsync on Ubuntu 13.10

sudo apt-get install makepasswd rcs perl-doc libmail-imapclient-perl git build-essential libfile-copy-recursive-perl

Then run:
imapsync --port1=143 --user1=[email protected] --password1=user1pass --user2=[email protected] --password2=user2pass

Drupal 8 – How to get Drush to run on a Linux distro

Now that Drush has removed support for Pear, and running the drush.php manually is currently not working, you are “forced” to use Composer.

If you don’t follow this way, you will get an error like:
Unable to load autoload.php. Drush now requires Composer in order to install its depedencies and autoload classes. Please see

If you do not currently have composer installed you will need to download and install it, see for instructions.

You will need to run the following:
cd ~
curl -sS | php

This will then install Composer.

Now we will install composer and set the path to .composer:

sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
Now to work with Drupal 8, you will require the latest Drush (7.x), which you can install like:

~/composer.phar global require drush/drush:dev-master --prefer-source

To update drush (as Drush is usually updated several times a day), simply run:

cd ~/.composer
~/composer.phar update

Clone all git repositories from BitBucket

#Script to get all repositories under a user from bitbucket
#Usage: [username]

curl -u ${1}${1} > repoinfo
for repo_name in `grep \"name\" repoinfo | cut -f4 -d\"`
git clone [email protected]:${1}/$repo_name.git

Credit to Harold Soh ( for the original source.