Archive for the 'Kubuntu' Category

Viewing Embedded QuickTime Movies via Firefox on Ubuntu 2

I was at Apple’s website last night and eager to check out the latest stunning aluminium unibody MacBook, and it was then I realised that my Firefox (on Ubuntu) doesn’t have the ability to play Apple’s de facto online streaming media – the QuickTime movie.

I know that MPlayer has a plug-in, “mplayerplug-in” (a Mozilla browser plugin to allow playing embedded movies on Web pages using MPlayer.) for Firefox for dealing with this problem so in wasting no time I type the followings in the terminal:

sudo apt-get install mplayer mozilla-mplayer

p.s. You might have to enable the “multiverse” repository first in order to install all the required packages.

After the installation, I restart the Firefox for the MPlayer plug-in to kick in, and I was able to watch that embedded video showing how Apple design and produce the beautiful 13′ MacBook from a single aluminium block – I’m very impressed I must say.

Firefox Problem After Upgrading to Ubuntu 8.10 (From 8.04) 0

After the smooth process of upgrading my Ubuntu from Hardy Heron (8.04) to Intrepid Ibex (8.10), I happen to notice my Firefox (version 3.03) starts to behave differently. For instance, Firefox’s toolbar always returns to the default layout and some of installed add-on icons do not appear even they are functioning properly.

After some trials and errors, I eventually found the culprit that is causing this strange behaviour: Ubuntu Firefox Modifications (version 0.6) add-on. Once it is disabled, Firefox behaves like normal. I suspect a newer version of this add-on is needed for the new Ubuntu 8.10, however I’m still yet to notice any problem after disabling it…

Restarting/Restoring Audio in Ubuntu Without Rebooting 24

Occasionally on my Ubuntu machine the sound/audio somehow stops working, and although most of the time this can be fixed by closing and then restarting the audio programme (or any other service that occupies the audio driver) you’re running. However on odd occasions the audio still fails to work and you might have to reboot the OS in order to get the audio/sound back which is rather irritating.

Here is a quick way of restarting/restoring your audio/sound without rebooting your Ubuntu system, try using the following command:

sudo /etc/init.d/alsa-utils restart

This should restart your ALSA (Advanced Linux Sound Architecture) driver instantly. However, sometimes certain programmes still keep holding on the audio driver even after your restart ALSA. Try the following command:

lsof | grep pcm

to find out the list of open files and close (kill -9) those processes that are still holding the sound driver.

How To Enable Remote Access to MySQL Database Server On Kubuntu 0

With the default installation on Kubuntu, MySQL server is configured to be accessed ONLY via localhost, due to the security issues. Nevertheless, it is necessary to open the remote access should you wish to connect MySQL database externally either via SSH or to be used with scripts reside on external Web servers. Here, I provide some easy steps to configure your MySQL database server so that it can be accessed remotely.

First of all, log in to the machine, where the MySQL database is installed, via terminal (or SSH if you’re doing it remotely) and following the steps below:

Step 1: Find “my.cnf” File
Look for MySQL configuration file (my.cnf), for K(U)buntu systems, this is generally located at ‘/etc/mysql/my.cnf’. Use a text editor (e.g. Pico or vi) to edit the content.

$ sudo nano /etc/my.cnf

Step 2: Disable the “Networking Locking”
Within my.cnf, search for the line that starts with the following:


In the block of [mysqld], comment out the following line:


and make sure to change the IP address assigned to the “bind-address” is the same as IP where MySQL server is installed. So the block of “[mysqld]” should looks like similar as follows:

# * Basic Settings
user = mysql
pid-file = /var/run/mysqld/
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
# For compatibility to other Debian packages that still use
# libmysqlclient10 and libmysqlclient12.
old_password = 1
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address =
bind-address = "whatever your MySQL server IP is"

* bind-address: IP address to bind to.
* skip-external-locking: Don’t listen for TCP/IP connections at all. All interaction with mysqld must be made via Unix sockets. This option is highly recommended for systems where only local requests are allowed.

Step 3: Restart MySQL Service
Save and close my.cnf file, and restart the MySQL server for the changes to take effect:

$ sudo /etc/init.d/mysql restart

Step 4: Grant Access to Remote IP Addresses
Enter the following command:

$ sudo mysql -u root -p mysql

For granting the access to new databases:
If you want to add new database called remoteDB for user remoteUSER and remote IP then issue the following commands:

mysql> CREATE DATABASE remoteDB;

For granting access to existing databases:
Assuming the connection will be made from a remote IP address at, to database called remoteDB via user account remoteUSER. Enter the following commands:

mysql> UPDATE db set Host='' WHERE Db='remoteDB';
mysql> UPDATE user set Host='' WHERE User='remoteUSER';

Host IP can be used to mark a wide range of addresses, for instance, the following command:

mysql> GRANT ALL ON remoteDB.* TO 'remoteUSER'@'123.45.67.%' IDENTIFIED BY 'PASSWORD';

covers all class C subnet IPs.

Step 5: Testing MySQL Database
Issue the following command from remote system:

$ sudo mysql -u remoteUSER –h –p

* -u remoteUSER: remoteUSER is one of the user account for MySQL.
* -h IP or hostname: is MySQL server IP address or hostname (FQDN).
* -p : Prompt for password.

Make Firefox as the default Web browser for Thunderbird in Kubuntu 1

When clicking on any hyper-link embedded in your email messages from Thunderbird in Kubuntu, the deafult Web browser Thunderbird uses seem to be Konqueror. This is particular annoying especially after you have already set the default Web Browser to be Firefox, inside KDE’s System Settings.

This is due to the fact that all Gnome (GTK+) applications, e.g. Thunderbird, look for their default application settings somewhere different than the KDE applicatons. Hence, simply change the default application settings inside the KDE system panel doesn’t affect all the programmes.

Here is how to make Thunderbird to use Firfox as its default Web browser, via the use of “update-alternatives” command.

1. Invoke the update-alternatives command in the terminal:

$ sudo update-alternatives --config x-www-browser

2. Then you should see the following, asking you to choose which alternative you wish to be set as the default application, ih this case, I chose 2 (Firefox).

There are 2 alternatives which provide `x-www-browser’.

Selection Alternative
*+ 1 /usr/bin/konqueror
2 /usr/bin/firefox

Press enter to keep the default[*], or type selection number:2

3. When you re-run the the same command again, you can see the default x-www-browser is already been switched to Firefox (denoted with a star mark in the front):

There are 2 alternatives which provide `x-www-browser’.

Selection Alternative
+ 1 /usr/bin/konqueror
* 2 /usr/bin/firefox

Hope this helps!! 🙂

Xserver-xorg Core Update Problem 0

Apparently there is a bug in the recent xserver-xorg core update package, if you happen to run apt-get upgrade lately and are experiencing problems in getting the xserver to start then the fix is to *downgrade* the xserver-xorg package to a earlier stable version by issuing the following command:

sudo apt-get install xserver-xorg-core=1:1.0.2-0ubuntu10

Only God knows how this bug slipped through and ended up in the main repository!! 😐

Next Page »