| 291 | |
| 292 | === Choose a method for running graphical applications remotely === |
| 293 | 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). |
| 294 | |
| 295 | ==== X Forwarding ==== |
| 296 | 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 [https://en.wikipedia.org/wiki/X_Window_System#Remote_desktop 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. |
| 297 | |
| 298 | [[BR]] |
| 299 | |
| 300 | [[CollapsibleStart(Linux)]] |
| 301 | If you are using linux, you shouldn't need to install anything to use X forwarding, because you're already running an X server on your local machine. You simply have to run your ssh session using the -Y flag on the command line: |
| 302 | {{{#!shell-session |
| 303 | ssh -Y cosmos-user@sb.cosmos-lab.org |
| 304 | }}} |
| 305 | Keep in mind that you will have to use the flag for each ssh command you use, so if you ssh to a console and then from the console to the node, you will have to use the flag in both ssh commands in order to forward the applications all the way back to your local machine. |
| 306 | |
| 307 | [[CollapsibleEnd]] |