Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't open display 1

Status
Not open for further replies.

fzack

Technical User
May 18, 2004
6
DE
hi,
I try to run command with the graphical opption. But is told
"Error, can't open display. And I run the "setenv DISPLAY"
to set the DISPLAY variable. However it doesn't work. Does
anybody know how to fix it?
I greatly appreciate your timely help.
 
DISPLAY=i.p.address:0.0
export DISPLAY

the i.p.address must = the machine your connecting from.

do :- uname -a

to find the "hostname"

then enter :- cat /etc/hosts

to find the I.P

you will then get

DISPLAY=xxx.xxx.xxx.xxx:0.0
export DISPLAY

you may also have to issue

xhost +

as the root user.



--
| Mike Nixon
| Unix Admin
|
----------------------------
 
Hi, Mike
I used "do :- uname -a". But got message"do: command not found". How can I find the host name? On my local machine I
can display graphic. However I have to rlogin the remote machine. After I do that, I can't display graphic stuff.

Thanks
 
Duuuuuuude .. Draaaop tha keyboard and Stepp aawaaayy from the uuUnix server..

 
on your pc go to a command prompt
ipconfig

will give you:
Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : nob4.ca.att.com
IP Address. . . . . . . . . . . . : 30.30.14.9
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.20.264.231
10.30.164.260
take the "ip address" down.

at your unix prompt:

export DISPLAY=30.30.14.9:0.0

then execute your program.





 
I enter the "export DISPLAY =xxx.xx.xxx.xx:0.0".
Got message "export:command not found
 
Do you want the display on your PC or on the UNIX console?

If it is on a PC you will need some X-emulation/X-server software (xwin32,exceed,excursion etc).

Put the output of "env" here so we can see your environment on the unix system.
 
fzack,
what Unix shell are you using?
There are differences in the use of commands like setenv or export.
 
Hi,

sometimes it helps to start the ksh before using export DISPLAY.
It could be that you're in a sh or csh, so export is not runable.

first enter ksh
then export DISPLAY=ip_address:0.0

this should help
 
Or if you want to use csh:

setenv DISPLAY xxx.xxx.xxx.xxx:0

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top