Using X11 forwarding on the Arduino Q

Do you mean when the UNO Q is running in SBC mode with a display, keyboard and mouse connected to it with a dongle?

The attached shows the UNO Q desktop with AppLab and Arduino IDE. AppLab is running natively on the UNO Q, but the Arduino IDE 2.3.7 in running on my Linux PC but being displayed on the monitor connected to the UNO Q using X11 forwarding over SSH.

Its actually quite easy once you have networking configured on the UNO Q and an openSSH server set up on the Linux PC. First install the openssh-server package on the PC. Next, make sure that X11 Forwarding is enabled and your security is configured how you want it in /etc/sshd_config. Start the ssh server then connect from the UNO Q with:

ssh -X username@192.168.1.100

where username is your Linux username and the IP address is the IP of your Linux PC. When prompted enter your password. Once at the ssh terminal on your PC, start the application from the command line. After a few seconds the app should show on your UNO Q display.

I also done this in reverse by logging into the UNO Q, starting AppLab and having it displayed on my laptop screen. Of course, a simple USB connection will have sufficed, but just wanted to confirm that this was possible.

Performance is going to depend on the speed of your WiFi network. For me its a bit sluggish but usable. I don't have the two applications that you mention so I used Arduino IDE to illustrate, but the principle should be the same. Just one caveat: not all applications work very well over X11 and ssh.

1 Like