Skip to content

yang-zhang/deep-learning-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Deep Learning Box Setup

Hardware

Tips:

  • RAM 2x the size of GPU memory
  • Motherboard and case the same type (e.g., Mini ITX)

My part list:

  • CPU: Intel - Core i5-6500 3.2GHz Quad-Core Processor
  • Motherboard: MSI - B250I GAMING PRO AC Mini ITX LGA1151 Motherboard
  • Memory: Corsair - Vengeance LPX 16GB (2 x 8GB) DDR4-3000 Memory
  • Storage: Seagate - Barracuda 3TB 3.5" 7200RPM Internal Hard Drive
  • Video Card: EVGA - GeForce GTX 1060 6GB 6GB GAMING Video Card ($309.00 @ Adorama)
  • Case: Thermaltake - Core V1 Mini ITX Tower Case
  • Power Supply: Corsair - CSM 550W 80+ Gold Certified Semi-Modular ATX Power Supply

References:

Software

OS

Create a bootable Ubuntu USB stick.

Reference:

GPU Driver

Install cuda driver before installing graphic card:

wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda

Add to `~/.bash_profile':

export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LIBRARY_PATH=/usr/local/cuda-9.0/lib64${LIBRARY_PATH:+:${LIBRARY_PATH}}

References:

Setup ssh

Find out default gateway using route -n. For example 192.168.1.1. Go to this IP in browser, end username and password (e.g., admin, admin).

Find out inet addr using ifconfig. For example 192.168.1.114, enable Port 22 for this IP. Verify that the port is open using http://www.portchecktool.com/.

Get a host name from https://www.noip.com/.

sudo apt-get install openssh-server
sudo service ssh status

You can now ssh to the box using ssh user_dl_box@hostname and the password of the box, and can ssh into its running Jupyter notebook:

ssh -NL 8887:localhost:8887 user_dl_box@hostname

To ssh into tensorboard, run docker with option -p 6006:6006 and ssh into tensorboard:

ssh -N -L 6006:0.0.0.0:6006  user_dl_box@hostname

References:

Setup Docker

https://github.com/yang-zhang/docker-setup

Releases

No releases published

Packages

No packages published