Skip to content

Instantly share code, notes, and snippets.

@schnee
Created December 30, 2017 15:54
Show Gist options
  • Save schnee/d9333f4a6e2d8215064520ea820fded4 to your computer and use it in GitHub Desktop.
Save schnee/d9333f4a6e2d8215064520ea820fded4 to your computer and use it in GitHub Desktop.
history for hugin setup
ls
pwd
hi
man hi
man cats
yes "we have no bananas"
yes
man yes
exit
git
sudo apt install git
man git
git
history
sudo apt-get update
sudo apt-get --assume-yes upgrade
sudo apt-get --assume-yes install tmux build-essentials gcc g++ make binutils
sudo apt-get --assume-yes install tmux build-essential gcc g++ make binutils
sudo apt-get --assume-yes install software-properties-common
sudo apt-get --assume-yes install git
sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
ls
cd Downloads
ls
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 dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda
cd
cat .bashrc
ls /usr/local/cuda-9.0/bin
vi .bashrc
source ~/.bashrc
nvcc --version
nvidia-smi
cd Downloads/
ls
sudo sh NVIDIA-Linux-x86_64-384.98.run
sudo reboot
cd /etc/default/grub
ls /etc/default/
nvidia-smi
cd Downloads/
ls
sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda
sudo apt-get remove --purge nvidia*
sudo apt-get autoremove
sudo reboot
cd Downloads/
ls
sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda-toolkit-8.0
cd
ls /usr/local/cuda-8.0/bin
ls /usr/local/cuda-8.0/lib64
vi .bashrc
source .bashrc
nvcc --version
nvidia-smi
ls /usr/local/cuda-8.0/bin
sudo apt-get install cuda
ls /usr/local
ls -la /usr/local
sudo apt-get install cuda-8.0
ls -la /usr/local
nvida-smi
nvidia-smi
sudo apt-get remove --purge nvidia*
sudo apt-get autoremove
sudo reboot
cd Downloads/
ls
sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
sudo apt-get update
sudo apt-get install cuda-8.0
ls /usr/local
ls /usr/local/cuda-8.0/bin
nvcc --version
cd /usr/lib/nvidia-384/bin
ls
./nvidia-smi
sudo reboot
history
/usr/lib/nvidia-384/bin/nvidia-smi
cd Downloads
ls
tar -xzf cudnn-8.0-linux-x64-v6.0.tgz
ls
cd cuda
sudo cp lib64/* /usr/local/cuda/lib64
sudo cp lib64/* /usr/local/cuda-8/lib64
sudo cp lib64/* /usr/local/cuda-8.0/lib64
sudo cp include/* /usr/local/cuda-8.0/include/
cd ..
ls
bash Miniconda3-latest-Linux-x86_64.sh -b
ls
cd ..
ls
vi .bashrc
ls miniconda3/bin/
source .bashrc
echo $PATH
conda upgrade -y --all
source activate root
sudo apt install python3-pip
pip install tensorflow-gpu
mkdir projects
cd projects/
mkdir github.com
cd github.com/
git clone https://github.com/tensorflow/tensorflow.git
python tensorflow/tensorflow/examples/tutorials/mnist/fully_connected_feed.py
source deactivate
sudo shutdown
sudo apt-get install openssh-server
sudo service ssh status
cd /etc/ssh
ls
cat ssh_host_rsa_key.pub
cd
ls
ls -la
pwd
exit
source activate root
pip install keras
ls
cd projects
ls
cd github.com/
ls
git clone https://github.com/fchollet/keras.git
cd keras
ls
cd examples/
ls
python imdb_fasttext.py
exit
ls
man ssh
cd .ssh
ls
cd
vi .bashrc
ll
ls -la
ll
source activate root
cd projects/
juypter notebook
jupyter notebook
conda install jupyter
jupyter notebook
man jupyter
jupyter notebook --help
jupyter notebook -ip 192.168.1.249
jupyter notebook --ip 192.168.1.249
pwd
ls
exit
top
nvidia-smi
exit
sudo apt-get upgrade
source activate root
cd projects/github.com/keras/
ls
cd examples/
ls
python imdb_lstm.py
source activate root
cd projects/github.com/keras/examples/
ls
python imdb_lstm.py
ls
python cifar10_resnet.py
conda install h5py
python mnist_cnn.py
python mnist_hierarchical_rnn.py
nvidia-smi
python imdb_bidirectional_lstm.py
ls
python variational_autoencoder.py
python lstm_seq2seq.py
python imdb_fasttext.py
nvidia-smi
exit
ls
cd projects/github.com/keras/examples/
cat lstm_stateful.py
python lstm_stateful.py
source activate root
python mnist_mlp.py
exit
cd projects/github.com/keras/examples/
python mnist_cnn.py
python lstm_seq2seq.py
python lstm_stateful.py
python lstm_text_generation.py
nvidia-smi
source activate root
jupyter notebook --generate-config
cd .jupyter/
sudo vi /etc/apt/sources.list
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
R
sudo apt-get install gdebi-core
mkdir temp
cd temp
wget https://download2.rstudio.org/rstudio-server-1.1.383-amd64.deb
sudo gdebi rstudio-server-1.1.383-amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment