This blog will contain non-technical, fun and personal posts. All my technical posts will be posted on SMD's blog, http://www.smd.com.my. Looking forward to see you there! :-)

Qemu : Share Folders Between Guest And Host OS

Qemu -smb option does not work on Debian/Ubuntu because of a bug in Samba package. Rebuild the Samba package without the –with-fhs option to work around it. But you still can use samba without “-smb” option. Lets say you have ubuntu as host OS and WindowsXP guest OS.
Install samba server on host OS :
sudo apt-get [...]

CD Burning In Kernel 2.6.x (IDE)

If you’re still running kernel 2.4.x, to burn a cd you’re forced to use SCSI emulation (under kernel module ide-scsi). But in kernel 2.6.x, it’s easy as 123. We can use ide-cd.
Firstly, you’ll need to load it:
sudo modprobe ide-cd
And to burn a cd, you have to make an iso file. Use apt and get the [...]

Google Gears Does Not Work In Linux

Google Gears is a small application designed to help you use Google services offline. The installation seemed to work successful and the extension also is listed in the addons, but google gears setting page does not appear. Maybe you’re facing the same problem, here’s the solution.
If you’re running Firefox (For some reasons they called it [...]

Securing Your MySQL Installation

Many distributions of Linux have an option to install MySQL. In this case, or even if you compile MySQL, the default password is blank.
Make sure that you set password for the root user. This is the command:
mysql -u root mysql
SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(’s3cr3tp4s5w0rd’);

ERROR: QEMU requires SDL

ERROR: QEMU requires SDL or Cocoa for graphical output
To build QEMU without graphical output configure with –disable-gfx-check
Note that this will disable all output from the virtual graphics card.
While compiling I got the following errors. To solve this problem, I’ve to install SDL library.
sudo apt-get install libsdl-dev
Should works with Ubuntu or any Debian-based distro.

Pidgin and SSL

While connecting to GoogleTalk/MSN, if you see this message:

Server require TLS/SSL for this connection

That’s mean you did not compile Pidgin with SSL support. All you have to do is to install required ssl.
sudo apt-get install libssl-dev libnss3-dev
Recompile and all done! Have a try.

Google Toolbar Doesn’t Install On Debian

Debian change Firefox to Iceweasel. Since Google’s toolbar does not install as the installer does not recognize Iceweasel as Firefox. To get full Google Toolbar support:

in the navigation: about: config
filter for : general.useragent.extra.firefox
change Iceweasel/2.0.0.4 To Firefox/2.0.0.4

Go back to Google Toolbar’s website, and install.

How To Install MadWifi On Debian 4.0 (Etch)

First of all, make sure your /etc/apt/source.list doesn’t only contain “main” but “main contrib non-free”. And then, update your APT.
1. Update
apt-get update
2. Install Build Environment
apt-get install build-essential module-assistant wireless-tools
module-assistant prepare
3. Install the driver
module-assistant auto-install madwifi-source
4. Load it!
modprobe ath_pci
That’s it! Have fun and happy surfing.