joelspadin / vscode-remote-x11

Visual Studio Code extension that sets the DISPLAY environment variable in remote workspaces
39 stars 9 forks source link

Add support for xauth #37

Closed justin-gerhardt closed 3 years ago

justin-gerhardt commented 3 years ago

Support authenticating to the X11 server using MIT-MAGIC-COOKIE-1 tokens generated by xauth. Fixes https://github.com/joelspadin/vscode-remote-x11/issues/21

joelspadin commented 3 years ago

Thanks! I'll try to test this on a linux to linux connection soon.

joelspadin commented 3 years ago

And the Linux Laptop I'd been using for testing just died... may take me a while to either repair it or find something else I can use to run VS Code on Linux.

0dinD commented 3 years ago

@joelspadin Maybe you could test it using a Linux virtual machine?

joelspadin commented 3 years ago

I have several Raspberry Pis laying around, so I'm going to try it on those first, but using a VM is a good idea if that doesn't work.

joelspadin commented 3 years ago

I almost have a working setup to test this using a Raspberry Pi 4, but VS Code keeps crashing even without any extensions installed. Looking at the issues in the VS Code repo, it looks like some improvements for 32-bit ARM are incoming, so I'll try again after the January update is released.

joelspadin commented 3 years ago

I still haven't gotten this working on my Raspberry Pi yet, but from what little debugging I'm able to do before VS Code crashes on me, it looks like it is properly talking with xauth. Since I've verified this works on Windows, and since Linux doesn't work without it so it can't possibly make that any worse, I'm going to go ahead and merge it. Thanks!

joelspadin commented 3 years ago

I figured out what I was missing. I needed to change the connection type to Unix socket. I'll change the default to be an "auto" mode that picks TCP on Windows and Unix sockets otherwise.