Thursday, April 16, 2009

Clone virtual server.


Physical OS: Suse Linux Ent. 11.0 (SLES).
Virtual machine OS: OpenSUSE 11.0

This documentation is base on OpenSUSE 11.1

When you setup physical server, your system (in this case : xen), will built Domain-0. Inside Domain-0 you can insert virtual server as many as you wish. For the first virtual server, you must install by using CD or by getting it form any source.
The system, let say you want to develop (create) ten virtual server in your physical server, it is not economic (in term of time saving), if you use manual ways. Setting up virtual server (xen for Open SUSE 11.0) on SLES 11.0 is about ten to fifteen minutes. This is my experience doing this technical works.
So, if you can clone the system, you just copy the template of virtual server and then just adjust the IP address and its name. For xen, this template is located in the /etc/xen/images//disk0.

For example;
I already created a virtual server named as MYSVR01_01, and I want to create ten vm's named as MYSVR01_02, MYSVR01_03,.........., MYSVR01_10, MYSVR01_11.

First, to make sure you can fully duplicate the template, you must shutdown the virtual server. If you copy the template while the server is running, you should get the full copy, but at the stage to create virtual machine, you can get an error message: Kernel not found!



Ok, to duplicate this you must login as root into your system (physical system, in this example, my physical system named as MYSVR01). Then insert this command;

cd /etc/xen/images

If you check the current template, it will tell you that MYSVR01_01 already there. And inside MYSVR01_01 there is disk0. The disk0 keep all data needed to built new vm.

Then you can copy disk0 to your vm lists from 02 to 11, by using this command

list='MYSVR01_02 MYSVR01_03 MYSVR01_04 MYSVR01_05 MYSVR01_06 MYSVR01_07 MYSVR01_08 MYSVR01_09 MYSVR01_010 MYSVR01_11'

Then do this command
for i in $list; do cp -r MYSVR01_01 $i done

Then you must wait a moment until disk0 is duplicated in each vm folder.

When the work done, turn to root, by typing

cd /etc

then

cd ..

Insert command

yast2 &

And select, Create Virtual machine.



Then select 'I have a disk or disk image from an installed operating system'



Then click forward, select the OS type.



Click forward, then write your setup for new virtual machine, such as name, memory, and Disk.



Important!
For Disk, please select hardisk, and find the template disk named as disk0 in the directory MYSVR01_02.

Then click OK.

Virtual machine console will be automatically run, and until you reach the login part for that virtual machine.

After signing in, just type command yast. And the blue windows will appear.



Select Network Device and then Network Setting.
Just rename the hostname, IP Address, and other necessary data in this windows.

When you replaced all needed part, you can check the configuration by using this command:

ifconfig

At this stage, the command prompt still remain as the old name, but when you exit (command: exit), the prompt name will be changed to the new name.

Monday, April 6, 2009

Liferay 5.2.2 : How to setup username and password with 'test'.

Why did you failed to sign in as usual (test@liferay.com)?
In Liferay 5.1.2 you can login as test@liferray.com and the default password also 'test'.

For the newest version that is Liferay 5.2.2, the current username is bruno@7cogs.com and password is 'bruno'. However, we can still manipulate this data to login as test@liferay.com and its password as 'test'. How?

First, we must edit file portal-ext.properties (C:\liferay\tomcat\webapps\ROOT\WEB-INF\classes). If the file not exist, just create it by using write editor (example: notepad), and save it as ' portal-ext.properties'. Inside this file, you must put these values.

default.landing.page.path=/web/guest/home

locales=en_US, ms_MY
# the term of language can be set as your own.

locale.default.request=true
theme.css.fast.load=false
javascript.fast.load=false
layout.template.cache.enabled=false
velocity.engine.resource.manager.cache.enabled=false
theme.shortcut.icon=infra.png
company.default.web.id=skali.net
#this id also can be renamed or just keep it as liferay.com. In my case, I will use the domain name as skali.net, but the username and passwoord remain as 'test'.

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/liferay?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
#after /localhost, you can use any database name. And all data will be populated in your database.

jdbc.default.username=root
jdbc.default.password=root
#this is the username and pasword to access your mysql databse.

schema.run.enabled=true
schema.run.minimal=true


How to customise your page? That means we dislike to see previous works from 7cogs.
Ok, just remove folder sevencogs-hook in the webapss. (C:\liferay\tomcat\webapps).
Restart your liferay server. (statrup.bat / startup.sh – depend on your system platform.)

Then your page will be like this. See figure below.




Monday, March 9, 2009

Open Source Review


Nowadays people in IT or ICT companies like to talk about Open Source. It is a good practice to use open source software as an alternative to reduce budget. In Malaysia, the phrase of 'Open Source' turned to a popular term when MSC or next to be MSC company impelement it to their operation. There're many reports that support its usage. Open Source Master Plan by MAMPU is the influenced and authenticate party to support this matter. Somehow, there is a 'war' between open source and free software. You can refer this article to understand the scenario.


#-#--#-#-#--#-#-#--#-#-#--#-#-#--#-#-#--#-#-#--#-#-#--#-#-#--#


Most popular open source links are listed below

Wednesday, March 4, 2009

PPSMI dialogue: A brief response

A cognitive linguistic theory said, you can able to think and express your ideas better if you use your own language. It is proven when a doctorate student from Japan when arguing some issue with foreigner, he prefer to use Japanese language. He hires a translator to help him to face the debate. All over the world, Japanese manager prefer to use Japanese as the main language. There is advantage in term of language bonus when you can speak and writes in Japanese. I have an experience long time ago when dealing with manager in multinational company of Japan based. They said, we not shame to use our language. We not shame because we cannot speak English very well. Even we can speak fluently in English, it is better to think and talk is our language.

When we need to educate our children, we must use mother-tongue language because they are exposed to it. They communicate with the environment, look and feel then interact with things around, and then were told all those things. They listen to their mums and fathers and then start knowing anything that they need to. So, what is the critical issue of educating the children is strange language? To empower them with it? Or to show your amazement to the language? Or to put yourself in the global stream? It is a huge accident when we said, “To improve a skill in that language, we must use it in our learning.” Why not just strengthen or add more curriculum module in that language itself? I already response to the Math and Science in English (MsiE), which is applied wisely in Malaysia since 2003. After nine years, the score in The Trends in International Mathematics and Science Study (TIMSS) for Malaysia is below the average; 500. For 2007, the score is 474. According to the TIMSS 1999 international report, Malaysia was placed 16th in mathematics and 22nd place in science in the scoreboard for 38 countries (Mullis et al. 2000). The average mathematics and science score for Malaysian eight graders was 519 and 492 respectively, slightly above the international average of 487 and 488 respectively.


According to Mr. Shamsul Iskandar Mohd Akin, from the beginning to resolve English performance among International Islamic University of Malaysia (IIUM), university run Matriculation program which is expose more time to student practice English. So, in earlier stage especially for students in primary and secondary schools, we need to add more module to enhance English. Yes, to master in it, we must talk, think and even dream in that language.


A brief note after attending Math and Science in English dialogue, PPSMI: Building on destroying the Nation? on Mar 4, IIUM.
Congratulation to all panelists. >> MP Kubang Kerian (PAS), MP Pasir Salak (UMNO), AMK Chairman (PKR), GMP Chairman, and Sec. PKPIM.


Poll result for the Question: Adakah wajar PPSMI diteruskan? (Did PPSMI must be hold?)
Ya (Agree) : 57 (14.84%)
Tidak (Disagree) : 327 (85.16%)