Re: Summary of remote spectrometer control

From: Bill Gurley <bgurley_at_utk.edu>
Date: Wed, 29 Oct 2003 13:20:10 -0500

Hello Everyone:

I have had many requests for my text file with Cygwin installation tips,
so I decided to just go ahead and send it to the AMMRL list. It's
attached to this message.

The text file assumes that you have already downloaded the cygwin
installation files to a local directory.



tong wrote:
> Hi Bill Gurley,
>
> Why don't you share your tips with us. I want a quick start on cygwin.
>
> Thank you.
>
> Yufeng
>
> ======= At 2003-10-27 13:13:00 you wrote =======
>
>
>>Here's another to add to the list:
>>
>>http://www.cygwin.com/xfree/
>>
>>Cygwin is an open source project, hence is free. It puts a unix
>>environment on top of Windows, and includes XFree86 and ssh. I started
>>installing it several months ago instead of Hummingbird for people who
>>need to run a remote X program from Windows. Once it's set up properly,
>>it seems to work just fine. (Admittedly, I have not used it to run an
>>NMR program, but it should work as well as Exceed.)
>>
>>The installation is not difficult, but there are some things that are
>>not as intuitive as Windows people normally like. I have a text file
>>with some tips that I'd be happy to share if anyone is interested.
>>
>>
>>
>>Carlos Amezcua wrote:
>>
>>> I want to thank everyone for the useful tips on how to control the
>>>spectrometer from a remote computer. Below is a summary of the most
>>>popular terminal emulators used for this purpose:
>>>
>>>-Using a PC:
>>>
>>>1) X-Win32 (Starnet.com). This one was recommended by Ion Ghiviriga
>>><ion_at_chem.ufl.edu>, Patrick Wheeler <patrick.wheeler_at_pfizer.com>, and
>>>Susan Alguindigue <SusanA_at_chemdept.chem.ou.edu>.
>>>
>>>2) eXceed for Windows ($25.00) + Connectivity Security Pack ($10.00)
>>><http://www.hummingbird.com/exceed_student_edition>. Recommended by
>>>Donald Linn <linn_at_ipfw.edu>, David Grace <David.Grace_at_amersham.com>, and
>>>Dick Taylor <dick.taylor_at_dowcorning.com>.
>>>
>>>3) Web-Term X, MIX. These two don't seem to be very popular.
>>>
>>>-Using a MAC:
>>>1) Exodus 9 for OS 10.x
>>>2) The new Mac OS X Panther comes with an improved X11 system that
>>>allows the macs to work well in the UNIX environment.
>>>
>>>-Using a SUN (Contributed by Charles Mayne <mayne_at_chem.utah.edu>):
>>>
>>>1) xdm (already built in but not very secure; good for use within a
>>>firewall).
>>>2) VPN system (outside a firewall). Creates an encrypted tunnel through
>>>the firewall.
>>>
>>>-UNIX/LINUX
>>>1) X-Windows
>>>
>>>-The following contribution by Bill Stevens <wstevens_at_siu.edu> is very
>>>detailed and could be used in several systems, as such, I will paste the
>>>original message.
>>>
>>>"First off, you want to be running Solaris 9 if possible. That has ssh
>>>built in and tcp wrappers built into that. In /etc you will have (or
>>>create) two files: hosts.deny should read ALL:ALL to deny all internet
>>>services to everyone not mentioned in hosts.allow. Your hosts.allow
>>>should read
>>>
>>> sshd: LOCAL .domain1.allowed.edu .domain2.allowed.edu
>>>
>>>where the last two entries are domains you allow. LOCAL enables access
>>>from within your own domain.
>>>
>>>Next, in /etc/ssh you have a file sshd_config and you need to edit it to
>>>enable X11 forwarding. Now anyone coming in via ssh can ask for an
>>>X-session and will receive it on ports starting with 6000. These can be
>>>unix computers, which have X-windows built in, PCs running an X-server
>>>like MI/X ($25) or Macs running eXodus."
>>>
>>>
>>>Good luck to everyone and thanks again.
>>>
>>>Sincerely,
>>>
>>>Carlos Amezcua
>>>
>>>
>>
>>
>>--
>>-Bill-
>>
>>-------------------------------------------------------------
>> Bill Gurley, Technical Director |
>> Department of Chemistry | Consider Linux and
>> Univ. of Tennessee, Knoxville | Open Source Software!
>
>
> = = = = = = = = = = = = = = = = = = = =
>
> With best regards,
>
>
> tong
> tong_at_nlbnmr.ibp.ac.cn
> 2003-10-29
>
>


-- 
-Bill-
-------------------------------------------------------------
  Bill Gurley, Technical Director  |
  Department of Chemistry          |    Consider Linux and
  Univ. of Tennessee, Knoxville    |    Open Source Software!



Steps to set up Cygwin for use as a free X-windows server:


Run setup.exe.

Choose "Install from local directory."

Accept c:\cygwin as the default installation directory.

"Local Package Directory": You should find that it already points to the directory on this CD.


Now here is the part that is just a little bit tricky, because the next screen ("Select Packages") is kind of confusing...


There are just a few things that need to be done here...

Scroll down in the list and find "+Net"; click the +, which will expand this category . For "inetutils," click the word "Skip". Be patient! Just click one time. It may take a moment or two before anything happens. The window will then show that inetutils are selected instead of being skipped.

Now also click the "Skip" designation for the first of the "openssh" packages. All of them will become selected.

Now scroll down to the category "XFree86" and expand it with the +. Click on "Skip" for "XFree86-base," and the required XFree86 packages will become selected after a brief delay.

Now you are done with this very strange interface! Click Next to install. This will install all of the files and then offer to create icons, etc. You can safely uncheck these things if you want to, because we will probably not use them.

Click Finish.

In order to take advantage of the X-server capability, you will need to run the batch file "startxwin.bat." So let's make a shortcut:

Using Windows Explorer, navigate to:

c:\cygwin\usr\X11R6\bin\startxwin.bat

Right-click that file name and choose Send To > Desktop. This will create a shortcut on your desktop.


USING CYGWIN: Almost done now....

Run the batch file you created. This will simultaneously start the X-server (placing an icon in your system tray) and will also start an xterm window.

In the xterm window, execute the following command for a typical X session:


ssh -X -l <username> ip_name

(The first time you connect to a host, you will see a security warning; just type 'yes'. To keep this warning from happening every time,
you should create the path home/login_name/.ssh in the cygwin directory, so that ssh can write to $HOME/.ssh.)

After entering your password, just run your desired X program.



---Bill Gurley, 7-14-03
Received on Wed Oct 29 2003 - 17:52:18 MST

This archive was generated by hypermail 2.4.0 : Wed Jun 07 2023 - 16:49:22 MST