Host a server on google compute instance

Yiling Liu
1 min readMar 30, 2020

--

Mounting is the act of associating a storage device to a particular location in the directory tree.

df -hFilesystem Size Used Avail Use% Mounted on
udev 1.8G 0 1.8G 0% /dev
tmpfs 371M 1.8M 369M 1% /run
/dev/sda1 9.8G 9.0G 327M 97% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup

How to copy a directory to a directory?

cp -R Pictures Pictures_backup

What to do to after creating google compute instance?

sudo apt-get update && sudo apt-get dist-upgradesudo apt install python3-dev python3-pipsudo pip3 install -U virtualenv  # system-wide installvirtualenv --system-site-packages -p python3 ./venvsource ./venv/bin/activate  # sh, bash, ksh, or zshpip install --upgrade pippip listpip install --upgrade tensorflowpython -c 'import tensorflow as tf; print(tf.__version__)' pip install librosapip install ddsppip install flaskpip install google-cloud-storage

Install zip and gsutil just to get

sudo apt-get install zipsudo apt-get install libsndfile1-devsudo apt-get install libav-tools

Start python local host and ngrok.

./ngrok http 5443

--

--

Yiling Liu
Yiling Liu

Written by Yiling Liu

Creative Technologist, ex-googler

No responses yet