Simple ringtone ad


Monday, September 15, 2014

How to reset user password in ubuntu

To reset password for a user (i.e john) follow the steps.

Step1: Hold Left Shift key when grub2 start loading(OS selection menu). From list, choose advance options

Step2: From next list of menu, choose recovery mode

Step3: After loading the system a window with list of menu should appear. Choose root shell from this menu

Step4: In recovery, system mount in read only mode. So lets remount it r/w mode

mount -o remount,rw /

Step5: Set password for user (i.e john)

passwd john

That's it. Now reboot the system using following command


How to open multiple instance of Skype in Linux

Skype saves database information(user, chat history) in ~/.Skype by default. ~/ denotes home directory of a user. Assume your user name is abc so ~/=/home/abc

To create multiple instance of Skype we will set multiple database path for each instance. In this example we will create two additional Skype (i.e Skype office and Skype home)

Step1: Create database directory
mkdir -p ~/.Skype_office
mkdir -p ~/.Skype_home

Step2: Create or copy  Skype launcher(skype.desktop) for multiple instance.
#for skype office
cp /usr/share/applications/skype.desktop ~/.local/share/applications/skypeoffice.desktop
gedit ~/.local/share/applications/skypeoffice.desktop

#change Name and Exec
Name=Skype Office
Exec=skype --dbpath=~/.Skype_office

#for skype home
cp /usr/share/applications/skype.desktop ~/.local/share/applications/skypehome.desktop
gedit ~/.local/share/applications/skypehome.desktop

#change Name and Exec
Name=Skype Home
Exec=skype --dbpath=~/.Skype_home

That's it. Now you have three instance of Skype (i.e Skype, Skype home, Skype office)

Sunday, September 14, 2014

How to get faster internet browsing experience using dns cache server in ubuntu

DNS(Domain Name Servers) is a server(server hierarchy) which resolve IP against the domain name or url. As an example when we hit for, browser send a request to DNS server and server returns an IP address for Then browser hit for IP of Browser send request to DNS server every time you visit a site or link.

Main idea to get faster internet browsing is that cache the DNS server response which reduce DNS server request. Browser first hit DNS cache(local machine), if information is not available then send request to DNS server and save the response in cache.

Step1: install dnsmasq which will work as cache server
sudo apt-get install dnsmasq

Step2: modify  /etc/dnsmasq.conf
sudo gedit /etc/dnsmasq.conf

Step3: modify  /etc/dhcp/dhclient.conf

sudo gedit /etc/dhcp/dhclient.conf
search for
prepend domain-name-servers
remove leading # of this line

Step4: tell network manager that your primary DNS server is


Step5 : restart dnsmasq
sudo service dnsmasq restart

How to test:
Run the following command twice and check the query time. Query time denotes the dns server response time. In second hit query time should be zero. If it's not working then restart your computer and check again.

Saturday, September 13, 2014

How to create android compatible wifi hotspot in ubuntu

Using network manager in ubuntu, adhoc wifi hotspot can be created. But android doesn't support adhoc type network. We will going to use another third party software called ap-hotspot to create android compatible hotspot network.

Step1: Add repository and install ap-hotspot

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install ap-hotspot

Step2: Configure hotspot (name, password etc) using

sudo ap-hotspot configure

Step3: Start android compatible hotspot using

sudo ap-hotspot

Press CTL+C to stop hotspot.