Which X Window system is installed on my server that would work with Xming?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Which X Window system is installed on my server that would work with Xming?
# 1  
Old 12-31-2015
Which X Window system is installed on my server that would work with Xming?

I would like to use Xming to connect a server and managed to get it to work. I am now trying to get it to connect to a different server but i am not sure which X Window system is installed. I tried it through putty and i get the following error/warning:

Code:
/usr/java/jdk1.7.0_67/bin> jvisualvm
/usr/java/jdk1.7.0_67/lib/visualvm/platform/lib/nbexec: WARNING: environment variable DISPLAY is not set

I have previously used a windows BAT script to launch XWindows - Shown below:


Code:
    @echo off
    SET LOCAL_HOST=localhost
    SET PATH=C:\wresourcex\bin\Xming
    
    SET REMOTE_HOST=%1
    SET SCREEN=%2
    
    REM Default to archie with screen 1
    if "%1"=="" SET REMOTE_HOST=MySever.com
    if "%2"=="" SET SCREEN=0
    
    SET DISPLAY=%LOCAL_HOST%:%SCREEN%.0
    
    REM For XDM logon just run this line
    REM run Xming -query %REMOTE_HOST% -lesspointer -emulate3buttons
    
    REM For SSH Tunneling use these 2 lines
    rem run Xming :%SCREEN% -lesspointer -notrayicon -emulate3buttons
    run plink -ssh -X %REMOTE_HOST% /usr/dt/bin/Xsession
    
    REM Use this if want Gnome instead
    rem run plink -ssh -X %REMOTE_HOST% /usr/bin/gnome-session

The above works in one server but not on the one i am using now. I have looked at both the /usr/dt/bin/ and /usr/bin folders and both program (referred to in the script) do not exist in those locations. I am guessing that i need to use a different program but how do i know which "Xwindow" program is installed on the server i want to connect to or does it matter?

Note - I do not have admin access on the server so cannot install anything.

Thanks
# 2  
Old 12-31-2015
Quote:
Originally Posted by ziggy25
I would like to use Xming to connect a server and managed to get it to work. I am now trying to get it to connect to a different server but i am not sure which X Window system is installed.
Probably none. You do not need an Xserver installed on your server, only on your client. An Xserver is a sort-of driver software for your graphics hardware and you need that only where you have such a hardware. XMing is such an Xserver software.

Quote:
Originally Posted by ziggy25
I tried it through putty and i get the following error/warning:

Code:
/usr/java/jdk1.7.0_67/bin> jvisualvm
/usr/java/jdk1.7.0_67/lib/visualvm/platform/lib/nbexec: WARNING: environment variable DISPLAY is not set

Then set it! On the shell prompt enter:

Code:
# export DISPLAY=<IP-address of your client>:0.0

Then try to start an Xclient (like "xterm"). You might have to allow the sever in question to display a window on your Xserver (in UNIX there is the "xhost" tool to do so, what XMing uses instead i do not know). Issue:

Code:
# xterm &

And see if this opens a window on your screen. If everything works you can put the line with the DISPLAY variable setting into your profile or your shells rc-file (for you: kind of AUTOEXEC.BAT-analogon on UNIX) so that you do not have to enter the line for every new session.

I hope this helps.

bakunin
# 3  
Old 01-01-2016
I set the DISPLAY property and tried the xterm & but got the following error


Code:
No protocol specified
xterm Xt error: Can't open display: 10.44.10.92:0.0

I am trying to google what the above error means.

Thanks
# 4  
Old 01-01-2016
Quote:
Originally Posted by ziggy25
Code:
No protocol specified
xterm Xt error: Can't open display: 10.44.10.92:0.0

I am trying to google what the above error means.
I have already told you what to do. To quote from my own posting:

Quote:
Originally Posted by bakunin
Then try to start an Xclient (like "xterm"). You might have to allow the sever in question to display a window on your Xserver (in UNIX there is the "xhost" tool to do so, what XMing uses instead i do not know).
I hope this helps.

bakunin
# 5  
Old 01-02-2016
Quote:
Originally Posted by ziggy25
I have looked at both the /usr/dt/bin/ and /usr/bin folders and both program (referred to in the script) do not exist in those locations. I am guessing that i need to use a different program but how do i know which "Xwindow" program is installed on the server i want to connect to or does it matter?
Yes, it does matter a lot. Your X server might only listen to localhost so setting the DISPLAY variable on the remote host won't work.

What you might try is to locate an X terminal emulator on the server that fails (eg. xterm) and launch it instead of a full desktop in the .bat file:

Code:
run plink -ssh -X %REMOTE_HOST% /usr/bin/xterm

or even run directly the application you look for:

Code:
run plink -ssh -X %REMOTE_HOST% /usr/java/jdk1.7.0_67/bin/jvisualvm


Last edited by jlliagre; 01-03-2016 at 04:04 AM.. Reason: typo
# 6  
Old 01-02-2016
ITYM
Code:
run plink -ssh -X %REMOTE_HOST% /usr/java/jdk1.7.0_67/bin/jvisualvm

--
What OS do the two boxes run?
Find out in putty with command
Code:
uname -sr


Last edited by MadeInGermany; 01-02-2016 at 07:14 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Configure the AD Window server with Linux server(google Authenticator is installed)

Hi my name is Manju. ->I have configure the two way authentication on my linux server. ->Now I am able to apply two way authenticator on particuler user. ->Now I want to map this linux server to my AD server. ->Kindly tell me how to map AD(Active Directory) with this linux server. ... (2 Replies)
Discussion started by: manjusharma128
2 Replies

2. AIX

How to X-window to work on AIX 5.3?

Hey all. My h50 is up, but now i need some guidance. How to i get X11 (X-Windows0 working on the system, so i can use the H50 via my main pc? is that makes sense. The X11 system is installed, but i am lost as how to get it working Can anyone please help? (2 Replies)
Discussion started by: ADS2459
2 Replies

3. Shell Programming and Scripting

My script doesn't work in the terminal window!

I am inexperienced with scripting and it continues to baffles me speechless I wrote a script so that it counts the number of subset of files (with different prefix) in all subdirectories under the current directory so that find ./ -type d -maxdepth 1 -mindepth 1 > list_of_dir.txtfind all... (23 Replies)
Discussion started by: piynik
23 Replies

4. Red Hat

Xming Vs ssh connect to RHEL server from Windows machine

I am able to connect a RHEL server from my Windows machine using Putty (via ssh). My question is what is the advantage of using Xming instead of Putty? Is it that Xming would enable a graphical connect from the Windows machine to RHEL server? I hope my question is clear that what is the... (9 Replies)
Discussion started by: RHCE
9 Replies

5. UNIX for Dummies Questions & Answers

X Window system - concept

Hi, I am lost in between of some concepts, googling too much made me like this! honestly... please correct my statements below and if they are correct just mention "correct" or also add extra info please: 1. "X Window System" provides basic access to GUI on unix/linux systems This... (3 Replies)
Discussion started by: messi777
3 Replies

6. UNIX for Dummies Questions & Answers

What would take the Place of X Window System if X was not installed?

If X was not installed, what would print data onto the display? Does it include applications form Gpl/Gnu or is it a daemon only? Thanks in advance!:wall: (2 Replies)
Discussion started by: theKbStockpiler
2 Replies

7. Solaris

How to mount a Files System where RHEL is installed on a Sun server Machine..

Hi Everyone, I have a machine where RHEL(Red Hat Enterprise Linux) is installed and few of our products are saved on the same. Our products work only on sparc 6 + and i want to basically asve the products on the machine which has RHEL installed on it and mount the drive on the sun server and... (2 Replies)
Discussion started by: sankasu
2 Replies

8. Shell Programming and Scripting

Which version of perl is installed on my system?

Hi, With the command perl -v i can see the perl version, but it's like a text file.. is there a command which could give me just the perl version number? i.e.: "5.8.1" thanks!! (6 Replies)
Discussion started by: kfad
6 Replies

9. HP-UX

how to start the x window system

hi, am new to hp-ux, i just bought an hp-ux with the hp-ux 11.0 os, is very old, and i wnat to start the x window system but it send an error that said that couldn't open the x server, i try startx, xinit, and nothing, and also where i can find tutorials for hp-ux os for beginners (7 Replies)
Discussion started by: nobody
7 Replies

10. Windows & DOS: Issues & Discussions

window 2000 professional not pinging my window 98 system.

Hello, We someone help me resolve this problem. I have window 2000 professional, windows 98 and Unixware 7.0.1 on the network. I was able to establish connection with all. However, l was unable to ping window 98 from window 2000 professional. I was able to ping the window 2000 from the window... (10 Replies)
Discussion started by: kayode
10 Replies
Login or Register to Ask a Question