X11 Forwarding or else how to display GameShell's screen on your pc's desktop

Well this is a must especially for developers. Never miss the valuable outputs (printfs etc) on the terminal while checking your SDL app!

Instructions

  1. Check if X11 Forwarding is enabled on your GS (by default it is)

    cat /etc/ssh/sshd_config
    

    and look for the line: X11Forwarding yes
    Make sure this line is not commented with # in the beginning

  2. Download an ssh client which supports X11 on your desktop. For windows I recommend MobaXterm

  3. Create an ssh connection/session with the above tool on your GameShell, make sure X11-Forwarding is enabled
    image

  4. Start an ssh session to your GameShell
    image
    In the screenshot above look on top for the green checks on X11-Forwarding and DISPLAY

  5. You are set to go, to test fire xcalc
    image

    tada!
    image

Want some more?

image

image

7 Likes

Pretty cool @elefas! To accomplish this on the Mac, simply add -Y to the ssh command:

ssh -Y cpi@192.168.2.2

XQuartz must have been properly installed prior to trying this. Also, a lot of games won’t display properly in the X11 environment.

3 Likes

Thanks for the supplementary info @lasvegas!
X11Forwarding is not meant for playing games, after all GS is a portable device with its own screen and it also has hdmi output for this. X11Forwarding is very useful when developing for or tinkering with our little system.

1 Like

I got it to log in, but how do you actually show the display, in windows, what is the command. all this does is get you to a command line like in winscp