How to Install GlassFish on CentOS RedHat Fedora

March 9, 2010 · Leave a Comment
Filed under: Featured, GlassFish, JAVA, Karmic Koala, Ubuntu, WebServers 

How to Install GlassFish ESB on CentOS / Red Hat / Fedora

I did my installation on a CentOS 5.4 and I confirm all works, just follow

Download JDK 6u12
# cd /usr
# wget

Download GlassFish 2.1
# wget

Check current Java Version
# java -version
java version “1.6.0″
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
# chmod +x /usr/jdk*
# ./usr/jdk-6u12-linux-i586.bin
Accept License, and enter

Adjust path
#vim /etc/profile

You may need to logout and login then:
# java -version
java version “1.6.0_12″
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Server VM (build 11.2-b01, mixed mode)

Create user
# adduser esb
# passwd esb
# mkdir /usr/local/GlassFishESBv21
# mkdir /home/esb
# chown esb:root -R /usr/local/GlassFishESBv21
# mv /usr/ /home/esb
# chown esb:root -R /home/esb/GlassFishESBv21
# chmod 755 -R /home/esb/GlassFishESBv21

Add it to sudoers just for now
# vim /etc/sudoers



Login into the Gnome interface localy (via VNC wont work)
with the esb user execute from /home/esb
# sudo bash

On the install GUI
Set NetBeans IDE to:
Set Install GlassFish to:

Now lets configure the service to autostart
# cd /etc/rc.d/init.d
# vim glassfish

#Script to start/stop/restart GlassFish
# chkconfig: 35 20 80
# description: GlassFish ESB 2.1 Daemon
case “$1″ in
${GFPATH}/asadmin start-database
${GFPATH}/asadmin start-domain domain1
${GFPATH}/asadmin stop-database
${GFPATH}/asadmin stop-domain domain1
${GFPATH}/asadmin stop-domain domain1
${GFPATH}/asadmin start-domain domain1
echo $”Usage: $0 {start|stop|restart}”
exit 1

# chkconfig –add glassfish
# chkconfig –level 35 glassfish on
# service glassfish start

Once the service start it Should Display:

Starting database in the background.
Log redirected to /usr/local/GlassFishESBv21/glassfish/databases/derby.log.
Command start-database executed successfully.
Starting Domain domain1, please wait.
Default Log location is /usr/local/GlassFishESBv21/glassfish/domains/domain1/logs/server.log.
Redirecting output to /usr/local/GlassFishESBv21/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain [domain1] is running [Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)] with its configuration and logs at: [/usr/local/GlassFishESBv21/glassfish/domains].
Admin Console is available at [http://localhost:4848].
Use the same port [4848] for “asadmin” commands.
User web applications are available at these URLs:
[http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://SERVERESB:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3100 3820 3920 8686 ].
Domain does not support application server clusters and otherstandalone instances.

To login via web go to


Remeber to open firewall for ports required
Check with ps if service is running
Reference to official documentation at:

Minimal install of XBMC on Ubuntu Karmic Koala (9.10)

February 9, 2010 · 2 Comments
Filed under: Featured, Karmic Koala, Ubuntu 

Ok, so I have been building a media centre for about a week now, and I have had a lot of trouble getting it setup and working right, but now XBMC has released version 9.11 alpha 1 version of its popular media centre software which is now compatible with Ubuntu 9.10.

After all the trouble I had, I thought I would share with you how I installed it, and got XBMC to boot on load. I am using an ASUS AT3N7A-I with a 1.6 dual core atom processor and NVidia ION chipset, 2GB of ram and a 1TB hard drive. So I will only be showing you how to use the NVidia drivers for linux, but to be honest NVidia driver support for linux is better than ATI support.

First, download the minimal install of Ubuntu Karmic Koala (12.1mb x86 12.2mb x64)

Download either the x86 or x64 version dependent on your hardware.

Once the disk image has downloaded either burn it to CD or use UNetbootin to boot from a USB pen drive.

Reboot the computer you wish to install xbmc on, and boot from the CD or USB pen drive, you may need to change some settings in your bios to boot from CD or USB.

Start the installation, and follow the onscreen instructions to set your language and keyboard layout. Enter a username and password for your main account, for this I entered xbmc.

The installer will ask you what packages to install, scroll down to OpenSSH Server and press SPACE, then press ENTER to continue.

After the installation has completed, your computer will reboot.

When you get to the login screen, login with the username and password you entered.

Once you have logged in we need to add the PPA for XBMC.

sudo nano /etc/apt/sources.list

And these lines to the end.

deb karmic main
deb-src karmic main
deb karmic main
deb-src karmic main

We will need to add the a key to aptitude to stop it complaining.

sudo apt-key adv --keyserver --recv-keys 64234534 40618B66 CEC06767 318C7509 91E7EE5E

Sometimes the key server will return this error:
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

A trick I found was to ping the key server address, after it responded try and run the previous command again:


Now we need to update aptitude.

sudo apt-get update

Now we will install the NVidia drivers:

sudo apt-get install nvidia-glx-190

You will need to enter your password again.

Next, we want sound for our media, so we will install some sound drivers.

sudo apt-get install linux-sound-base alsa-base alsa-utils

Your user needs to be added to the sound group.

sudo usermod -a -G audio xbmc

Change xbmc to the username that you entered.

The sound level will be set to zero, to change the volumes we need to enter the sound mixer.

sudo alsamixer

Use you up and down keys and set the volumes to the maximum they will go. Press the right key until you get to IEC958, EC958 D, EC958 1 and press M on each of them to un-mute them.

Press ESC to quit out of the mixer.

To make alsa save the volumes run.

sudo alsactl store 0

Now we can install XBMC.

sudo apt-get install xbmc xbmc-skin-* xbmc-eventclients-* xbmc-scripts-*

This will install xbmc, all the skins and eventclients.

Now X will need to know about your monitor, so run:

sudo nvidia-xconfig

XBMC will need to control power settings of the computer:

sudo apt-get install pm-utils policykit

And give your user access to these power features:

sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.suspend
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.hibernate
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.reboot-multiple-sessions
sudo polkit-auth --user xbmc --grant org.freedesktop.hal.power-management.shutdown-multiple-sessions

Again you will have have to change –user xbmc to the username that you entered in the installation.

Now the last thing to do is make XBMC launch at startup.

sudo nano /etc/init/tty1.conf

Change the line

exec /sbin/getty 38400 tty1


exec /bin/login -f xbmc < /dev/tty1 > /dev/tty1 2>&1

Next we need to get Ubuntu to clear the screen and start X:

nano ~/.bash_profile

And add these lines to the file:

case "`tty`" in
/dev/tty1) clear && startx &>/dev/null;;

Now we need to tell X to start XBMC:

nano ~/.xsessionrc

Add the lines:

exec xbmc --standalone

This next step is OPTIONAL, to hide all the information about what is being loaded, we shall install a usplash boot screen.

sudo apt-get install usplash libusplash-dev usplash-theme-xbmc-*

Once the splash screen installation has completed we need to select a splash screen:

sudo update-alternatives --config

Enter the number of the splash screen you wish to use, find examples below:

Pulsating Logo
Spinner Black
Spinner Blue

All the previews where created by DU-Duke

Next set the screen resolution of your tv in the usplash settings:

sudo nano /etc/usplash.conf

And add these lines:


My TV is 1080p, so the settings above will suite yours if it is full HD, for 720p enter:


To make the new splash screen active run:

sudo update-initramfs -u

Now reboot your computer:

sudo reboot

When the computer restarts, you should see the splash screen you selected, and XBMC should boot up.

Now, go into XBMC’s Videos settings and select VDPAU for the render mode (if your graphics card supports it) and edit the Sound settings:

Audio Output: Digital
AC3: Off
DTS: Off
Audio Capable Device: plughw:hdmi
Passthrough Output Device: hdmi
Downmix: On

And that’s it, you should have a fully functional media centre running the latest version of Ubuntu and XBMC.

As this is an alpha version, you will need to perform some updates now and again until the final release is out.

To so this, ssh into your computer and update it:

ssh xbmc@your media centre IP
sudo apt-get upgrade

Now I can’t take all the credit for this, I have collected some information from other sources and put them together from here:

Thanks to jonassw from XBMC forums, who suggested using the latest version of the NVidia drivers.

Why Ubuntu 9.10 – Almost Perfect

February 8, 2010 · 1 Comment
Filed under: Featured, Ubuntu 

I can be a rather harsh critic.

It’s been quite some time since I’ve given a really glowing review of any Linux Distro on the Computer Action Show (previously the Linux Action Show).

In fact, I’m pretty confident most people on the Fedora team view me as the biggest-jerk-face-ever for my — let’s just say… “not overly glowing” — reviews of recent Fedora releases.  And I’ve given folks on the Ubuntu team a fairly hard time over the years as well.

Keep that in mind when I state the following:

Ubuntu 9.10 is as close to perfection as any version of Linux I have ever seen.

A little background:  Back in May I wrote an article titled “The Perfect Linux Distro” where I laid out what I would view as, well, the perfect Linux distro.

And, while Ubuntu 9.10 certainly doesn’t implement everything I’d dreamed of in that article, they hit some of the key points.  Let’s take a few minutes and go over the good and bad.

The Good Things in Ubuntu 9.10


The Ubuntu Software Center

The new Ubuntu Software Center is (or will be) a combination of Synaptic (the current Ubuntu package manager) and an Ubuntu-specific Software Store.

At present it is merely a standard interface for installing packages from the Ubuntu repositories… with a little nicer look and feel than Synaptic.

Canonical has set the goal of developers being able to sell their own commercial software from within the Software Center by the Ubuntu 10.10 release (next year).

This is huge.  Services that allow users to find and purchase software for their platform (such as Apple’s iPhone App Store) have become an almost necessity to support a thriving software ecosystem.  For me, as an independent software developer focusing on Linux, this is a really big freaking deal.

ubuntu910themeThemes / Icons

I know, most of you probably don’t care what the default theme is for your OS.  But, whether we want to admit it or not, the initial look and feel is critical.  This is the first impression people get for a new piece of software.

In the past, let’s be honest, Ubuntu was lacking in this area.  It was… orange.   And brown.

Orange and brown don’t exactly scream “advanced, super-attractive, cutting-edge software”.

Well, I have to say, Ubuntu really stepped up their game in 9.10.  The new default “Human” theme is a smidge darker and a lot classier than what we previously were seeing.  The older, brighter, more “orange-y” Human-Clearlooks theme is still available for those nostalgic for the old days.

On top of this, the default icon set is the new “Humanity” icon design.  Which look fantastic.  Polished.  Modern.  Nice, understated gradients.

Desktop Backgrounds

I feel almost a little silly including something as simple as “Desktop Backgrounds” here.  I mean, it’s just pictures, right?

Well, if you’ve been using past versions of Ubuntu, you’ll know that it has typically only shipped with a very small selection of background pictures.  We’re talking like 2 or 3.

Now, in 9.10, they have a respectable collection of nature and space backgrounds that look as nice and polished as any you’d find shipping with systems from Microsoft or Apple.

ubuntu-beta-install-12The Live-CD Installer

The installer for Ubuntu 9.10 has not changed significantly.  Functionally it is roughly the same as the one we have had in both Ubuntu 9.04 and 8.10.

What they have done, however, is polish things up.  The installer window now fits properly on smaller Netbook screens.  And they’ve added a series of pictures that show you what you can do, with various applications within Ubuntu, as the installer progresses.  Other software makers have been doing this for years (with varying degrees of class)… the Ubuntu team has done this very, very well.

This is a critical piece that has been missing — as many “non-nerd” users will not know to launch something called “F-Spot” to manage their photos.  Now the installer helps these users over that initial learning curve.

New Instant Messaging Client

Pidgin has been the defacto IM software for many Linux distros for years now.  However, it has stalled a great deal and was feeling a big long in the tooth.

It has been replaced by Empathy (which is something I recommended back in May and am incredibly happy to see this is the route they have gone down), which looks and works great.

Built-In Ubuntu One

Ubuntu One, a service that currently offers file storage and synchronization between different Ubuntu powered computers, has been in beta since earlier this year.  With Ubuntu 9.10 this service is now shipping by default.

What’s so great about this?  Two things:

  1. It’s a great piece of functionality that both Apple and Microsoft are providing in various forms for their customers.
  2. It provides a critical revenue stream for Canonical.  (Which is kind of an important bit… considering the system itself is 100% free of charge.)

This, to me, is a sign of maturity.  And I quite like the direction this (combined with the Ubuntu Software Center) is heading.

The Things Missing In Ubuntu 9.10

Notice I didn’t say “bad things”.  Because, in my opinion, the main problem with Ubuntu 9.10 is that it’s missing a few key pieces of functionality.

yofrankie10The Games Are Weak

There are so many great, free games that could be included in Ubuntu.

Yo Frankie, Hedgewars and Frozen Bubble all are great open source games that could give a good representation of some of the great quality of games that are available.

Sure, shipping with a simple solitaire and sudoku game is great.  But let’s step it up a notch!

Video Editing

I don’t fault Ubuntu for not having a built-in audio editing suite.  Sure, I might use it, but it’s not something that most people are going to need.

But video editing?  Windows and OS X both have their defacto tools to let people do at least basic video editing out of the box (or, at least, semi-out of the box).

Grab PiTiVi and either include it as a default application or make it a featured application to install.  The lack of video editing on Linux is often given as a reason why people don’t “switch from Windows”… so take away that reason.


Rhythmbox is an okay music player and manager.  That’s what Ubuntu ships with right now… and it does the job.

But it’s no Banshee.

Banshee is the bees-knees of music players.  Make haste and get that application in there by default.

As you can see, not exactly a big list of “problems”!

Overall I’d call this release polished, smooth, easy to install and with an improved feature set (new applications that are incredibly promising).

Is it perfect?  No.  But so, so close.

I’d take it so far as to say I see very little reason that Ubuntu 9.10 would not be an excellent choice for the vast majority of computer users.

… Other than PC games.  But that’s a different story…

How to Install Mplayer and Multimedia Codecs (libdvdcss2,w32codecs,w64codecs) in Ubuntu 9.10 (Karmic)

MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many MX/SSE (2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text- based subtitle formats too. For video output, nearly every existing interface is supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices.

Install Mplayer in Ubuntu 9.10 (Karmic)

You nned to make sure you have enabled universe,multiverse repositories

Now you need to run the following command to update the source list

sudo apt-get update

Install mplayer using the following command

sudo apt-get install mplayer


Click on the following link


If you want to open mplayer go to Applications—>Sound&Video—> Mplayer Movie Player

Install w32 video codecs and libdvdcss2 in Ubuntu 9.10 (Karmic)

Support for WMV, RealMedia and other formats has been bundled into the w32codecs package. This package is not available from the Ubuntu repositories due to licensing and legal restrictions.To play encrypted DVDs, the libdvdcss2 package is essential.

The following command adds Medibuntu’s repository to Ubuntu. It also adds Medibuntu’s GPG key to your keyring, which is needed to authenticate the Medibuntu packages.

sudo wget$(lsb_release -cs).list  --output-document=/etc/apt/sources.list.d/medibuntu.list

sudo apt-get -q update

sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring

sudo apt-get -q update

For i386 Users install Codecs using the following command

sudo apt-get install w32codecs libdvdcss2

For amd64 Users install Codecs using the following command

sudo apt-get install w64codecs libdvdcss2

Using above download locations you can install most of the mutimedia codecs for ubuntu.

Mplayer Plugin for Firefox

If you want to install Mplayer with plug-in for Mozilla Firefox run the following command

sudo apt-get install mozilla-mplayer

or click on the following link


FaiF and SaiS: a suggestion – Linux Forums

February 6, 2010 · Leave a Comment
Filed under: Kernal, Linux, Ubuntu 

To make a thing like that work, you need to have background daemons like udev and hal running. In other words, you need more complexity. "Simple", like "free", has two meanings. Like the Latin "simplex", it originally was the opposite

Linux Forums –

enna: changeset 2898:030dac1a867a

February 6, 2010 · Leave a Comment
Filed under: Kernal, Linux, Ubuntu 

fix memleak in udev module; the enumeration context must be created before each udev_enumerate_scan_devices() otherwise it adds leaks for each loop with the timer. src/modules/volume/udev/udev.c · file | annotate | diff | revisions

enna Changelog –

[PULL] — Linux media

February 6, 2010 · Leave a Comment
Filed under: Kernal, Linux, Ubuntu 

Linux media: [PULL]

Linux Media –

ALSA User — Re: [LAU] How to make Focusrite Saffire 6 USB works?

February 6, 2010 · Leave a Comment
Filed under: Kernal, Linux, Ubuntu 

Or are you hoping that it all >> gets >> configured by udev or something? (I don't do that >> myself…) >> >> I cannot help you much with your specific >> device but maybe you can >> post back info on your setup which could move us

ALSA (Advanced Linux Sound Architectu… –

Modem data — Linmodem

February 6, 2010 · Leave a Comment
Filed under: Kernal, Linux, Ubuntu 

The base of the UDEV device file system is: /dev/.udev Versions adequately match for the compiler installed: 4.3.2 and the compiler used in kernel assembly: 4.3.2 The patch utility is needed for compiling ALSA drivers, and possibly

Linux Linmodem –

Re: [PATCH] linux-2.6.32-directemp — Linux USB

February 6, 2010 · Leave a Comment
Filed under: Kernal, Linux, Ubuntu 

a/drivers/usb/misc/directemp.c~usb-qti-directemp-usb-thermometer-hygrometer-driver-support-fix +++ a/drivers/usb/misc/directemp.c @@ -40,7 +40,7 @@ struct usb_directemp { struct usb_device *udev; struct usb_interface *interface;

Linux USB Users –

Next Page »