Skip to content


Getting Multimedia Working on Ubuntu

Ubuntu wordmark official
Image via Wikipedia

If you are a newbie Ubuntu user then in all probability you have struggled to get the system setup to listen to your favorite music, watch your favorite movies and browse your favorite sites(video and flash).

Is there a quick simple way to fix these problems in one go? Yes there is :)

All you need to do is to install the Restricted Extras package for your distro and you are set to go.

For (K/X)Ubuntu 9.04 (Jaunty Jackalope) and 9.10 (Karmic Koala)

Based on your derivative of Ubuntu, install one of these packages:

(K/X)Ubuntu 9.04, 8.10, 8.04

  • Go to your system’s Application installer
  • Search for the package ubuntu-restricted-extras(Ubuntu), xubuntu-restricted-extras (Xubuntu) and kubuntu-restricted-extras (Kubuntu) and install it.

Or Alternatively open the Terminal, and execute the following command:

sudo apt-get install ubuntu-restricted-extras

Reblog this post [with Zemanta]

Posted in Solutions, Ubuntu, Web. Tagged with , , , , , , , , , .

Upgrading to the Latest Firefox – Ubuntu Hacks

The generic globe logo used when Firefox is co...
Image via Wikipedia

Heard a lot of wonderful reviews of the latest firefox? Want to try it out on your Ubuntu box?
Well unfortunately Ubuntu does not update its Firefox packages immediately after the release. To give a good test run for the latest and best you need to add the repository for the latest release of firefox. The steps are explained below:
Continued…

Posted in Open Source, Solutions, Ubuntu. Tagged with , , , , , , , , , .

Fixing – “Internal error: Segmentation fault”

Recently while compliing some programs I recived an unique error message:

c++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See for instructions.

Even compling a simple Hello World program gave the same error.

To fix the problem I needed to use a program called debsums on Ubuntu. debsums is a program used to check the MD5 checksums of your installed deb packages. You can install it using the command:

sudo apt-get install debsums

and run it using the command:

debsums | grep -v OK

The above command lists all the packages which have not been installed correctly. If the following line is present in the output:

/usr/lib/gcc/i486-linux-gnu/4.4/cc1plus FAILED

then all you need to do to fix your system is the following command:

sudo apt-get –reinstall install g++-4.4

Now when you compile your code the earlier error shouldnt appear.

Reblog this post [with Zemanta]

Posted in Open Source, Ubuntu. Tagged with , , , , , , , .

The Best DNS for you

Having a quick Domain Name Server is very important for that lightning quick internet experience. Fortunately there are ways for you to easily figure out which DNS works best for you.

Namebench as described at its website:

It hunts down the fastest DNS servers available for your computer to use. namebench runs a fair and thorough benchmark using your web browser history, tcpdump output, or standardized datasets in order to provide an individualized recommendation. namebench is completely free and does not modify your system in any way.

All you need to do is download the program and run it. After a few minutes of churning out calculations the program will tell you the best DNS settings for your system.

Reblog this post [with Zemanta]

Posted in Web. Tagged with , , , , , , .

Recovering Deleted Data on Linux…

Imagine this situation -  “you are browsing through your photos on your camera or on your your thumb drive.  You decide to clean up the unwanted photos/data and start deleting files.  All of a sudden you realize you deleted your best photo or that important file. How do you get the data back?”

Firstly dont create any new files or copy any new data on the disk.  This will make sure that the data is recoverable (once the sectors where your file used to reside get overwritten its impossible to recover).

Now there are two simple solutions I found for recovery problems.  Both work best in different situations:

GDDRescue

ddrescue is a simple program that copy bit by bit information form one area of the hard disk to another.  It has loads of amazing features but the one that I like the most is that it ignores unreadable sectors and moves on.  This feature is very useful when recovering movies.  It also makes it easy to recover media files if you have the torrent from which you originally downloaded the file.

sudo apt-get install gddrescue

ddrescue -r 3 /media/cdrom/movie.avi /home/user/movie.avi

In the above command
-r 3 :- makes the program to retry to recover data from a bad sector 3 times and then move on.
/media/cdrom/movie.avi :- The input file
/home/user/movie.avi :- The recovered file

Foremost:

Foremost is a simple application that recovers data from a damaged disk. It goes one step better by sorting out the information for the common file types. The output of Foremost is a directory which has a series of subdirectories where files like jpg, avi, mpg, bmp ect are recovered and stored. This is a perfect application to recover specific data from a disk

To install Foremost use the following command:

sudo apt-get install foremost

To run foremost use the following command:

sudo foremost -i /dev/sdb1 -o /recovery/disk

In the above command
-i indicates the partition/file to be recovered from.
-o indicates the output directory where the recovered files will be stored.

Once the recovery is done you will need to change the ownership of the output directory so that you can read the files. Use the following command to do that:

sudo chown -R username /recovery/disk

Ps: There are more complex methods and applications to do data recovery on Linux. These two are the simplest I have used. Feel free to share your suggestions in the comments.

Posted in Open Source, Solutions, Ubuntu. Tagged with , , , , , , .

Antivirus in Linux…

Off late I have been looking at Antivirus solutions in linux.  Logically it seems like a great idea to me.  Most of the really bad viruses attack the antivirus system directly and cause major damage to the system, having your AV in a opertating system that is much more secure gives you a better guarantee that you can rescue your system.

There are many antivirus solutions for Linux.  I have personally tried ClamAV and Avast.

ClamAV is a command line tool that makes protecting linux systems a simple affair.  The system was orginally made to scan email attachments and does a great job running in the background.  ClamAV is the prefect soulution for someone who wants to install the AV and let it take care of itself.

To Install ClamAv use the following command in Ubuntu

sudo apt-get install clamav

You can a scan of any folder using the following command

clamscan -r -i -l avscan.txt –move=avscan/. /media/disk

The above command scans the folder “/media/drive” recursively and if an infection is found the original location is stored as an enty in the “avscan.txt” file and the infected file is moved to the folder “avscan”.

Avast Antivirus is the more like the traditional Windows Antivirus.  It has a simple UI for updates and scanning of folders and files.  The learning curve is minimal and the antivius is updated very regularly too.

You can download and install Avast from the following location:

http://www.avast.com/eng/avast-for-linux-workstation.html

Reblog this post [with Zemanta]

Posted in Ubuntu. Tagged with , , , , , , , .

Joining Videos using Mencoder

Mencoder is an extremely powerful video converter that is capable of converting video from almost any format to any other format.  One of the simplest exercises to do with Mencoder involves joining two videos to make a single video.

To join the videos all you need are the videos and Mencoder installed on your system.  You can install Mencoder on your Ubuntu box using the command

sudo apt-get install mencoder

Now lets say you plan to join videos a.mpg and b.mpg to a video c.mpg

Go to the command line (to the folder containing the videos) and execute the command -

mencoder a.mpg b.mpg -ovc copy -oac copy -o c.mpg

Thats it!  You can join more videos with a single shot but remember that the order in which you have listed the videos the final video will be created in the same order.

Reblog this post [with Zemanta]

Posted in Media, Solutions, Ubuntu. Tagged with , , , , .

Test Drive The All New Ubuntu/Kubuntu Netbook OS

Wubi
Image via Wikipedia

The latest version of (k)Ubuntu comes with a Netbook OS to suit the small screen and moderate horsepower netbook segment of notebooks. The version is light weight and makes good use of the features common between netbooks to get the best out of your netbook.

The official websites recommend you download the iso and create a bootable flash drive using the iso. The step by step method to do it is given in the following links:
Ubuntu – Netbook Remix
KubuntuNetbook Technical Preview

If you are like me and dont want to go thru the process of installing Karmic Koala again, you are in luck… You can test the new Netbook Remix directly from the default desktop install of Ubuntu/Kubuntu.

If you are using Ubuntu you just have to install the “ubuntu-netbook-remix” package. That can be done with the following command:
sudo apt-get install ubuntu-netbook-remix

If you are using Kubuntu you just have to install the “kubuntu-netbook” package. That can be done with the following command:
sudo apt-get install kubuntu-netbook

When you reboot and login you will automatically be taken to the netbook remix of your OS.

PS: The version is one of the earliest releases, so expect updates and more improved performance in the near future.

Reblog this post [with Zemanta]

Posted in Laptop, Ubuntu. Tagged with , , , , , , , , , .

µTorrent in Windows 7 & Other Links

Fix For uTorrent In Windows 7There are reports in various forums that uTorrent exceeds memory limit and shoots up to 100% in other cases some downloads will stop at 99.9%. In few cases uTorrent shows false reports and works oddly. – Here is how to fix those nagging problems.

The Master List of New Windows 7 Shortcuts – Lifehacker’s list of useful Windows 7 shortcuts.

How to Bring Back the Old Facebook Feed – Irritated with the new facebook feed separation? Here is how to get back to the old ways.

Reblog this post [with Zemanta]

Posted in Web. Tagged with , , , , , .

Mplayer without Text

I upgraded my desktop to Kubuntu Karmic 9.10 yesterday and realized an unique problem. There was no text displayed in the OSD(On Screen Display).

Mplayer without Text

If you open the file in command prompt mode you will see the following message:

subtitle font: load_sub_face failed.

The reason for was basically that Mplayer could not find the required font file to display the text. To solve the problem you need to open the .mplayer directory in your home directory. And do one of the two following things:

  1. Copy any font file of your choice to that directory and rename it subfont.ttf (You will find fonts at /usr/share/fonts)
  2. Open the config file in the .mplayer directory and add the following lines:
    font=/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman.ttf
    subfont-text-scale=2.5

Ps: You can replace the link to your favourite font after the font= command.  Also using Method 2 will let you even set the size of the font

Reblog this post [with Zemanta]

Posted in Media, Open Source, Solutions. Tagged with , , , , .