OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- From: Michael Thomas <mhthomas@xxxxxxxxx>
- To: oracle-l@xxxxxxxxxxxxx
- Date: Wed, 30 Jun 2004 07:48:30 -0700 (PDT)
Hi,
This is quite useful. Thanks, pd.
--- Paul Drake <discgolfdba@xxxxxxxxx> wrote:
> laptop:
> GNU bash, version 2.05b.0(1)-release
(i686-pc-cygwin)
> on WinXP sp1.
>
> server:
> running RHEL 3.0 ES base release.
>
> I had known that one *could* run an Xwindows app
> remotely over Cygwin/ssh, but had never actually
done
> it.
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@xxxxxxxxxxxxx
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
-----------------------------------------------------------------
- Follow-Ups:
- Re: OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- From: Michael Thomas
- References:
- Re: Double database load.
- From: Paul Drake
Other related posts:
- » OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- » Re: OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- » Re: OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- » OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- » Re: OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- Re: OT: whaddaya know, got runInstaller to work over Cygwin/ssh
- From: Michael Thomas
- Re: Double database load.
- From: Paul Drake