wiki:Workshops/SigComm2022/RemoteGraphics

Version 1 (modified by jennyshane, 3 years ago) ( diff )

Methods for running graphical applications remotely

Because SSH is a text-based interface, we need additional tools to run graphical applications such as gnuradio companion or mininet on the machines in the testbed. There are several options available: X forwarding, chrome remote desktop, and vnc over an ssh tunnel (we will not discuss this option here, but anyone who is familiar with this method should feel free to use it).

X Forwarding

X11 is the default windowing system on linux systems. Graphical applications on linux are X11 clients which communicate with the X server software, which is what renders the clients onto the screen and handles requests from the clients for user input. The communication between client applications and an X server can be forwarded over an ssh session, which is how X forwarding displays remote applications— the application runs on the remote machine, but uses the ssh session to communicate with an X server on your local machine.




Chrome Remote Desktop

Chrome Remote Desktop is a remote desktop software from Google which allows you to interact with a desktop session on a remote machine from your browser. Note that using this method will link the remote desktop sessions to your google account. You'll never need to provide information about your account to the remote machine, but you'll only be able to connect to it with remote desktop by using the client in your browser while you are signed in to your google account.

  1. Go to this link https://remotedesktop.google.com/headless/ and click begin. You can skip downloading and installing remote desktop to your node— it will already be installed. Follow the steps until you reach the command to start the remote desktop session.
  2. In your ssh session, type su sigcomm to switch to operating as the sigcomm user. Chrome remote desktop will not work if run by the root user.
  3. Copy the command to start the remote desktop session and paste it into your ssh session. You will be prompted to enter a pin.
  4. Go to https://remotedesktop.google.com/access/. You should see the machine you just set up. When you open a session to it, you will have to enter the pin you created in the previous step.
Note: See TracWiki for help on using the wiki.