Categories
Solutions Ubuntu Web

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]
Categories
Open Source Solutions Ubuntu

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:

Categories
Open Source Ubuntu

Fixing – “Internal error: Segmentation fault”

Recently while compiling some programs I received an unique error message:

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

Even compiling 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 shouldn’t appear.

Categories
Web

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]
Categories
Open Source Solutions Ubuntu

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.