Ubuntu 11.10 and Gnome Shell with Nvidia Optimus

In order to make Gnome Shell work in my Ubuntu 11.10 installation I had to install the following:

1. sudo add-apt-repository ppa:bumblebee/stable
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates

(I have ignored the advice that this second one is not required if you are on Ubuntu 11.10)

2. sudo apt-get update
3. sudo apt-get install bumblebee
4. sudo apt-get install nvidia-current

Note: Gnome Shell refused to start without adding this ppa:ubuntu-x-swat/x-updates

Instructions are based on: https://github.com/Bumblebee-Project/Bumblebee