Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> OT: whaddaya know, got runInstaller to work over Cygwin/ssh
Hi,
This is quite useful. Thanks, pd.
A couple additional thoughts:
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:\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
-- 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