Connect to the instance via RDP or VNC, log into user 'guiuser'. See here how.
Open Tor Browser
First we need to open the Tor browser so it can establish a connection to the tor network. Open directory Desktop -> SeleniumWithTor -> tor-browser_en-US, double-click on Tor Browser icon. Wait for the browser to start. The window must remain open in the background while proceeding with further steps.
Run scripts with Python 3
Open a terminal window and navigate into /home/guiuser/Desktop/SeleniumWithTor directory by
Run the script by
If everything went fine, you will see the following screen.
To edit the script right click on it and open it with the text editor sublime text.
Manage VNC server:
When you reboot your instance, you need to reboot VNC as well. Connect to the terminal via SSH and log into user 'ubuntu'. See here how.
Switch to 'guiuser' by
The standard password for this user are the first 8 characters of your AWS instance ID.
Unset an environment variable as workaround for an incompatibility between vnc and dbus