Wednesday, November 03, 2010

wget files from Oracle edelivery

When you want to install software from Oracle you have the great option you can download all you need from the edelivery website. The issue is that most of the files are quite large and in some cases we are talking about a large amount of very large files.

You can download all the files you need and after you downloaded it transfer it to your target server. However this means that your workstation is busy downloading files while you have your target server sitting idle. If you are in the lucky position that you can create a connection to the internet from your server you can download the files by making use of the wget command. The best option is to run the wget command in the background so you can end your connection and go ahead while your server is downloading the files. We assume that you have a linux server with only a commandline, if you are familiar with the download site from Oracle you know that you have to enter some credentials.

Your information is stored in a cookie on your workstation, so you have to move this cookie information to your server, in our case we have uploaded it to the file cookies.txt in the home of the root user. From the edelivery website we get the URL and we have to modify the URL a bit. In the URL we have some '&' signs which have to be changed to '\&'.

the wget command will become something like the example below:
wget --load-cookies /root/cookies.txt -O V14041-01_1of2.zip -bqc http://edelivery.oracle.com/EPD/Download/process_download/V14041-01_1of2.zip?file_id=25145149&aru=10526712&userid=131832&egroup_aru_number=10545708&email=john.do@oracle.com&country_id=528&patch_file=V14041-01_1of2.zip


--load-cookies /root/cookies.txt will state to load a cookie file from the stated location.

-O V14041-01_1of2.zip states the name the file will have to get when it is downloaded.

-bqc states that it will have to run in the background (b), no wget output (q) and it will resume a download if it gets broken (c).

This will make sure that the download will run in the background and you can work on other things while the download is running.

Monday, November 01, 2010

Oracle VM setup console

when you are running virtual machines in Oracle VM you might want to make use of the option to use the console button in the Oracle VM manager. The Oracle VM manager will open a popup screen which will load a console for you. This is however if it works. A lot of issues are known to get it running. The only thing is that you need to do take some simpel steps to get it running correct.

First login to the host where you run the Oracle VM Manager and check if you have installed the tightvnc-java rpm. If not download it from oss.oracle.com.

Second step is to install on your client the ovm-console rpm which can be downloaded from the same location. This will install a plugin in your firefox plugin location. The only thing you have to do is to execute a rpm -ivh (filename.rpm) and you are ready to go. Quite simple, however, if you are running a not so standard installation of Firefox or if you are running it on for example a Mac you might need to do some other steps. For a not standard install on Linux you might need to do the following:

Step one is to install the rpm:
# rpm -ivh ovm-console-version.rpm

second step is to do some copy commands:

# cp /opt/ovm-console/etc/mozpluggerrc /etc/
# cp /opt/ovm-console/bin/* /usr/bin
# cp /opt/ovm-console/lib/mozilla/plugins/ovm-console-mozplugger.so /opt/firefox/plugins
This is however for a Linux setup, when you run it on a mac you might want to do some other things.
1. Make sure you have installed RPM-For-MacOS which can be downloaded from rpm4darwin.sourceforge.net

2. initiate the RPM database by using "rpm --initdb"

3. install the RPM "rpm -ivh ovm-console-1.0.0-2.i386.rpm". This might end into a error as shown below:

Preparing... ########################################### [100%]
1:ovm-console ########################################### [100%]
ln: /usr/lib/mozilla/plugins/ovm-console-mozplugger.so: No such file or directory
error: %post(ovm-console-1.0.0-2.i386) scriptlet failed, exit status 1

4. Now we have to do some copy actions which are a little different from what needs to be done on Linux:

# cp /opt/ovm-console/etc/mozpluggerrc /etc/
# cp /opt/ovm-console/bin/* /usr/bin
# cp /opt/ovm-console/lib/mozilla/plugins/ovm-console-mozplugger.so /Applications/Firefox.app/Contents/Plug-Ins
This should solve most of the issues of a console that is not starting on a Linux or MacOS system.