Running gs or ghostview.


R. Clayton (rclayton@clayton.cs.monmouth.edu)
(no date)


  I can't see my postscript files using ghostview. It is showing the message:
  "ghostview:cannot open DISPLAY" What's the problem?

You must be sitting in front of a system that's running the X window system to
be able to use gs or ghostview; if you are sitting in front of a system that's
not running the X window system, you can't use gs or ghostview.

If you are sitting in front of a cs lab machine, a pc running linux, or an sgi
and you're running a window manager, then you're sitting in front of a system
running the X window system and you can use gs or ghostview.

If you're sitting in front of a pc running ms windows, then you are sitting in
front of a system that is not running the X window system and you can't use gs
or ghostview.

However, you may still have problems if you're sitting in from of a system
running the X window system. If you have remotely logged into another system
(using telnet, rlogin, or rsh) and you're trying to run gs or ghostview on the
remote system, you have to also do the following:

 1 Find the name of your local system using the "hostname" command.

 2 Set and export the DISPLAY environment variable on the remote system to
   localsystemname:0.0, where localsystemname is the name of your local system.
   For example if the name of your local system is cslab18, then you would set
   DISPLAY to cslab18:0.0 on the remote system.

 3 On the local host, type "xhost +"; you should get an message like "access
   control disabled, clients can connect from any host". If you're paranoid,
   you type (on the local host) "xhost remotesystemname", where
   remotesystemname is the name of the remote system.

 4 You should now be able to run gs or ghostview on the remote system.



This archive was generated by hypermail 2.0b3 on Fri May 10 2002 - 12:45:04 EDT