USB OTG to xwindows on Android?

James Newton wrote 05/26/2019 at 01:10 0 points

I can run an XWindows server on my Android phone or tablet, and then SSH into my Linux um... server... yeah, let's call it a server... (I'm not saying it's a robot, but it's a robot running Ubuntu(ish) 16.04) and then I can export DISPLAY=<ip of cell phone>, startlxde, and away we go. Works amazingly well. But, it requires network connectivity.

I can also connect directly via the USB console port on my... um... server (robot!) via a USB OTG cable and a USB terminal app. That works great, but no GUI. 

Any ideas on how to route the xclients through the USB OTG cable? And get the phone to service xwindows from the USB port?

Seems like this would be a really handy thing for e.g. RasPi Zero to use your phone as a local GUI console.