-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop xauth dependency / custom cookie creation #7
Comments
I am using runx on MSYS2 (without auth, sure). Thanks for this app, running remote applications via SSH -X (or -Y in my case) without additional Linux virtual machines is very useful. |
Thank you for your offer to test! |
I run your latest script (this one #8 (comment) ), but bash on MSYS (and google too :) ) doesn't know, what is the
|
Ooops, I forgot to include some subfunctions. |
It would be nice if you could test again. |
Sorry, I was busy with my work tasks. I did some tests, but unfortunately I could not get it to work. First, I found issue with Then, I found that your cookie have a strange form. As I see on stackoverflow, address field should contain hostname in ascii form, but you put there 4 bytes - IP in binary form. Third, I found ready to use |
Thank you for the tests! For now I've added a message that the custom cookie is experimental and one might use
x11docker creates two cookie files with the same content, one for the X server and one for the X client.
MSYS2 simulates a Linux environment, so this is consistent behaviour. And one might not want Linux config files in Windows'
I found this syntax by looking at cookie files with It might be worth a try to create a cookie
I once tried
The exact error message is important at this point.
It might help to run |
oh, I completely confused :( now I just did simple tests with your latest app:
so, it didn't working even with
but here it works fine |
You have a close look on what is happening and I appreciate that!
This looks well so far. I have the impression that
However, |
Just an idea: Maybe IP 127.0.0.1 is an issue. |
no, they absolutely the same (only differs with several milliseconds in a timestamp)
I cannot find info about X-system forwarding in SSH debug output. Maybe, you will more lucky ? :)
Same behavior. My host machine have several IPs (I run VirtualBox on it, and there is several virtual network adapters), but I checked that IP which Also I tried to use default filename BTW, I read |
I've tried with an invalid cookie file and ssh option
So maybe runx creates a valid cookie, but ssh is not able to create one for X forwarding without
I'd say |
I've asked at MSYS2 to add a package Maybe we could have a look at Could you try To avoid possible issues due to two different cookie files, I have changed I've also made some path conversion changes to support I hope I did not break anything for Cygwin or WSL due to changed pathes; now the single cookie is located at Edit: Thinking about this, Edit2:
|
(with updated
(I dont know, why file contains two records, but xauth show only one)
But when I did simple script
I got in ssh output
and... yes!! currently I can run X-applications!!
Yesterday I looked at xauth sources. It is very simple app, but it depends on X core things. Currently X-Window not supported on MSYS and I think maintainers don't want to do it. |
Great! I see two possible ways now:
runx creates a second entry with cookie family 'wild' /
You should get the xauth version with
Side note: You should always use
Interestingly on Debian it seems to be hardcoded as |
runx now uses If all is fine now, you should be able to use |
Yes, I see the same. Maybe we need to check WSL and CygWin ?
very, very old Ubuntu:
ok, thanks for explanation
I know C good enough (my current job - to support ancient applications running on small embedded systems), but I think it will be better to write new one from scratch (and sure, it should be interpreted language like python or bash - you shouldn't force your user to install make/gcc/etc). |
Wow, thanks! but there is a small error. You set
and I cannot understand, how you run an VcXsrv itself - this path also contain space... UPD2: I just added Oh... What crazy man did this language? :-)) Yes, he is absolutely crazy, I cannot understand him.
|
Good find! I've added quotes
And yet some other crazy man decided to add a space in folder
It would be great if you could check
I agree. As long as
I've reverted this so
|
OK, I will try to do it. I have WSL on my home laptop (but I never run linux GUI apps on it).
Wow! What different people one can meet on github! ;)
Yes, it is a good reason. BTW, here is a small bug: you should escape Also, I think currently there is no need for |
Good point, is fixed now.
But I am so proud of it and spent several hours to make it work ... * cry *. At least on Debian it works fine.
I quite appreciate our friendly and productive discussion across the world and across borders. :-) |
Hello @eine ,
are you still using x11docker and runx?
Once we had the issue that MSYS2 does not provide package
xauth
so x11docker and runx could only run with option--no-auth
.These days I managed to create a cookie file without the need of
xauth
.I'd like to implement this in
runx
and want to ask you if you could test it if it works.The text was updated successfully, but these errors were encountered: