How to set up env using Google Cloud?

I finally got mine setup. Documenting it here in case anyone else has the same problem. I was having trouble with not being able to run jupyter notebook a second time. I was getting this error.

Permission denied: u'/home/ubuntu/.jupyter/migrated'

It was because the owner of the “.jupyter” directory had been set to root. From the “/home/ubuntu” directory, I did
chown -R ubuntu:ubuntu .jupyter

This is most likely because running install-gpu.sh, installs Anaconda as root, at least it did on my machine. So you’ll also need to change the owner of the “anaconda2” directory too or you’ll run into trouble later
chown -R ubuntu:ubuntu anaconda2

I got another error when running one of the cells in lesson1. I then changed .theanorc config to use the cuda backend instead of gpu:

[global]
#device = gpu
device = cuda
floatX = float32

[cuda]
root = /usr/local/cuda

Then you’ll have to add export MKL_THREADING_LAYER=GNU to your .bashrc file. Then call
source ~/.bashrc

2 Likes