Category: Linux
All about linux
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 […]
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" […]
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 […]
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 […]
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
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 […]
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 […]
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 […]
Update Fetches the list of available updates. It downloads package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies. It will do this for all repositories and Personal Package Archives sudo apt-get update Upgrade Upgrade is used to install the newest versions of all packages […]
Hyper-V and Virtualbox are not in the same category. Below is a comparison chart between two. Hyper V Virtual Box Server virtualization Desktop virtualization Type 1 hypervisor. It’s headless virtualization that runs directly on the hardware Type 2 hyperviosr. Virtualbox requires an OS and is a virtualization application that runs on your desktop Hyper-V is […]