[SOLVED] VLC does not support the audio or video format “h.264” on Ubuntu

I got the following error in VLC today while trying to play some media file:

VLC does not support the audio or video format “h.264″. Unfortunately there is no way for you to fix this.”

All other media files game same error with different codec names. I couldn’t play anything in VLC. To fix the problem I installed package called libva1.

sudo apt-get install libva1


[SOLVED] “undefined symbol: menu_proxy_module_load” error in GNOME applications

In all GTK apps I used to get the following warnings when run from terminal:

`menu_proxy_module_load': /usr/lib/virtualbox/VirtualBox: undefined symbol: menu_proxy_module_load
(<unknown>:23888): Gtk-WARNING **: Failed to load type module: (null)

This error was received while running Virtualbox. Though, it seems just a warning and doesn’t really change anything in the application, it does make the terminal messy. I figured I could fix the problem by simply installing appmenu-gtk.

So, run the following command to fix the issue:

sudo apt-get install appmenu-gtk


[HowTo] Save all flash video files being played in Chrome/Chromium to Home directory

After watching a video on youtube in chrome, I felt like saving it. I couldn’t find the flv in ~/.cache or in /tmp. So I dug around and found this link: http://superuser.com/questions/235535/in-google-chrome-on-linux-where-is-the-flv-if-not-in-tmp.

The solution by omab worked for me. So I wrote this one line command which would save all the currently playing files in Chrome and Chromium in home directory.

A=`ps auwx | grep "flash" | grep "chrom" | awk '{print $2}'`; ls -la /proc/$A/fd | grep Flash | awk '{print $8}' | xargs -I _ mplayer /proc/$A/fd/_  -dumpstream -dumpfile ~/_.flv

Leave your thoughts in the comments!


[HowTo] Stop phpmyadmin from asking username, password in localhost

Yesterday, I showed you how you can keep local installation of phpmyadmin from logging you out every few minutes. I took one more step and edited configuration to not ask me username, password at all. Now phpmyadmin never asks me for mysql username and password.

Keep in mind if you follow this tutorial anyone would be able to access your database using phpmyadmin unless you deny access via apache configuration. Don’t do this on production servers.

Steps to follow:

  • Run: gksudo gedit /etc/phpmyadmin/config.inc.php
  • Find:
    $cfg['Servers'][$i]['auth_type'] = 'cookie';

    And change it to:

    $cfg['Servers'][$i]['auth_type'] = 'config';
  • Just below this line, add:
    $cfg['Servers'][$i]['user'] = '';
    $cfg['Servers'][$i]['password'] = '';

    Replace and with mysql username and password.

  • Save the file.
  • Changes will be applied immediately, no need to restart apache.

Now, you’ll never have to enter username and password in phpmyadmin.


[How-To] Move your Ubuntu Installation to new hard-drive

I had some hard-drive free space constraints and bought a new 500GB one. Now I wanted to transfer/migrate my current installation to the new hard-drive. Here’s how to do it.

First we need to copy the complete filesystem to the new drive. Connect both the drives to your computer and boot using ubuntu live cd. We need to boot using live cd because we can’t copy the filesystem while booted into it.

Mount both the partitions, that is – your older root partition and the newer root partition (I assume you have already partitioned your drive).

sudo mkdir /media/old
sudo mkdir /media/new
sudo mount /dev/sda7 /media/old
sudo mount /dev/sdb7 /media/new

Now copy using rsync.

rsync -ax /media/old /media/new

This will take much time as it will copy all the data to your new drive/partition.

After this, you’ll still have to setup your MBR (master boot record). For that you’ll need to install Grub on your new drive. Click here to find about how to setup grub.

[Solved] Really slow Synaptic downloads

I was trying to install some applications when I saw extremely low speed of downloading. I had a fast connection and browsing was fast. Therefore, there was a problem with the synaptic.

To solve this:

Go to System -> Administration -> Software Sources
In the ‘Download from’ box choose other.
And click on ‘Select best server’.
It will ping all the servers to check the connection speed with all of them and will select the fastest amongst them.

After choosing the fastest server, you will see that the download speeds rise significantly.


Installing applications (Using synaptic package manager and terminal)

Applications is the key element of a computer. Without applications/softwares, computer is useless. Ubuntu has a pretty good software installation mechanism. All the softwares are at one place in Synaptic Package Manager which. This makes it easier to install applications. Instead of browsing the application website and downloading it from there and then installing it, all the applications are at one place. Just click on the application, mark it and you have it installed without any need of your intervention.

This is by far the best thing I liked in Ubuntu. You can access the synaptic package manager from System->Administration->Synaptic Package Manager. Type the application name and it will search as you type. To install an application, just right click on the application and select ‘Mark for installation’ and click on Apply. Your application will be downloaded and installed right away.

To install the same application using terminal, you can note down the exact name of the application as it appears in the Synaptic Package manager and in the terminal type:
sudo apt-get install package-name

Type in your password and your application will be installed after downloading.

In the default setup, there are most of the important repositories already added.

Repositories are collection of software which is at one place. If you add a repository in the source list, the applications available in the repository will be available in Synaptic Package Manager.

The source file is in the path /etc/apt/sources.list
You can add or remove repositories in this file.

That was a brief explanation about the application installation procedure on Ubuntu.

I hope you liked it.


Extracting and adding files from and to Rar and 7z files

For Rar files:

My friend sent me a link to a rar file just today. After downloading, I found that rar file wasn’t supported natively on Ubuntu. I tried different softwares but none was good. So finally I installed rar and unrar, both of them aren’t free. They provide integration with the native gnome archive manager.
To install them, type the following line in terminal and press enter:

sudo apt-get install rar unrar

When you double click a rar file it will automatically open with gnome archive manager (file roller). Also, you’ll be able to see the rar format option available in the create archive dialog box.

For 7z files:

I also wanted to have 7z support while I was at this. So I just installed p7zip-full for this. It also provided integration with default archiver of gnome. To install it, type the following in terminal:

sudo apt-get install p7zip-full

This will give 7z support. Try double clicking a 7z file and it will open directly in archive manager. You will also find the option to select 7z in create archive dialog box.


[Solved] Wlan led does not blink in Ubuntu

This is a common problem in Ubuntu. The led which shows wlan activity doesn’t blink (flicker) at all. I googled and found some results out of which this tutorial helped a lot:


This maybe due to the fact that I am using madwifi drivers for my wlan. The other solution that I found was, though it didn’t work on mine but it has worked for many others:


Connecting to a windows computer on LAN using Samba

Well, you would consider this to be very difficult task to accomplish but it wasn’t. It was confusing at first but once you know what you got to do, its really simple.
Samba is the application you need for this purpose. To install samba type:

sudo apt-get install samba4

in terminal and enter your password to download and install samba. Installation could also be done using Synaptic Package Manager.

Windows Vista had changed the way it authenticated users. It was different from windows xp. Samba wasn’t able to able to share files with windows vista due to this reason but it has been solved since Samba3.

Okay, getting back to the topic..

You also need smbclient to surf the windows shared files on the network. Install that by typing the following command in terminal:

sudo apt-get install smbclient

This will install the smbclient. To browse the shared folder, you can just go to Places->Network->Windows Network and find all the shared computers there. If you don’t see the shares there, don’t worry. I wasn’t able to see as well, so I typed smb:// in the address bar of any file explorer, where is the ip address of the windows vista computer.

To share files from ubuntu to windows, just right click on a folder, then click on properties. Click on share and select the ‘Share this folder’ option. It may ask you to install some services. Click on yes to install them. After installation, you’ll be able to browse the folder on your windows vista like a normal windows computer.

The guide may have some errors. Pardon me if thats the case. Remember, I am just a newbie. This did work for me, though.