Author: SAZILI MUHAMMAD at | 0 comments | Read more
Install Solaris 10 x86 on VMware Workstation 6.5 (Part 2)
In this part, I will show you how to prepare VMware settings for Solaris 10. Currently my main OS is Windows XP and I suppose to install the Solaris 10 as guest OS in VMware. This steps is very straight forward and easy to follow. I prepare this VMware setting for Solaris 10 under custom setting, eg: Disk size and Memory size. So that it will be suitable if I want to install application server or database server in Solaris 10.

PRE-INSTALLATION

To run the VMware Workstation 6.5, I follow these steps: Start > All Programs > VMware > VMware Workstation.

In this screen, I click New Virtual Machine in the right pane. It will open the popup window, then I choose Typical (recommended), then click Next.

I click Installer disc image file (iso) option, then I locate the my Solaris 10 ISO file in my local computer. And VMware should detect the Solaris 10 automatically. Then Next.

In the next page, I fill the Virtual machine name and I choose the Location where my the Solaris 10 will be installed. Then I click Next

It will ask me to fill the Maximum Disk Size for my Solaris 10. By default it will choose 8.0 GB, but for my Solaris 10, I choose 20 GB. Then, I click Next

Here is the summary of my Solaris 10 settings.
Here, I can just click Finish but I won't do that first!
I will change the memory size to 1024 MB instead of only 540 MB (default). Then I click Customize Hardware... button.

Then I change the Memory to 1024 MB in the right pane. With changing to higher memory, my Solaris 10 will be running faster, and also it will be suitable if I install other application inside my Solaris 10, like Database Server or Application Server.

Then I click OK.

It will come back to the previous screen, then I click Finish.

Until here the preparation is finished, then it will automatically continue to the next step.

Continue to Part 3...


Author: SAZILI MUHAMMAD at | 0 comments | Read more
Install Solaris 10 x86 on VMware Workstation 6.5 (Part 1)


VMware is a virtualization software whereby we can install OS inside OS. In this article, We will show how to install Solaris 10 x86 inside VMware Workstation 6.5. Currently, we have already installed VMware Workstation 6.5. So we will not explain how to install VMware Workstation 6.5.

DOWNLOAD SOLARIS 10 x86

The first step, I will download the software from Sun Microsystems website: http://www.sun.com/software/solaris/get.jsp#download

I choose Free Solaris 10 10/08 download then in the listbox I choose Free DVD download FULL image. I click Download button, then it will ask me to provide some informations.

In the next page, I fill the form like these followings:
1. Platform: Solaris 10 OS (x86)
2. Language: Multi-language
3. I check the checkbox I agree to the Solaris 10 10/08 Operating System License Agreement
4. I put my username and password.

(If I haven't registered yet, I need to click Register Now)

Then I click Log In and Continue.

Again, Sun Microsystems will ask me to fill Solaris Pre-Download Survey. I just fill in whatever I need in that survey. After that, I click Submit and Continue button.

I click link sol-10-u6-ga1-x86-dvd.iso
The file size is around 2.2 GB. After that it will download the ISO file automatically.

The process will take less than 1 hour because I have broadband internet connection. I just need to wait, sit down, and enjoy my coffee until the download is finished. :D

Continue to Part 2...

« Previous

123456


Author: SAZILI MUHAMMAD at | 0 comments | Read more
Brief Tutorial JBoss 5.0 Application Server in Solaris 10
JBoss AS (Application Server) is the most powerful open source Application Server in the market now. It includes leading open source technologies for building, deploying, and hosting enterprise Java applications and services. In this tutorial, I will show you how to install JBoss AS 5.0 in Solaris 10, including how to start-up server, shut-down server, deploy-undeploy application in JBoss. Let's take a look...

DOWNLOAD AND INSTALL JBoss 5.0 AS

First of all, we need to download JBoss 5.0 AS. I can download from http://sourceforge.net/project/downloading.php?group_id=22866&filename=jboss-5.0.0.GA.zip

JBoss AS is independent OS platform.

Assumption, my download file is in /Desktop folder.

Open the X terminal

First, I have to check the disk space in /opt to make sure that it still have enough space for installation. (I will put the JBoss folder inside /opt folder), using this command:
# bash
bash-3.00# df -h /opt
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0        7.7G   3.7G   3.9G    49%    /

Now, I will unzip the JBoss file to /opt folder:
bash-3.00# unzip /Desktop/jboss-5.0.0.GA.zip -d /opt/

I just wait until the unzip process is finished.

Basically JBoss installation is just to unzip the file to the destination folder.

Then the JBoss folder (jboss-5.0.0.GA) should be exist in the /opt folder. To verify the folder I type this command:
bash-3.00# ls -la /opt/
total 12
drwxr-xr-x   6 root     sys          512 Apr 20 21:12 .
drwxr-xr-x  41 root     root        1024 Apr 20 20:16 ..
drwxr-xr-x   3 root     bin          512 Apr 12 13:20 SUNWits
drwxr-xr-x   4 root     bin          512 Apr 12 13:35 SUNWmlib
drwxr-xr-x   8 root     root         512 Dec  4 21:28 jboss-5.0.0.GA
drwxr-xr-x   8 root     root         512 Apr 12 13:45 staroffice8
bash-3.00#

START AND STOP JBoss 5.0 AS

Start (run) the JBoss AS:
bash-3.00# cd /opt/jboss-5.0.0.GA/bin/
bash-3.00# ./run.sh -b 0.0.0.0

I just wait the process until the server is running.

To verify the server is running, notice in the console: ...Started in 1m:56s:165ms
By default JBoss will use port 8080. If your port is conflict with other web server, you can change the JBoss port number to something else.

Now, I open the browser then type in:
http://localhost:8080
or using IP address
http://192.168.56.132:8080

If the JBoss AS is running, the browser should look like this picture

Stop (shutdown) the JBoss AS:
bash-3.00# cd /opt/jboss-5.0.0.GA/bin/
bash-3.00# ./shutdown.sh -S
Shutdown message has been posted to the server.
Server shutdown may take a while - check logfiles for completion

DEPLOY AND UNDEPLOY J2EE WEB APPLICATION in JBoss 5.0 AS

In this section, I will deploy example Struts 2 web application in JBoss AS.
We can download the example application from http://struts.apache.org/download.cgi.

Choose: Struts 2.1.6 > Example Applications > struts-2.1.6-apps.zip

Suppose we download the file in the /Desktop folder.
First of all, we need to unzip the file. In here I will unzip in the /export/home folder:
bash-3.00# unzip /Desktop/struts-2.1.6-apps.zip -d /export/home/

After the unzip is finished, struts-2.1.6 folder should exist inside /export/home folder.
To verify it use this command:
bash-3.00# ls -la /export/home/
total 15256
drwxr-xr-x   5 root     root         512 Apr 21 12:13 .
drwxr-xr-x   3 root     sys          512 Apr 12 13:11 ..
drwx------   2 root     root        8192 Apr 12 13:11 lost+found
drwxr-xr-x   3 root     root         512 Jan  5 21:29 struts-2.1.6
-r--r--r--   1 root     root     7783312 Apr 12 22:31 vmware-solaris-tools.tar.gz
drwxr-xr-x   7 root     root         512 Mar 27 11:47 vmware-tools-distrib

To deploy the web application, we just copy the struts2-blank-2.1.6.war file to the /opt/jboss-5.0.0.GA/server/default/deploy folder:
bash-3.00# cd /export/home/struts-2.1.6/apps/
bash-3.00# cp struts2-blank-2.1.6.war /opt/jboss-5.0.0.GA/server/default/deploy
bash-3.00#

To verify that the file is copied successfully, use this command:
bash-3.00# cd /opt/jboss-5.0.0.GA/server/default/deploy
bash-3.00# ls -la | grep war
drwxr-xr-x 6 root root 512 Dec 4 17:23 ROOT.war
drwxr-xr-x 6 root root 512 Dec 4 17:23 jmx-console.war
-rw-r--r-- 1 root root 4157406 Apr 21 12:30 struts2-blank-2.1.6.war

Now we start the application server:
bash-3.00# /opt/jboss-5.0.0.GA/bin/run.sh -b 0.0.0.0

This command is very straightforward, but you can use other command which mentioned in previous section.

During the JBoss AS is running, it will automatically deploy the war file.
Notice this message in the JBoss console:
13:40:37,159 INFO [TomcatDeployment] deploy, ctxPath=/struts2-blank-2.1.6, vfsUrl=struts2-blank-2.1.6.war

After the server is running, now we can ready to use the our sample Struts web application.

Now open the browser and type in http://192.168.56.132:8080/struts2-blank-2.1.6. We should see the Struts application as in this picture:

To undeploy the web application is even more simple than deploy. What we need to do is just delete the war file. It can be done during the server is running or server is offline. Suppose here, the JBoss AS is running.

To undeploy the web application:
bash-3.00# cd /opt/jboss-5.0.0.GA/server/default/deploy
bash-3.00# rm -rf struts2-blank-2.1.6.war
bash-3.00#

After deletion, in the JBoss console will automatically undeploy this web application.
Notice this message in the console:
13:42:57,274 INFO [TomcatDeployment] undeploy, ctxPath=/struts2-blank-2.1.6, vfsUrl=struts2-blank-2.1.6.war

Now, if we browse again the application, browser couldn't find our Struts application anymore. See the picture:

YUP, IT'S DONE...!!
It is the end of our experiment. Please let me know if you have any other experience on this.