Skip to main content


How to install python and configure django on a CentOS 6.7 Linux server with CPanel?

I recently had a chance to play with CentOS 6.7 server. My task was to re-install(reconfigure) run a Django site on it. Actually it was done by my around 2 years before. Then some system admin guy updated the system (especially PHP related stuff), and essentially he screwed up my (ie. I worked tm.) django website. I had lost the track on installing those things. So I would like to share my experience on reaching the point.

First of all I tried to locate the apache config file. My initial thoughts were about this file.
/etc/apache2/apache.conf I roamed here and there, to get some idea about the system.Here are my commands which I use these sort of tasks.
which httpd which apache which apache2 type httpd locate apache.conf locate httpd.conf whatis httpd  Sure, You should use man pages to get more info of these commands like which,type and locate. Try `man man` to know what man is.

Anyway, I got some ideas regarding where the conf files lies, especially with the help of locate command

Recent posts

How i changed my keyboard's Space key to Space and Ctrl in Ubuntu 14.04

The thing i wanted was to change my keyboard's behavior like this. When i press Space alone it is Space key. If i pressed with some other key, it is Ctrl.
That is Space+X gives Ctrl+X.

Install needed libs

sudo apt-get install libx11-dev libxtst-dev Get the source
git clone Install
cd Space2Ctrl make sudo make install
How to use?

Start by typing this in a terminal

s2cctl start
And now Stop by

s2cctl stop
How do i use it?

I added it to ~/.bash_login. So when i login to computer it works.

How to run android apk in your Google Chrome browser with Google's ARC

Google's plan on merging android with ChromeOS is on the way.

What you need is

1. Google Chrome 41+. It works on PC,Linux,Mac.
Or Chromebook on Chrome Version 41+.
2. You apk files to run
3. The ARC Welder app

1. To get chrome

In ubuntu/debian you can install *.deb file by

sudo dpkg -i google*.deb
In fedora/ RedHat Linux 

rpm -ivh google*.rpm
2. To get your apk files
Either use
Or some sites like

3. Go to The ARC Welder app.And install it from Google Chrome browser.

I used this game (2048) for testing.

This is the result i got.

NB:- There is a limitation. It's is only possible to do one app at time

I tested on Ubuntu 14.04 and Fedora 21.


Brython: Python in Browser

Brython is python in browser.

Yes, You can just run it in the browser.

What you need is to get brython.js from their github.

And put it into some folder of your choice.

Now create a html file and call that js.

<html><head><script src="brython.js"></script></head><bodyonload="brython()"><script type="text/python"> from browser importdocument, alert, console def echo(ev): alert(document["zone"].value) console.log('Hi, this is from python') document['mybutton'].bind('click',echo) </script><inputid="zone"><buttonid="mybutton">click !</button></body></html>
Here is piece of code i copied from their website (Infact, modified a little bit).

What is important?
1. including

<script src="brython.js"></script>
Yes this line, calling/…

DKIM Signing for postfix mail server Ubuntu Server 12.04

DomainKeys Identified Mail (DKIM)Lets an organization take responsibility for a message that is in transit. The organization is a handler of the message, either as its originator or as an intermediary. Their reputation is the basis for evaluating whether to trust the message for further handling, such as delivery. Technically DKIM provides a method for validating a domain name identity that is associated with a message through cryptographic authentication.
In essence, it will help you to avoid going your mail into spam. Follow each steps remember to change with your domain.
And selector with your selector(ie, any text).
1.Login to root and install opendkimsudo su sudo apt-get install opendkim opendkim-tools 2.Making directory and generating keysmkdir /etc/opendkim/ cd /etc/opendkim -s means selector so change the word after it we have to chose a selector, here selector
-d means domain so change the word after it as our need,here
opendkim-genkey -s selec…

Making colorful PDFs from web pages

This article show how to print the web pages into pdf.

Press Ctrl + P after completely loading the page.

In Google Chrome select Save as PDF, set Margins: None and tick Background colors and images.

Now press Save button and give the filename. This is gives best pdf on my experience.

For Firefox, in windows, you may not get print to pdf options by default. So you have to install either PDFCreator or PrismoPDF.

After pressing Ctrl + P

You get  a window, shown below, from which you have to select Printer Name ( PDFCreator here)
You can make sure it is color by clicking in Properties in the above windows

Now press ok. Then get another windows in which you have to select Save.

If you like you can also try changing options in the above figure.

Playing Android Games, Running APK in Windows 7,XP etc.

First you need to install Bluestacks

Bluestacks Download

After downloading this file you have to run the file to complete the installation process.

You need Internet connection to complete the above step

After installation is done you can install almost any apps from PlayStore, or 1mobile.

Also if you have apk file then you can install by double clicking it (No internet needed).

You can access apps from Apps shortcut  in the Desktop.

NB:- You need atleast 2GB to run this app