Archive for the ‘Tricky Tips’ Category

Howto: Convert Redhat and Fedora .rpm files to .deb files in Ubuntu

July 13, 2009

Did you find an rpm that isnt available as a .deb file? I would share the easy process of converting rpm to deb, check it out.

To do this, install Alien using:

sudo apt-get install alien

And convert using:

sudo alien -k name-of-rpm-file.rpm

To install .deb packages, double click the file and click Install Package or simply:

sudo dpkg -i name-of-created-deb-file.deb

Alternatively you can simply install rpm files, This command converts rpm to deb then installs the deb file, after it will delete the temporary .deb created
sudo alien -i name-of-rpm-file.rpm



svn triks

June 29, 2009

SVN commands

Create Repo

svnadmin create <repo name>


svn checkout or
svn co<port>/svn/ltm-cg
svn co file:///svn/ltm-cg

Updating revision

svn update

Status check

svn status

Adding to new version

svn add <name> or svn add *

Deleting an item from revision

svn del <what u want to del>

Committing new revision

svn commit -m “any comment”

Ignoring unrevisioned  item during svn status check

First go to the svn directory where you want to ignore.

svn propset svn:ignore <give a suitable name> .

and you will find a message like ” property ‘svn:ignore’ set on ‘.’ ”

Now to edit this property file first export EDITOR=vi and the run

svn propedit svn:ignore <you just give name with propset>

To delete a ignore property – svn propdel svn:ignore <prop file name>

To view the property list – svn propget svn:ignore <prop file name>

build issue for pidgin on debian

June 29, 2009

Here is, what I needed to install additionally:

XSceenSaver development headers: libxss-dev
Startup notification development headers: libstartup-notification0-dev
GtkSpell development headers: libaspell-dev libgtkspell-dev
libxml2 >= 2.6.0 development headers: libxml2-dev
GStreamer development headers: libgstreamer0.10-dev
Meanwhile development headers: libmeanwhile-dev
avahi development headers: –disable-avahi
D-Bus development headers : libdbus-1-dev libdbus-glib-1-dev
NetworkManager development headers: network-manager-dev
Perl development headers: libperl-dev
GnuTLS or NSS SSL development headers: libnss3-dev
Tcl development headers: tcl8.4-dev
Tk development headers:

after installing these packages run the config scripts as follow –

./configure –prefix=/usr/local/pidgin –enable-nss –disable-avahi –disable-tk

Don’t forget to export this path on your PATH variable!!

Perhaps this saves some googleing.

If you still fails to run pidgin ..

just remove the .purple dir from your home and run ldconfig and then run pidgin again. 🙂

Another easy way I recently found –

you need to add this line:

deb lenny-backports main

and then:

apt-get update
apt-get install debian-backports-keyring
apt-get update

to let the system know about the new source, to install the keyring and to let the system know about the installed keyring.

to install from backports you need to run:

apt-get install -t lenny-backports

I hope this will help you

Mounting samba share

June 7, 2009

To mount a windows or samba share on your system –

smbclient -L

sudo mount -t smbfs // /where

Then browse the directory and access what you need.

If authentication require –

then use this additional option with while mounting ..

-o username=”user\pass”

Download the entire content of a site

July 20, 2008

wget is a command line tool for downloading any object from net. It also be used to download

the entire content of a site too. Here is a example of doing so

wget -r  -l0  –no-parent  http://urltodowload


– r = recursive

-l0= restricts the recursiveness to only 0 levels deep

–limit-rate = to mask your download somewhat, 20KB would be nice i think

-nc = for avoiding downloading linked files already downloaded
-w = to wait 4 seconds between retrievals
–random-wait = to make the -w time * 0-2

-A jpg,jpeg tells it to only save .jpg and .jpeg files

-U = user-agent
-S = print server response
http_proxy = does what you asked (note that i don’t know wheither wget might automaticly fall back on no proxy or not)

Now the wget command with all these switces –

wget -U “Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.7.3) Gecko/20040916” -r -l 2 -A jpg,jpeg -nc –limit-rate=20K -w 4 –random-wait http_proxy http://username:passwrd@(ifneeded) -S