|jflaster on ZFS on Linux emergency Boot…|
|HarusKG on ZFS on Linux emergency Boot…|
|jflaster on Customizing Your Solaris 11 Au…|
|Raymond on Customizing Your Solaris 11 Au…|
|jflaster on Minding your ZFS pool and file…|
A place for Unix Thoughts and Ideas
I came across this in a post by Steve Scargall in the Oracle forums , this Post is a rehash of his solution.
I recently needed to download the Solaris 11 repository image for seeding a new auto install server.
Oracle provides a wget script for downloading their patches, However Oracle’s OTN doesn’t allow you to login via wget/curl, which means that oracle provided scripts are of no use.
Transferring it locally and uploading over a cable modem is no solution either.
The trick is to authenticate to OTN and then export the cookie. Then you can use that cookie to download the files.
-System must be able to ping download.oracle.com
-Firefox and the Export Cookies plugin (https://addons.mozilla.org/en-US/firefox/addon/export-cookies/)
1. Install the Export Cookies plugin and restart Firefox
2. Go to the appropriate Oracle download and signin throihgh and get the URL from the page and let firefox start the download. From the Download window right click and “Copy the download link” and then cancel the download.
3. Export the cookies through the Firefox tools menu.
4. scp the cookies.txt file to your remote server.
5. Download using wget.
Note: When you paste the URL, you can strip off the authparm info
wget --cookies=on --load-cookies=cookies.txt --proxy=off --keep-session-cookies --no-check-certificate https://updates.oracle.com/patch_cluster/10_Recommended.zip or wget --cookies=on --load-cookies=cookies.txt --proxy=off --keep-session-cookies --no-check-certificate http://download.oracle.com/otn/solaris/11/sol-11-1111-text-sparc.iso or wget --cookies=on --load-cookies=cookies.txt --proxy=off --keep-session-cookies --no-check-certificate http://download.oracle.com/otn/solaris/11/sol-11-1111-repo-full.iso-a wget --cookies=on --load-cookies=cookies.txt --proxy=off --keep-session-cookies --no-check-certificate http://download.oracle.com/otn/solaris/11/sol-11-1111-repo-full.iso-b