The following is a work in progress meant as reference for my future self and stray googlers.  It was effective for me in installing Theano 0.6.0 for use with a GeForce GTX 750.

# Install appropriate C toolchain
sudo apt-get install gcc-4.8 g++-4.8 libatlas3-base
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
sudo update-alternatives --set cc /usr/bin/gcc
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
sudo update-alternatives --set c++ /usr/bin/g++
sudo update-alternatives --set g++ "/usr/bin/g++-4.8"
sudo update-alternatives --set gcc "/usr/bin/gcc-4.8"

# Install CUDA via nvidia (this does work for 14.10)
URL = "http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_6.5-14_amd64.deb"
wget "$URL" -O/tmp/cuda.deb
sudo dpkg -i /tmp/cuda.deb
rm /tmp/cuda.deb
sudo apt-get install cuda-6-5
# Install python packages
sudo apt-get install python-nose python-numpy python-scipy ipython
sudo pip install pycuda
sudo pip install Theano