- Format external disk before installing, otherwise, you would run into an error.
- Download latest version of driver from NVIDIA
- Remove recently installed drivers
sudo apt-get purge nvidia*
- Log in tty1
- Press Ctrl + Alt + F1
- Type in your username and hit Enter
- Type in your password and hit Enter
- Shut down X server.
# unity
sudo service lightdm stop
# gnome
sudo service gdm stop
- Make the installer file excutable.
chmod +x <path-to-file>
- Run the executable install file
sudo sh <path-to-file>
Note: Don’t delete the installer file. You need it to uninstall driver later.
sudo sh <path-to-file> --uninstall
- Download Emacs 24.5 from https://www.gnu.org/software/emacs/download.html
- Install essential build tool and dependency.
sudo apt-get install build-essential
sudo apt-get build-dep emacs24
- cd to Emacs source directory where you unpacked Emacs
- Compile Emacs:
./configure
make
sudo make install
- To save store space, clean up binary files and object files.
make clean
Reference:
- http://ergoemacs.org/emacs/building_emacs_on_linux.html
- INSTALL file from Emacs
Don’t suggest you to update python from source
- Download latest version of python
- Install necessary packages and libraries
sudo apt-get install build-essential
sudo apt-get build-dep python2.7
- Build python from source
./configure --enable-shared # flags for theano
make
su root
make install
Note: Alternative ppa
sudo add-apt-repository ppa:fkrull/deadsnakes-python2.7
sudo apt-get update
sudo apt-get install python2.7
- Download latest version of get-pip.py
- Run the following:
python get-pip.py
- Download cuDNN v5.
- Uncompress archive file and copy files into toolkit directory
tar xvzf <cudnn-file>
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
- Set environment variables. Adding the command below to ~/.bashrc
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
export CUDA_HOME=/usr/local/cuda
- Activate the env variables
source ~/.bashrc
Reference:
- Before intalling Tensorflow, you should check the latest avaiable version. I use 0.10 as an example.
- Follow instructions from Tensorflow
- Test Tensorflow Installation
import tensorflow as tf
sess = tf.InteractiveSession()
If you don’t run into any error, it means Tensorflow is ready to go on your machine.
- example of .theanorc
[global]
device = gpu
floatX = float32
root = /usr/local/cuda
[blas]
ldflags = -L/usr/local/lib -lopenblas
[nvcc]
flags=-arch=sm_50 # for cuda 7.5; remove this line if using cuda 8.0
Install extensions below from Gnome Extensions
- Application menu
- Hide top bar
- windowNavigator
- put windows
- Maximus Two
- pandas
- jedi
- flake8
- scipy
- matplotlib
- ipython
- jupyter (aka IPython Notebook)
sudo pip install pandas scipy ipython jupyter jedi flake8
sudo apt-get install python-matplotlib