Category: Linux

All about linux

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 3 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 ftp.test.com 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 No 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/nano.sh export VISUAL="nano" export EDITOR="nano" EOF User Default Editor cat <<EOF >>~/.bash_profile export VISUAL="nano" export EDITOR="nano" EOF

Access SD Card on Linux from Windows using VirtualBox

Author: | Categories: Linux 15 Comments
In order to use SD Card from Host OS (Windows) on Guest OS (Linux) through Oracle VirtualBox, follow below steps. Step 1 – Get the Device ID of your SD card reader. On Command Line enter below command wmic diskdrive list brief It will show something like this C:\Users\rizwan>wmic diskdrive list brief Caption DeviceID Model […]

Show Running Processes in Linux terminal

Author: | Categories: Linux, Raspberry Pi No Comments
The Linux terminal has a number of useful commands that can display running processes, kill them, and change their priority level. top The top command is classic way to view system’s resource usage and view processes that are taking up most system resources. Top displays a list of processes, with the ones using the most […]

Ubuntu – Boot into Text Mode / Console / Command Line

Author: | Categories: Linux No Comments
First backup GRUB file sudo cp -n /etc/default/grub /etc/default/grub.backup Edit GRUB file sudo nano /etc/default/grub Make following changes Comment the line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”, by adding # at the beginning, which will disable the Ubuntu purple screen. Change GRUB_CMDLINE_LINUX=”” to GRUB_CMDLINE_LINUX=”text”, this makes Ubuntu boot directly into Text Mode. Uncomment this line #GRUB_TERMINAL=console, by removing the […]