Open Solaris

Installing Tomcat 5.5 or Tomcat 6 on OpenSolaris

Posted on December 4, 2008. Filed under: Open Solaris |

Thanks Willi Schiegel on the OpenSolaris mailing list, I managed to install Tomcat 6. Ofcourse, it’s pretty easy, once you know how to do it.

These are the steps involved:

Download the Tomcat package, unpack it:

bunzip2 CSKtomcatbundle_1.3.1_i386.pkg.bz2

And install it like:

pkgadd -d CSKtomcatbundle_1.3.1_i386.pkg
Advertisements
Read Full Post | Make a Comment ( None so far )

Installing GlassFish on OpenSolaris 2008.05

Posted on December 3, 2008. Filed under: Open Solaris |

Today, I tried installing SqueezeCenter and Tomcat. Both failed, and until now, I haven’t found a solution. I did, however, find a workaround for the Tomcat installation.

Probably I can install Tomcat by downloading it from the Tomcat site, unpack it, and run it, but I don’t want to do this: I’d rather use the OpenSolaris packaging system. However, it seems there isn’t a package available for Tomcat. Atleast, I haven’t found it. So, my initial thought was to install JBoss instead. I’ve good experiences with JBoss, and for me, JBoss is a good replacement (or superset) for Tomcat. However, I also couldn’t find a proper download for this. So, why not install GlassFish then?

I’ve never worked with GlassFish before, but installing and configuring wasn’t a problem at all. I just followed the instructions I found here, and did the following steps:

1) pkg set-authority -O http://pkg.opensolaris.org:80 opensolaris.org
2) pkg refresh
3) pkg install glassfishv2
4) Then run the command to create a default domain1

/usr/appserver/bin/asadmin create-domain –user admin –adminport 4848 domain1

During the creation of new domain
a)type (typical default) admin password : adminadmin
b)type (typical default) master password : changeit

5) Then run the command to start the newly created default domain1
/usr/appserver/bin/asadmin start-domain –user admin domain1

6) Now you should be able to access the GlassFishv2 on OpenSolaris

GlassFish Admin Console
http://hostname_or_ip_address:4848

GlassFish HTTP
http://hostname_or_ip_address:8080
https://hostname_or_ip_address:8181

And it all worked. I love when things just work!

Read Full Post | Make a Comment ( 1 so far )

cpuinfo and top on Solaris

Posted on November 13, 2008. Filed under: Open Solaris |

There are some differences between Linux and Solaris commands. I’ll try to give a brief overview here of the differences, starting with two commands I encountered yesterday.

Linux Solaris
cat /proc/cpuinfo psrinfo -v -p
top prstat

When I find more, I’ll put them up here. Suggestions welcome ofcourse!

Read Full Post | Make a Comment ( 1 so far )

Logging in on Unix without a password, aka public key authentication

Posted on November 12, 2008. Filed under: Open Solaris |

My progress of my OpenSolaris configuration is going at a steady pace, and it’s now time to do some migration of data. It has been written a thousand times before, but who cares, I’m going to write it again:

I want to login without passwords, so I can copy stuff using my laptop, but it in the background and get some well deserved (and needed) sleep.

It actually kinda easy, if you know how to do it:

On the machine which needs access:

ssh-keygen -t dsa
scp ~/.ssh/id_dsa.pub username@server.com:

And, on the machine you want to access:

cat id_dsa.pub >> .ssh/authorized_keys

Is it that easy? Yes, it is that easy!

Read Full Post | Make a Comment ( 2 so far )

Configuring Open Solaris 2008.05

Posted on November 12, 2008. Filed under: Open Solaris |

This is my first blog item on this blog ever, and it’s not about Groovy, nor Grails, nor Java. This one is about installing OpenSolaris 2008.05, and some of my experiences while doing so.

First a small disclaimer: my current OpenSolaris knowledge is limited, and I have only started playing with it for around 20 hours or so.

My goal is to build a media server, which should serve my Squeezebox. For that, I’ve bought some hardware, including:

  • 4 x 750gb Samsung HD’s
  • ASUS Stuff
  • 2 GB ram
  • etc..

Which should result into a Network Attached File Storage with 2 TB of HD. This is accomplished by using RAID Z on a ZFS filesystem, but more about that later. I thought about using Ubuntu + LVM + RAID 1, but I heard that it promotes datacorruption, since it doesn’t do checksum’s like ZFS does, so I skipped that idea and went straight to OpenSolaris. Well, almost straight anyway: I first tried Solaris 10, but since that one didn’t boot (Image doesn’t fit memory error or something) I decided to go for OpenSolaris. Never worked with it, and a nice learning experience, so I thought.

ZFS
What I first wanted to do, is to format all the HD’s, partition them, mount them, and put them into a RAID something configuration. Well, it turned out I was quite wrong here.
1) Partitioning is something which is apperantly not done in Solaris
2) Formatting IDE disks is something from the past?
3) Mounting them….well, I don’t think so!

What I had to do was: type format, which resulted in this dialog:

-bash-3.2# format
Searching for disks…done

AVAILABLE DISK SELECTIONS:
0. c4d0
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
1. c4d1
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@1,0
2. c5d0
/pci@0,0/pci-ide@1f,2/ide@1/cmdk@0,0
3. c5d1
/pci@0,0/pci-ide@1f,2/ide@1/cmdk@1,0
4. c6d0
/pci@0,0/pci-ide@1f,5/ide@0/cmdk@0,0

and press CTRL+C after that. I needed that for a listing of all the available disks, which are identified after the number with the dot. In my case, c4d0, c4d1, c5d0, c5d1 and c6d0 are my disks, where the last one is my boot disk.

To make this a RAID Z ‘cluster’, I only had to type this:

zpool create tank raidz c4d0 c4d1 c5d0 c5d1

(Thanks rskelton!!)

After that was done, I needed some quotas. So I created some filesystems:

zfs create tank/media
zfs create tank/applications

And the filesystems were created. Easy as that! Next, the quota could be set, since I don’t want my media to overrule my running applications. This could be done with the following command:

zfs set quota=1.95T tank/media

and can easily be checked with the following command:

-bash-3.2# zfs get quota tank/media
NAME PROPERTY VALUE SOURCE
tank/media quota 1.95T local

The next thing I have to do, is to install some applications on it, but first disable the GDM/X graphical login window. This can be done like this:

svcadm disable gdm
Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...