Jul 3, 2013

How to upgrade to Pulse Audio 3.0 in Fedora 18

Fedora 18 is shipped with Pulse Audio 2.1 which causes troubles with certain media players like VLC. The solution is to upgrade the Pulse Audio version to 3.0 which will be available with Fedora 19.

  1. Change the directory to /etc/yum.repos.d
  2. As super user, download this file to above directory. This is the repo file for the backported Pulse Audio 3.0.
  3. sudo wget http://repos.fedorapeople.org/repos/rdieter/
  4. Now upgrade the Pulse Audio package to 3.0
  5. sudo yum upgrade pulseaudio

Mar 4, 2013

How to create a wireless access point in Ubuntu 12.10/Linux Mint 14 for Android

Latest versions of Android operating system do not support connecting to ad-hoc wireless networks. So it is no longer possible to create a wireless hotspot to connect your Android device to Internet via your regular wired Internet connection or 3G connection. The solution is to create a wireless access point (i.e. infrastructure mode).

Following post precisely explains how to create a wireless access point in Ubuntu.


At the end, you will end up with a bash script which will start the wireless access point. If required you can add it to start up, so that it is no longer required to run it manually.

This was tested with Linux Mint 14 (based on Ubuntu 12.10) and Android 4.2 Jelly Bean on Nexus 7.

Feb 21, 2013

How to print the result of a MySQL query to a file from MySQL console

Sometimes it is useful to output the result of a MySQL query to a file directly from the MySQL console, especially for debugging purposes. I am writing down it here just in case if I need to later.

- First create a file to which the output should be written.

touch output.txt

-  For this file, give the write permissions to the mysql user. I will just enabled write permission for every user.

chmod > o+w output.txt

- Log into the MySQL console.
> mysql -u user -p

- Select the database.
mysql> use my_database;

- Before executing your command, direct the console output to the file which was created previously. After this command, all the commands and the respective results will be printed to this file.

mysql> tee /path/to/output.txt

- Now execute your command. The output will be written to the file.