Skip to content

Instantly share code, notes, and snippets.

@mithi
Created July 13, 2022 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mithi/eb868c0824ce84e32b927a88e61011fb to your computer and use it in GitHub Desktop.
Save mithi/eb868c0824ce84e32b927a88e61011fb to your computer and use it in GitHub Desktop.
  1. Create a droplet, use ssh key, 4GB ram

  2. Connect to your Droplet via ssh https://docs.digitalocean.com/products/droplets/how-to/connect-with-ssh/openssh/

  3. Do the initial server setup: create new user, access that user on your local via ss etc https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04

  4. On your user, setup python 3, pip3, python3-venv, and other essential dev tools https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-programming-environment-on-an-ubuntu-20-04-server

  5. Follow as in the README (https://github.com/datature/portal), which will result to errors

git clone https://github.com/datature/portal
cd portal
./setup-virtualenv.sh
pip3 install -r requirements.txt
./setup.sh
python3 portal.py
  1. Resolve errors one by one:
  1. By this time you should be able to successfully run python3 portal.py
* Running on http://127.0.0.1:9449/ (Press CTRL+C to quit)
  1. Do local port forwarding to open the GUI on your browser
ssh -L [LOCAL_IP:]LOCAL_PORT:DESTINATION:DESTINATION_PORT [USER@]SSH_SERVER
# in my case
ssh -L 8080:127.0.0.1:9449 mithi@188.166.178.93  -i PATH/TO/SSH_KEY 

Note: I'm not currently utilizing the GPU but I could try it in the future https://stackoverflow.com/questions/59823283/could-not-load-dynamic-library-cudart64-101-dll-on-tensorflow-cpu-only-install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment