How to make JavaME .jar files downloadable from Apache Web Server

Mobile application developers may have realize that one of the best (and recommended) way to distribute their JavaME/J2ME application is by hosting it on a website. This makes it easier for potential users to navigate and download the .jad or .jar files from their phone browsers and to execute it directly.

However, some web servers are not configured to handle .jar / .jad file requests, eventually leading to failed install response received by the mobile users.

To remedy this, .jad / .jar files need to be associated with the correct MIME type. In Apache, you can do this by creating ‘.htaccess’ file in your web directory, and inserting these lines :

# JavaME
AddType text/vnd.sun.j2me.app-descriptor .jad
AddType application/java-archive .jar

Afterwards, safe the file. The web server should behave accordingly when requests are made to either of these files. For other web servers, please refer to their respective manual or online-help on how to change document MIME type.

Ubuntu Tutorial Video from Screencast.Ubuntu.com

Reading through dozens of paragraphs, just to learn the basics of Ubuntu can be tedious, especially for those who don’t have much time on their hands to figure out about Ubuntu software repositories system. The good news is, they no longer have to read through articles full of vague descriptions anymore, instead they can get visual tutorial from Ubuntu Screencasts website!

The video listed on the website covers popular topics that would be asked by Ubuntu newcomers and is very easy to follow as it has narration. The videos are also available in high quality downloads (1280×720 resolutions) in several common media formats (flv, ogg, mp4).

The site is also updated weekly, and is one of Ubuntu sites that you shall not miss – Ubuntu Screencasts

Simmbook – an affordable $190 Business Netbook, with Ubuntu !

Behold! Simmtronics has launched its latest product, the Simmbook which is a netbook, priced at $190 only! The netbook is geared towards business users as it includes IBM Lotus Symphony, SmartWork client suite and various other IBM cloud-based services. The Netbook specs 10-inch display, Atom N270 processor, 1GB of RAM, three-cell battery, and a 160GB hard drive.

Best of all, it comes with Ubuntu pre-installed.

How to setup Secure Webserver HTTPS (SSL) on Apache in Ubuntu

Secure HTTP (SSL/TLS) has become a must if you are planning to setup a website which includes user authentication (ie. login box) or sensitive data. HTTPS prevents the sensitive data from being transfered across the network in clear text where it is susceptible to being sniffed or altered. Here is the tutorial on how to setup a secure HTTP on Apache web server in Ubuntu 10.04 (Lucid Lynx).

What do you need?

  • apache2 (Web Server)
  • openssl
  • A bit patient, because it will take some time to learn

Step 1: Create a self-signed certificate
You need to create a self-signed certificate with openssl. To do that you will need to generate the server key.


openssl genrsa -des3 -out server-sec.key 4096

…and certificate signing request (CSR)


openssl req -new -key server-sec.key -out server.csr

After that, generate the server certificate by signing it with the server key.

openssl x509 -req -days 365 -in server.csr -signkey server-sec.key -out server.crt

Keep the server-sec.key in a secure location, with read/write permission assigned only to root. Then generate a password-less copy of the key for Apache use.

openssl rsa -in server-sec.key -out server.key

By this time, you should have :

  • server.key (passwordless key for Apache)
  • server.csr (certificate signing request)
  • server.crt (certificate)
  • server-sec.key (server key)

Continue reading “How to setup Secure Webserver HTTPS (SSL) on Apache in Ubuntu”

Linux Mint Debian Edition 201009 has been released!

A few years ago, I wrote about Linux Mint as an unofficial Ubuntu distribution that is preinstalled with proprietary codecs and plugins then I write a follow up article when the project has evolved into providing a user-friendly Linux distribution, with additional application but is still based on Ubuntu.

linux mint debian edition

But now, the Linux Mint teams has taken another step forward by introducing Linux Mint Debian Edition (LMDE), which is based on Debian GNU/Linux distribution (Debian-Testing or Debian Squeeze). LMDE features a new installer which was developed from scratch with Debian in mind, bleeding-edge application from the Debian-testing repos and the same proprietary software addons from Linux Mint own repositories.

LMDE is however is not compatible with Ubuntu repositories as there are differences between the binary and the configuration files. Those who are seeking for full compatibility with Ubuntu, should download Linux Mint standard edition instead. Another caveat is, LMDE currently is only available on 32 bit X86 platform and GNOME, with no immediate plan to release 64bit edition or with KDE environment, due to complications with the process of making Debian much more ‘friendlier’ to keep up with Linux Mint standards.

linux mint debian thumbnail screenshot

LMDE can be downloaded from its official website : http://www.linuxmint.com/download_lmde.php, it comes with a DVD ISO image (875 MB)