ssh -X issue Mate16 vs Mate18

Post Reply
wbgreen333
Posts: 15
Joined: Fri Apr 19, 2019 4:27 am
languages_spoken: english
ODROIDs: UX-4
Has thanked: 2 times
Been thanked: 0
Contact:

ssh -X issue Mate16 vs Mate18

Unread post by wbgreen333 » Fri Apr 19, 2019 4:46 am

My Odroid XU-4 and eMMC module came with Ubuntu-Mate 18.04 and I've applied all updates, but the problem I have is if I run ssh-X and launch a graphics app, say: caja & the application and window opens up on monitor attached to the Odroid, not the remote system.

I downloaded Ubuntu-Mate 16.04 and installed to an SD card, and SSH -X has the correct behavior (as does Raspbian 9 on the Pi3B+).

My question is how do I fix the issue in Mate18?

I forgot the to buy the eMMC writer dongle when I ordered my Odroid, otherwise I'd have just re-flashed 16.04 and been done with it.

What is double curious is, if I launch pluma & I get the window on the remote system. Why is caja not working right?

User avatar
mad_ady
Posts: 6360
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 144 times
Been thanked: 105 times
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by mad_ady » Fri Apr 19, 2019 5:52 am

What are the exact commands you are running and what does echo $DISPLAY say after logging in with ssh -X?
Some programs (e.g. firefox) won't try to start a new session, but try to continue the existing one (e.g. starting a new window) with the old DISPLAY.

User avatar
meveric
Posts: 10388
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 117 times
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by meveric » Fri Apr 19, 2019 6:03 am

firefox can be started remotely with X forwarding over ssh by adding the (misleadingly named) command firefox --no-remote
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

wbgreen333
Posts: 15
Joined: Fri Apr 19, 2019 4:27 am
languages_spoken: english
ODROIDs: UX-4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by wbgreen333 » Fri Apr 19, 2019 6:06 am

mad_ady wrote:
Fri Apr 19, 2019 5:52 am
What are the exact commands you are running and what does echo $DISPLAY say after logging in with ssh -X?
from env in the ssh -X login terminal:
SSH_CONNECTION=192.168.2.238 41834 192.168.2.231 22
DISPLAY=localhost:10.0


Exact command:
odroid@XU4:~$ caja &
Pops up a caja window on the monitor attached to the Odroid.

odroid@XU4:~$ pluma &
Pops up a window on the host running the ssh -X session, as it should.

It all works as expected when I boot 16.04 from the SD card.

I'm not needing to run firefox, its not even installed. Using ssh -X lets me run Chromium etc. on a much more powerful machine with larger monitor and cut and past commands into the Odroid.

User avatar
mad_ady
Posts: 6360
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 144 times
Been thanked: 105 times
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by mad_ady » Fri Apr 19, 2019 2:14 pm

Must be something caja-specific, not to honor $DISPLAY. In the meantime try nautilus.
These users thanked the author mad_ady for the post:
wbgreen333 (Sat Apr 20, 2019 2:03 am)

wbgreen333
Posts: 15
Joined: Fri Apr 19, 2019 4:27 am
languages_spoken: english
ODROIDs: UX-4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by wbgreen333 » Sat Apr 20, 2019 1:45 am

mad_ady wrote:
Fri Apr 19, 2019 2:14 pm
Must be something caja-specific, not to honor $DISPLAY. In the meantime try nautilus.
Thanks, good suggestion, I'd thought about that but wasn't bold enough until you suggested it. Works fine, although still I do prefer Caja.

User avatar
meveric
Posts: 10388
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 117 times
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by meveric » Sat Apr 20, 2019 2:01 am

have you tried: DISPLAY=:10 caja?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

wbgreen333
Posts: 15
Joined: Fri Apr 19, 2019 4:27 am
languages_spoken: english
ODROIDs: UX-4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by wbgreen333 » Sat Apr 20, 2019 2:06 am

meveric wrote:
Sat Apr 20, 2019 2:01 am
have you tried: DISPLAY=:10 caja?
DIdn't work, Caja still opens on the display attached to the Odroid.

Mate 16 didn't have this issue, I'd like a real solution, but in the meantime I can use nautilus, although I like Caja better.

User avatar
meveric
Posts: 10388
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 117 times
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by meveric » Sat Apr 20, 2019 2:26 am

I did some digging on google and apparently this is a known issue.
I can recreate this with caja under Debian Jessie (working) and Debian Stretch (not working).

Some suggest to run caja with sudo -E caja which I could do as well under Debian Stretch (after I updated caja to 1.20).
There are only a few applications affected from this it seems:
caja, deja-dup, blueman-manager
These users thanked the author meveric for the post (total 2):
wbgreen333 (Sat Apr 20, 2019 3:24 am) • mad_ady (Sat Apr 20, 2019 1:32 pm)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

wbgreen333
Posts: 15
Joined: Fri Apr 19, 2019 4:27 am
languages_spoken: english
ODROIDs: UX-4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by wbgreen333 » Sat Apr 20, 2019 3:24 am

meveric wrote:
Sat Apr 20, 2019 2:26 am
I did some digging on google and apparently this is a known issue.
I can recreate this with caja under Debian Jessie (working) and Debian Stretch (not working).

Some suggest to run caja with sudo -E caja which I could do as well under Debian Stretch (after I updated caja to 1.20).
There are only a few applications affected from this it seems:
caja, deja-dup, blueman-manager
Thanks for looking into this.
sudo -E caja &

does work to display on my remote host, but throws a lot of messages on my terminal as it starts:

Code: Select all

** (caja:25563): WARNING **: 13:19:48.354: Unable to connect to dbus: The connection is closed

(caja:25563): GLib-GIO-CRITICAL **: 13:19:48.516: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Initializing caja-open-terminal extension
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
RuntimeError: object at 0xb02695f8 of type RenameMenu is not initialized
RuntimeError: object at 0xb0202fa8 of type FolderColorMenu is not initialized

(caja:25563): dconf-WARNING **: 13:19:49.214: failed to commit changes to dconf: The connection is closed

(caja:25563): dconf-WARNING **: 13:19:49.548: failed to commit changes to dconf: The connection is closed

(caja:25563): dconf-WARNING **: 13:19:49.548: failed to commit changes to dconf: The connection is closed

(caja:25563): GLib-GIO-CRITICAL **: 13:19:49.826: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(caja:25563): GLib-GIO-CRITICAL **: 13:19:49.826: g_dbus_connection_register_object: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(caja:25563): GLib-GIO-CRITICAL **: 13:19:49.826: g_dbus_connection_get_unique_name: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
Until this is fixed by the developers I'll stick with nautilus for the time being instead of watching all this scroll by every time.

If any of this means something else will break while using it, I don't care to find out!

User avatar
mad_ady
Posts: 6360
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 144 times
Been thanked: 105 times
Contact:

Re: ssh -X issue Mate16 vs Mate18

Unread post by mad_ady » Sat Apr 20, 2019 1:33 pm

Try sudo -E caja 2>/dev/null & if you dislike the error messages

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests