Skip to content

Instantly share code, notes, and snippets.

@dylanbr
Last active February 12, 2020 11:01
Show Gist options
  • Select an option

  • Save dylanbr/30055c264f856fff9be94fa63e440048 to your computer and use it in GitHub Desktop.

Select an option

Save dylanbr/30055c264f856fff9be94fa63e440048 to your computer and use it in GitHub Desktop.
# Install requirements on MacOS (MacPorts)
sudo port install docker docker-machine
# Setup remote machine (eg. Digitalocean)
# Other drivers: https://docs.docker.com/machine/drivers/
docker-machine create --driver digitalocean --digitalocean-access-token=<your-token> --digitalocean-region=lon1 desktops
# Or for a local setup: https://apple.stackexchange.com/questions/373888/how-do-i-start-the-docker-daemon-on-macos
#docker-machine create --driver=virtualbox default
# Setup environment for newly created machine
eval "$(docker-machine env desktops)"
# Run the desktop (Centos/Ubuntu with IceWM or Xfce4)
# Options: https://github.com/ConSol/docker-headless-vnc-container
docker run -d -p 5901:5901 -p 6901:6901 consol/ubuntu-xfce-vnc
# Get the machine ip
docker-machine ip desktops
# Connect to http://machine-ip:6901
# Password is vncpassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment