How to recover data / folder deleted with rm -rf

Today Accidentally I deleted one of my folder in ubuntu which has contained important files, but I wanted to copy those to another machine by tarring it, while there was another archive / tar with same name, I wanted to delete that .tar but deleted folder resulting deleting very important files. To recover those files … Read more

How to disable and / or enable ICMP ping from Linux host ?

To disable the ICMP ping from certain linux host, lets say which has IP of 192.168.0.100 use below command, Type below command on the console of linux PC on which you are trying to enable / disable the ping. $ sudo iptables -A INPUT -p icmp –icmp-type any -j REJECT $ sudo iptables -A OUTPUT … Read more

How to Add new user and Delete existing user on Ubuntu ?

In this post we demonstrate, how you can create a new user in Ubuntu, give the sudo / admin permissions to this user and also delete any existing user. Adding a new user in Ubuntu Now, if we check the home directory of the newly created user, we will see it only created “examples.desktop” and … Read more

Ubuntu doesn’t detect WiFi Access Point

Recently I came across very different problem when I moved to a place where there was few more access points, my laptop had ubuntu 14.04. [ Note: Users has reported that this works on latest Ubuntu versions also ] $ lsb_release -a I could see lot of other access points in my ubuntu network manager, … Read more

Implementing Backup and Restore mechanism using BUP in Ubuntu

BUP is a program that backs things up. It’s short for “backup.” BUP is a Very efficient backup system based on the git packfile format, providing fast incremental saves and global deduplication (among and within files, including virtual machine images). In, simple words, you can use “bup” to take backup of something at one place or … Read more

How to Change Hostname for Ubuntu Machine ?

Recently, we wanted to change the hostname of our ubuntu 15.10 / 16.04 machine, $ lsb_release -a No LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 15.10Release: 15.10Codename: wily Lets, check now what is current hostname, $ hostname new-hostname So, its set to “new-hostname” Now, to change the hostname lets say “my-netbook”, user the command as, … Read more

Fix : Lost Sudo user in Linux

Add “Sudo” user If somehow you Lost a “sudo” user which happened to me today, after ungrading to ubutntu 12.04, just goto root user, $ su root Password: # adduser username sudo # reboot Now, after successful reboot, you should have a “sudo” user as your “username”

Using ubuntu apt-get package manager to install, remove packages, upgrade ubuntu / How to keep ubuntu always updated and clean

Update ubuntu package list $ sudo apt-get update update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and updated … Read more

How to install Apache webserver on Ubuntu ?

The Apache HTTP Server is a open-source HTTP server for modern operating systems including UNIX and Windows. Apache provides a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards. This post details, how you can install and setup the apache webserver on Ubuntu. Install Apache Webserver $ sudo … Read more