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:
And install it like:
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:
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
And it all worked. I love when things just work!Read Full Post | Make a Comment ( 1 so far )
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.
|cat /proc/cpuinfo||psrinfo -v -p|
When I find more, I’ll put them up here. Suggestions welcome ofcourse!Read Full Post | Make a Comment ( 1 so far )
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:
scp ~/.ssh/id_dsa.pub email@example.com:
And, on the machine you want to access:
Is it that easy? Yes, it is that easy!Read Full Post | Make a Comment ( 2 so far )
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
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.
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:
Searching for disks…done
AVAILABLE DISK SELECTIONS:
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:
After that was done, I needed some quotas. So I created some filesystems:
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:
and can easily be checked with the following command:
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: