How to set up remote X Windows on AIX ?


 
Thread Tools Search this Thread
Operating Systems AIX How to set up remote X Windows on AIX ?
# 1  
Old 07-14-2014
How to set up remote X Windows on AIX ?

Hi,

I want to display a program on my local workstation, that is running on a remote AIX, and I have done the following:
  1. install an X server (Xming) on my windows machine
  2. enable X11 forwarding in Putty
  3. enable X11 forwarding for the SSH daemon
  4. restart SSH daemon
  5. text X session using xclock

but it displayed this :
Code:
>xclock &
[1]     1769700
Error: Can't open display: 10.0.0.9:0
[1] +  Done(1)                 xclock &

could you help me with this
Rgards

Last edited by SteAlma; 07-14-2014 at 11:35 AM..
# 2  
Old 07-15-2014
This is basically meaning that the X server on your Windows system is refusing to accept the X client as one of its clients. The X protocol has its own authorisation devices, which are based on the hostnames of the systems X-clients are allowed to connect from.

For a simple try if this is the case issue a

Code:
xhost +

on the command line of your client, which will disable authentication completely. Then start the X client on the remote system again.

In the long run you will probably not want to disable authentication completely but only accept X connections from a few select remote systems. Depending on the X-Server you use there should be a configuration where you can enter one (or several) hostnames from which X clients will be accepted.

I hope this helps.

bakunin
# 3  
Old 07-15-2014
Hi Bakunin,
I tried this command on the client (AIX) and it displayed this :

Code:
>xhost +
1356-200 xhost unable to open display "10.0.0.9:0"

any ideas ?
# 4  
Old 07-16-2014
Quote:
Originally Posted by SteAlma
Hi Bakunin,
I tried this command on the client (AIX) and it displayed this :
I thought that i made it quite clear above that you have to configure the access control ON THE X-SERVER!

If you are unsure about how X-Windows works in general or what an "X-server" or an "X-client" is i suggest you read this thread.

In addition, from the error message i can see that your DISPLAY-variable is set incorrectly. It should be:

Code:
DISPLAY=<your client IP or DNSname>:0.0

In this case "client" means the system - the one with the X-server running.

I hope this helps.

bakunin
# 5  
Old 07-19-2014
don't know if you solved this already but here's my input:
in putty under ssh, go to x11. click enable x11 forwarding.
enter this info:
Code:
x display location: localhost:0

next, launch the xming app.
go back to the putty window and enter your server info.
(ensure you're using SSH, unless default is changed, putty's default is telnet)
when terminal is open type these commands to confirm everything is working:

Code:
xauth list    -  This output should show something like MIT-MAGIC-COOKIE *****
echo $DISPLAY    -   This should display localhost:10.0
(if display does not show the localhost, then something is wrong)

# 6  
Old 07-22-2014
Thank you techy1 for your reply
Quote:
Originally Posted by techy1
when terminal is open type these commands to confirm everything is working:

Code:
xauth list    -  This output should show something like MIT-MAGIC-COOKIE *****

it displays the following:
Code:
1356-364 xauth:  creating new authority file

apparently it's still not working

---------- Post updated at 04:49 AM ---------- Previous update was at 04:31 AM ----------

Hi Bakunin, thanks that thread helped me to understand more clearly the different concepts
Quote:
Originally Posted by bakunin
In addition, from the error message i can see that your DISPLAY-variable is set incorrectly. It should be:
Code:
DISPLAY=<your client IP or DNSname>:0.0

I Tried to change DISPLAY to my IP:0.0 (my IP= windows IP)
I have added AIX to access control list of windows
but still have the same error

---------- Post updated at 04:54 AM ---------- Previous update was at 04:49 AM ----------

reading other similar problem, I found out that it can be caused by TCP (port 6000) was being blocked, how can I handle this in AIX ?
Moreover I tried :
Code:
>telnet My_Windows_IP
Trying...
telnet: connect: Connection timed out

# 7  
Old 07-22-2014
Quote:
Originally Posted by SteAlma
I Tried to change DISPLAY to my IP:0.0 (my IP= windows IP)
I have added AIX to access control list of windows
but still have the same error
Please post the EXACT description of this. What does "xauth list" say when executed on the Windows machine? Where did you set the "DISPLAY"-variable? Windows-machine? AIX-machine? What exactly did you do to "add AIX to access control list"? Where did you do that? ....

This may sound petty, but fact is: i have seen many many problems where some "small, insignificant" omissions made all the difference between "not working" and "working".


Quote:
Originally Posted by SteAlma
reading other similar problem, I found out that it can be caused by TCP (port 6000) was being blocked, how can I handle this in AIX ?
Ports 6000-6063/udp and 6000-6063/tcp, to be precise. A problem with blocked ports arises only if there are firewalls between the client and the server. Yes, these ports need to be allowed, because the common default firewall rule is to block everything until explicitly allowed. (Otherwise you wouldn't need a firewall at all.)

It is possible to run a firewall and/or packet filter on AIX (IPSec, IPtables, ...), but this is unlikely. Most probably the firewall (if there is one) is a separate machine and you need the firewall admin to configure the rule that the relevant ports are unobstructed.


Quote:
Originally Posted by SteAlma
Moreover I tried :
Code:
>telnet My_Windows_IP
Trying...
telnet: connect: Connection timed out

This can have possible reasons: firewall, as above; telnet daemon not running on Windows (more likely), misconfigured routing table (less likely, but possible) and probably some more. Without more information it is anybodies guess.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies

2. UNIX for Advanced & Expert Users

DOS/VB script of Remote Windows Server from AIX

Hi We use to run DOS and VB script in Windows Server . Now the requirement is to trigger the same script from AIX server by shell script , thus it would be executed in Remote Windows Server . Is it possible ( though SSH or any other way ) ? Thanks (2 Replies)
Discussion started by: Sourajit Seth
2 Replies

3. Shell Programming and Scripting

Using Perl to explore recursively remote windows path from AIX

Hi all, I am using Perl 5.8.8 on an Aix 6.1.0.0 to script a program which will retrieve files recursively on a remote Windows 2003 server and copy some of them on my Aix server. MobaSSH is installed on that windows server. When I used scp on the command line, it works fine, but not in a... (2 Replies)
Discussion started by: Fundix
2 Replies

4. AIX

Will it affect my AIX LPAR security, when i set up email alerts on AIX server.

Hello, I've set up email alerts on AIX Servers. so that i can get email notifications (via mail relay server) when ever there is abnormal behavior. for example 1) my script monitors CPU/disk/memory etc... when it reaches high water ark, it will send an email alert. 2) disk usage alerts 3)... (5 Replies)
Discussion started by: System Admin 77
5 Replies

5. Shell Programming and Scripting

How to login with other set of credentials while remote logging?

Below is the code. I need to login into the router if the 1st set of credentials are correct.. if wrong... then it has to check with 2nd set of credentials.. => if the credentials are correct... then it should continue.. => if the credentials are wrong(should not check for 2nd time... then... (0 Replies)
Discussion started by: scriptscript
0 Replies

6. Shell Programming and Scripting

shellscript on AIX to download file from windows to AIX

i require the shell script that is running on the AIX to download a file from Windows desktop to the location where the shell script resides onthe AIX system. I have used the below code: but it throwing the error as below.please help me at the earliest to resolve the issue. error message :... (1 Reply)
Discussion started by: kvkc
1 Replies

7. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

Hi Friends, I have this script for ftping files from AIX server to local windows xp. #!/bin/sh HOST='localsystem.net' USER='myid_onlocal' PASSWD='mypwd_onlocal' FILE='file.txt' ##This is a file on server(AIX) ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD put $FILE... (1 Reply)
Discussion started by: rajsharma
1 Replies

8. AIX

Unable to set remote printer in AIX

Hi all, I am a beginner in AIX. I am facing a problem with remote printing in AIX. HP laser jet 1320 printer is connected to a printer server (PCI Mini - 100U3), which is configured as remote printer from AIX server. But I am not able to print from the AIX server by using "lp -d... (0 Replies)
Discussion started by: Rainy
0 Replies

9. UNIX for Dummies Questions & Answers

set variables on remote system

Hi, I try to run a script on remote systems with ssh it should execute a command, read values from stdout, use it as input for a loop and works with this variable on remote system but the variable isn't working, I guess because export, echo , or the loop itself are shell builtins and not... (2 Replies)
Discussion started by: funksen
2 Replies

10. AIX

Do I need to remote after installation of s/w and set the env variable

Hi, I have installed ODWEK software on AIX box and set the environment variables like: PATH,LIBPATH,LD_LIBRARY_PATH,CLASSPATH. My question here is do I need to reboot the system to take these changes or is there anyother workaround. I heard that there is 'export'. But I don't know how far it... (1 Reply)
Discussion started by: srangu
1 Replies
Login or Register to Ask a Question