RE: running xwinnmr remotely from Linux, BC dispatch 069416

From: Jerry Hirschinger (hirsch56@purdue.edu)
Date: Mon Oct 23 2006 - 10:08:57 PDT


Hello everyone,

OK, I got it running. There are 2 methods that seem in active usage. The
first is to get VNC software going on both machines, then run xwinnmr in VNC
under SSH to get xwinnmr displayed remotely. This involved downloading and
installing more software, which I was sure I shouldn't need to do.

The second method is to simply host an x-session from the remote machine
through SSH. This is what I was trying to do originally. The problem I was
having was that every time I tried to start any type of window manager, I
was getting an error saying I already had one running, or an error from
xwinnmr saying it couldn't find the display. This was correct, as I was
working in a terminal window on the gnome desktop, which is itself displayed
by a window manager called gdm. Also, I had been telling the SGI to use
display :0.0 on the Linux PC, but of course needed to use :1.0.

I was successful after a clue from John Chung, at Scripps. John pointed out
that one can open a bare terminal session in Linux by using the Ctrl-Alt-F6
keystroke. This gives a login prompt on the full screen without any window
around it. With that bare terminal I could then run xterm locally to view
and control xwinnmr remotely. The desktop PC is running Linux release 4,
Kernel 2.6.9-42.03.ELsmp. The detailed procedure I used is below:

1. On the local Linux PC, press Ctrl/Alt/F6 to get a terminal screen with
login prompt. In that terminal, log in.

2. On the local Linux terminal screen, enter "startx -- :1 -depth 8 -cc 3"
(without the quotation marks). This starts the xterm window server in 256
color mode, and gives you a window titled xterm in display :1.0.

3. In the xterm window, enter "xhost +". This allows any remote machine to
host an x-session displayed on the Linux PC. One can also use the specific
case "xhost + remotehostname".

4. SSH to the remote SGI with the command "ssh -X remotehostname". This
connects the 2 machines for an X session.

5. From the local PC, through ssh, enter on the remote SGI "setenv DISPLAY
localhostname:1.0". This step may not be needed, depending on your ssh
setup.

6. From the local PC, through ssh, enter on the remote SGI "xwinnmr". This
starts the NMR software on the SGI, but display and control is at the local
Linux PC.

If this does not work, possibly you need to change the /etc/ssh/ssh-config
file (Linux) and the /usr/local/etc/sshd-config file (SGI) to say
"X11Forwarding YES".

Many thanks to John Chung, Michael Engelhardt at Bruker.DE, Henny Janssen at
Bruker.NL, Rudy Nunlist, Phil Dennison, Harold Toms, Anand Yethiraj, Kurt
Wollenberg, Michael Roehrl, George Benedikt, Guy Daelen, Norm Finlay, and of
course the ever-helpful crew at Bruker Center.

Cheers, Jerry

> -----Original Message-----
> From: by way of BUM <bruker-users-mail@purcell.cchem.berkeley.edu>
> [mailto:chung@scripps.edu]
> Sent: Friday, October 20, 2006 5:55 PM
> To: BUM
> Subject: RE: running xwinnmr remotely from Linux
>
>
> Hi Jerry, Michael
>
> I pulled this off an old archive (bumlist doesn't seem to have archive
> still, right?). See below.
>
> Basically, you need to run 8 bit color (I've done it this way for many
> years by running a second x-server either from a shell or do Cntrl/Alt/F6
> and then at the login prompt log in and then type in something like
>
> startx -- :1 -bpp 8
>
> which will start the second x server (but with 8 bits, not 32).
> and then if you telnet or ssh into xwinnmr, do a ssh -X and then if the
> DISPLAY environment variable is not set correctly on the other end, set it
> manually but remember to do something like (depending on csh or sh/bash)
>
> setenv DISPLAY mylinuxbox:1.0
> or
> DISPLAY=mylinuxbox:1.0
> export DISPLAY
>
> instead of :0.0.
>
> and that should do it. you can go back and forth between the two x
> servers by doing the Cntrl/Alt/F7, or Cntrl/Alt/F8, etc. documentation's
> all out there at xfree86.org.
>
> good luck,
>
> john chung
> scripps research
>
>
> >
> > -----Original Message-----
> > From: Jerry Hirschinger [mailto:hirsch56@purdue.edu]
> > Sent: Thu 10/19/2006 7:16 PM
> > To: BUM
> > Cc:
> > Subject: running xwinnmr remotely from Linux
> >
> >
> >
> > Hi Bummers,
> > I'm trying (unsuccessfully) to open XwinNMR on an SGI
> remotely from a new
> > Linux box. If anyone has been successful at this? If so,
> please help.
> > Cheers,
> > Jerry Hirschinger, NMR Instrumentation Specialist
> > Purdue Interdepartmental NMR Facility
> > 560 Oval Dr. West Lafayette, IN 47907-2084
> > Office: Wetherill 365A
> > Phone / Fax: (765) 494-5288 / 494-0239
> > Cellular: (765) 427-3034
> >
> > --



This archive was generated by hypermail 2b29 : Wed Dec 27 2006 - 01:02:08 PST