The end of summer

September 24th, 2007 , 7:55

Over the weekend i hung the tent out to dry before putting it away,washed the windows in the sun light and went to pick blackberry’s on Sunday. This as i sit and watch the rain poor down on a Monday morning can only mean one thing.

The End of Summer 🙁

But the begining of a new season of copper coulor leaves, crisp Mornings, the sounds of the geese flying.

The start of Autoum 🙂

Being Busy

September 20th, 2007 , 9:25

Long time no posts but that’s because we’ve been busy. Work and life in general but nothing worth blogging about.

I have however done my 5km event and ended up walking it due to sore joints. Hope this doesn’t mean I’m getting all old and unable to do stuff because of bad joints. It was a complete opposite of last year – I was at the very back this year and didn’t wear a watch so didn’t time myself and only ran a very small bit of the course (about the last kilometre). So no idea how long it took so just going for the average walking time of 45 minutes. It was like Oxford Street on a Saturday in December only with everyone going the same direction.

 My sponsorship page should be up for another month.

Next week going to see St Joan at the National Theatre. Hopefully have more to blog about!

Frog Blog

So Lime wire writen in Norfolk ?

August 23rd, 2007 , 18:17

Just upgraded my limewire pro installation witch is a pice of software i have used for meny years. How ever some distebing things on the horizan thay now no longer ship a linux rpm only debts ?. So i had to down load the other linux witch is basical a zip file with the jars in it. Luckaly if you unzip the arcive localy and copy it over your privaus rpm in stall witch on my fc6 system was in /usr/lib/Limewire. It should work how ever the runLimewire.sh supplied with the new limewire have control codes in it (witch not showup under most editeds) but can be seen in a hex editer the codes are /r (hench the 🙂 as i,m well know for puting rs in to words as i write. This time i had to renove the /rs 🙂 .

To do this in one shell window vi the runLimewire.sh in a new shellwindow vi a new temp file. copy using the third mouse button methos (or two button emuation) from the old in to the new. this only copies the seeable text and removes the othendings /rs. save the new file. rename the old file copy the new file in to the /usr/lib/Limewire dir, rename and you may have to change the writes chmod 755.

For me this has work and i can now run new limewire from my old start buttion.

Stratford-upon-Avon

August 13th, 2007 , 10:03

Otherwise known as shows, food, and walking. Oh and that Shakespeare bloke who apparently had something to do with the town I guess since his name is on just about everything. A friend and I went up on Saturday morning and came back on Sunday afternoon and had a great time in between.

 We went up to see The Penelopiad at the Swan Theatre. I’d never been in the Swan and it’s a lovely space. I haven’t been to the Courtyard Theatre either and having now seen photos I want to go! But we decided since we were going up to see the show we might as well hang around and see a bit of the town. We got lucky as well and the weather was wonderful. We finally have summer here.

 The show was, well, uneven. There were some directorial and design decisions that just should not have been made. One local reviewer was dismissive of the script, but the script was actually very good; it was the directorial decisions that were on the dodgy side. There was some very strong acting and over all it was enjoyable, but there were a few moments that were just unfortunately cringingly awful. Actually the review in the Guardian by Michael Billington really says what I want.

After the show we wandered around Stratford. Walking to the theatre we realised the Bulldog Bash was going on as there were hundreds of bikes around, most parked up along the waterfront. So after the show we had a look at the bikes and headed up to the birthplace of that poet bloke. Got tickets for the three properties in town and went through the house and gardens. We saved the other two properties and the church for Sunday. Seeing the town and houses was fun. The church is lovely, the houses are well kept and interesting, and a lovely time was had. Generally though we just took it easy, took our time looking around, and lazed by the river watching the boats and swans.

Lovely weekend and really must do it more often. Hmmm, the RSC are doing every one of the History plays, all in order, over a week or so.

Frog Blog

Howto install Tomcat 5 on CentOS 4

July 31st, 2007 , 8:04

Howto install tomcat 5 on CentOS 4

This has been taken from serral online instruction and combinded with pritical IT Works 🙂

This howto is assuming that you have a working, minimal installation of CentOS. I will repeat that because if not properly understood it will cause you lots of headaches later. A MINIMAL installation of CentOS. This means that when you are doing your installation, you should scroll to the bottom and check that pretty little box that says “minimal” so that only the bare essentials are installed. We will let yum take care of the rest.

title=”Setting_up_jpackage.org_Enviroment” name=”Setting_up_jpackage.org_Enviroment”>

Setting up jpackage.org Enviroment

Steps

   * Install 'jpackage-utils' (if not already in your system)

   * Install at least one JDK

   * Subscribe your system to a repository and install the package you want (dependencies will be brought in automatically)

jpackage-utils

Most Linux distributions now ship with a jpackage-utils RPM installed. If yours doesn’t, you can obtain this RPM using Repoview or the JPackage repository browser. YOU MUST HAVE A ‘jpackage-utils’ RPM INSTALLED ON YOUR SYSTEM BEFORE INSTALLING A JDK. JDK

Due to different licensing conditions, we only provide nosrc RPMS for the JDKs, or a ‘-compat’ RPM for the Sun JDKs. BEA and IBM provide us with the specifications for their JDKs RPMs, which are JPP compliant. We make them available as nosrc RPMs. The RPM on the Sun web site requires that a corresponding ‘-compat’ RPM from JPackage be installed to become compatible, or alternatively one can also rebuild a nosrc RPM for it.

YOU MUST HAVE AT LEAST ONE JDK INSTALLED BEFORE INSTALLING ANY OTHER JAVA PACKAGE.

ATTENTION: Please install (at least) _both_ the java-<version>-<provider> _and_ the java-<version>-<provider>-devel for a complete SDK.

(the ‘java-<version>-sun-compat’ provides everything for the Sun JDK case, so there is no -devel). Notes

If the -compat RPM for the latest Sun release is not yet available, you can request an update via the mailing list.

If the current Sun JDK is not yet packaged, you can find archived releases here.

For information on building one of the nosrc JDK RPMs from either Sun, BEA or IBM, please see Rebuilding nosrc RPMs Installing the Sun JDK using the ‘-compat’ method

This step is only necessary if you want to avoid rebuilding the nosrc JDK RPM. Please note that rebuilding the nosrc RPM is the preferred method of obtaining a JPackage JDK.

repo setup

The first thing that we have to do is set up out yum repositories so that we can find the packages to be downloaded. The jpackage repository makes this very easy and we will install this one first. All of the repositories are located in the /etc/yum.repos.d directory. To install the repository for jpackage, which contains all of the java goodies, simply:

cd /etc/yum.repos.dwget -P /etc/yum.repos.d http://jpackage.org/jpackage.repo

Edit the jpackage.repo file you retrieved and enable the repositories appropriate to your distribution. In the case of CentOS I set
enabled=1 on the jpackage-rhel sections.

The JPackage RPMs are digitally signed using a GPG key, import their key into your RPM keyring

rpm –import http://jpackage.org/jpackage.asc

Before adding new stuff make shoure your installed rpms are up to date

yum update

Get the jdk

Next, since Sun does not make available its jdk via yum, you have to go to the sun site and download it. If you point your browser over to:

http://java.sun.com/javase/downloads/index.jsp

  1.
     Get the Sun JDK 5.0 from:
     http://java.sun.com/javase/downloads/index.jsp
     by choosing the "JDK 5.0 Update N" "Download" button, and then choosing "RPM in self-extracting file" for Linux on the page that displays after pressing the button.

     Important: Do NOT install the "Linux x64" version of the SDK.
     If you prefer the older Java 1.4.2 SDK, get it from:
     http://java.sun.com/j2se/1.4.2/download.html
     by choosing the "Download J2SE SDK" link and from there the "RPM in self-extracting file" for Linux.

You can download the one you see fit. I downloaded JDK 5.0 Update 12, which at the time of this howto was the current one. When you see the Sun download page, accept the agreement and pick the “Linux RPM in self-extracting file” (the one that ends in rpm.bin).

When your Sun JDK Linux RPM self-extracting file finally arrives you need to execute it, since it is a shell script. It contains the license agreement and the compressed RPM package with Sun JDK. It will ask you if you agree to the long license. Say yes, then it will uncompress the RPM with JDK, and then it will install it. To run it do:

chmod 755 jdk-1_5_0_12-linux-i586-rpm.bin
./jdk-1_5_0_12-linux-i586-rpm.bin

Unfortunately, the Sun RPM package puts files in different locations than the ones required by CentOS. After running the script you will see a new directory /usr/java/jdk1.5.0_07 with JDK files. Note that the actual RPM is left in the directory where you ran the Sun’s jdk-1_5_0_07-linux-i586-rpm.bin script, however, you do not need to process the RPM, since script already did it.

You may, however, use the RPM package if you want to install the JDK on another machine or if you erased the JDK at some point with a the RPM’s rpm -e jdk-1.5.0_07-fcs command. Now, we are ready to install the SUN JDK compatibility RPM from the JPackage.org

 

Install compatibility RPM

Install java-1.4.2-sun-compat or java-1.5.0-sun-compat, download it your self as the yum install tends to pick up the wrong version.

Download and install the appropriate -compat RPM from JPackage at:

     ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/

Make sure to match the version of the -compat package to the SDK you’ve installed in the first step. The -compat RPM requires that the RPM self-extracting file from Sun be used in the previous step, not the plain (non-RPM) one.

 For instance, for a Sun SDK 1.5.0_12 you should get:
 ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/java-1.5.0-sun-compat-1.5.0.12-1jpp.i586.rpm
 and for a Sun SDK 1.4.2_12 you should use:
 ftp://jpackage.hmdc.harvard.edu/JPackage/1.7/generic/RPMS.non-free/java-1.4.2-sun-compat-1.4.2.12-1jpp.i586.rpm
rpm -ivh java-1.5.0-sun-compat-1.5.0.12-1jpp.i586.rpm

This will create a bunch of links in the /etc/alternatives and /usr/lib/jvm directories and others to the /usr/java/jdk1.5.0_07 directory where the Sun JDK distribution resides. To check which files were affected do:

rpm -q -l java-1.5.0-sun-compat

Check if the Sun JDK is really a default by doing:

java -version

If you get:

java version “1.4.2”
gij (GNU libgcj) version 4.1.1 20060525 (Red Hat 4.1.1-1)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

(or similar) then something did NOT work. If you get:

java version “1.5.0_07″Java(TM) 2 Runtime Environment,
Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

then the Sun JDK is your default. You can use alternatives to check (or change) the default JDK by:

alternatives –config java

Please read the man page for alternatives:

man alternatives

It should show something like:

There are 2 programs which provide ’java’.

Selection Command
———————————————–
1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
*+ 2 /usr/lib/jvm/jre-1.5.0-sun/bin/java


Enter to keep the current selection[+], or type selection number:

Hit [Enter] key if you want Sun JDK to be a default, or enter 1 if you want to
change back to GNU Java.

Now, there will be times, when you want to get rid of Sun JDK and its entries for alternatives. DO NOT TOUCH THESE LINKS WITH YOUR BARE HANDS. Use yum to uninstall the JPackage Java compatibility package first and then erase the Sun JDK with rpm:

yum erase java-1.5.0-sun-compat
rpm -e jdk-1.5.0_07-fcs

Sometimes yum breaks. A popular situation is when you used rpm to install some package (or the package was installed with an install (older package is kept) rather than an update (older package is removed). In this case, yum gets confused with dependencies and complains, and it does not want to install a package. To see if this is a case (as it was when installing all of this), list all the installed rpm packages for some package name with a command:

bgcolor = “#CCCCCC” rpm -qa | grep “java”

for example. If you see two versions of the same rpm, just erase the old one. Use the

rpm -e full_package_name_with_version

(but skip the .rpm) and then try yum update or yum install again. I am telling you this, since we will definitely have more javas and compats coming, and the mess happens. For example (at this time a hypothetical one), if you got stuck with two compat packages when updates to the JDK were processed:

rpm -qa | grep “java-1.5.0-sun-compat”

java-1.5.0-sun-compat-1.5.0.07-1jppjava-1.5.0-sun-compat-1.5.0.08-1jpp

remove the older package as:

yum erase java-1.5.0-sun-compat-1.5.0.07-1jpp

or, if still no go:

rpm -e java-1.5.0-sun-compat-1.5.0.07-1jpp

and try again.

 

Set Enviroment varibles

So… JAVA_HOME. In your shell, type:

JAVA_HOME=/usr/lib/jvm/java
export JAVA_HOME

or if you are C-shellish:

setenv JAVA_HOME /usr/lib/jvm/java

 

BIG WORK AROUND FOR USING YUM TO INSTALL

yum install xml-commons

download the xml-commons-apis rpm from jpackage.org Install by hand using

rpm -ivh xml-commons-apis rpm

For some reason yum was bugging out and not recognizing the xml-commons-apis.

(I guess this may be a case of screwy obsoletes and provides with some of the jpp packages)

 

Install tomcat5 and apache

yum install tomcat5 tomcat5-webapps tomcat5-admin-webapps

We will use redhats standard apache2 with mod_jk to talk to Tomcat, so first we install:

yum install httpd mod_jk-ap20

 

Testing the install

Check to make sure the default tomcat users are located in /etc/tomcat5/tomcat-users.xml.

[root@centos tomcat5]# cat /etc/tomcat5/tomcat-users.xml
<?xml version=’1.0’ encoding=’utf-8’?>
<tomcat-users>
<role rolename=”tomcat”/>
<role rolename=”role1″/>
<user username=”tomcat” password=”tomcat” roles=”tomcat”/>
<user username=”role1″ password=”tomcat” roles=”role1″/>
<user username=”both” password=”tomcat” roles=”tomcat,role1″/>
</tomcat-users>
[root@centos tomcat5]#
Test tomcat5:

/etc/rc.d/init.d/tomcat5 start

If all is well, you can see the tomcat welcome page on 8080.

Test apache:

/etc/rc.d/init.d/httpd start

If all is well, you can see the apache welcome page on 80.

 

configure apache to work with mod_jk

Now we will configure apache to work with mod_jk to grab everything on port 80.

make enviromet veribles persitant

edit /etc/profile

cd /etcvi profile

add lines

#Tomcat set up add by Joe 27 07 07

JAVA_HOME=/usr/lib/jvm/java

export JAVA_HOME

CATALINA_HOME=/usr/share/tomcat5

export CATALINA_HOME

 

Edit tomcat configureation

Edit the workers.properties file in /usr/share/tomcat5/conf/workers.properties

Update the entries for workers.tomcat_home and workers.java_home

workers.tomcat_home=/usr/share/tomcat5

workers.java_home=/usr/lib/jvm/java

Change the worker.list from ajp12, ajp13 to just ajp13, or ajp13, inprocess if you want JNI connector. While running the JVM inside the web server gives the best performance, it lacks the stability of the out of process mode.

workers.list=ajp13

Comment out the worker.ajp12 entries if you want, it is not necessary.

Change worker.ajp13.host from localhost to your fully qualified domain name or IP address

 worker.ajp13.host=[fully qualified domain name]

If you want to cache your connections, uncomment worker.ajp13.cachesize and add a value.

worker.ajp13.cachesize=20

Change worker.loadbalancer.balanced_workers from ajp12, ajp13 to just ajp13.

worker.loadbalancer.balanced_workers=ajp13

If all you need is a simple, straight-forward out of process configuration without load balancing, you can use this as your complete workers.properties file. Again remember to set the host with your fully qualified domain name or IP address

worker.list=ajp13

worker.ajp13.type=ajp13

worker.ajp13.host=[fully qualified domain name]

worker.ajp13.port=8009

Edit the Tomcat server.xml file located in $CATALINA_HOME/conf/

it should be /usr/share/tomcat5/conf/server.xml

Immediately below the entry <Server port=”8005″ shutdown=”SHUTDOWN”> add:

<Listener className="org.apache.jk.config.ApacheConfig" modJk="/usr/lib/httpd/modules/mod_jk.so" workersConfig="/usr/share/tomcat5/conf/workers.properties" jkLog="/var/log/tomcat5/logs/mod_jk.log" jkDebug="info" />

Find the entry <Host name=”localhost” appBase=”webapps” unpackWARs=”true” autoDeploy=”true” xmlValidation=”false” xmlNamespaceAware=”false”> and change localhost to your fully qualified domain name or IP address.

<Host name="[fully qualified domain name]" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

Immidiately following that line add:

<Listener className="org.apache.jk.config.ApacheConfig" append="true" jkWorker="ajp13" />

Restart Tomcat and verify that the dirctory auto is created and the files mod_jk.conf is created in /usr/share/tomcat5/conf/

By configuring Tomcat to create and recreate the mod_jk.conf on startup, it will automatically add a JkMount for any new webapps you deploy.

 

Edit apache configuration

Edit /etc/httpd/conf/httpd.conf and after the last LoadModule entry add an Include for the mod_jk.conf:

Include "/usr/share/tomcat5/conf/auto/mod_jk.conf"

Restart Apache

Browse to http://localhost/jsp-examples/ or any other webapp you have installed in Tomcat and Apache should send it to Tomcat.

 

Make tomcat and apache start at bootup

chkconfig –level 234 httpd on

chkconfig –level 234 tomcat5 on

Our First V.I.P.

July 11th, 2007 , 8:55

Yes folks after many months of hard work at the Hippy Factory (other wise known as the place where i work). We have are fist V.I.P thats Virtual In-house Penguin. Since the start of the year we (in an office IT team) have been trailing and experimenting with visualization using vmware’s vi3 (this product was chosen after a review and trail of many products last year).

Yesterday we finished are first move of a linux based wiki system from a physical machine to a full virtual machine. I would how ever like to point out at this time that we were unable to us any of the P2V tools on the market to accomplish this, be they provided by vmware, plate spin, ghost or various home brew scripts and linux open source tools.

While most of these tools cope ok with windows hardly any coupe with a linux base system (plate spin came closest but chocked on 64 bit process. So the advice I would give to people at the moment is if you wish to virtulize and have existing linux base system go for a re-install.

Most of the P2V products on the market at the moment can not cope with the linux for various reasons, some fail because of lvm some just failed and 64 bit killed others, and unless you have some very good knowable linux hackers around the reinstall option will be more cost effective in the short term, and a good excuse to upgrade.

ps

If any one else would like to leave some name of tools to try i will give it a go.

As we say in BSAC plan the P2V P2V the plan 🙂

Wii Really done it now :)

July 9th, 2007 , 7:48

Yes folks over the week end we [ed: ‘we’ being Joe] bought our [ed: ‘our’ being ‘Joe’s’] Wii. First of all, I [ed: ‘I’ being ‘us’] was really surprised how small it was, but it had every thing needed to hook up to the tv and play. Plus built in wireless to hook to the Internet. It even coped with my paranoid wireless setup 🙂 .

So Sunday night was bowling and a bit of baseball. I even hit something 🙂 . Which brings me or is that Mii, you get to make your own little characters when playing, to which game to buy for it.

It also does email and lets you look at photos , plus you can buy a web browser for it. Don’t know if that’s worth it yet ?

 (edited by me!)

Good morning July

July 6th, 2007 , 7:38

we i haven’t writen much after the mud (Glastonbury festival), work has taken of like a rocket lots to do in a short time. Plus put away all the stuff we had in the field :). If i get time over the weekend i will upload the last of the pictures, quite depressing by the end mud and rubbish, is the main remberance, and a longin to be any were but there. Well on a un lighter note 🙂 the uk smoking ban is now in effect so we’re of to the pub to night.

Mud blog

June 25th, 2007 , 0:43

Didn’t do much yesterday. It was pouring down and I could hear the Jazz World stage from the tent (well, most of the time) so I just stayed in, read my paper and listened to the Jazz World stuff. After a while the rain stopped and Joe poked his head into the tent to see if we should do something. So we headed out and went for a wander though the mud. Rain and mud just make it difficult to get around and enjoy things. But we saw Trash City and the circus area and had a lovely dinner in the Juke Joint (Oliver’s chefs apparently).

Headed for the Jazz World stage early to hear John Fogerty; ended up listening to the end of the Guillemots set but weren’t very impressed. However, Fogerty was wonderful! Played for about an hour and a half, old and new tunes and we were all singing and dancing in the mud (except Joe who was sitting in his chair, with his whiskey, singing). Great time and of course the music was great. We then headed over to the Avalon stage for the Saw Doctors which were also very good. We got there a bit late (slogging through the mud) so ended up just putting our chairs up just outside the tent and listened.

Joe’s idea to bring the folding chairs was a brilliant one!

So Sunday. At least it stopped raining for a while yesterday, today, well not so much. It was pouring this morning so I read the rest of my paper while hoping it would stop. It didn’t. So I got into all the wet weather gear and headed out carrying my chair. It did manage to stop raining for a bit while I sorted breakfast (doughnuts and coffee), then set my chair up in Left Field with my breakfast. Then it started pouring down again. Luckily Left Field is covered so I sat there for the environment talks and Tony Benn’s talk. Wonderful with some very good comedians as well. Joe joined me during the comedians and just before Tony Benn’s talk. We laughed quite a bit and then headed out for a walk. Ran into Dan who was going to see Dame Shirley Bassey – I hadn’t wanted to go through the crowd on my own but joined Dan and his friends for the Pyramid stage. Had a great spot so stayed through to the end. Saw Dame Shirley (a wonderful showperson), Manic Street Preachers (good and loud), Kaiser Chiefs (loud), and finally THE WHO!! Yea! They were wonderful! The sun shined for Dame Shirley but then the rain set in again and it stayed and got cold, but despite being very cold and very wet we really enjoyed The Who and stayed through until they told us to leave. It was worth every drop of rain.

Frog Blog

Some pics from last Night

June 24th, 2007 , 18:36