DISPLAY=local_host:0.0 ; export DISPLAY


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users DISPLAY=local_host:0.0 ; export DISPLAY
# 1  
Old 12-08-2010
DISPLAY=local_host:0.0 ; export DISPLAY

Hi,
from my Windows Workstation I can connect with PUTTY to an AIX 6.1 unix server.

On AIX via PUTTY I run DBCA which has a grphical interface.
Then :
Code:
#DISPLAY=local_host:0.0 ; export DISPLAY
$(hostname) $(whoami):/appli/oracle/product/10.2.0/db_1/bin#dbca
_X11TransSocketINETConnect() can't get address for local_host:6000: Hostname and service name not provided or found

How to rectify this error ?
Thank you.

Last edited by Scott; 12-08-2010 at 06:50 AM.. Reason: Code tags
# 2  
Old 12-08-2010
What do you mean by "local_host" ?
If it is the name of a host that is local on your network, then you need to add that machine to the DNS or /etc/hosts so that it is recognised.
If you mean "localhost", then you have made a typo.
Cheers.
# 3  
Old 12-08-2010
Thank you. I rectified :
Code:
#DISPLAY=localhost:0.0 ; export DISPLAY
$(hostname) $(whoami):/appli/oracle#dbca
Exception in thread "main"

Any idea ?

On the other hand should I install any software (X server for Windows for example : X-Ming) on my workstation ?

Regards.

Last edited by Scott; 12-08-2010 at 06:51 AM.. Reason: Code tags
# 4  
Old 12-08-2010
Ah right. Yes, you will definitely need an X-Windows emulator for your workstation. If you then access the AIX box using their emulator it is usual that your DISPLAY variable will be set correctly, and any Xauthority security, and you should then be able to start the graphical appllication.
# 5  
Old 12-08-2010
I installed Xming but :

In putty (for DBCA nothing happens):
Code:
DISPLAY=localhost:0.0 ; export DISPLAY
 
$(hostname) $(whoami):/appli/oracle#dbca
Exception in thread "main" $(hostname) $(whoami):/appli/oracle#dbca
 
$(hostname) $(whoami):/appli/oracle#xclock
Error: Can't open display: localhost:0.0

Regards.

Last edited by Scott; 12-08-2010 at 06:51 AM.. Reason: Code tags, please...
# 6  
Old 12-08-2010
No...."localhost" means the X-Windows display on the host you are logged into.
Usually you would set the DISPLAY to be the IP address of the workstation you are logged in from. For example your workstation may be 192.168.1.1 and the AIX server you are logged into is 192.168.1.2. In this instance you would set your DISPLAY=192.168.1.1:0

Again, usually the X-Windows emulation software will give you an option to set the DISPLAY variable automatically. Also X-Windows security is important. Again the emulator should sort that for you (look for options using Xauthority or xauth).
# 7  
Old 12-09-2010
Hi,
big123456, did you resolve this?

Please log into your server and without running anything else, type:
Code:
echo $DISPLAY

And tell me what it says.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to check if export DISPLAY is set or not?

Hi All, I use "export DISPLAY=same_host:0.0" to set my export DISPLAY and it is working fine for me.. Problem here is I have developed a script for which i should run export DISPLAY prior to running my script.... so my script should check whether export DISPLAY is set or not.. if... (6 Replies)
Discussion started by: smarty86
6 Replies

2. Solaris

export DISPLAY

rsh to host2 from host1 and from host2 rsh into host3 Is it possible to display a GUI from host3 through host2 and onto host1? (1 Reply)
Discussion started by: eddiet
1 Replies

3. UNIX for Advanced & Expert Users

export display

hello frnds, I want to export display of othe terminal to my terminal and want to post a msg, which should visible at other terminal, I tried myself, but couldnt get it plz help me to get solution (1 Reply)
Discussion started by: sushant.pathade
1 Replies

4. HP-UX

Export Display Through Telnet & Xming

HI, HP-UX B.11.00 A 9000/785 (ta) I am trying to export a display using Xming & and Telnet (not SSH) but when I try.. $ DISPLAY=192.168.1.75:0.0 $ export DISPLAY $ xclock and get.. Xlib: connection to "192.168.1.75:0.0" refused by server Xlib: No protocol specified Error:... (4 Replies)
Discussion started by: Pauly
4 Replies

5. Solaris

Cant export display from aix to solaris.

Hi Frnds, i face a peculiar issue. I am managing 200 Aix workstations and 20 sun boxes. I am not anle to export the display from aix workstations to sun box, But vice versa it is working fine. But if i try to export the display to a sun box from other sun box it works perfectly. Could... (3 Replies)
Discussion started by: sriram.s
3 Replies

6. Shell Programming and Scripting

export display of directories of remote machine

hi I wanted to export the display of all directories of home with their respective subdirectories and files if any on my local pc. this home directory is of some remote machine . using ssh remote login and then using struct direct i can just gate name list of directories . but not the display... (2 Replies)
Discussion started by: bhakti
2 Replies

7. UNIX for Dummies Questions & Answers

How to export the Display variable

I'm trying to open an xwindow on my Sun server. What am I doing wrong? # echo $SHELL /sbin/sh # # export DISPLAY=localhost:0.0 DISPLAY=localhost:0.0: is not an identifier Thank you! (1 Reply)
Discussion started by: FredSmith
1 Replies

8. Shell Programming and Scripting

do a export DISPLAY

hello to begin i sorry for my english because i'am french so: someone can explain me to do a export DIPLAY with a web page (php) i have test the php function exec (myscriptshell.sh) but he can't do the export diplay. if someone have a solution . bye (1 Reply)
Discussion started by: the_nul
1 Replies

9. UNIX for Dummies Questions & Answers

export DISPLAY and XPM´s

Hi! I´ve an application that runs in a Digital Tru64, exporting display to a Linux host. That application blinks a icon (in XPM mode) when the severity mode changes. When I put a backdrop(XPM, too) in that screen, the icons blink slowly. When I remove it, they turn to blink quickly. I have... (3 Replies)
Discussion started by: selina
3 Replies
Login or Register to Ask a Question