Categories
Linux Open Source Ubuntu Web

Setting Up Simple Dropbox Integration with Ubuntu

Image representing Dropbox as depicted in Crun...
Image via CrunchBase

The default installer of Dropbox for Ubuntu works with the Nautilus file manager. But this integration is not always desireable, below is a method to install Dropbox on your Ubuntu box without installing Nautilus.

Categories
Linux

Search for Multiple Strings in Linux Command Line

Problem:  I have a text file with a lot of information, I need to pick lines of information containing a particular pattern(s) and store it in another file

Solution: Use egrep to filter out lines with required pattens and write the result in a file.

egrep is actually a short form for “grep -E”, a command used to handle pattens while searching.

For Eg.
Lets say you have a text file with a list of file names and you want to filter out only those names that are of a certian type. For the sake of this example lets assume you want to only see filenames of files ending with .mp3 or .wav or .ogg

The command you need to use is:

cat file | egrep “.mp3|.wav|.ogg” > musiclist.txt

Voila you now have a file that sorts out your music files.

Bonus: If you want to list out all the music files you have stored under a particular directory you can use the following command

ls -1R /path/to/music | egrep “.mp3|.wav|.ogg” > musiclist.txt

Reblog this post [with Zemanta]
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.