Skip to content

Latest commit

 

History

History
196 lines (143 loc) · 4.24 KB

things_to_do_after_ubuntu_installnig.org

File metadata and controls

196 lines (143 loc) · 4.24 KB

Installing Ubuntu Gnome 14.04

  • Format external disk before installing, otherwise, you would run into an error.

Set up dev env

NVIDIA driver

  • 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

Reference: http://www.yourownlinux.com/2016/06/how-to-install-nvidia-367-27-stable-graphics-drivers-in-linux.html

Install CUDA 7.5

Install Emacs

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:

Update python

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

Install pip

  • Download latest version of get-pip.py
  • Run the following:
python get-pip.py

Install CuDNN v5

  • 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:

Install Tensorflow 0.10 with pip

  • 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.

Install Theano

  • 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 for Gnome

Install extensions below from Gnome Extensions

  • Application menu
  • Hide top bar
  • windowNavigator
  • put windows
  • Maximus Two

Install Python modules

  • 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