Ubuntu clive http 404 error solution.

August 5, 2010

Clive is very useful commandline utility to extract video from video websites like youtube.com and vimeo.com. The recent update to youtube url is causing clive to fail for any youtube url, giving unknown http/404 errors. Although the upstream is fixed the ubuntu package is still not updated with the same version i.e as of this writing clive_2.2.12-1.

In the meantime you can download the debian package for sid from here.


Ubuntu Apache2 : Change default DocumentRoot /var/www

May 1, 2010

By default the document root folder for apache2 in Ubuntu is /var/www. This were you can store your site documents. In order to change the default site location to a different one, /opt/mysite use the following method. A detailed steps to install LAMP on ubuntu is given here.

To do this, we must create a new site and then enable it in Apache2.

To create a new site:

Copy the default website as a starting point. sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mysite

Edit the new configuration file in a text editor “sudo nano” on the command line or “gksudo gedit”, for example: gksudo gedit /etc/apache2/sites-available/mysite

Change the DocumentRoot to point to the new location. For example, /opt/mysite

Change the Directory directive, replace <Directory /var/www/> to <Directory /opt/mysite/>

You can also set separate logs for each site. To do this, change the ErrorLog and CustomLog directives. This is optional, but handy if you have many sites

Save the file

Now, we must deactivate the old site, and activate our new one. Ubuntu provides two small utilities that take care of this: a2ensite (apache2enable site) and a2dissite (apache2disable site).

sudo a2dissite default && sudo a2ensite mysite

Finally, we restart Apache2:

sudo /etc/init.d/apache2 restart

Enable sound for 3gp videos in ubuntu using mplayer

July 15, 2009

To play 3gp videos with audio using mplayer in Ubuntu Jaunty, add the following line to your /etc/apt/sources.list file

sudo wget http://www.medibuntu.org/sources.list.d/jaunty.list --output-document=/etc/apt/sources.list.d/medibuntu.list

You need the GPG key for medibuntu packages. Get it the following way.

sudo apt-get update

sudo apt-get install medibuntu-keyring

sudo apt-get update

now install the following packages

w32codecs mplayer mencoder amrnb amrwb

You should be able to hear the sound in mplayer now.

Source

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine


Unable to connect Yahoo messenger in Kopete?

July 12, 2009

[UPDATE] As of now the latest update on jaunty for the kopete package, the problem is fixed in the version 4:4.2.2-0ubuntu2.

It seems Yahoo! is changing their protocols for client connection. Heard somewhere this is done to disallow 3rd party clients like pidgin and trillian access yahoo’s messenger service. On my Ubuntu Jaunty, this has not affected pidgin yet! (looks like it auto adjusted) , but for Kopete I had to override the server connection to cn.scs.msg.yahoo.com and now its working fine.

Got the workaround from here.

Kopete is the only yahoo client on linux, AFAIK that allows video chat. Not sure if anything else has surfaced up yet. Haven’t been able to use Gyache yet with my webcam.

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine


Juploadr: Flickr upload tool for Linux and Mac!

March 1, 2008

Though i had found this tool long time back, it came about pretty handy while using it recently.

Get it from jUploadr

Just untar the package and run jupload from the installation folder. This launches a simple UI which allows you to drag and drop photos to it. Just add a flickr account and authorize juploadr to upload. You can add individual tags and descriptions to each of your photos. Its purely written in Java and hence portable across platforms.

Update: On ubuntu, there are other flickr upload tools too. Notably good ones are postr and dfo for gnome and kflickr for KDE.

To install simply type sudo apt-get install postr or sudo apt-get install kflickr at the terminal.


Remote Login to Linux from Windows (Non-VNC)

November 23, 2007

We can actually login to a *nix based system running X server remotely from Windows XP/Vista based machines. Although there are other ways to achieve remote login using Putty for a SSH login and file transfer over SSH using WinSCP. This particular method allows you to access the entire desktop as a independent session unlike VNC where actually you are viewing a already running X session.

Two things are required for this.

First, the *nix machine should be enabled with XDMCP protocol. Most distributions disable this with their default installation. This can be enabled if you have root or sudo access with simple steps. For eg:- for Gnome with Ubuntu, this can be achieved with System -> Administration -> Login Window. Go to the Remote tab and select Same as Local also go to the Security tab and uncheck Deny TCP connections to Xserver.
Reboot X and Thats it!

Second, In the Windows system download and install Xming. Its a free Xserver software for Windows. The installation is pretty simple. After installation launch Xlaunch from the menu.
Select One Window or Full Screen and provide the *nix host address.

If all goes well you should get the display manager running.. enter the username/password and you are tuxified!!!

Xming Login to Ubuntu Gutsy 7.10 from Win XP Pro

A Ubuntu session on network from WinXP

Update: For a VNC like remote login, use the following for gnome.

Install vino , in ubuntu or debian like distros, use sudo apt-get install vino.

Now run vino-server from /usr/lib/vino/vino-server this will enable the vnc server. To set preferences for accepting vnc sessions run vino-preferences and configure the same.

To connect from a *nix client use vncviewer hostip. From windows install vnc client from here.

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Yahoo BuzzAdd to Newsvine


Download videos from youtube.com

January 24, 2007

Recently I found a fantastic python script do download videos from youtube.com. http://www.arrakis.es/~rggi3/youtube-dl/

You just need to pass the url of the video like this
$youtube-dl -t http://youtube.com/watch?v=LNY7Lau0sJw

Below is a script which can download the videos based on your search results on youtube.com.
Suppose you make a search as Shilpa Shetty Big Brother :P and you get a results page, now save this page as say results.html

Now put the below give script into a file called as youtube_download.sh and run it from the directory u saved results.html

#script to download vids from www.youtube.com
#! /bin/sh
if [ $# -lt 1 ]; then
echo "Usage: $0 filename.html |which has links from youtube.com search results"
echo "-Ajo Paul http://ajopaul.wordpress.com"
exit 1
fi
watchlink=""
for i in `cat $1 | grep "watch?" | cut -d '"' -f 2`
do
#watchlink="http://www.youtube.com"$i
if [ "$watchlink" != "$i" ]; then
echo "*********Now Downloading $i **********"
# youtube-dl -t $i 2>&1;
watchlink=$i
fi
done
echo "Done!"
echo "-Ajo Paul http://ajopaul.wordpress.com"

You can also put this script as a cronjob, but before that you must download youtube-dl and put in anywhere in your $PATH.