Skip to content

Instantly share code, notes, and snippets.

@puzzledqs
Last active August 29, 2015 14:02
Show Gist options
  • Save puzzledqs/93efee7fc582ac118a47 to your computer and use it in GitHub Desktop.
Save puzzledqs/93efee7fc582ac118a47 to your computer and use it in GitHub Desktop.
Basic setup in Ubuntu

Basic setup in Ubuntu:

  1. Remote Desktop
  • sudo apt-get update
  • sudo apt-get install xrdp
  • sudo apt-get install gnome-session-fallback
  • echo "gnome-session --session=ubuntu-fallback" > ~/.xsession
  • sudo /etc/init.d/xrdp restart ** use gnome-session-quit --logout to log out
  1. CUDA
  • Install Nvidia driver for linux 64 version 331.20 (may use "additional drivers" from System Settings or command line jockey-gtk
    • may need to quit GUI before installation
    • sudo service lightdm stop
    • Ctrl + Alt + F1 to login with terminal and start installation
    • Ctrl + Alt + F7 to return to GUI
  • Install Cuda 5.5 (caffe runs much slower when compiled with cuda 6.0)
    • sudo sh cuda_5.5xxx.run
  1. MKL Install cpp_studio_xe_2013_sp1_update2, SN: SP9R-DHZ7VXZ6
  • edit /etc/ld.so.conf, append '/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64' and '/usr/local/cuda-5.5/lib64'
  • sudo ldconfig
  • double check cuda is present in : sudo ldconfig -p | grep libcudart
  • edit ~/.bashrc, and add the following lines
    • export PATH="/home/sqiu/anaconda/bin:$PATH"
    • export PATH="/usr/local/cuda-5.5/bin:$PATH"
    • export LD_LIBRARY_PATH="/usr/local/MATLAB/R2012a/bin/glnxa64:$LD_LIBRARY_PATH"
  1. Matlab 2012a
  1. Sublime Text http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2 https://gist.github.com/puzzledqs/635ce150414ebed0cad0
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
5CDB7036 E56DE1C0 EFCC0840 650CD3A6
B98FC99C 8FAC73EE D2B95564 DF450523
------ END LICENSE ------ 
  1. Open in terminal http://askubuntu.com/questions/207442/how-to-add-open-terminal-here-to-nautilus-context-menu

  2. Acceleration for K40

  • sudo nvidia-smi -i GPU_ID -pm 1
  • sudo nvidia-smi -i GPU_ID -ac 3004,875
  1. Install caffe http://caffe.berkeleyvision.org/installation.html
  • sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev
  • wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz tar zxvf glog-0.3.3.tar.gz ./configure make && make install
  • make all -j8
  • make distribute
  • copy feat_extract to distribute/feat_extract
  1. ./device_query.bin to find out the device ids to use

  2. Disable show desktop shortcut: gconf-editor -> apps -> metacity -> global keybindings

  3. ps kill killall pkill

  4. sudo fdisk -l; sudo mkdir /media/disk; sudo mount -t ntfs-3g /dev/sdb1 /media/disk;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment