Ubuntu 10.04 fix for USB Drive not mounting on pc with Floppy Drive

Here’s a quick fix for an Ubuntu 10.04 bug that prevents USB Drive from mounting on a PC with Floppy drive (wow, these things still exist?)

The solution is to remove the floppy drive module from linux kernel and you will be able to mount usb drive.
sudo modprobe -r floppy

Should you ever need the module again, you can issue
sudo modprobe floppy
to load the module back (alongside with the annoying bug).

Hope this will help!

p/s: To be fair, my office Dell Optiplex machine (with Pentium 4 HT 2.80GHz, 2005 issue) still has those floppy drives, although I haven’t use them ever since they assigned it to me (back in 2008).

How to convert *.docx files (Microsoft Office 2007) online for free

Sometimes you might have no choice except to open Microsoft Office 2007 (*.docx) files that you’ve just received in your email. The problem is, you do not have any other application that support Office 2007 format.

Here’s an easy way to (kinda) solve that problem, you can convert Microsoft Office 2007 files online, using Google Docs.

Google Docs Logo

The steps are easy, you need to login into your Google Docs account, then upload the Office 2007 files. After that, you can choose the “Download file as” option to convert the file to your favorite document format (typically OpenDocument or older *.doc Microsoft Office word document).

Bear in mind that the conversion is not 100% perfect and there will be parts of document that won’t look exactly as the original ones.

How to use Celcom Broadband Prepaid on Ubuntu Linux

Here’s how to use the latest Celcom offering – Celcom Broadband Prepaid on Ubuntu GNU/Linux distribution. As its name implies, Celcom Broadband Prepaid works in a prepaid basis, using the following plan: RM 6 /day or RM20/week of unlimited internet use.

Celcom Broadband Prepaid

This guide assumes you use Huawei E160* or E220 series 3G modem.

First, plug-in the 3G modem to USB connector. After a while, a dialog will appear :

Ubuntu Wizard : Celcom Broadband

Press next, you will see a list of local broadband service provider. Select “Celcom”.

Ubuntu Wizard :Service Provider Selections

The dialog will close after you click “Forward”. However for Celcom Broadband Prepaid to work, you need to change the APN to “celcom3g”, and PIN to “1234”

To do that, you need to right click on the network connection icon, and select “Edit Connections”:

Edit Connections - Network Manager

Then change the APN value to “celcom3g” and set the PIN to “1234”.

Network Manager - Celcom Broadband 3G Prepaid Setup

Sending SMS to subscribe Celcom Prepaid Broadband
Users of Celcom Broadband Prepaid would know that they need to send SMS containing the message “Broadband Daily” or “Broadband Weekly” to 28882 to activate their internet subscription.

In order to do that in Ubuntu GNU/Linux, you need to install ‘gammu’ package from Synaptic Package Manager. ‘gammu’ allows you to send SMS using your Huawei 3G Modem, and it works sweetly with Celcom Broadband Prepaid.

Using ‘gedit’ or your favorite text editor, create ~/.gammurc config file containing these information :
[python]
[gammu]
port = /dev/ttyUSB0
model =
connection = at19200
synchronizetime = yes
logfile = gammu.log
logformat = textall
use_locking =
gammuloc =
[/python]

To send SMS, you need to open the terminal application and type “gammu sendsms text 28882”, it should look like this :
[python]
$ gammu sendsms text 28882
Enter message text and press ^D:
Broadband weekly
If you want break, press Ctrl+C…
Sending SMS 1/1….waiting for network answer..OK, message reference=33
[/python]

Note: “Broadband weekly” for subscribing Celcom Broadband Prepaid at RM20/week.

Then send another SMS, execute “gammu sendsms text 28882” :
[python]
$ gammu sendsms text 28882
Enter message text and press ^D:
Broadband Yes
If you want break, press Ctrl+C…
Sending SMS 1/1….waiting for network answer..OK, message reference=33
[/python]

Send “Broadband Yes”, to confirm your subscription. You can then enjoy the Celcom Broadband Prepaid right from your Ubuntu Desktop ! No need to depend on Microsoft Windows based “Mobile Partner” or Vodafone striped-down application to connect to the internet!

To read sms from your Celcom Broadband Prepaid SIM card, type “gammu getsms folder 1 15” and you will see a list of SMS received in your SIM card inbox memory.
[python]
$ gammu getsms folder 1 10
Location 1, folder “Inbox”, SIM memory, Inbox folder
SMS message
SMSC number : “+60193900000”
Sent : Sun 05 Jul 2009 06:48:50 PM +0800
Coding : Default GSM alphabet (no compression)
Remote number : “28882”
Status : Read

Enjoy 24hrs of unlimited usage @ only RM6. To confirm yr subscription, type Broadband Yes & send to 28882. RM6 will be charged to yr account upon confirmation.

Location 2, folder “Inbox”, SIM memory, Inbox folder
SMS message
SMSC number : “+60193900000”
Sent : Sat 19 Sep 2009 04:01:24 PM +0800
Coding : Default GSM alphabet (no compression)
Remote number : “28882”
Status : UnRead

Enjoy 7days of unlimited usage @ only RM20.To confirm yr subscription, type Broadband Yes & send to 28882.RM20 will be charged to yr account upon confirmation.
[/python]

Happy surfing !

How to block ads and malware websites using /etc/hosts files in Ubuntu

Here’s an easy way to block annoying advertisement and malware sites using ‘/etc/hosts’ file.

First edit the /etc/hosts files using your favorite text editor :

sudo gedit /etc/hosts

Then, paste the list of ads/malware servers in the ‘hosts’ file. You can get the list from http://someonewhocares.org/hosts/ or by searching through Google.

Close the file, and Save. The change will take effect immediately after that. One of the side-effect from this modfication is that your web surfing experience would be significantly faster because your browser does not have to wait for the annoying advertisement to load.

How to make my Ubuntu detect more than 4GB memory

There were a couple of people that I met recently complained to me that their Ubuntu only detects 3 gigs of RAM after they upgraded their machine to 4 GB RAM.

Actually the problem does not lie with Ubuntu or any operating system in particular, rather the problem is related to 32bit operating system which only can address maximum of 232 bytes of memory.

Some might argue that 32-bit should be enough to address 4GB RAM, but in reality some of those memory location are reserved for computer and application operation that only a fraction of it are addressable when you installed 4GB RAM on a 32bit operating system. Thus you would see that your computer would only have around 3.5 GB only.

The solution?

There are two solutions to remedy this problem :
i) Install a 64-bit (Ubuntu) operating system
ii) Compile/Install kernel with PAE features enabled

The (i) solution is obvious, just install a 64bit edition of Ubuntu to your computer, and your problem will be automatically solved! The downside is, you probably does not want to use a 64bit edition of Ubuntu yet for some obscure reason (the evil binary only drivers and blobs)

The (ii) solution requires you to install a kernel with Physical Address Extension (PAE) support enabled.

For you information, Ubuntu comes with pre-compiled linux kernel that has PAE enabled. What you need to do is to apt-get these 3 packages “linux-headers-server, linux-image-server and linux-server” and reboot your computer. This will enable you operating system to recognize the extra RAM installed inside your computer.

p/s : The best solution is to get a system that does not depend on binary blogs (hardware drivers, etc) and move to 64-bit operating system in order to enjoy the full potential of your computer.

How to Use Launchpad account as OpenID URL

OpenID is a standard that allows you to log into many websites or services using a single identity as oppose to memorize several different username and password on different websites.

Websites that provide OpenID identity are called OpenID providers. There are many OpenID providers, and one of it is Launchpad. Launchpad users can use their Launchpad account URL as OpenID URL in order to access OpenID-supported websites or services.

For example :
https://launchpad.net/~mypapit

The general form of Launchpad OpenID URL is: https://launchpad.net/~your_user_name.

Where I can use OpenID for authentication?

You can use your Launchpad URL for authentication at websites or services that feature OpenID logo. Examples of such services is Blogger comment form, Sourceforge and Facebook.

OpenID Logo

How to use Launchpad account as OpenID provider?
On website that supports OpenID, enter your Launchpad account url : https://launchpad.net/~your_user_name, replace your_user_name to your own username. Then, you will be directed to your launchpad account, enter your password and you will be automatically authenticated for the current service.

Screenshot example :

Using Launchpad Account as OpenID

The favorable side-effect of using your Launchpad account as OpenID is that you can indirectly promote (and probably brag) about your contribution (aka karma) towards Ubuntu.