Hi. I mentioned this long ago in another thread, but for a while I have been doing the thing where I remotely use Waydroid, but keep the Waydroid confined to run on a VPS rather than to run it on the Librem 5, so that my Librem 5 can stay clean and nice without Waydroid actually on it.
But what I didn’t describe much was that this solution always had a problem. Starting up waydroid inside the remote-control VPS didn’t work from the Librem 5 because the VNC client I was using was (for some reason) unable to forward keystrokes from the Librem 5 virtual keyboard, whereas Librem 5 with a physical keyboard, or Librem 14, could control the VPS perfectly.
This meant I was actually using my Librem 14 really, and not the Librem 5. But I was thinking about going on a trip soon where I only have the Librem 5, and I might want the Waydroid working and available for that entire trip.
So last night I mucked about with the settings on this and I ended up breaking the Waydroid install on my server. After a bit, I fixed it. But on top of fixing it, I figured that in case something bad ever happens to that VPS again I should publish more about what I was doing so that it can be used by others.
To that end, I created a codeberg repo with all my shell scripts I was using and stuff, and my notes, including the newer versions I made last night that allow me to SSH into the headless VPS, launch sway window manager with remote controls enabled, and launch Waydroid inside that sway instance, all from the headless SSH connection before ever connecting. This allows me to deal with the fact that the Librem 5 VNC viewer I was using only has touch functionality and not keyboard.
I don’t know if this will be useful to anyone else, but in case it is, here is my codeberg repo:
That said, this is basically a repo with a bunch of bash scripts in a nonstandard organization, so I’m sure in the future someone might suggest a better way to do that which might better follow some established paradigms. I wasn’t so focused on that initially as I was just putting this out there so that it might be available to others (or to my future self if my VPS dies).