Installing jbilling on Debian Etch

I’ve finally got it down to a 5 minute process with the help of the OpenNMS docs….

Install a bare-bones Etch system by skipping the role and package selection screens during the installation.

Edit the apt sources.list to include the “contrib” and “non-free” packages by adding the following lines to /etc/apt/sources.list:

deb http://ftp.debian.org/debian/ etch main contrib non-free
deb-src http://ftp.debian.org/debian/ etch main
deb http://security.debian.org/ etch/updates main

Run “apt-get update” to get the package list up to date.

Run “apt-get install sun-java5-jdk” to install Sun Java

The JAVA_HOME environment variable needs to be set for any Java app to run so adding the following to /etc/profile will do the trick

JAVA_HOME=”/usr/lib/jvm/java-1.5.0-sun”
export JAVA_HOME

Run “apt-get install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps” to install Tomcat

Run “apt-get install wget unzip” to install wget so we can download jbilling from the server, and unzip so we can decompress the archive.

cd /opt” and run “wget http://heanet.dl.sourceforge.net/sourceforge/jbilling/jbilling-1_0_6.zip” to download it and “unzip jbilling-1_0_6.zip” to decompress it.

Edit /opt/jbilling/server/default/conf/jbilling.properties to suit.

Run “chmod 700 /opt/jbilling/bin/*.sh” so we can start and stop the server easily.

Run “/opt/jbilling/bin/run.sh” to start the service and then open http://<IP_Address>/billing/signupEntity.do?action=setup in a web browser and follow the Getting Started Guide here.


About this entry