This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Add some niceties for a new NVIDIA Jetson TK1 - LT 19.3 | |
# sudo ./configureJetsonTK1.sh | |
# Note: | |
# -- Check DNS in /etc/resolv.conf if cannot connect to ports.ubuntu.com | |
# -- a | |
# Don't allow apt-get upgrade of xorg overwrite libglx.so | |
# May be fixed in future versions of LT4 | |
sudo apt-mark hold xserver-xorg-core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# original post: http://blog.hostonnet.com/uninstall-gui-from-ubuntu-14-04-lts | |
sudo apt-get purge -y lightdm | |
sudo shutdown -r now | |
sudo apt-get clean | |
sudo apt-get autoclean | |
apt-get purge -y unity* | |
sudo apt-get purge -y unity* | |
sudo apt-get purge -y gnome-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://bootstrap.pypa.io/get-pip.py | |
sudo python get-pip.py | |
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose | |
sudo pip install Theano ; sudo pip install pymc ; sudo pip install pycrypto ; sudo pip install Cython ; sudo pip install image; | |
sudo pip install Scrapy ;sudo pip install virtualenv; sudo pip install virtualenv-clone; sudo pip install virtualenvwrapper; | |
sudo pip install h5py;sudo pip install xlwt;sudo pip install lxml ;sudo pip install colorama; sudo pip install PyDot; | |
sudo pip install scikits.audiolab; | |
sudo pip install paramiko; sudo pip install readchar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Full tutorial of start a Jetson TK1: http://myzharbot.robot-home.it/blog/software/configuration-nvidia-jetson-tk1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install cuda 7 | |
1. Download and install cuda 7 from here: https://developer.nvidia.com/cuda-downloads | |
2. add this to .bashrc or .bash_profile (I prefer the first one): | |
These 2 option will not work: | |
* export PATH=/Developer/NVIDIA/CUDA-7.0/bin:$PATH | |
* export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-7.0/lib:$DYLD_LIBRARY_PATH | |
Replace by these: | |
export PATH=/usr/local/cuda/bin:$PATH | |
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################## | |
# Client | |
############################################################## | |
mkdir [repo] && cd [repo] | |
git init | |
git add -A | |
git commit -m "Init git repo" | |
############################################################## | |
# Server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download: prebuilt spark+hadoop | |
From: https://spark.apache.org/downloads.html | |
Prefer prebuilt version, easier to deploy to all worker | |
# Configuration | |
1. Slaves configuration | |
* Client: | |
sudo adduser worker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module purge | |
module load cmake/3.3.2 | |
module load cuda/7.5 | |
module load gcc/4.9.1 | |
module load git | |
module load openblas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Loading the modules (these commands shuold be ran everytime you logged in) | |
module purge | |
module load StdEnv | |
module load gcc/4.8.2 | |
module load git/1.9.2 | |
module load python-env | |
module load cuda/7.0 | |
module load boost/1.58 | |
module load openblas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import theano | |
import theano.tensor as T | |
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams | |
from theano.tensor.signal.downsample import max_pool_2d | |
from theano.tensor.extra_ops import repeat | |
from theano.sandbox.cuda.dnn import dnn_conv | |
from time import time | |
import numpy as np | |
from matplotlib import pyplot as plt |
OlderNewer