Setting Up Django on Windows — January 23, 2017

Setting Up Django on Windows


Django is a Web development framework written in Python. Therefore it has all the advantages of Python. Setting up Django in Linux is pretty straightforward, but Windows is different. This tutorial takes you through the process of installing Django in a Windows environment.I have written an Article on the topic Setting Up Django on Windows for OSFY, Open Source For You. Developers can easily setup Django in their machine. So the article is a tutorial on setting up Django on Windows.

I have shared the drive link below.

Setting Up Django on Windows


Installing Realtek rtl8723be driver for Ubuntu, Debian or Fedora — January 12, 2017

Installing Realtek rtl8723be driver for Ubuntu, Debian or Fedora

Originally written by  Chirath R

I have been searching for a fix for the wifi problems in my HP Pavillion ab-028tx. It’s having a Realtek rtl8723be Wifi Card. For a long time, there was no perfect driver for this device. I tried many drivers and none of them fixed the disconnection and low wifi range problems. At last, I found a fix from ubuntu forums. Follow these steps to get your wifi working in Ubuntu.

  • Get into your BIOS(in my case I had to press f10 after turning on my laptop). Then go into System Configuration->Boot options and Disable secure boot. This is very important as third party drivers won’t work in secure boot mode as they are not verified.
    • Save and restart(f10), open up a terminal (ctrl + alt + t) and type the following commands in order.
    • Installing new driver for the Realtek wifi chip.

    Note:  its suggested to have latest kernel installed(Linux kernel 4+).

    Step 1:

    Ubuntu :

    $ sudo add-apt-repository ppa:hanipouspilot/rtlwifi
    $ sudo apt-get update
    $ sudo apt-get install rtlwifi-new-dkms linux-firmware
    • Restart ubuntu.
    $ sudo reboot


    $  sudo apt-get install firmware-realtek

    Step 2:

    Common steps for all three OSes.

    • If you are not able to see your wifi networks, follow the steps below :
    • Download the driver by clicking “Download ZIP” from GitHub.(Note that the GitHub driver must be the master branch)
    • extract it to your home directory and open a terminal.
    • Execute the following commands :

    Step 3:

    Ubuntu and Debian

    $ sudo apt-get install linux-headers-$(uname -r) gcc g++ build-essential dkms git
    $ sudo reboot
    $ cd rtlwifi_new-rock.new_btcoex
    $ make
    $ sudo make install
    $ sudo modprobe -rv rtl8723be


    $ sudo dnf install kernel-devel kernel-headers
    $ cd rtlwifi_new-rock.new_btcoex
    $ make
    $ sudo make install
    $ sudo modprobe -rv rtl8723be

    Step 4:

    Common Steps

    • If you are unable to get wifi even now, change the antenna input to #2 using the command:
    $ sudo modprobe -v rtl8723be ant_sel=2
    • note : try changing ant-set=1 or 0 if it doesn’t work for u.
    • Now your Wifi will be working perfectly as in windows, now set input #2 as permanent.
    $ echo "options rtl8723be ant_sel=2 fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf

    And reload the module.

    $ sudo modprobe -r rtl8723be
    $ sudo modprobe rtl8723be

    Now your WiFi should be working perfectly 🙂 .

[Fedora] Add self signed certificate to list of trusted certificates — June 9, 2016

[Fedora] Add self signed certificate to list of trusted certificates


Originally written by  Jackson Isaac.

Today I am going to show you how to add a self signed certificate to the list of trusted certificates in fedora.

I was trying to install some packages on fedora and was getting SSL errors while I was connected to my university WiFi (which makes use of self signed certificate). In order to connect to my university WiFi, I need to accept and add a self-signed certificate to list of trusted certificates.

Note: Remember that adding self-signed certificates to list of trusted certificates is not recommended unless no other option is available.

We can add and trust the certificate from browser if you just want to browse the internet. But if you want connection in the complete environment i.e., terminal, browser, apps, etc. you can follow the steps mentioned below.

First we need to download the self-signed certificate from the WiFi portal or the web. For me, the certificate is available on my university intranet.

Step 1: Copy the self signed certificate to trusted certificates folder.

sudo cp /path/to/certificate.cer /etc/pki/ca-trust/source/anchors/

Remember to replace ‘/path/to’ with the folder in which your certificate is downloaded.

Step 2: Update list of trusted certificates

sudo update-ca-trust

Now you can connect to the internet via browser, terminal and other applications.

P.S.: Never do online transaction or other sensitive transactions on public WiFi.

Format USB using Terminal(Ubuntu) — April 28, 2016

Format USB using Terminal(Ubuntu)

All USB users face or will face the mounting problem  or formating problem. Don’t worry users . Here I have some tips for you.

The first thing you need to do.
1. Insert your USB drive into your system.

2. Open the terminal. (CTRL + ALT + T)

And type  ->  df -h
df -h For finding out where it is mounted
3.then  unmount this USB drive using the following command.

$ sudo umount /dev/sdc1
4.Now use one of the following commands as per file system you want. To format a USB drive most users prefer VFAT and NTFS file systems because they can be easily used on Windows operating system.

Format with vFat FileSystem

$ sudo mkfs.vfat /dev/sdc1
Format with NTFS FileSystem

$ sudo mkfs.ntfs /dev/sdc1

Format with EXT4 FileSystem

$ sudo mkfs.ext4 /dev/sdc1

So you are done with the formatting of pen-drive.The main use that I have by formatting the pen drive from the terminal is that we can format almost any type of pen-drive .

How to register your nickname with Freenode — April 25, 2016

How to register your nickname with Freenode

Freenode is currently under an attack by spammers. To avoid this, we temporarily have to register your nickname before we can see anything you type.

This is how you register your nickname:

  1. Pick a nickname, and connect. Make sure you have a nickname that you can remember the next time you log in. If you want to change it after you have connected already, type /nick YourNewNickname
  2. Type /msg NickServ REGISTER YourPassword into the text box of the chat — including the slash at the beginning, and replace the password and email address with something you select.
  3. Type /msg nickserv REGISTER YourNickName YourPassword
  4. You will get an Mail ,it will tell you the next step(command from IRC)
  5. your freenode is registered 🙂

Every time you log in later, you will have to issue the command /msg nickserv register YourNickName YourPassword before we can see what you’re typing.


Install and Configure Git on Fedora 23 — April 1, 2016

Install and Configure Git on Fedora 23

Git is the distributed version control system. Git is responsible for keeping track of changes to content (usually source code files), and it provides mechanisms for sharing that content with others.


  • As always, you’ll first want to ensure that the existing packages are up to date before proceeding with the installation:

-> dnf -y update

  • Then, you can install git with this command:

-> dnf -y install git

  • Once complete, git will be installed and ready to use!

As of the writing of this tutorial, the current version of Git available in the Liquid Web dnf repositories is version 2.5.0. You can check the version of git that was installed by running the following command:

-> git --version


  • To prevent any commit errors, it’s a good idea to set up your user for git (use the –global option to specify global configuration settings).

git config --global "sampleuser"
git config --global ""

  • You can verify the configuration changes by viewing the .gitconfig:

git config --list

  • That should produce output similar to the following:

[root@host ~]# git config --list

  • Generate ssh keyssh-keygen//ssh is both a program and a network protocol.Its allows a user to run commands on a machine’s command prompt without them being physically present near the machine.Enter passphrase (empty for no passphrase): [press enter]
    Enter same passphrase again: [press enter]
  • copy the ssh key and add it in the github repository.
  • Intialize empty git repository$ git init
  • enter every file to added$ git add .
  • $ git commit -m ‘first commit’
  • $ git remote add origin
  • $ git push -u origin master// ‘git commit’ records changes made to the repository while ‘git push’ updates the remote reference along with the changes.