Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm working for the first time with a virtual x86 machine running Solaris 10. I need the Oracle 11.2 client libraries, and to do so need to have Xwindows forwarding working. I can ssh into the Solaris machine via PuTTY from a local Windows machine. Most howto's seem to assume that my Solaris box was set up with X preinstalled and running, which is not the case here, so that's likely where the missing piece(s) are.
I feel like I may be close -- but so far, no banana.
SUNWarc SUNWbtool SUNWhea SUNWlibms SUNWmfrun SUNWxorg-client-programs SUNWxorg-clientlibs
# SUNWxwfnt already installed in an earlier step
The following are enabled in sshd_config:
Code:
AllowTcpForwarding yes
GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
On my Windows machine:
PuTTY: Have X11 forwarding enabled in settings
Exceed Windows x server: Have added the Solaris virtual machine's IP to C:\Program Data\Hummingbird\Exceed\xhost.txt and restarted Exceed. The Exceed title bar states that it's listening on <windows IP>:0. (Note: I have access to Exceed. Period.)
The last try feels like the most plausible try as at least xcalc doesn't exit immediately. However, it just hangs there, with no application visible on Windows laptop. xhost + was recommended in sevearl places but also behaves the same (appears to hang or be expecting console input); likewise xwininfo.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
You are losing the DISPLAY variable when switching users. Check if it is set before su-ing to root.
The simplest way would be to directly log in as oracle.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
I'm afraid you are confusing su-ing and login.
You have zero chance for ssh X forwarding to work by setting the DISPLAY variable yourself. I wrongly thought localhost:50 had been automatically set but that doesn't seem to be the case.
Please log in remotely from your ssh client under whatever account authorized to access throuch ssh to the Solaris server and make sure X11 forwarding is enabled in the client settings. When logged in, check if the DISPLAY variable is set. Don't run "su".
This time logging in directly as oracle. Confirmed that X11 Forwarding is checked in PuTTY settings for the session:
Code:
Using keyboard-interactive authentication.
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.2$ echo $DISPLAY
localhost:50
-bash-3.2$ /usr/openwin/bin/xcalc
Error: Can't open display: localhost:50
-bash-3.2$ who am i
oracle syscon May 9 15:15 (172.19.106.69)
-bash-3.2$
I am pretty sure that these must be specific to our firewall, but in the end I had to go into my SSH client settings and disable X11 Forwarding, and then under Tunnels, add a forwarded Remote port with
Source Port: 6050
Destination: localhost:6000
On the VM $DISPLAY is still set to localhost:50, and there were no changes to Exceed (I took the VM's IP out of Exceed's xhost.txt file, actually, and it still works).
Thanks again for all of your help!
Last edited by rose_bud4201; 05-12-2014 at 03:04 PM.
Reason: resolved
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
There are no X server logs to expect on the Solaris side, the X server is supposed to run on the Windows one. On the other hand, there should be some putty logs, perhaps do you need to enable them.
Are you able to forward X through ssh when connected to a different machine (Solaris or Linux) or is it your first attempt ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.