Tunnel X over ssh for 11.3

Hello Solaris experts:

Trying to bring the 11.3 gdm screen over ssh to a Linux Box:

I did the following:

  1. made chanes to /etc/ssh/sshd_config & bounced ssh daemon:
# X11 tunneling options
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
  1. From the remote Linux box:
ssh -X user@solaris-11.3-host
  1. was able to run xeyes & xlogo

  2. when I run startx, it hangs with the following msg:

=====================

** (gnome-power-manager:3324): WARNING **: DBUS error: Could not get owner of name 'org.gnome.ScreenSaver': no such name
Initializing nautilus-open-terminal extension
** (gnome-power-manager:3324): DEBUG: proxy is NULL, maybe the daemon responsible for org.gnome.ScreenSaver is not running?

** (nwam-manager:3331): WARNING **: nwam_walk_enms entity not found

** (nwam-manager:3331): WARNING **: nwam_walk_known_wlans entity not found

** (nwam-manager:3331): WARNING **: nwam_walk_enms entity not found

** (nwam-manager:3331): WARNING **: nwam_walk_known_wlans entity not found

============================

Any help would be appreciated !! Thnx

This works fine here and possibly in your case too.

How did you check startx is actually hanged?

Well, no gdm screen from the Solaris host showed on the Linux host ..

Am I missing something ??

You are indeed missing what startx is is about.

It is launching the X11 server and some X11 clients on the host where it is run, i.e. on Solaris in your case.

That's no surprise nothing shows up on the Linux display.

Oh I C .. Thnx..

So How do I pipe the gdm screen to my Linux host just using XDMCP ??

Without using VNC.. Thnx again

XDMCP is unsecure and being obsoleted on modern OSes.

If your goal is to see Solaris desktop on your Linux display, you might use Xephyr to run an X server in a windows and remotely display the Solaris graphic environment of your choice in it. This can be tunneled through ssh.

Assuming you want Solaris Gnome, that would be something like, on Linux:

Xephyr :2 -screen 1024x768 &
gnome-terminal -display :2 &

Then, in the raw terminal window that should have appeared in the Xephyr one :

ssh -X solaris gnome-terminal

In the new terminal

nohup gnome-session &

If after a while, the windows decoration do not show up, (re)launch the windows manager:

metacity &

Note that i tested that with Solaris 11, that might be slightly different with Solaris 10.

Should you want to run CDE, I thing just launching "dtwm" should be enough.

1 Like

That worked on my Arch Linux !!

Thank you so much Jlliagre !!