Last active
February 12, 2020 11:01
-
-
Save dylanbr/30055c264f856fff9be94fa63e440048 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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