Re: Running xwinnmr on a remote machine

Graham Barlow (gkb1@bohr.york.ac.uk)
Wed, 17 Jan 1996 12:14:47 +0000

On Jan 16, 1:45pm, BROWNK@sask.usask.ca wrote:
> Subject: Running xwinnmr on a remote machine
>
> I would like to know if anyone has had any experience in running xwinnmr
> via a network connection from a remote machine. Is xwinnmr capable of this?
> I am using X11 on a '486 PC running under Linux and have been able to
> successfully login to an AMX500 using rlogin and have been able to run the
> 'xload' program on the AMX500 with the output directed to my machine. This
does
> not seem to work for xwinnmr, in fact I get an error message:
> [1] + Stopped (tty output) xwinnmr

I just tried this with my 486 laptop running linux (kernel 1.2.13 - slakware
3.0) and got xwinnmr 1.1 running without problems. I'm not sure I understand
your description of how you were trying to get it running. The message you
report is NOT an error message it is simply information that xwinnmr is running
in background and wanting to send outpout to a terminal. Maybe your only
problem is that you are trying too hard, you do not need to redirect output in
an xwindows system, you just type 'progname' and it should work. The xload
program dosn't write to a terminal, only to the xwindow so redirecting output
does nothing; xwinnmr on the other hand writes (often uninformative) messages
to the controlling terminal - I think you may have redirected the output to a
'non-terminal' and xwinnmr is waiting indefinately for a chance to write the
message.

The procedure I use is this:
(I will invent a linux computer called linuxbox and a spectrometer called
wp850)

* log on to linuxbox
* start x-windows (eg with the startx or openwin commands)
* open an xterm and log onto the machine with xwinnmr
* make sure you have the environment variable DISPLAY set to your linux machine
If using csh/tcsh etc you would type 'set' to check the value of DISPLAY
and if necessary 'set DISPLAY=linuxbox:0.0'
*type xwinnmr - and hay presto! it works.

If you get the message:
Xlib: connection to "linuxbox:0.0" refused by server
Xlib: Client is not authorised to connect to server

then you simply have to tell linuxbox that you will allow the other machine
(wp850) to send graphics; use the xhost command, eg. open an xterm and type:

xhost wp850

then in your window to wp850 type 'xwinnmr' again.

Hope this helps,

Graham

-- 

+-------------------------------====================================+ | Dr. Graham Barlow | e-mail: gkb1@york.ac.uk | | NMR Service Manager | Telephone: +44 (0)1904 432506 DDI | | Department of Chemistry | Mobile: +44 (0)402 181253 | | University of York, York, UK | Fax: +44 (0)1904 432516 | | | http://www.york.ac.uk/~gkb1/ | +--------- http://www.york.ac.uk/depts/chem/services/nmr ==========+