Angelo Joseph's Weblog The Technophiles

Saturday Feb 21, 2009

Yes, that's right... Milax who ( http://www.milax.org

- LiveCD/LiveUSB bootable OpenSolaris based on build 105 ( as of Milax 0.3.3 )

- even better is the VirtualBox image available for download at ~140MB ( http://virtualbox.wordpress.com/images/milax/  )

- You may need a 7-zip uncompression utility like I did ( http://www.7-zip.org/  )

- Using VirtualBox 2.1.4 ( www.virtualbox.org  ), we create a new VM

    - Solaris/OpenSolaris

    - Memory of 1GB ( if you can spare it )

- Add existing harddrive ( Milax-0.3.2-X86.vdi after uncompressing with 7-zip as Primary Master )

    - click next and continue until you need to just "Start" the VM

    - passwords are root/root, and milax/milax

Voila!

Wednesday Mar 05, 2008

I found this quite an easy proposition to get up an running, I hope you find it valuable:

(1) Download & Install Indiana (preview2 at this time)

- download the CD ISO image from here  http://opensolaris.org/os/downloads/on/

- set up a new VM in VirtualBox which mounts the ISO image of Indiana and start the VM

   - note: ensure you have adequate memory and disk space ( at 600MB RAM, 5GB disk space )

( this should boot you into a LiveCD instance of OpenSolaris )

- double-click the install icon on the desktop and you are away...

(2) Download the AE network drivers ( the only glitch in the seamless process so far )

- use the ISO for convenience sake: http://blogs.sun.com/alanbur/resource/ae-2.6.0a.iso.bz2

- shutdown opensolaris, mount the AE ISO image instead and Start the VM

# cd cdrom/cdrom0   ( this should get you to the AE tarball and follow the steps in README.txt as root )

# make install  ( instead of  "make" in  Step 6 in the README.txt )

# ./adddrv.sh

 (following the rest of the steps will cater for dhcp and make sure your settings stay around on your next reboot )

** in about 5 seconds the kernel autodetected my network settings from the VirtualBox NAT interface and i was away...     :)

( credit to the blog entry here for kick starting things for me -  http://blogs.sun.com/alanbur/entry/kicking_both_tyres_together_virtualbox )

 

Thursday Feb 14, 2008

With the fresh acquisition news of VirtualBox product, I tried the download from here:

http://www.virtualbox.org/wiki/Downloads

 To find that it is quite efficient, not just the 20MB download, but also the speed of the app when running.

 A simple test with DSL, from here:

ftp://ftp.oss.cc.gatech.edu/pub/linux/distributions/damnsmall/current/dsl-4.2.5.iso

And we can start testing, once the VirtualBox app is installed

(1) Create a New VM

Click the "new" icon and follow all the defaults ( note: I did not change any of the default settings the first time around )

(2) Boot from the DSL ISO image

Click on the "CD/DVD-ROM"  on the "Details" tab

Click on the ISO radion button, then select the dsl *.iso file you just downloaded

(3) Boot the DSL VM from the ISO

 Click the "Start" icon

... after a few boot screens you should have a working desktop

(4) Install to Hard Drive

This is the only tedious step, since you have to create your hard drive, virtually....

click the terminal icon on the bottom left of the screen in the panel

- type "sudo -s"
- type "cfdisk"
- Select "Y" when asked Do you wish to start with a zero table
- You will now see your cfdisk applicaton. Use the arrow keys and select "NEW"
-
Select "Primary" then select the size (by default it should be 2GB, but VirtualBox will grow this on-demand )
- Select "Bootable" (you see the word "Boot" under the Flags coloumn)
- Select "Write"
- When prompted with a (Y/N) type "YES" and hit enter.
- Select "QUIT"
-
now back at the command prompt type "mkfs /dev/hda1"
- now type "dsl-hdinstall"
- you will be prompted for the target drive type "hda1" and press enter
- Select "Y" for multiuser logins
- Select "Y" for ext3 filesystwm
- Select "Y" to continue.
- Select "Y" when asked "Proceed to install a boot loader"
- Type "g" for GRUB
- Type "Y" when prompted for reboot
- You will see DSL shut down and press "Enter" when prompted
-
Important: At the VirtualBox boot screen, click "Machine->Pause" from the Menu
- Click "Devices->Unmount CD/DVD-ROM" from the Menu
-
Click "Machine->Resume" from the Menu, and continue booting from the Hard Drive
- You should be prompted to enter a password for the "root" user and the "dsl" user.
- If it starts and you see your DSL desktop you have succesfully intalled DSL to your Hard Drive!

 For some neat tricks to DSL, try clicking on the MyDSL icon on the Desktop to install Apps/Games/Utilities instantly to your installation

Enjoy!




 

Friday Mar 16, 2007

 

This install assumes you have followed similar instructions for Glassfish from [here]

* assumes Glassfish v2B39 nightly
* assumes Java 1.6

Easy Evaluation Option ( for suits...again )
(1) Download Milestone 1 build:
copy file from here: https://portlet-container.dev.java.net/public/Download_jar.html?url=https://portlet-container.dev.java.net/files/documents/5463/51302/portlet-container-configurator.jar

(2) Install Portlet Container
Run jar file:
> java -jar portlet-container-configurator.jar d:\dev\glassfish  d:\dev\glassfish\domains\domain1

-OR-

> java -jar portlet-container-configurator.jar
(which gives you this eye candy below)

(3) Restart Glassfish
> asadmin stop-domain domain1
> asadmin start-domain domain1

(4) Go to URL
http://localhost:8080/portletdriver

(5) Install Sample Portlets

I used the following samples from the portlet-repository [here]
- flickr
- georss
- youtube
- iframe 

Just a click off the Admin tab and you have a screen like this... 

 

 (6) Voila!

Click the Portlets tab and you have the view of the implemented portlets



 

Geeks Evaluation Option ( PG - programmer guidance recommended )

Latest CVS Build Option

(1) Create project directory ( eg portlet-container-dir )
> md portlet-container-dir
> cd portlet-container-dir

(2) Subversion is your friend
- get & install svn from http://subversion.tigris.org/project_packages.html
> set PATH=%PATH%;<SVN_INSTALL>/bin

(3) Checkout source
> svn checkout https://portlet-container.dev.java.net/svn/portlet-container/trunk portlet-container --username guest

(4) Maven should also be your friend
get & install maven from http://maven.apache.org/download.html
> set PATH=%PATH%;<MVN_INSTALL>/bin

(5) Compile & Build sources
> cd portlet-container-dir
> mvn package
> mvn verify

(6) Install portlet-container package
> cd portlet-container-dir/dist
> java -jar portlet-container-configurator.jar d:\dev\glassfish  d:\dev\glassfish\domains\domain1

(7) Restart Glassfish
> asadmin stop-domain domain1
> asadmin start-domain domain1

Fine!

Resources:

 

OpenSSO on Glassfish ( for suits )

Assuming that you have followed the installation of Glassfish from [here] 

(1) Get the Bits
- copy openssodemo.war from http://download.java.net/general/opensso/nightly/amserver/20070105/
- put this file into <glassfish_install_dir>/domain/domain1/autodeploy
- then go to http://localhost:8080/opensso

(2) Setup OpenSSO

- this happens automatically by redirecting to the opensso configurator on the first attempt:
- you should see this url:  http://localhost:8080/opensso/configurator.jsp

- for a basic setup, enter admin password details and use the file system as a data store
- then click "configure" in the top right

(3) Login Screen for OpenSSO
- you will be presented with a login screen for Sun Java System Access Manager


- login using:
uid: amadmin
passwd: adminadmin
( the values above should be what you have entered in the configurator screen just before )

Success!


Resources

  • good tip on reinitialising OpenSSO [here]



The following is a quick cheatsheet from scratch to get GlassFish V2 up and running 

(1) Install JDK6 from http://java.sun.com/javase/downloads/index.jsp
- JAVA_HOME=<java install dir>
- PATH=%PATH%;%JAVA_HOME%/bin

(2) Install Glassfish v2b39 from https://glassfish.dev.java.net/downloads/v2-b39.html
- java -Xmx256m -jar glassfish-installer-v2-b39.jar
- PATH=%PATH%;<glassfish install dir>/bin


(3) Setup Ant 1.7.0 from the Glassfish distribution
- ANT_HOME=<glassfish install dir>/lib/ant
- PATH=%PATH%;%ANT_HOME%/bin

(4) Setup Glassfish v2b39
- cd <glassfish install dir>
- ant -f setup.xml
- asadmin start-domain domain1


* and we're done! *

(5) Test Glassfish Setup
http://localhost:8080/

(6) Test Helloworld
copy hello.war from http://glassfish.dev.java.net/downloads/quickstart/hello.war
to /domain/domain1/autodeploy
then go to http://localhost:8080/hello


(7) Test Glassfish Admin Screen
go to http://localhost:4848/
uid: admin
passwd: adminadmin


Monday Feb 28, 2005

not sure whether this is something to be proud of, but....

Thursday Jun 24, 2004

can't be all bad in the summertime...