Showing posts with label CentOs. Show all posts
Showing posts with label CentOs. Show all posts

Sunday, September 2, 2012

Installing graphics libraries and desktop services componen[FAILED](See the log file /var/log/vboxadd-install-x11.log for more information.

Hi,
Just a quick note here.
I was trying to install my new Guest Additions to my VirtualBox
4.1.14 to 4.1.18 all of a sudden I got the following exception

Installing graphics libraries and desktop services componen[FAILED](See the log file /var/log/vboxadd-install-x11.log for more information.

By all means, do not restart your machine! I did and I could not log in to my CentOS..
so I had to restore my machine to a previou snapshot that worked....
I tried again, and got the same error.
This I searched the internet and I found this forum thread that helped my solve the problem

https://forums.virtualbox.org/viewtopic.php?f=3&t=49334

All I had to do is to remove the VirtualBoxGuestAdditions symlinks.
 The commands to be executed are the following:

> rm /usr/lib64/VBoxGuestAdditions
> rm /usr/share/VBoxGuestAdditions


A big thanks to the guys that found that solution!
Lessons learned: Always remove the VBoxGuestAdditions symlinks prior to installing the new VBox Guest Additions.
Just to be on the safe side..

cheers.

Monday, April 16, 2012

Run rcu.sh on a 64bit CentOS machine: rcuHome/jdk/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory (A workaround)

Hi,

I started creating a new Virtual Machine on my VirtualBox.
I decided to setup a machine with an oracle XE 11.2 along with the full Christmas Bonus. Weblogic 10.3.6/SOA.. the works..

So, I installed my 64Bit Cent OS 6.
Then I installed my 64biy java.. (ofcourse..)


Then, I installed Oracle XE.. Everything ok.

I installed weblogic standalone.. fine.

Then, I tried to installed the SOA schemas through rcu.. RCU is a powerful tool that really  helps when it comes to install and manage all the schemas needed for our Fusion Middleware development
http://docs.oracle.com/cd/E12839_01/doc.1111/e14259/rcu.htm

So, I downloaded rcu from Oracle's site:
Of course, the option is for 32bit JVM only.

http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html

And of course, it did not work.. I got an exception similar to the following:


So, I googled a bit, I even installed some libraries to my CentOs.. but no use.

A very useful article is the following:
https://blogs.oracle.com/tejas/entry/running_rcu_on_oel_linux

The above article explains how to install the rcu in the silent mode, passing all the parameters needed.

The above was a bit complicated for me so I decided to run the rcu from another 32bit Ubuntu Virtual Machine. Everything went fine.

However, I would really like to run rcu in my CentOs in my 64bit machine and I would really like to have some graphical user interface while installing the schemas.. I mean, I am not that good in understanding all the parameters in the silent mode mentioned in the above link.. Even though it might be a really good practice to do so, still, I would like to have my graphical user interface..

So I start digging a bit more..
I checked the rcu.sh file and I saw that it is using it's own jdk.. which, in my case is not suitable to start the graphical user interface.

So, how would I change the jdk to be used??

One approach would be to change the rcu.sh script.. but of course, this goes against the policies and after all the file is not mine to change at will. Bad things might happen....... :)

(Although, it seems rather easy to do so.. it is just a variable.. but I did not do it.)

A second approach would be to change the bundled jdk that comes with the zip file of rcu..

So, I just renamed the jdk file of the rcuHome file to jdk_old and then, I copied my INSTALLED jdk folder and pasted it to the rcuHome. I renamed it to jdk  of course, and I rerun the script.

It worked just fine. All my grrRRRRRRrraphical user interface was there.. Shiny with it's PlastikLookAndFeel!

I did all the steps properly
After that, I reverted my changes and run the script again. The problem was there! So there is a small question in my head that I would like to share it with you...

Why rcu comes bundled with a jdk?  And if it is.. why cant we set the jdk path as a parameter in order to be able to run it with a 64bit one?  (At least, I could not find a way. If you have one, please share!)


DISCLAIMER:
THIS POST HAS NO INTENSION OF ALTERING IN ANY WAY THE OFFICIAL DOWNLOADABLE CONTENT OF RCU FROM ORACLE SITE AND IT IS NOT IN THE INTENTION OF THE AUTHOR TO PROMOTE SUCH BEHAVIORS. THIS IS A PURE ILLUSTRATIVE EXPLANATION OF THE FOLDER STRUCTURE OF THE RCU ZIP FILE.
THE CORRECT APPROACH IN THIS PROBLEM WOULD BE TO RUN THE RCU INSTALLER FROM 32BIT JVM AS IT CLEARLY STATED ON THE SITE.

Regards.







Sunday, March 11, 2012

Running WebLogic 10.3.6 on CentOs on VirtualBox. Access Weblogic from the host machine

Hi this is just a small note on how to access your weblogic console from you host machine.

This post assumes that you are working on a VirtualBox machine with  operating system of CentOS.

If you have successfully installed weblogic 10.3.6 in you CentOs Virtual Machine and everything is working fine inside your CentOs Virtual Machine, at some point you would want to access your Weblogic console from your hosting machine..

Well, with CentOs... it is not that easy... I mean, you will not be able to do it "out of the box".
Even though that you might have configured your Virtual Machine to have internet access, it is not enough.

You have to do the following:


  • Make sure that you are using manual IP:



  • Make sure that your etc/hosts on your CentOS machine has properly added this IP



And Here is the tricky part...
In order to have your Weblogic accessed from the "outside" world, you will have to handle the firewall of CentOS. The firewall of CentOS, or iptables if you prefer, needs to be configured in order to be able to access the weblogic instance through the "outside" world.

In order to do this the fast way you have to disable the firewall:




If you want to do this in a more sophisticated way, you will have to dig in the CentOS firewall howTo.

More specifically, you will want to accept tcp packets on your weblogic's ports(The below screenshot is taken from the above mentioned link. This is the official CentOS HowTo link.):


In General, for the sample development, for me at least, stopping the firewall was what I was looking for. But in case you want to dig further and tune  your CentOS firewall according to your needs, the official documentation is very enlightening and helpful.


Regards.

References.




LinkWithin

Related Posts Plugin for WordPress, Blogger...