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

FTP Clients for using on Ubuntu

For testing FTP server connection from Ubuntu command line, we can use following command, $ ftp my_ftp_server_IPConnected to my_ftp_server_IP220———- Welcome to Pure-FTPd [privsep] [TLS] ———-220-You are user number 4 of 50 allowed.220-Local time is now 14:37. Server port: 21.220-This is a private system – No anonymous login220-IPv6 connections are also welcome on this server.220 You … 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

How to rename part of a filename and replace the string in those files

If we want to rename only certain part of the filename, for example, we want to change a filename “memory_map.c” to “memory_mapping.c” i.e. we just want to rename “map” to “mapping” of the file, we  can use following command, $ ls -al memory_map.c -rw-rw-r– 1 user user 642 Aug 19 22:53 memory_map.c $ rename ‘s/map/mapping/’ … 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