Category: Linux

All about linux

GIT Server on Raspberry Pi with Http Backend and GitWeb

Author: | Categories: Linux, Programming, Raspberry Pi No Comments
For Source code you want to share to the world, there is GitHub, but for closed source projects there are many paid and free options. This article is all about setting up your own private Git server on your home network using Raspberry Pi. Following modules will be used: Git Core Http Backend: to access […]

Digital Ocean Dynamic DNS

Author: | Categories: Linux, Networking, Raspberry Pi No Comments
Here is bash script to dynamically update DigitalOcean domain name ‘A’ record to create dyndns type service on your Linux system. Pre-Requisites 1. Domain ( registered at DO 2. Subdomain ( which you want to point to a machine whose public IP is not constant 3. DO API key. Can be obtained from 4. […]

Enable SSH on Raspberry Pi without Monitor

Author: | Categories: Linux, Raspberry Pi No Comments
Raspbian by default has disabled SSH server. To enable it without Keyboard and Monitor, follow any of the below mentioned methods. Preliminary requirements: 1. You should have Raspbian image written on SD Card 2. You should have a machine with SD Card reader and OS which supports reading ext filesystem Method 1 1. Mount SD […]

Raspberry Pi Ethernet to WiFi

Author: | Categories: Linux, Networking, Raspberry Pi No Comments
This tutorial is about using your Raspberry Pi (or any Linux box) as WiFi router. Setup I am using Raspberry Pi 2 with Raspbian Strech. Edimax WiFi adapter. Internet enabled Ethernet connection. Check Ethernet Before continuing make sure the Ethernet cable is connected in and you can ping out from the Pi try ping ping […]

Dual Boot Ubuntu on Mac

Author: | Categories: Linux, Mac No Comments
This is step by step guide to install Ubuntu on Mac in dual boot configuration without using rEFInd or any 3rd party tools. I assume you have created a bootable Ubuntu USB flash drive installer and have verified the contents. I also assume you have verified hardware compatibility by successfully booting the live version of […]

Update WordPress Manually using SSH

Author: | Categories: Linux, Wordpress No Comments
This is Step by Step guide to manually update WordPress Core on your Linux server using SSH. You may need it if you have set restrictive file permissions on your server or for any reason. 1. First create a full backup of your website. This is very important in case you make a mistake you […]

Download all files from FTP in Python

Author: | Categories: Linux, Programming, Windows 6 Comments
You can use this Python script to download / clone entire FTP directory recursively from remote FTP Host. Let’s say you would like to download www-data directory and all sub directories inside this one from server. #!/usr/bin/python import sys import ftplib import os import time server = "FTPHOST" user = "anonymous" password = "anonymous" […]

Control Raspberry Pi LEDs from Web and Mobile

Author: | Categories: IoT, Linux, Programming, Raspberry Pi 2 Comments
In this post, I’ll demonstrate controlling couple of LEDs connected to Raspberry Pi GPIO from Web. LEDs could be replaced with any devices so its a kind of basic IoT project too, so this core design can be extended to any scale and many devices can be controlled simultaneously. Programming is done in Python and […]

Mount (Automount) VHD partition in Ubuntu host

Author: | Categories: Linux, Windows No Comments
Most of the time you need to add hard disk space to you virtual machine without effecting Primary hard disk. Below procedure can be used to add another virtual hard disk to Ubuntu hosted inside Hyper-V. 1. Add new hard disk from VM settings. 2. Start virtual machine and start terminal or connect through terminal […]

RHEL CentOS set default editor to NANO

Author: | Categories: Linux No Comments
VI is a wonderful, full feature text editor. However, some might lack experience with VI and prefer a simpler text editor for quick configuration and other edits. Install nano yum -y install nano System Default Editor cat <<EOF >>/etc/profile.d/ export VISUAL="nano" export EDITOR="nano" EOF User Default Editor cat <<EOF >>~/.bash_profile export VISUAL="nano" export EDITOR="nano" EOF