10 Apr 2014

Three Free And Secure Windows XP Alternatives

Microsoft finally pulled the plug on Windows XP on 8 April, 2014. Computers running Windows XP won't get any further security updates-patches. This means that the computers running Windows XP have become more vulnerable to the security risks even if they are running latest anti virus-malware products because operating system level exploits are beyond the scope of these products.

4 Dec 2013

Enable Numlock on bootup in GDM, LightDM and LXDM

GDM :-

First you'll have to install package 'numlockx'. It is available in the repositories of almost every Linux distribution. After you have installed 'numlockx' package open the following file as root in your favorite text editor,


/etc/gdm/Init/Default


1 Dec 2013

A nice looking and useful bash PS1 prompt

It's been a while since I blogged anything. Getting lazier. Anyways the folks who use Linux and/or Mac are familiar with Bash. It's the default shell in most of the Linux distributions and Mac. And the folks who use these operating systems also know the power of working in the terminal. And the prompt you see whenever you open the terminal is controlled by PS1. Most of the time the default prompt is, let's face it, boring. Today I'm gonna give you a nice, colorful, two lined prompt that also displays the exit status of the last command. Exit status means whether the command failed or succeeded.

30 Jun 2013

we don't like cricket, WE LOVE IT.

Just behold the following image,




Isn't that a beautiful cricket venue? That is Threlkeld Cricket Club. It is a small village club in Cumbria which has a 1st X1, a midweek side, an U11 and an U13 side.Cricket has been played at Threlkeld for nearly 100 years and until 10 years ago the facilities consisted of a tin shed. After many years of hard work and tireless fundraising, enough money was raised to build a new club house. 5 years after this a local farmer donated a large piece of adjoining land and the pitch was extended, the ground levelled and a new square laid. Threlkeld was runner up in Wisden's prettiest ground competition. The ground is not only used for Cricket but for the village school sports day, hound trailing, children’s parties and other local events. It is truly a community facility.

In June 2012 after a period of heavy rain a raised culvert filled with gravel and overflowed. Tonnes of gravel, rubble and toxic silt were deposited on large parts of the ground, especially the square. The water course drained old lead mine workings upstream and as a result the silt was laced with lead, arsenic and cadmium.




Not only does the rubble need to be removed but the top soil is contaminated and will need replacing along with proper disposal (a study has been carried out by the England & Wales Cricket Board). Estimates from the England & Wales Cricket Board suggest this will cost upward of £50,000 to sort out. Not only has the club lost it's ground it has also lost a key revenue stream as no money is being spent in the bar on match days and the ground can't be used for events. The club has very limited financial resources and without help Cricket may never be played at Threlkeld again.

But the players of Threlkeld Cricket Club don't like cricket, THEY LOVE IT. So, rather than sobbing at the loss of their long shadows on a manicured green wicket, the team packed up their whites and went on a search for the most inspiring and extreme wickets the glorious Lake District has to offer. Check them out,














Local photographer Stuart Holmes willingly volunteered to record their extra ordinary cricket matches. The result is an amazing A3 calendar featuring 12 unique and individual cricketing photos. If you buy this amazingly beautiful calendar you also support them in their effort to save their cricket club and keeping their cricket alive. So if you really love cricket i urge you to visit their official website rainstoppedplay and buy it today.

You can visit their Facebook page on,
https://www.facebook.com/ExtremeCricketCalendar

Cheers!!!!

26 May 2013

hakbak - Ultimate file backup tool for Linux

Scenario:

Yesterday i decided to play with my conky configuration file. I edited it and then saved it. Today when i ran conky somehow i didn't like it. It wasn't looking as good as my old configuration. Now here comes the problem! I just can't seem to get the current config to look like the old one! I have forgotten what changes i made yesterday! Damn!
Fortunately it was just a conky configuration file. what if it was some system file? I would have broken my system. What if it was some important work file? That would have been disaster!
This kind of disaster can happen to anybody and everybody who sometime or other edits their files. It happens to the best of us. A simple thing can prevent such a disaster from happening. You may ask what is that?
That simple thing is create a backup copy of file every time before opening it. But implementation of this practice is not easy! Stress, hurry or plain old silly moment and "Hell! I forgot to backup the damn thing!" Disaster!!!

Solution:

I have pieced together a bash script and named it 'hakbak'. hakbak automatically creates backup copy of a file you are about to open. hakbak adds the current time (d:m:y.h:m:s) at the end of file extension so if you have edited a file multiple times you will have multiple backups of that file to choose from. hakbak is almost bulletproof!
What is more intersting is that hakbak after creating backup will also open the file in your chosen application. What this means is that you can create one version of hakbak that can create backup and open a file in gedit or text editor of your choice. If you are a musician or a sound professional you can modify hakbak and make another version that can create backup of your audio file before opening it in for example in audacity. Similarly if you are an artist working with images you can create one more version of hakbak to create backup of your image file before you open it to edit in gimp. You can create as many versions of hakbak you want. Possibilities are endless!

How to install hakbak:

First download the 'hakbak.zip' file. Download Links are at the bottom of the page. Extract 'hakbak.zip' and copy the extracted folder 'hakbak' to your user directory.
We will in this example create three versions of hakbak. You can create as many as you please.
First version is for text and configuration files. We will call this version 'hakbaktext.sh'. Open terminal and run the following command


cp ~/hakbak/hakbak.sh ~/hakbak/hakbaktext.sh

Second version for audio files.


cp ~/hakbak/hakbak.sh ~/hakbak/hakbakaudio.sh

Third version for image files.


cp ~/hakbak/hakbak.sh ~/hakbak/hakbakimage.sh

Okay time to set default applications that hakbak will use.
By default hakbak will open text or configuration files in 'GNU nano'. If you like to edit files with 'GNU nano' skip this step. But if you prefer 'gedit' you can use it as the default application. Run the following command in terminal to make 'gedit' open text and configuration files via hakbak. If you use some other text editor like leafpad, mousepad, geany, vim etc. just replace 'gedit' in the following command with the name of the text editor of your choice.


sed -i 's/nano/gedit/' ~/hakbak/hakbaktext.sh

For second version i'm gonna set 'audacity' as default. Just as above run this command in terminal and again replace 'audacity' in this command with the audio editor of your choice.


sed -i 's/nano/audacity/' ~/hakbak/hakbakaudio.sh

And the third version for image files. Replace 'gimp' in the following command if you use a different image editor.


sed -i 's/nano/gimp/' ~/hakbak/hakbakimage.sh

Now we are going to move all these versions of hakbak to a suitable location. Open terminal and run the following commands.


sudo cp ~/hakbak/hakbaktext.sh /usr/bin



sudo cp ~/hakbak/hakbakaudio.sh /usr/bin



sudo cp ~/hakbak/hakbakimage.sh /usr/bin

Now we need to make them executable. In terminal run the following commands.


sudo chmod a+x /usr/bin/hakbaktext.sh



sudo chmod a+x /usr/bin/hakbakaudio.sh



sudo chmod a+x /usr/bin/hakbakimage.sh

How to use hakbak:

It's very simple. Whenever you want to open a file and if it's a text or configuration file just open terminal, type hakbaktext.sh and press 'Enter' key. hakbak will run and ask for the file path. Give your file path and hit 'Enter'. hakbak will create a backup of that file with current time at the end of the file extension and open it in 'gedit' or any other text editor you have set.

For example i want to open and edit .conkyrc file which is inside 'conky' folder in user directory. I will open terminal and run,


hakbaktext.sh

And when prompted for the complete file path i will enter my file path,


~/conky/.conkyrc

Easy, isn't it?
I can do the same with audio files. This time i will run hakbakaudio.sh in terminal,


hakbakaudio.sh

And will enter the path to my audio file when prompted,


~/music/test.mp3

When i want to open an image for editing i will open terminal and run,


hakbakimage.sh

Then i will enter the path to the image i want to edit,


~/images/image1.jpg


When you want to edit text or config files that require super user privileges just use 'sudo' in terminal with hakbak.
For example i want to change the default boot entry of grub2. For this i need to open and edit '/etc/default/grub' file. Now i will need elevated privilege to edit this file. So i will run hakbaktext.sh with 'sudo' or 'su' in terminal,


sudo hakbaktext.sh

I will be prompted to enter 'sudo' password and after that when hakbaktext.sh asks for the complete file path i will enter the path to the default grub config file,


/etc/default/grub

Conclusion:

I'm not a programmer and this script might not be the most elegant one but it does the job! And it does it with simplicity! You don't have to install any thing extra. And you just run it from terminal so it fits in your routine easily. And once you start using hakbak you will almost never lose important data. You will always have multiple backups ready if something goes wrong. hakbak is like your personal 'Version control system'.
Comments, Suggestions, Thoughts are welcome! Cheers!!!

Update (26-06-13):

Bodhi Linux forum member spainach came up with hakbakmod. hakbakmod comes with install script, .desktop file and zenity.  Install script makes it very easy to install and zenity gives graphical user interface and .desktop file makes it available from menu. So you don't have to use terminal to run and operate hakbak. Thanks spainach for this wonderful mod. You can download hakbakmod from the Download section below.

Download Links:

Download Link 1:

Download Link 2:

Download Link 3:
Download hakbak

Download Link  4
Download hakbakmod

Download Link 5
Download hakbakmod

Download Link 6
Download hakbakmod

9 May 2013

NetChecker is now available on SOFTPEDIA

Exciting news as NetChecker is now available on softpedia. They have tested NetChecker and issued 100% clean award.

Feel free to visit NetChecker on softpedia,
http://www.softpedia.com/get/Network-Tools/Network-Testing/NetChecker.shtml

Cheers!!!

1 May 2013

NetChecker is now available on FreewareFiles.com

NetChecker is now also available on FreewareFiles.com! They have also hosted NetChecker setup file on their mirror! I want to thank FreewareFiles.com for hosting NetChecker.
NetChecker on FreewareFiles,