Pages

Sunday, October 30, 2011

sudo : Unable to Resolve Host

This happens after the host-name of the system is changed. Host-name can be changed by editing the file "/etc/hostname".
   sudo gedit /etc/hostname
For resolving the host conflict, we need to edit the file "/etc/hosts". For editing this file use the command:
   sudo gedit /etc/hosts


Edit the name in front of 127.0.1.1 to the new host-name. This will do.



Share and Learn !!!

Thursday, September 22, 2011

Download YouTube Videos in Ubuntu 11.04

More often we need to download videos from YouTube and similar other sites. Ubuntu provides a command-line feature for downloading videos from YouTube.

For this you need to install the package "youtube-dl". This can be done by using the terminal or the synaptic package manager. For installing the package using the terminal, use the command:
      sudo apt-get install youtube-dl
You can install it through the synaptic package manager by searching the package youtube-dl in it.


Make sure you have updated the package after you have installed it. For updating the package, use the command
    youtube-dl  --update
If you get permission error, change the permissions of youtube-dl in /usr/bin using the command:
   chmod 777 youtube-dl
For downloading the YouTube video, open the terminal (press Ctrl+Alt+T) and type the command:
   youtube-dl "URL"
Open the relevant video in the browser and copy the URL from there.

After the download is completed you can find the video in your HOME folder.

Share and learn. If you have some problems related to this post, post it here.