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

Build Docker image, Install and Run Ubuntu 14.04 inside docker

docker build -t=”dockerfile/ubuntu” github.com/dockerfile/ubuntu You can refer to dockerfile syntax at https://github.com/dockerfile/ubuntu/blob/master/Dockerfile sudo docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b034e8ed6edb dockerfile/ubuntu “bash” 10 minutes ago Up 8 minutes brave_engelbart sudo docker container start b034e8ed6edb This will start the docker container with ubuntu 14.04 as base image, You can login to … Read more

Installing Docker and Ubuntu Image shell

The steps below shows how to install docker on x86_64 bit ubuntu desktop and have independent ubuntu shell inside docker. [ Note: docker works only with 64 bit ubuntu, hence if you have 32 bit ubuntu machine, it will not work ] If you have any nonworking traces of cocker, remove it using below command, … Read more

Installing Django and Django-REST Framework on ubuntu

Django REST framework is a powerful and flexible toolkit for building Web APIs. Some reasons you might want to use REST framework: The Web browsable API is a huge usability win for your developers. Authentication policies including packages for OAuth1a and OAuth2. Serialization that supports both ORM and non-ORM data sources. Customizable all the way … 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

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