Telnet into Solairs10 with Tera term. Go to sub /opt/VirtualBox and type
# VirtualBox
Failed to open the X11 display!
How do I open X11 display?
Telnet into Solairs10 with Tera term. Go to sub /opt/VirtualBox and type
# VirtualBox
Failed to open the X11 display!
How do I open X11 display?
That error means that VirtualBox can't open a graphical display. Since you've connected to the server with a terminal, this makes sense.
If you want the window to appear on your local machine, you will need to run your own local X11 server(you can install one using Cygwin) and enable X11-forwarding in tera term before you ssh in. Then, when tera-term logs in, it ought to set the DISPLAY variable on the remote side and allow VirtualBox to connect through SSH to your own local X server.
You need to have X client (Example: Xming) installed. In addition to that you need to enable X11 forwarding on Tera Term.
I do have Xming installed. Do I need it running? How do I enable X11 forwarding to Tera Term?
Yes, Xming needs to be running.
To enable X11 forwarding in Tera Term, do this:
Start TeraTerm, click Setup, SSH Forwarding ..., make sure "X Forwarding" is active. After this save the setup (Setup, Save Setup ...), exit TeraTerm and restart it.
Ok Xming is running in the background. I changed the settings in Tera Term and saved but still getting Failed to open the X11 display! Do I need to ADD in port forwarding?
What port is xming running on?
What do you see when you do echo $DISPLAY ?
# echo $DISPLAY
#
Nothing?
VirtualBox won't even try to use the forwarded port if DISPLAY isn't set. It ought to be setting DISPLAY for you if X11 forwarding is set, but the remote server can sometimes just not do that part of it.
It may be you need to forward the port manually, if the remote side is blocking X11 forwarding.
Once you get the correct port forwarded to the remote side, do
DISPLAY="localhost:portnumber" ./VirtualBox
# DISPLAY="localhost:portnumber" ./VirtualBox
Failed to open the X11 display!
#
I don't literally mean 'portnumber'. Substitute the appropriate number for it. localhost is correct however
# DISPLAY="localhost:0.0" ./VirtualBox
Now I just have a flashing cursor it didnt give me a # for the next line
---------- Post updated at 03:28 PM ---------- Previous update was at 03:24 PM ----------
# set DISPLAY=localhost:0.0
# export DISPLAY
# cd /usr/bin
# pwd
/usr/bin
# firefox
Error: no display specified
#
Don't use 'set'. You had it right the first time, just DISPLAY=".." whatever
Where did you get 0.0? That would be the solaris server's own X11 server -- not yours.
# set DISPLAY=localhost:23
Why would you want VirtualBox to connect its graphical interface to the telnet server of the wrong machine? :wall:
Let me explain how SSH port forwarding works.
You tell SSH to forward a port on the remote host to a port on your local host.
When you connect to the remote server with SSH, the SSH server opens an extra port on the local host itself, waiting for you to connect to it.
When you connect to it, the SSH server forwards this back to the client, your client connects to whatever you told it to earlier.
So in effect, it creates a new port on the remote host, which connects it directly to X11 on your machine.
If you don't know what port number your X11 server is, you'll have to find out and forward it, since ordinary X11 forwarding doesn't seem to be working.
From wireshark
Internet Protocol Version 4, Src: 144.243.90.235 (144.243.90.235), Dst: 144.243.35.2 (144.243.35.2)Transmission Control Protocol, Src Port: telnet (23), Dst Port: 54025 (54025), Seq: 799, Ack: 166, Len: 1
So I tried
# DISPLAY="144.243.35.2:54025" ./VirtualBox
Failed to open the X11 display!
#
I have to be missing something in the setup of TeraTerm and Reflection X. I have Xming running in the background, is there a setting I missed?
---------- Post updated at 09:22 AM ---------- Previous update was at 08:31 AM ----------
So I have setup the display and am know getting a new error, I have Xming running
DISPLAY=144.243.35.2:0.0
# export DISPLAY
# echo $DISPLAY
144.243.35.2:0.0
# cd /opt/V*
# VirtualBox
Xlib: connection to "144.243.35.2:0.0" refused by server
Xlib: No protocol specified
Failed to open the X11 display!
# cd /
# cd /usr/bin
# firefox
Xlib: connection to "144.243.35.2:0.0" refused by server
Xlib: No protocol specified
Error: cannot open display: 144.243.35.2:0.0
It could easily be being blocked by a firewall, which is the reason we were trying to forward ssh all along...
For that matter, is your xming even configured to allow non-local connections? Do you know what port you have Xming running on? 0.0 could easily be wrong if you don't know for a fact it is right...
0.0 is working for my coworker, he is also using telnet. He has been here for a while thought and is not sure how he configured it. I have defiantly gotten further in the setup. There was a problem connecting that was coming from SEP. That has been resolved and I was able to us Reflection to get a GUI desktop of the Solaris server, but it is slow. I also want to learn the command line ways.