Installing and Deploying JBOSS Applications

You can install jboss in your with 7 simple steps :

1) Download the JBOSS from their community site :

I took JBoss 5.1.0-GA.

2) Extract it to your installation directory, say ‘/opt/jboss/’

$ unzip ./ -d /opt/jboss

3) Set the environmental variables to make the applications work

export JAVA_HOME=/opt/jdk1.6.0_23
export JBOSS_HOME=/opt/bin/jboss-5.1.0.GA
export PATH=$JAVA_HOME/bin:$PATH

4) Simply start the JBOSS server

$ /opt/jboss/bin/

5) Pack your applications into war file

$ jar -cvf helloworld.war *.jsp WEB-INF

The above command packs all jsp files into WAR package

6) Copy them into the default deploy directory in Jboss server.

$ cp ./helloworld.war $JBossHome/server/default/deploy/

7) Check it on your browser :



Enabling Android USB Debugging in Fedora

To Enable USB Debugging, Enable it in the Android device by Applications–>Development–>Enable USB Debugging.

Then you need to add the following file (rule) to the udev rules directory :

su –
vi /etc/udev/rules.d/99-android.rules

Add the following code to this file :


Here idVendor means your device vendor, so change it accordingly. For more details, refer this

After saving this file, run this command to reload the udev rules.

udevcontrol reload_rules

After that, Everything will work!…

Mobile App Development with J2ME & EclipseME Plugin

To develop mobile app, you basically need the J2ME enabled IDE. I preffer Eclipse IDE which is even better then NetBeans IDE.

EclipseME is an Eclipse plugin that can be used to simplify the development of J2ME MIDlets using eclipse.

You need to install EclipseME plugin in your Eclipse IDE :

Open the Eclipse IDE and go to Help –> Install New Software, Enter the following URL in the ‘Work with’ text box & click ‘Add’ button.

This will prompt an window to add repository & give some name like ‘EclipseME Updates’ & then press ‘ok’.

Download the Wireless Toolkit(WTK) from

To install the WTK,

chmod +x


Choose the JDK Path like /usr/java/bin & Installation Path like /opt/apps/WTK

Then run the ktoolbar (/opt/apps/WTK/bin/ktoolbar)

Open the eclipse & click new project –> J2ME MIDlet Suite

Go to Preferences –> J2ME –> Device Management

Import the devices from the Installation Path & Apply the changes.

In Project Explorer & click the src package from HelloWorld Project & right click it to add a java class.

Add the following code into it.

import javax.microedition.lcdui.*;

import javax.microedition.midlet.*;

public class HelloWorld extends MIDlet

implements CommandListener {

private Form mMainForm;

public HelloWorld() {

mMainForm = new Form("HelloWorld");

mMainForm.append(new StringItem(null, "Hello, World!"));

mMainForm.addCommand(new Command("Exit", Command.EXIT, 0));



public void startApp() {



public void pauseApp() {}

public void destroyApp(boolean unconditional) {}

public void commandAction(Command c, Displayable s) {




Then go to run configuration & select the J2ME & add the configuration you want and run it.

You can this via the Wireless toolkit,

The output is displayed in the Device Emulator.

Cron Alarm Clock

What is Cron?

Cron enables users to schedule jobs (commands or shell scripts) to run automatically at a certain time or date. It is commonly used to perform system maintenance or administration, though its general purpose nature means that it can be used for other purposes, such as connecting to the Internet and downloading email.

Cron uses the crontab, a configuration file that specifies shell commands to run periodically on a given schedule.

Crontab has following options:

-l    list the crontab

-e    edit the crontab

-r    remove the crontab

The application “crontab” is used to create and edit cron jobs and the cron daemon checks for cronjobs a the top of every minute.

For example :

crontab -e

It opens the vi editor to enter the cron jobs.

It looks like

#   minute (0-59),
#   |   hour (0-23),
#   |   |   day of the month (1-31),
#   |   |   |   month of the year (1-12),
#   |   |   |   |   day of the week (0-6 with 0=Sunday).
#   |   |   |   |   |   commands

For Example:
55 10 8 11 * echo “This runs at 10:55 on 8th November”

To list all cron jobs:

crontab -l

To remove a cron job :

crontab -r

For alarm clock, A Command Line Mp3 player can be used here that is mpg321. you may use any mp3 player here but you have to specify what X display to play your player.

For Command Line Mp3 Player,

30  04  *   *   * mpg321 "/home/sriram/Music/Alarm1.mp3"


For Other Mp3 Player(Audacious):

30  04  *   *   * env DISPLAY=:0.0 audacious "/home/sriram/Music/Alarm1.mp3"


The asterik can be used (*) to satisfy all variables. I found some good alarm tracks at this site the were perfect for the task


Red Hat Claims Leadership

Counting Linux users is no easy task since there is typically no requirement for users to register their installations. Yet Linux distributions do try and count users in an attempt to quantify their user base and relative footprint in the operating systems space.

Red Hat’s Fedora community Linux distribution has now tallied its user base, and it’s a number that on the surface would make it the largest installed base of any Linux distribution, with at least 9.5 million users and possibly as many as 10.5 million. Fedora competitor Ubuntu Linux currently claims to have 8 million users.

“The total number of users has always been an incredibly difficult number to measure,” Paul Frields, Fedora’s project leader, told “If you total up all the unique IP’s … on Fedora 7, 8 and 9, it adds up to about 9.5 million boxes right now.”

The Fedora figures come out as the major players in Linux continue jockeying for position as the dominant vendor in the space, while also competing to make inroads against proprietary software. The news also comes as Frields and his team and ramping up to deliver their release, Fedora 10.

The 9.5 million figure is spread across three separate Fedora releases, each of which shows different numbers. Frields tallied the numbers to be accurate as of Nov. 19th. Fedora 7 has nearly 3.4 million IPs, Fedora 8 release in has 3.9 million IPs, and the Fedora 9 release has nearly 1.8 million. Additionally, Fedora’s Rawhide release, which is its always-in-development build, reported nearly 500,000 unique IPs.

Frields is also optimistic that Fedora 10 will attract users because of timing. He said that Fedora Core 6 had been used by many users to preview technology before it ended up in Red Hat Enterprise Linux 5 release.

Now, Red Hat is currently gearing up for Red Hat Enterprise Linux 6.

“At Red Hat, we’re looking at how the Fedora development will impact development of Red Hat Enterprise Linux 6,” Frields said. “So people interested in the enterprise product will want to be looking at Fedora 10.”