Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Display setting for Tk

by wizzer (Initiate)
on Sep 19, 2004 at 14:53 UTC ( [id://392191]=perlquestion: print w/replies, xml ) Need Help??

wizzer has asked for the wisdom of the Perl Monks concerning the following question:

I'm new to using Tk, and I am unable to run up a window I get:- START of error message>

couldn't connect to display "blue:0.0" at /opt/perl/lib/site_perl/5.6. +1/PA-RISC1.1-thread-multi/Tk/MainWindow.pm line 55. MainWindow->new() at .//test.pl line 4

<END of error message

I login to Sun M/C called 'blue' via citrix, then I rlogin into an HP M/C called 'red'( I'm not able to login directly to 'red'. The application is running on 'red' but I get the above error message, what should I be setting the DISPLAY var to on red to allow perl to generate the window. I've try ip address of both machinces and setting the display on red to the same a the display setting on the login window on 'blue' which is unix:18.0:0.0 Any Ideas

Replies are listed 'Best First'.
Re: Display setting for Tk
by been42 (Curate) on Sep 19, 2004 at 15:12 UTC
    Set DISPLAY to just "blue:0" and see if it works.

    The second thing I would check is the firewall. You might have blocked the port (pretty sure it's 6000) that X11 uses for remote displays. Also check to be sure that blue is even allowing remote displays.

Re: Display setting for Tk
by zentara (Archbishop) on Sep 20, 2004 at 13:16 UTC
    Just for your information, alot of systems have ssh setup to automatically forward the X display, when you connect. So you might try using ssh to connect. Start an xterm, and run ssh in it to connect to the remote. It might work.

    Another thing to consider is the remote may not have an Xserver running.


    I'm not really a human, but I play one on earth. flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://392191]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found