Skip to content

Instantly share code, notes, and snippets.

@alexlib
Last active April 23, 2022 15:53
Show Gist options
  • Save alexlib/47c0abcc6e0840a939e81c486b89273c to your computer and use it in GitHub Desktop.
Save alexlib/47c0abcc6e0840a939e81c486b89273c to your computer and use it in GitHub Desktop.
installation of OpenPTV + PyPTV on headless VNC server based on Ubuntu 20.04 and Xfce

Use Docker image

    docker run -d -p 25901:5901 -p 26901:6901 accetto/ubuntu-vnc-xfce-chromium-g3:latest

access headless server (note the password is also headless, unless you change it)

http://localhost:26901/vnc_lite.html?password=headless

Open Terminal and run these commands:

sudo apt update && apt install git g++ libx11-dev libqt5gui5 libglu1-mesa-dev -y


wget -qO- https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
./bin/micromamba shell init -s bash -p ~/micromamba
source ~/.bashrc

micromamba create -n pyptv_py3 python=3.7 -y -c conda-forge
micromamba activate pyptv_py3
micromamba install swig -c conda-forge -y
pip install git+https://github.com/enthought/enable


pip install pyptv --index-url https://pypi.fury.io/pyptv --extra-index-url https://pypi.org/simple

git clone https://github.com/openptv/test_cavity

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