tag:blogger.com,1999:blog-30603529504021869992024-03-26T02:16:26.089-07:00Saminda's BlogsSaminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.comBlogger36125tag:blogger.com,1999:blog-3060352950402186999.post-83536571847486108222018-01-04T18:13:00.002-08:002018-01-04T18:13:54.139-08:00saminda.orgSaminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com7tag:blogger.com,1999:blog-3060352950402186999.post-67096630929083952622012-07-17T13:36:00.003-07:002012-07-17T13:36:47.187-07:00RoboCanes place 2nd in international robot soccer competitionThe College of Arts and Sciences' Department of Computer Science RoboCanes team placed second in 3D soccer simulation at the <a href="http://robocup2012.org/">2012 RoboCup</a> last week in Mexico City. <a href="http://www.as.miami.edu/news/RoboCanes_place_2nd_in_international_robot_soccer_competition">Read more ... </a><br />
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="http://www.as.miami.edu/images/news/2012robocup/photo.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="290" src="http://www.as.miami.edu/images/news/2012robocup/photo.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Saminda Abeyruwan, Justin Stoecker, Andreas Seekircher, and Professor
Ubbo Visser accept their tropy at the RoboCup in Mexico City.</td></tr>
</tbody></table>
<br />Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com4tag:blogger.com,1999:blog-3060352950402186999.post-50739471160024906352011-08-11T11:14:00.000-07:002011-08-11T11:21:53.020-07:00Java 7 with JSR 334<a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">JDK 7 </a>with JSR 334 (Small language enhancements). I think that the the strings in switch, and multi-cache and more precise rethrow is quite useful. Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com2tag:blogger.com,1999:blog-3060352950402186999.post-1860206570777435402009-12-25T15:07:00.000-08:002009-12-25T15:34:03.413-08:00Wolfram Alpha - Computational knowledge engine<a href="http://www.wolframalpha.com/">Wolfram Alpha</a> is an answer engine which provides <span style="font-weight: bold;">ANSWERS</span> to structured queries (e.g <a href="http://www.wolframalpha.com/input/?i=captial+of+sri+lanka">captial of sri lanka</a>), rather providing a ranked list of web pages that most popular search engines would do. This engine uses automated reasoning to infer other results which is most useful for users. Thought the inferences that the engine makes is not currently amenable for my knownledge as of this writing, it gives very useful inferences. For more information read <a href="http://en.wikipedia.org/wiki/Wolfram_Alpha">this</a> and <a href="http://en.wikipedia.org/wiki/Automated_reasoning">this</a>.<br /><br /><span style="font-style: italic;">Note:</span><br />I explicitly made the error in search query; "<a href="http://www.wolframalpha.com/input/?i=captial+of+sri+lanka">captial of sri lanka</a>" (captial rather <span style="font-weight: bold;">capital</span>) to show how inferencing is done on the context of the search query.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com7tag:blogger.com,1999:blog-3060352950402186999.post-65600760350528074752009-09-10T19:31:00.000-07:002009-09-10T19:36:12.544-07:00Gtk-WARNING **: cannot open displayWhen you ssh to a remote machine and want to execute a graphic bound applications such as JFrame etc, use ssh with -X argument. -X is for forwarding.<br /><pre><br />ssh -X user@host<br /></pre>Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com3tag:blogger.com,1999:blog-3060352950402186999.post-4670123304040876122009-08-30T13:59:00.000-07:002009-08-30T14:18:47.780-07:00How to install kernel headers to build modules against the Xen kernel - Amazon EC2If you are using a Ubuntu/Debian AMI, and need to install kernel headers to build modules: apt-get would not work almost all of the time. You would probably end up with doing something like following,<br /><pre>root@domU-XX-XX-XX-XX-XX-E1:~$ apt-get install linux-headers-`uname -r`<br />Reading package lists... Done<br />Building dependency tree<br />Reading state information... Done<br />E: Couldn't find package linux-headers-2.6.21.7-2.fc8xen<br />root@domU-XX-XX-XX-XX-XX-E1:~$<br /></pre>I used the following method to get Kernel headers and compile a VMWare 2 instance. This method will always work,<br /><pre>wget <a href="http://kojipkgs.fedoraproject.org/packages/kernel-xen-2.6/2.6.21.7/2.fc8/i686/kernel-xen-devel-2.6.21.7-2.fc8.i686.rpm">http://kojipkgs.fedoraproject.org/packages/kernel-xen-2.6/2.6.21.7/2.fc8/i686/kernel-xen-devel-2.6.21.7-2.fc8.i686.rpm</a><br />alien -k --scripts kernel-xen-devel-2.6.21.7-2.fc8.i686.rpm<br />dpkg -i kernel-xen-devel_2.6.21.7-2.fc8_i386.deb<br />ln -s /usr/src/kernels/2.6.21.7-2.fc8-xen-i686 /lib/modules/<br />2.6.21.7-2.fc8xen/build<br />ln -s /usr/src/kernels/2.6.21.7-2.fc8-xen-i686 /usr/src/linux<br /></pre>Make sure to include symbolic links to .configure to work properly.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com2tag:blogger.com,1999:blog-3060352950402186999.post-11581669856607361862009-08-27T14:30:00.000-07:002009-08-28T20:09:25.511-07:00Virtual cloud? or something like thatEveryone on the plant is really interested in cloud computing these days. There are many <a href="http://en.wikipedia.org/wiki/Cloud_computing#Companies">organizations</a> specialized in providing HaaS services. Is it possible for someone to build their own cloud, if one could find a hardware rich machine. Yes!, it is. Lets call this is a <span style="font-style: italic;">virtual cloud</span>. How can a virtual cloud is built?. Simple, use <a href="http://www.vmware.com/download/server/">VMWare 2</a>. Let see what I did,<br /><br />1. I have two machines. A hardware rich machine A (172.19.0.32) and some other machine B (172.19.0.44).<br /><br />2. I downloaded and installed <a href="http://www.vmware.com/download/server/">VMWare 2</a> in machine A. This version is free and you will get an access key free too. Follow the simple instructions to install VMWare 2. VMWare 2 has a very powerful web console. Default http port is 8222 and https port is 8333. To install VMWare 2 in Ubuntu, follow these <a href="http://www.howtoforge.com/how-to-install-vmware-server-2-on-ubuntu-8.10">instructions</a>.<br /><br />3. Now I am going to create an VMWare image to install <a href="http://www.ubuntu.com/GetUbuntu/download">Ubuntu 9.04</a>. Ubuntu is my all time favourite Linux distribution.<br /><br />4. From machine A, open up a Mozilla browser and type http://172.19.0.32:8222. Login using "root" and the password. Create the VMImage for Ubuntu 9.04. If you are using the "console" tab for the very first time, browse will ask to download VMWare Remote Console Puglin. Download and restart the browser.<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_1QXaVNqstgs/SpcBK4WPQ5I/AAAAAAAAABQ/FTeHZLJQwDw/s1600-h/Screenshot1.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;" src="http://4.bp.blogspot.com/_1QXaVNqstgs/SpcBK4WPQ5I/AAAAAAAAABQ/FTeHZLJQwDw/s320/Screenshot1.png" alt="" id="BLOGGER_PHOTO_ID_5374765966725956498" border="0" /></a><br />5. Create many number of VMImages. Use different distributions. If you want you can use Windows too. Logout after this.<br /><br /><span style="font-style: italic;">This is the place where we can introduce the notion of a virtual cloud. Each VMImage can be treated as a node in a cloud. There is one limitation though. This cloud can grow up until it runs out of VMImages.</span><br /><br />6. I have created my virtual cloud in the previous step. How can I access it from out side. Lets go to machine B. In my example machine B is in the same network. Access the VMWare 2 using http://172.19.0.44:8222. Login as "root" and password. I need to find out administration permissions documents to create users to access VMImages but "root".<br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_1QXaVNqstgs/SpcFDuEck5I/AAAAAAAAABY/IxxstqgFTuM/s1600-h/Screenshot6.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;" src="http://4.bp.blogspot.com/_1QXaVNqstgs/SpcFDuEck5I/AAAAAAAAABY/IxxstqgFTuM/s320/Screenshot6.png" alt="" id="BLOGGER_PHOTO_ID_5374770241754403730" border="0" /></a><br />7. In this example, there is only one VMImage. Select it and power it up. You can turn on many VMImages.<br /><br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_1QXaVNqstgs/SpcF9GeTpGI/AAAAAAAAABg/4o7Pvrvmzuw/s1600-h/Screenshot2.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 256px;" src="http://1.bp.blogspot.com/_1QXaVNqstgs/SpcF9GeTpGI/AAAAAAAAABg/4o7Pvrvmzuw/s320/Screenshot2.png" alt="" id="BLOGGER_PHOTO_ID_5374771227557864546" border="0" /></a><br /><br />This way you can create your own private virtual cloud.<br /><br />Amazon EC2 allows users to create custom AMIs. Unless one does not have an agreement with them, one can not build AKIs and ARIs. If I do the prior in an Amazon EC2 node, I would definitely be able to run a distribution with my kernel, without worrying about underlying necessaties. This process might be possible to try in any cloud service providers.<br /><br />One would ask, why would you want to do this after all. Well I am a grad student and this is fun!.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com1tag:blogger.com,1999:blog-3060352950402186999.post-48123808726603002362009-08-26T11:38:00.001-07:002009-08-26T11:38:59.879-07:00http://twitter.com/samindaaSaminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-72961222277920477002009-08-13T20:13:00.000-07:002009-08-13T20:20:01.419-07:00http://blog.saminda.org/I have registered <span style="font-style: italic;">*.saminda.org</span> domain for myself at last. Domain registration 101, <a href="http://blog.saminda.org/">http://blog.saminda.org/</a> is for my blogs. Enjoy!Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com1tag:blogger.com,1999:blog-3060352950402186999.post-57531327678621110732009-08-03T10:58:00.000-07:002009-08-04T11:45:08.369-07:00Vitro TutorialI have written an intermediate level tutorial for <a href="http://vitro.mannlib.cornell.edu/">Vitro an Integrated Ontology Editor and Semantic Web Application from Conrell University</a>. Check it out from <a href="https://confluence.cornell.edu/display/VITROUSERS/Case+Study+Using+Ingest+Tools">here</a>.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-19993040779075056332009-07-09T12:00:00.000-07:002009-08-04T11:54:57.847-07:00Vitro - Integrated Ontology Editor and Semantic Web Application<a href="http://vitro.mannlib.cornell.edu/">Vitro </a>is a general-purpose web-based ontology and instance editor with customizable public browsing.<br /><br /><p style="font-style: italic;">With Vitro, you can:</p> <ul style="font-style: italic;"><li>Create or load ontologies in OWL format</li><li>Edit instances and relationships</li><li>Build a public web site to display your data</li><li>Search your data with Lucene</li></ul>One of my previous blog posts talk about <a href="http://samindaa.blogspot.com/2009/07/protege-owl.html">Protege ontology editor</a>. One could use Protege 3.4.1 (latest release when this post is written) to create ontologies and import them to Vitro to create a powerful web portal.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-18975824005586838162009-07-04T11:09:00.000-07:002009-08-04T11:45:29.783-07:00Protégé-OWL<a href="http://protege.stanford.edu/overview/protege-owl.html"><span style="font-weight: bold;">Protégé-OWL</span></a> editor enables users to build ontologies for the <span style="font-style: italic;">Semantic Web</span>, in particular in the W3C's <a href="http://www.w3.org/2001/sw/WebOnt/" target="_blank">Web Ontology Language (OWL)</a>.<br /><br /><span style="font-style: italic;">An OWL ontology may include descriptions of classes, properties and their instances. Given such an ontology, the OWL formal semantics specifies how to derive its logical consequences, i.e. facts not literally present in the ontology, but entailed by the semantics. These entailments may be based on a single document or multiple distributed documents that have been combined using defined OWL mechanisms</span><br /><br />OWL has been the de-factor standard to capture the concept of knowledge base of a domain.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-9735081981405727892009-07-04T10:55:00.000-07:002009-08-04T11:45:52.139-07:00Apache Hadoop Core<a href="http://hadoop.apache.org/core/">Apache Hadoop Core</a> is a software platform that lets one easily write and run applications that process vast amounts of data. It enables applications to work with thousands of nodes and petabytes of data in a distributed environment.<br /><br />This application is based on Java (>=1.6).<br /><br />References:<br /><br />[1]. <a href="http://hadoop.apache.org/core/">http://hadoop.apache.org/core/</a><br /><br />[2]. <a href="http://en.wikipedia.org/wiki/Hadoop">http://en.wikipedia.org/wiki/Hadoop</a><br /><br />[3]. <a href="http://en.wikipedia.org/wiki/Filesystem_in_Userspace">http://en.wikipedia.org/wiki/Filesystem_in_Userspace</a>Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-68113265029014383452009-07-01T14:28:00.000-07:002009-07-01T14:32:47.778-07:00Bing.com search engine from $Check out this new search engine <a href="http://bing.com">bing.com</a> from Microsoft. I am quite impressed with the map section.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-44125374288602682572009-06-26T07:58:00.000-07:002009-08-04T11:46:12.737-07:00PHP 5 on TomcatRecently I came across this <a href="http://bizjournal.smbzen.com/small-business/marketing/blogging/getting-wordpress-to-work-in-tomcat-php-in-a-java-environment.html">article</a> on configuring Tomcat (>= 5) to interpret PHP 5 scripts. This is developed by <a href="http://www.caucho.com/resin-3.0/quercus/">Quercus.</a> There is an open source version with GPL license. (oh no!).<br /><br />Anyways, one can configure Tomcat to work with PHP in 30 seconds and it is quite interesting. There are three jars associated with this task, quercus.jar, resin-util.jar, and script10.jar.<br /><br />Well these jars are not OSGi compatible. It is simple to convert these to OSGi bundles and I am really looking forward to see how these behave <span style="text-decoration: underline;">in </span><a href="http://www.eclipse.org/equinox/">Equinox</a>. You can have servlets, jsp, etc plus php in one container. Owesome!.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com4tag:blogger.com,1999:blog-3060352950402186999.post-10761106470100011292009-01-01T10:25:00.000-08:002009-01-01T11:12:04.254-08:00Feliz 2009!I wish everyone a happy, joyful and fruitful new year!<br /><br />In Spanish feliz means happy. I was so fortunate and honored to spend the new year's eve with one of Spanish families' here in Miami. Trust me on this, Spanish people have mastered the art of partying!. I had the opportunity of learning some customs and traditions that revolve around Spanish way of celebrating the new year. We ate 12 grapes before midnight, a wish at every grape, last grape sharp at midnight, wishing all those wishes will come true in new year. The other tradition was, some people and including this family walked around the block with their traveling bags that they believed it will bring them enough wealth to travel around the world in 2009. In the midst of everything, I had a Salsa crash course, which made me moving to the beat. I was quite a fast learner!. The other great thing was I had the opportunity of experiencing authentic Spanish music where billa and kaparinya <span style="font-style: italic;">(if spellings is incorrect, please help me to correct it</span>) inherited from. With my very limited Spanish understanding ability I manged to consume 1% of the conversation at the night. Rest, they were kind enough to translate it to me :-). This family treated me as their own and I felt that I was not alone in Miami after all!. I sincerly thank this wonderful family in bolttom of my heart for inviting me for such a wonderful occasion.<br /><br />I am looking to 2009, excitements, challenges & everything, and with God grace I hope everything will be worked out fine for everyone in new year and the rest of the years to come!Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com2tag:blogger.com,1999:blog-3060352950402186999.post-33300738844207766952008-11-13T18:09:00.000-08:002008-11-13T18:12:12.457-08:00Quantum Of Solace (2008)New Bond movie is just around the corner. My friend and I managed to get two tickets just in time for the very first show, which will be shown in 3 hours from now. It will be Nov 14th 12.01 AM. We were so lucky that we managed to buy these two tickets for student discount and we were so luck that to get these two tickets to this show. Anyways, it's gonna be interesting.....and no spoilers; I promise. ;-)Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com2tag:blogger.com,1999:blog-3060352950402186999.post-82268773016076594292008-11-13T17:07:00.000-08:002009-08-04T11:47:37.835-07:00FUSE<a href="http://fuse.sourceforge.net/">FUSE</a> allows to develop fully functional filesystem in a userspace program. It provides,<br /><br />1. Simple library API<br />2. Simple installation (no need to patch or recompile the kernel)<br />3. Secure implementation<br />4. Userspace - kernel interface is very efficient<br />5. Usable by non privileged users<br />6. Runs on Linux kernels 2.4.X and 2.6.X<br />7. Has proven very stable over time<br />[above items are extracted from http://fuse.sourceforge.net/]<br /><br />Recently (after spending almost 2 weeks) I completed an assignment for Operating System class which needed an implementation of filesystem that follows FAT concepts. Inevitably I stick to FAT12/16 paradigm because it was easy to (kinda :-)) implement and simulate it. I didn't implement every little fine grained part of it, but for me it was quit a exhilarating assignment and I am happy with it. This assignment had forced me to teach a lot of C stuff. I believe, now I have a relatively good understanding of how to tame this beast.<br /><br />So, why am I interested in FUSE anymore. Don't know whether this is feasible, but just hear me out. I am thinking of a concept of "mounting" a Web service. It's like you mount a disk and do all sort of operations and we kind a write a FILESYSTEM that would follow the same semantics of Web services, but in the context of file system paradigm. Ex: one could create a file say "foo.txt", but now this will be a Web service which will be exposed by this FILESYSTEM. Another thing I could think of is a directory, which is a grouping of web services. These are just wild thoughts. Since I'm now a die heart fan of C, I would like to give a "hello world" try to this idea in December using Axis2/C.<br /><br />Hence, when you mount a disk which will adheres to this FILESYSTEM it will mount Web services. And of course you could umount the FILESYSTE anytime you want. Let me see whether I could come up with something useful and feasible and post the results. Anyway...<br /><br />What you guys think ? Am I going crazy of what :-)Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com2tag:blogger.com,1999:blog-3060352950402186999.post-25593718730524635792008-09-24T21:32:00.000-07:002008-09-25T21:27:35.008-07:00Playing the main roleIt has been a while since I have participated in a drama. If I remembered correctly, it was in University, I did my last act (on a stage of course :-)). I go to this local church in Miami, <a href="http://www.saintaugustinechurch.org/">St Augustine Church</a>, for the remembrance of the Eucharist. Today there was a small drama on Jesus life from Luck 15:4-7 for youth. Yesterday, my beloved members of the young adults group asked me whether I could act the role of Jesus Christ. The main reason they wanted me to act was, I have long hair :-). Ironic !. Well I accepted the invitation and had to prepare myself with the setting and with the script less than 24 hrs. So today I dressed up as Jesus Christ and did my part. It was the main role btw. Everything has gone as planed and it was just awesome!!!!.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com3tag:blogger.com,1999:blog-3060352950402186999.post-89121650936049260232008-09-20T12:24:00.000-07:002009-08-04T11:49:39.769-07:00Senator Barack Obama in University of MiamiYesterday, Friday (09/19/08) Senator Obama gave a speech in University of Miami. Friday is a good day, because I have only one class!. I had this rear privilege of getting a ticket to attend this event. These tickets were quite hard to come by.So I knew a dude who new another dude, who had an extra ticket so that I could borrow. I did actually saw "the man" himself and his speech was quite exhilarating and encouraging to his supports. His speech quite touched my chain of thoughts very very deeply. Hey, don't ask my point of view in political parties, I just like the idea of presidency :-). Good luck to you Senator Obama, I know you will just do fine.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com1tag:blogger.com,1999:blog-3060352950402186999.post-17450651481611105922008-09-20T09:50:00.000-07:002008-09-20T09:51:12.219-07:00System calls to Linux kernelSystem call provides an interface to user-space processes to interact with kernel. This interface gives applications to access hardware and other operating system resources. <a href="http://www.ibm.com/developerworks/linux/library/l-system-calls/">This</a> article gives you a good introduction to implement system calls in i 386 architecture.<br /><br />It seems that _syscallX macros have been removed from "unistd.h". Hence, we have to use syscall available from libc.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com1tag:blogger.com,1999:blog-3060352950402186999.post-41204064217353745492008-09-10T16:11:00.000-07:002008-09-10T16:18:27.254-07:00Compiling the newest Linux kernelThis semester I'm taking an advance operating system course and as part of my first assignment I have to hack the newest Linux kernel to provide a new system call that based on Intel architecture (32 bits). I have never hacked a Linux kernel before and this assignment has opened a quite unique experience for me.<br /><br />How do you compile Linux kernel 2.6.26.6<br /><br />0. Before starting check whether your /boot file system is ext3. If not you might end up with a lot of custom configurations, which I haven't mentioned here.<br /><br />1. Get latest Linux kernel code.<br />Visit <a href="http://kernel.org/">http://kernel.org/</a><br /><span style="font-weight: bold;">wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.5.tar.bz2</span><br /><br /><br />2. Extract tar (.tar.bz2)<br /><span style="font-weight: bold;">tar xvjz linux-2.6.26.5.tar.bz2 -C /usr/src/linux-2.6.26.5</span><br /><br />3. Configure kernel<br /><br />Before doing anything else, you need to have development tools on your system. If you are using a Debian distribution you need lib6c-dev and libncursesw5-dev<br /><br />Change the directory to /usr/src/linux-2.6.26.5<br /><br />You have three options to get started<br /> * make menuconfig - Text based color menus, radiolists & dialogs. This option also useful on remote server if you wanna compile kernel remotely.<br /> * make xconfig - X windows (Qt) based configuration tool, works best under KDE desktop<br /> * make gconfig - X windows (Gtk) based configuration tool, works best under Gnome Dekstop.<br /><br />I like,<br /><span style="font-weight: bold;">make menuconfig</span><br /><br />4. Compile kernel<br /><br />Start compiling to create a compressed kernel image<br /><span style="font-weight: bold;">make</span><br /><br />Start compiling to kernel modules<br /><span style="font-weight: bold;">make modules</span><br /><br />Install kernel modules<br /><span style="font-weight: bold;">make modules_install</span><br /><br />5. Install kernel<br /><br />So far we have compile module and installed kernel. Let's install kernel,<br /><span style="font-weight: bold;">make install </span><br /><br />After that change directory to /boot, you will be able to observer,<br /> System.map-2.6.26.5<br /> config-2.6.26.5<br /> vmlinuz-2.6.26.5<br /><br />6. Create initrd image<br /><span style="font-weight: bold;">cd /boot<br /><br /></span><span style="font-weight: bold;"> mkinitramfs -o initrd.img-2.6.26.5 2.6.26.5</span><br /><br />7. Modify Grub configuration file - /boot/grub/menu.lst<br /><span style="font-weight: bold;">cd /boot/grub</span><br /><br /><span style="font-weight: bold;"> update-grub</span><br /><br />Update grub is a cool way to edit the file automatically. One could use LILO instead of GRUB. Though the update utility do the job for us, it wont set the initrd. Hence,<br /><br /><span style="font-weight: bold;">vi /boot/grub/menu.lst</span><br /><br /><span style="font-style: italic;">## ## End Default Options ##</span><br /><br /><span style="font-style: italic;">title Ubuntu, kernel 2.6.26.6 Default</span><br /><span style="font-style: italic;">root (hd0,0)</span><br /><span style="font-style: italic;">kernel /vmlinuz root=UUID=c45bb5a8-11b8-4d03-aec4-4c4f070edae6 ro quiet splash</span><br /><span style="font-style: italic;">quite</span><br /><br /><span style="font-style: italic;">...</span><br /><br />and change it to<br /><br /><span style="font-style: italic;">## ## End Default Options ##</span><br /><br /><span style="font-style: italic;">title Ubuntu, kernel 2.6.26.6 Default</span><br /><span style="font-style: italic;">root (hd0,0)</span><br /><span style="font-style: italic;">kernel /vmlinuz root=UUID=c45bb5a8-11b8-4d03-aec4-4c4f070edae6 ro </span><br /><span style="font-style: italic; font-weight: bold;">initrd /initrd.img-2.6.26.5</span><br /><span style="font-style: italic; font-weight: bold;">savedefault</span><br /><span style="font-style: italic; font-weight: bold;">boot</span><br /><br /><span style="font-style: italic;">...</span><br /><br />Please note that "root" will change according to your configuration<br /><br />8. Reboot computer and boot into your new kernel<br /><br /><span style="font-weight: bold;">reboot</span><br /><br />Next time I'll tell you how to add a system call with a little bit of theory. Have fun!Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com1tag:blogger.com,1999:blog-3060352950402186999.post-48602349291886382942008-09-06T20:23:00.000-07:002008-09-06T20:25:13.019-07:00Zen poemTo follow the path:<br /> look to the master,<br /> follow the master,<br /> walk with the master,<br /> see through the master,<br /> become the master.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-149132189021945132008-08-30T20:53:00.000-07:002008-08-30T21:12:10.451-07:00Season of Tropical Storms and HurricanesIt was just two/three weeks after T.S Fay and it has been reported that there has been new developments of two new storms, <a href="http://www.wunderground.com/tropical/tracking/at200807.html">Hurricane Gastav</a> and <a href="http://www.wunderground.com/tropical/tracking/at200808.html">T.S Hanna</a>. Gastov will pass Miami this weekend, while causing a lot of rain. I wanted to go to Miami Keys this Labour holiday, but due to high winds of Gastov (apx. 50 MPH), I might have to rethink of this visit. I wish I could go there and enjoy before I'm gonna stuck with course works!. Most of the people worry about T.S Hanna. She's going to do a major chaos. Let's hope for best and prepare for worst!.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com0tag:blogger.com,1999:blog-3060352950402186999.post-10501109300190193322008-08-23T19:47:00.000-07:002008-08-23T20:23:33.771-07:00Was I in petite Olympic ?Last week I had the graduate student orientation program and a lot of events in <a href="http://www.miami.edu/">University of Miami</a>. It was quite an unique experience. In all of these activities I had the chance of meeting a lot of students from over 50 countries. It was a vast diverse community which consist of student's who are pursing studies to become film directors, actors, micro biologists, lawyers, singers, composers, doctors, business administrators, physicians, engineers, scientists, and many more. When we were travelling to University's president house, one of my newly formed friend from Cuba got a call and she said "I met a lot of interesting people from Sri Lanka, China, Russia,.." and the first response she got was, "Are you in Olympics ?". At that time it hit me that this is a form of Olympic, where students from all over the world try to excel themselves to become the pioneers in their respective areas. There are so many things to be explored and I am just started to do so.Saminda Abeyruwanhttp://www.blogger.com/profile/02787687751174107090noreply@blogger.com2