1826432 Members
4370 Online
109692 Solutions
New Discussion

Re: xwindow

 
Sprint Unix Team
Frequent Advisor

xwindow

I have a problem starting my xwindows. I use the command export DISPLAY=<0.0>

When i do a swlist, i see that xwindow software X11 is installed.

Can anybody tell me why is display not being exported
8 REPLIES 8
A. Clay Stephenson
Acclaimed Contributor

Re: xwindow

Hi,

The command should be
export DISPLAY=ipaddress:0.0
(no angle brackets)

If you didn't actually use the angle brackets, then I suspect that you need to issue an 'xhost +' command. Man xhost for details.

Hope this helps, Clay
If it ain't broke, I can fix that.
Sprint Unix Team
Frequent Advisor

Re: xwindow

i use angle brackets to indicate that ipaddress should be typed ignoring brackets..anyways using xhost command does not help.
A. Clay Stephenson
Acclaimed Contributor

Re: xwindow

Ok, I think we may be having a terminology problem here. What is you actual Xserver running on? Is it an X-terminal?, A PC running
an X emulator? A Unix workstation? A server equipped with graphics hardware. Keep in mind that in X what you typically think of as the client is the server.

If you are running a PC X emulator you need to start that software and I would initially open
a telnet window to your UNIX box.
export DISPLAY=10.1.1.31:0.0
then do a very simple command like xclock
to get you started.

If you are running an X-terminal the Xserver should already be running and you simply open a telnet session as above.

If you are running on a graphics equipped server or a workstation, X may not already be running. Start it with startx or xinit. Man xinit and startx for details.

Above all make sure that you can ping in both directions and for dtlogin you are going to need to be able to resolve host names in both directions so that you should export DISPLAY=myxterm:0.0. Again, start with a simple x command like xclock; it's much easier to debug.


If it ain't broke, I can fix that.
Larry Basford
Regular Advisor

Re: xwindow

From a PC Xserver you may need more information. Like the ip of your PC and the tty port to send your request to. I put this in a .x file to call when I ened it or in your .profile
Then any x type request will pop up on your pc.
xclock for starts then sam will test it


# Set up shell variables: for Xwindows
#GET TTY
MY_TTY=`tty | cut -c 10- `
MY_TTY=`tty | cut -d/ -f3- `
echo "YOUR TTY IS :: " $MY_TTY

# GET IP ADDRESS
MY_IP=`who -u | grep "$MY_TTY " | cut -c 52-`
echo "YOUR IP-ADDRESS IS :: " $MY_IP

#### SET DISPLAY FOR X WINDOWS
DISPLAY=$MY_IP:0.0
echo "YOUR DISPLAY IS :: " $DISPLAY

#### EXPORT ENVIRONMENT VARIABLES
export MY_TTY MY_IP DISPLAY
Desaster recovery? Right !
Shannon Petry
Honored Contributor

Re: xwindow

Hmm, why would anyone think that "swlist" would show variables?
/usr/bin/man swlist
will clearly show that swlist is used to look at applications, and patches installed for the operating system! This will include graphics libs, compilers, development libraries, and much much more....but has nothing to do with an environment variable!

In C-shell
> set HOST='ip.of.your.seat'
> setenv DISPLAY "$HOST:0"

In Borne Shell
> HOST='ip.of.our.seat'
> DISPLAY="$HOST:0"
> export DISPLAY

in Korne shell, the borne shell works, or use a shortcut as..
> HOST='ip.of.our.seat'
> export DISPLAY="$HOST:0"

make sure to use the quotes as I have above or it will not work! If you do not know your shell, fro a prompt type...
> echo $SHELL
You will get something like
/sbin/sh
/usr/bin/csh
/bin/ksh
/usr/bin/sh

csh=C-shell, ksh=korn shell, sh=borne shell....


I'd highly recommend that you get a book called "Unix In a nutshell" which is published by Oreilly and associates. It will give you a very good list of good unix commands with their most common arguments, a good chapter on each of the 3 primary UNIX shells, and some info on sed, grep, and awk (some of the more powerfull UNIX commands).

Pay very close attention to the areas on the Shells, what they are, and how to use them!

Regards,
Shannon
Microsoft. When do you want a virus today?
Kenneth Platz
Esteemed Contributor

Re: xwindow

The attached document should help explain the how's and why's of how X Windows displays applications to remote systems.
I think, therefore I am... I think!
Kenneth Platz
Esteemed Contributor

Re: xwindow

Let's try this one more time...
I think, therefore I am... I think!
Kenneth Platz
Esteemed Contributor

Re: xwindow

 
I think, therefore I am... I think!