5 open source software to use daily

Open source is here to stay and is a major contender with closed source and proprietary software. Open Source software is now quite easy to use so if you are considering starting out in using open source because you have heard a lot about it, you might be wondering what all software is available for you to use to get your routine jobs done.

Below are 5 software applications that most users use for more than 2 hours day.

Ubuntu and Fedora

The most important piece of software on any machine, these Operating systems are the best. Ubuntu is one of the most user friendly Linux Distribution with a huge number of contributors and the largest user base. Fedora is just right for a simple server which you do not have to house sit too much. Fedora can also be quite easily used as a desktop OS. I run ubuntu on my home and work systems and fedora on my test servers.


The browser is the software that is turned on first after my OS boots up and is the last software to be closed before being shut down. Further goes to reinforce how network oriented, the computer world now is. The possibility to install addons endeared it to me and millions of others, and the way it is implemented is much better than Opera’s widgets and much safer than IE’s activex controls. The sheer number of addons available is mindboggling. The theme of the browser can be changed too, but I don’t think many people actually use that feature anymore. My most popular addons are adblock, twitterfox and firebug.

Open Office

My boss needs pretty reports and prettier statistics and charts. Open Office proves quite competent for the job. You have Writer for reports and text documents, Calc for spreadsheets and Impress for presentations. There is also Math and Draw which come in useful at times. It does have performance issues and could do with an appearance makeover but since this project is much more complicated than the others mentioned in this page, it can be forgiven.

Evolution (Kontact for KDE)

Both of these are Mail clients with bundled contact managers, calendars and to-do lists. They both have desktop integration with the clock in the system tray in both GNOME and KDE in most major distributions. Support for IMAP, POP, SMTP, Exchange servers are all available. They should usually be available in your distibution’s official repositories if you are using linux. For windows, you could have a look of thunderbird, though I find it unnecessarily complex for my simple needs.

XChat & Pidgin

These are chat clients, the former exclusively for irc and the latter is a multiprotocol chat client which I use primarily for for googletalk and yahoochat. Pidgin does handle irc too, but I like xchat for irc better.

GEdit (Kate for KDE, Vim for ssh access)

When you gotta code, you gotta code. These no-nonsense text editors are perfect for writing up the code before you run your favorite compiler on it. Syntax highlighting for different languages is available and Vim support autocomplete for some languages with plugins. But I like the GUI better for the simpler multi-tab facilities which makes it similar to modern day browsers. I still haven’t gotten used to the tabs in nautilus though.

Other software that I use frequenty are Banshee for music library management and playback, GIMP for image editing, Filezilla for ftp access, VLC Media Player playing video files and Tomboy notes for taking quick notes while on the phone. There are probably hundreds of alternatives for these software in the Open source world and the more you explore, the more treasures you will find. These however are the ones you will find most commonly installed out of the box on major distros. Have fun and let me know what you think about this post via the comments .

Amazing Linux User

A Ladakhi person with his laptop running fedora

A Ladakhi person with his laptop running fedora

A ladakhi person using fedora on this toshiba satellite is not something I expected to see, but here he is typing away in ladakhi. Apparently his friend installed fedora on his laptop for him to use and he has not yet had any problems with it. Linux is now really user friendly considering that this use is so completely not a technical person. I now have renewed respect for Jammu and Kashmir.

How to buy a new computer

TFT Monitors aren't very costlier than CRTs, look cooler and save on your power bills

TFT Monitors aren't very costlier than CRTs, look cooler and save on your power bills

I am often asked by friends or friends of friends to help them get a new computer for their office. Since I know a lot of people in the NGO sector who are highly budget conscious, they all prefer to get systems that not only help them get the job done but would also like to keep maintenance costs to a minimum.

Here are a few tips on buying a new computer either for the office or for yourself or as a gift to someone you know. There are a lot of sites giving you the technical information so I am not going to be covering the specifications and prices. You can visit npithub.com or itwares for latest prices in India. Some excellent forums where the members are helpful and provide excellent advice are thinkdigit forums, suggestafix forums and techspot forums. All these are Indian so you can even get the best configuration for your budget. You will have to register at these sites before you can post.

Before you decide on a system to purchase, here is what you should ideally do.

Decide on the purpose of the computer system

Your needs define the configuration of the system you are going to buy. If you need a system for gaming, you probably need lots of RAM, a good graphics card and probably the latest processors. Same for a design rig.

If you plan to watch a lot of movies and want a home entertainment machine, you will need lots of storage. If all you plan to do is draft email, write up reports and play the occasional game, a modest configuration will do quite well. Making a list of activities you plan to do on a system will help you avoid purchasing a costly system when you have no need for it, or rather, using the money saved to buy you some accessories and/or cool gadgets.

Decide on your budget and stay within it

This is the second thing you need to do. Or it could be the first. If you aren’t clear about how much you are willing to spend, you are going to spend more than you can afford and will then have to cut back on other expenses like getting a good branded UPS or external hard drive or whatever. Decide on a price range and when you start looking, look for a computer that matches your lower limit. You ARE going to get suggestions to go for a better system and before you know it, reach the top limit. Stop there. The lastest specifications aren’t going to be the latest for more than a month, so don’t bother getting more than your needs.

Decide what all accessories you need

While budgeting, make a list of what all you need to buy. If you have frequent power cuts, get a UPS. If you need to have data portable, get an External Hard Drive. Need video chatting, get a webcam and a microphone/headset. Plan for speakers. Plan for your Internet connection. Do you need a printer? How many prints are you gonna need each month? Less than 100, get a inkjet printer. If more than hundred or if you can afford a laser printer, it has less running costs.

Get prices from various brands and compare with an assembled machine

Visit the websites of popular brands like HP, Lenovo, Dell and have a look at the available configuration and their prices. Get to your local assembler and ask for a similar configuration. Check the quality of the components, brands etc. Compare the prices. Sometimes branded machines come cheaper. Visit showrooms of the brands and see if there are some sales or old stock being pushed off at discount prices.

Read the fine print

While budgeting, don’t forget the taxes. It is 4% in Delhi for computers, may be more in your case. Especially while purchasing for your office, include it. What about installation charges, does it cost extra? Is the operating system included? FREEDOS is pretty useless as an OS if you did not already know. Are other software like Office Suites bundled?

Check the warranties

Prefer systems with the longest warranties, preferably onsite. If the warranty is only for one year, ask how much an extension would cost. IBM provides MA packs through its partners that cost about 3000 for a Thinkcentre per year. Extending a warranty while buying would save you some money.

Decide the software needed

And finally decide on what software you are planning to use. Does the system have bundled software. Is it licensed? Are they full versions or trial versions? Avoid using pirated software. Consider using linux distributions which are user friendly, like Ubuntu.

So these are a simple set of guidelines which I hope will help you. If you have any more queries or suggestion, do leave a comment.

Enabling mod_rewrite on fedora system with drupal

After deploying drupal on a test machine, and configuring the site, the deployment got stuck when I wanted to enable clean urls, but the check kept failing saying the the machine was not configured properly for clean urls. Most documentation on the internet and on the drupal documentation itself seems to be for debian based distros.

However the problem seemed to be that my drupal was installed on a subdirectory as a virtual host and a simple rewritebase /drupal solved the problem.

If you have the same problem, you could start solving from here. Continue reading

Fixing a broken .htaccess for drupal

The Drupal site at tekipad.com broke its clean url functionality and every attempt to access similar to tekipad.com/node/33 began redirecting to tekipad/blog ‘s 404 error page. tekipad.com/?q=admin links worked fine though.
On accessing the root directory of the site via ftp and downloading .htaccess, the error seemed obvious. The following lines needed to be added.
As an introduction, the site is organized as follows:
/ is the root directory of tekipad.com which runs drupal
while the wordpress blog is installed at /blog

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

You may need to be careful of the following parts in the last two lines:
1) ^/(.*)$
if your site is to be accessed as a subdirectory of your site, the part has to be modified to ^/subdir/(.*)$
2) /index.php?q=$1
this has to be /subdir/in1dex.php?q=$1

Was a basic mistake but took a couple of hours to find and fix it. I was assuming the problem was in the drupal database.

Man Pages:

Backing up all discussions in a facebook group with perl

The Facebook group named “A Consortium of Pub-Going, Loose and Forward Women” has been hacked more than 6 times in the last one week itself. You must have heard of, the’re the pinkchaddi girls. :p

This script is set as a cronjob on my computer to back up the group each hour (for this group with about 147 discussions, it takes about 20 minutes, but then, my ISP sucks). By changing the first url in the script, it should work properly on any group. The script takes the first discussion page of the group, then takes each discussion, compiles all the posts one after the other and dumps them to text files in a folder, then zips them and emails them to a specified email id.

To email, you need access to a mail provider who gives you smtp access. The script can authorize itself.

You need these dependencies for it to work.

Net_SSLeay.pm (Open SSL)

Just search for them with your favorite package manager or use cpan to install them. For my first perl script, I am pretty happy with it. :) You can take this script and use it for yourself, and make any modifications you want. If you do make any improvements, consider posting it back in the comments, so I could use it too.

And oh, keep in mind that facebook officially isn’t too happy with you taking the content off their site through scripts.

#! /usr/bin/perl
# The following dependencies are required
# libarchive-zip-perl
# Net_SSLeay.pm (Open SSL)
# IO-Socket-SSL
# Authen-SASL
# Net::SMTP::Multipart; had to install this from cpan on ubuntu

require LWP::UserAgent;
use LWP::Simple;
#customize here ################################
#the gmx mail service is used for sending mail.
$backuprecepient = ‘admin@bkpman.com’; #to whom the email should be sent to
$firstlink=’http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.facebook.com%2Fboard.php%3Fuid%3D49641698651&h=9414c6f6348d4f61fe31bf4f46cf9da1′; #the script expects the link to the first page of the discussions. Login *must* not be required.

$ua=new LWP::UserAgent;
# we have two lists, one is the list with links that need to be navigated to, say ‘tonav’.
# we get the page, then add the page link to the one navigated, say ‘hasnav’.
# on each navigation, we get all pageno links and check if they exist in ‘tonav’ or ‘hasnav’, if not add those to ‘tonav’. And add current page to ‘hasnav’.
# the loop continues as long as there are links in tonav.
while (scalar(@tonav)>0){
push(@hasnav, $discussionlistlink);
$request=new HTTP::Request(‘GET’, $discussionlistlink);
$maincontent=~ m/<li class=”current”>(.*?)</li></ul></div></div>/;
$pagenossource= $1;
#facebook wants to fuck up my script. :( ugly hack. must be a better way. firefox seems to interpret it properly though.
$pagenossource=~ s/amp;//gi;
@links=$pagenossource=~ m/<a href=”(.*?)”>d/gis;
#we find the further discussion list pages links here
for $link (@links) {
for $tonavitem (@tonav)
if ($link eq $tonavitem) { $disclinkexists=1; }
for $hasnavitem (@hasnav)
if ($link eq $hasnavitem) { $disclinkexists=1;}
if ($disclinkexists==0) { push(@tonav,$link);     }
#we get the actual discussion links here
@links=$maincontent=~ m/<h2 class=”topic_title datawrap”><a href=”(.*?)”>/gis;
for $link (@links)
for $discitem (@discussionlinks)
if ($link eq $discitem) { $disclinkexists=1; }
if ($disclinkexists==0)
$linkreg=~ s/amp;//gi;
push(@discussionlinks, $linkreg);
@timeData = localtime(time);
$directoryname=”fbbackup”.join(”, @timeData);
mkdir “$directoryname”, 0770 unless -d “$directoryname”;
for $discussionlink (@discussionlinks)
#for each link, go the discussion page, follow each page and find the page no. links. Finally discussionpages will have the list of discussion pages
$topic = “”;
while (scalar(@tonav)>0){
push(@hasnav, $discussionpage);
$request=new HTTP::Request(‘GET’, $discussionpage);
if ($topic eq “”)
$maincontent=~ m/<h2>Topic: <span>(.*?)</span>/gis;
$topicwrapper=~ m/>(.*?)</gis;
$maincontent=~ m/<div class=”pagerpro_container”><ul class=”pagerpro”>(.*?)</div></div>/gis;
$pagenossource= $1;
#facebook wants to fuck up my script. :( ugly hack. must be a better way. firefox seems to interpret it properly though.
$pagenossource=~ s/amp;//gi;
@links=$pagenossource=~ m/<a href=”(.*?)” onclick/gis;
#we find the further discussion list pages links here
for $link (@links) {
for $tonavitem (@tonav)
if ($link eq $tonavitem) { $disclinkexists=1; }
for $hasnavitem (@hasnav)
if ($link eq $hasnavitem) { $disclinkexists=1;}
if ($disclinkexists==0) { push(@tonav,$link); }
if ($topic)
(my $filename = $topic)=~ tr/a-zA-z0-9/_/cs;
$activity=”=========================================n$discussioncount of “. scalar(@discussionlinks) . “nTopic: “.$topic.”n”;
print $activity;
if (scalar(@hasnav)>1) { pop(@hasnav); }
$activity= scalar(@hasnav) . ” pages in discussion.n”;
print $activity;
for $hasnavitem (@hasnav)
$activity= $hasnavitem.” initiated.”;
print $activity;
$request2=new HTTP::Request(‘GET’, $hasnavitem);
$discussioncontent=~ m/<div id=”all_threads”>(.*?)</div></div></div><div class=”UIWashFrame_SidebarAds”>/gis;
@posts=$discussionpageallthreads =~ m/<div class=”post_index”>(.*?)<ul class=”actionspro”>/gis;
for $post (@posts)
$postreg=~ m/Post #(.*?)</gis;
$postreg=~ m/<span class=”author_header”><strong>(.*?)</strong>/gis;
$postreg=~ m/timestamp”>(.*?)</span>/gis;
$postreg=~ m/<div class=”post_message”>(.*?)</div>/gis;
$postmessage=~ s/<br />/n/gi;
$postmessage=~ s/<.*?>//gi;
$postmessage=~ s/  */ /gi;
$filecontent=$filecontent .”Post #” . $postindex . ” by ” . $author . ” (” . $timestamp . “)n”;
$filecontent=$filecontent . $postmessage . “n”;
$filecontent=$filecontent . “————————————————————————-n”;
$activity = “…completedn”;
print $activity;
$filecontent=”Topic: ” . $topic . “n” . $postcount . ” posts in discussion n====================================n” . $filecontent;
open (DISCNPAGE, “>$directoryname/$filename”);
print DISCNPAGE $filecontent;

# Create a Zip file

use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
my $zip = Archive::Zip->new();

# Add a directory
my $dir_member = $zip->addTree( “$directoryname/”,”$directoryname/”  );

# Save the Zip file
unless ( $zip->writeToFileNamed(“$directoryname”.”.zip”) == AZ_OK ) {
die “unable to save the zip file the files are probably backed up in directory $directoryname”;
#delete the backup folder
use File::Path;
$delA = “$directoryname”;

use Net::SMTP::Multipart;
my $to = $backuprecepient;
my $subject = “Backup $directoryname”;
my $body = “Backup zip file attached.n ————————-nn$activitylog”;

my $from = $smtpuser;
my $password = $smtppassword;
my $smtp;

if (not $smtp = Net::SMTP::Multipart->new(‘mail.gmx.com’,
Port => 25,
Debug => 0)) {
die “Could not connect to servern”;

$smtp->auth($from, $password)
|| die “Authentication failed!n”;
$smtp->Header(To=>$to, Subj=>$subject, From=>”$from”);


Aha! just found that there is a radio button ‘show HTML literally’ below the blogger edit box. Now I can post my code directly into blogger. :)

Solving the /elgg/acton/systemsettings/install not found error in elgg

While installing elgg on the fedora server, I faced this problem when I accessed http://address/elgg

The first installation form came up and on submitting I was presented with the error:

Not Found. The requested URL /elgg/action/systemsettings/install was not found on this server

However it is a well documented error and is easy to solve. Edit /etc/httpd/conf/httpd.conf and Edit the line saying 

AllowOverride none 


AllowOverride all

in the global section, not in the directory section. You could probably do it directory wise too but I didn’t bother.

The edit the .htaccess file in /elgg to point to the correct directory as

RewriteBase /elgg/

(I just needed to uncomment that line). Now reload Apache Configuration

/etc/init.d/httpd reload

Works fine now.

Solving Fedora Core 10 troubles, Network Interface with Static IP not brought up automatically

I installed fedora on another old system that was lying around.

Unfortunately the asus board that it came with an intel graphics bug due to which the gui based anaconda installer wasn’t diplaying correctly. To install in text mode, when the primary screen comes up and asks you to choose a boot option
select “Install or upgrade an existing system” and then press the tab key
You will see the following line

vmlinuz initrd=initrd.img

Add text to the line and make it

vmlinuz initrd=initrd.img text

Hit enter and Fedora install should start in text mode.

During the install, most of the setup went smoothly aside from the following hassles
1. A normal user account was not created
2. Fedora will not start up in Graphical mode.
3. The Static IP I set for my system works, but the ethernet interface is not brought up after boot. So after each boot I have to manually go to the system and do a
ifup eth0
Now that is not acceptable since I plan to put this in the basement anyway to run as a sync server. I can’t be running down each time. So lets solve #3 for now.

So here we go.
Firstly, turn off Network Manager and turn on network

chkconfig NetworkManager off
chkconfig network on

then edit the file /etc/ sysconfig/network-scripts/ifcfg-eth0 as required. On mine it looks like this

# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+

DNS1 and DNS2 can be whatever your DNS addresses are. HWADDR should be whatever your MAC address is and is probably already entered. NETMASK, IPADDR and GATEWAY are self explanatory. ONBOOT and NM_CONTROLLED need to be set as above for the interface to be brought up properly.

A shutdown -r now works ok and I am able to ssh back within seconds again after it reboots.
Next post on creating the new user account

Old/New Fedora 10 Server

There was an old machine lying around in the basement which noone wanted.  I had my eyes on it for a long time but it had only about 64 MB of RAM. Finally I begged for some RAM and got it from Binoy. And installed Fedora Core 10 on it the same day. Actually I had a lot of webapps and servers lying all over my network and wanted to put up all my personal and experimental stuff on one system.

Just the default install, then httpd, trac, subversion and glpi and it is still working like a charm. I backed up all data from my office servers and moved it there.

There were however a few issues that needed a quick sorting out. Hope it helps someone.

Most servers, even after install do not autostart on boot. You need to set the appropriate chkconfig entries. I had trouble with apache and mysql. However sshd starts automatically.

chkconfig –level 2345 httpd on
chkconfig –level 2345 mysqld on

Also the firewall port for http was disabled by default. Opening


and enabling the port fixed it quickly.

Everything looks hunky dory. Now for some actual coding.