Tuesday, September 20, 2011

Build VirtualBox in Ubuntu 11.04


What is VirtualBox?
VirtualBox is a general purpose cross-platform virtualizer. It can be run on Linux, Mac, Windows and Solaris systems.

Purpose of VirtualBox
  • Simultaneously run multiple Operating Systems in a single machine
  • No hardware virtualization needed
  • Test systems, software without effecting your running system
  • Pack complete solutions as a virtual image to save the burden on configuring systems from scratch
  • Save cost on hardware, power and other infrastructure needs to run multiple systems to achieve a purpose. 
Read the Complete features list.

Some Terminologies:
  • Host OS : The system that runs the VirtualBox application
  • Guest OS : Systems run inside VirtualBox application
  • Virtual Machine (VM) : This is the environment which your Guest OS is running
  • Guest additions: Some features to improve the functionality of VMs running in VirtaulBox
This post is about building VirtualBox 4.1.51 from source in a Linux (Ubuntu 11.04) host.

Prerequisites:
  • Java Runtime Environment 
  • Several packages and libraries for the Linux distribution
  • Subversion client
Prepare your system:
  • Installing necessary packages
$ sudo apt-get install gcc g++ bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev libsdl1.2-dev libxcursor-dev libasound2-dev libstdc++5 libhal-dev libpulse-dev libxml2-dev libxslt1-dev python2.5-dev libqt4-dev qt4-dev-tools libcap-dev libxmu-dev mesa-common-dev libglu1-mesa-dev linux-kernel-headers libcurl4-openssl-dev libpam0g-dev libxrandr-dev libxinerama-dev libqt4-opengl-dev makeself subversion

If you run on 64bit machine (As I'm now) you'll have to install the following 32bit packages too.


$ sudo apt-get install ia32-libs libc6-dev-i386 lib32gcc1 gcc-multilib lib32stdc++6
g++-multilib


(Note:I've copied the packages from VirtualBox web site but practically I've installed them one by one checking what that package really does. And some times the packages are named differently in other systems.)
  • Install and setup Java RE 1.6.x
Check whether you have the Canonical partner repository is enabled in your sources.list

$ sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-bin sun-java6-plugin
sun-java6-fonts
  • Setup the Java home in your system into environment variable. 
Append the following to the ~/.bashrc

export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.26"

Checkout the source code from VirtualBox SVN


$ svn co http://www.virtualbox.org/svn/vbox/trunk vbox

Building the VirtualBox

1. Navigate to vbox directory and run configure script

$ ./configure --disable-hardening

2. To build the VBox you need to source the generated environment script
$ source ./env.sh

3. Build the package

$ kmk all
 

4. Build and install the VirtualBox kernel module

$ cd out/linux.x86/release/bin/src 
$ make 
$ sudo make install 
$ sudo modprobe vboxdrv 
$ sudo chown user:group /dev/vbodrv 



Once the kernel module is installed and loaded in to the kernel, navigate to "/vbox/out/linux.amd64/release/bin" and you can run the VirtualBox by issuing the following command.
$ ./VirtualBox
 

That way you can build the Oracle's VirtualBox from source. For the easy of running you may create a local alias or a menu icon to run VBox.

$sudo ln -s /usr/local/bin/virtaulbox ~/vbox/out/linux.amd64/release/bin/VirtualBox

VirtualBox source code is under GNU GPL V2.

Friday, September 16, 2011

Great (Presentations, knowlege sharing, entertaining, conference)



Past week was the biggest event we (WSO2) had in 2011. WSO2Con 2011. It's a successor of the WSO2Con 2010 and was 100 times improved. It wasn't a typical boring conference where attendants fall asleep after settling down in the hall. It was a dynamic and thrilled series of presentations and events lined up in two tracks.

In summery:
  • Great keynotes from various speakers across the world
  • For the first time, "Google" spoke in Sri Lanka
  • Panel discussions were amazing where audience and panelists had hot discussions on various technologies
  • It's not only WSO2 Products people interested about, they also impressed about our culture too
  • At live demonstration on StratosLive, in few minutes the conference hall turned in to a hands on workshop (where folks fired up the laptops and started to work on SLive)
  • It was great to hear how people use our products in their business, education and research
  • People realized that, being an open source company does not mean being looser
  • WSO2 is not a startup company any more!
  • #WSO2Con was in the 70th position in trending topics in Twitter
  • We don't settle, we are an agile company, we go where our customers takes us
  • Pre and post conference tutorials helped the attendants to get some deep understanding in some areas of our technologies
  • Sri Lankan cultural dances and Elephant rides gave an insight of our heritage to the foreign participants
  • WSO2 Music Jam session showed that WSO2ers are not just bunch of geeks who married to computers - They got other talents too!
  • It's not the technology that does magic, it's people who make the technology.
Looking forward to the WSO2Con 2012.

Friday, August 19, 2011

WSO2Con 2011- learn : share : middleware


If you are interested to know how enterprise grade middleware plays a major role in today's businesses and also in IT world in general, WSO2Con 2011 would be the ideal conference for one to be.

With the boost we got from last year conference, this time we have lined up speeches from more than 30 experienced speakers from more than 10 countries, tutorials by experts from WSO2 and Apache committers, and interactive panel discussions.

This will be a great opportunity to build your networks with different communities in the technology spaces like, distributed web application development, PaaS, SaaS, Cloud computing, Governance, Business process flows, etc. And also communities from government and corporate sectors.

Above three para's are the high level view of the event. For more details visit WSO2Con 2011 Event page.

Become an early bird and enjoy discounts and more great deals. - "REGISTER NOW".

Important Info :

Monday, March 28, 2011

Happy Birthday Son

Today (27th March 2011), my little son celebrated his first year birth day. It was a fast year filled with joy and love. We went to the temple early morning, observe pansil and our son was calm and trying to control his noise and the active actions. We offered a tea session for an orphanage and we thought of making it a habit to offer some thing in our capacity to help them. (They also need all the things we need in our lives). And I want to set this example to my son, when he enjoys his life to maximum always think about those who don't have and care for them as much as possible. And there is a fine line to think when it comes to actually care for them. You should not treat them as a different person, it's not sympathy, it's actually equality and treat every one as humans. There is only two categories of people. "Good" and "Bad". He needs to identify those two types.

We arranged a simple dinner for our close relatives and every one had a good time with my son. He got lots of presents kisses and he enjoyed the day to the max!.

I wish a happy birthday and a bright future for my son Saveen.

Amma and Thatta loves you a lot!.

Friday, September 24, 2010

Enterprise Ready and Open Source, join WSO2 community

The term "Open Source" has a wider meaning. It's not just about making Open Source Software. It's about making any of your work/idea/software/handcraft (any thing shareable) Open to the public with permission to read, modify, improve and also redistribute. In coupled with Open Source, Open Standards also play a key role on standardizing the processes with Open Formats. Computer software industry is one of the major industries which uses Open Standards and also Open Source Software.

WSO2 Inc is an award wining Global Open Source SOA Middleware company. All the software delivered from WSO2 are 100% open source under Apache License. The business model is basically selling the services such as 24x7 customer support, on site, phone, on-line support and training. And we have all our products on cloud platform too. If you want more details, please visit the corporate web site.

This post is not about how we sell our services. It's about another important mission we drive for the benefit of the Open Source Software community. Most of the time, the community edition of software are not the actual product that's being sold out to customers. And some times, the source code is not fully open sourced. Our mission is all about sharing a set of fully functional enterprise ready software with the global community and make a platform to work, communicate, collaborate and get paid for some of your work.

Interested? OK. The place to start is WSO2 OxygenTank.


WSO2 OxygenTank is the developer portal for the projects hosted by WSO2 Inc. It's a one stop resource center for source code, discussions, documentation, issue tracking, Wiki, articles, tutorials, KBs, Webinar recordings and many other resources. All you got to do is register (it's free) and start working on projects!

OxygenTank consist of the following main sections.
You can download the source pack, binary pack and documentation pack of each project from there. All packs are digitally signed to ensure the trust.
This is the place for technical discussions. Your questions will be answered by an Engineer who actually working on that project or some one from the community.
You can find SOA web services related content from OxygenTank Library. These content (Articles, Tutorials, KBs, Videos, Pod-castes, etc) are written by current and past Engineers of WSO2 and also some enthusiastic community members. If you need to read some thing more than the product documentations, this is the place for you.
You can subscribe to any of the mailing lists based on your interest of project. You'll be able to discuss about project architectural matters and also about all the project development related matters through each channel.

Code base is maintained in a Subversion system. You can become a part of the community and check out the source code of the products, and become a contributor.
WSO2 conducts regular webinars on many areas of SOA, Web Services and also about all WSO2 Products. These Webinars are useful to get an understanding of the projects as well as WSO2 as a whole. You can view/download past webinar videos, slides as well.

Apart from being a code contributor, you can write content (Articles, KBs, Tutorials) for OxygenTank Library. We have a payment scheme for content contribution. You need to follow the standards/templates and we are doing a thorough technical review before publishing. Your content must be genuine and your unique work!

We have the Public Issue tracker to track the project's activities. You can use your OxygenTank credentials to log in to that.

This would be a great opportunity for those who are interested in joining with enterprise ready Open Source SOA projects. And many of our projects are related to Apache projects too. And most of our developers are Apache Contributors. So you'll be able to work with many great Hackers who build great software.

So what's stopping you from being a part of this community? Join Today!

Monday, September 13, 2010

WSO2- We are 5!

WSO2 Inc became five years on 4th August 2010. We had a small in-house birth day party. :-). With all fun and excitement we had throughout August, we are organizing a conference targeting professionals and University students on this month at HNB towers. It's called WSO2Con 2010. Well known Industry professionals like Sanjiva Weerawarana, Ph. D, Founder, Chairman & CEO, WSO2 Inc, Paul Fremantle, Co-Founder & CTO, WSO2 Inc, Jonathan Marsh, VP, Business Development & Marketing, WSO2 Inc. Prof. Rohan Samarajiva, Chairman & CEO, LIRNEasia, James Clark, Father of XML & Founder, Thai Open Source Software Center will be delivering keynotes and there are other professionals willing to share the insights of Web Services, SOA and Cloud technologies. Event is a two day conference starts tomorrow (14th Sep 2010). We'll be doing a live streaming of the speeches too. You can access the webcast by going to http://wso2.org/events/wso2con-2010-colombo-sri-lanka. Be there or watch online and get involved!.

Follow WSO2 on Twitter : http://twitter.com/wso2 and also on Facebook: http://www.facebook.com/WSO2Inc





Sunday, May 16, 2010

The Art of Community by Jono Bacon



I'm in the transition period of being a Tech to Semi-Tech guy. I was looking for some resources to read on "Community Management" and found this great piece of work done by Jono Bacon, the Ubuntu Community Manager. I was reading the e-book version of his book "The Art of Community" until Lavi gave the actual book to me as a present. The book was autographed by Jono and Lavi has got it at a Global event (not sure what). Thanks to Lavi, now I'm reading the actual book and will write about it once I finish reading.

Every body out there in to Community Management, I recommend you read this book!. Thanks Jono for writing this!.