Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> OT: whaddaya know, got runInstaller to work over Cygwin/ssh

OT: whaddaya know, got runInstaller to work over Cygwin/ssh

From: Michael Thomas <mhthomas_at_yahoo.com>
Date: Wed, 30 Jun 2004 07:48:30 -0700 (PDT)
Message-ID: <20040630144830.48525.qmail@web50601.mail.yahoo.com>


Hi,

This is quite useful. Thanks, pd.

A couple additional thoughts:

  1. You can also run SSHD on Windows Server with Cygwin (**free as in free beer**) by following these steps:

http://tech.erdelynet.com/cygwin-sshd.html

2) Do you use this method or just xwin? (just curious) startxwin.bat (C:\cygwin\usr\X11R6\bin)
ssh -Y -l <someuser> xxx.xxx.xxx.xxx (ip or dns name) su - oracle
runInstaller&

Note: For some reason I always have problems w/ssh to the oracle user. The workaround I use is above.

BTW. It also works for: oemapp dbstudio&, etc. :-)

3) By the time you get all this junk loaded in Cygwin, it also gives you SCP client on Windows. :-)

4) With one configuration of Cygwin working, then I just zip and move it around to other machines (*no* guarantees with this hack approach).

The steps to patch it up are:
4a) Export the HKLM\SOFTWARE\Cygnus Solutions tree from regedit as cygwin_setup.reg. Edit the paths for installed directory using text editor. Run .reg on new system to setup cygwin environment.

4b) Edit cygwin.bat for installed directory paths. This gets tedious if you change paths between systems. Avoid if possible.

4c) Copy the 'Cygwin' and 'Cygwin-X' folders from Start Menu Programs (e.g. All Users|Start Menu|Programs) folder. Set the properties for 'Cygwin Bash Shell' target for installed directory path, e.g. C:\Cygwin\cygwin.bat. And, set the properties for 'bitmap' et.al. 'Start in:' for installed directory path, e.g. C:\cygwin\bin. This gets tedious if you change paths between systems. Avoid if possible.

4d) Rename or delete /etc/passwd and /etc/group. Launch Cygwin Bash Shell, run following
mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group

4e) Update shortcut paths, e.g. if you moved from windows2000 to windowsXP (and reset readonly attribs): cd /etc
(e.g. WindowsXP)

ln 'C:\WINDOWS\system32\drivers\etc\hosts' hosts
ln 'C:\WINDOWS\system32\drivers\etc\networks' networks
ln 'C:\WINDOWS\system32\drivers\etc\protocol'
protocols
ln 'C:\WINDOWS\system32\drivers\etc\services' services (or, e.g. Windows2000)
ln 'C:\WINNT\system32\drivers\etc\hosts' hosts
ln 'C:\WINNT\system32\drivers\etc\networks' networks
ln 'C:\WINNT\system32\drivers\etc\protocol' protocols
ln 'C:\WINNT\system32\drivers\etc\services' services

After the steps above cygwin seems to work even after copying between different windows types, and without reinstalling/reconfiguring packages. You can always keep or discard the files under /home/<anyuser>.

Comments? :-)

HTH Regards,

Mike Thomas                 



Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail

Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Wed Jun 30 2004 - 09:45:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US