hacks

Ubuntu : VIM with syntax

Default VIM does not come up with syntax highlighting , To enable syntax highlight use the following commands ,

sudo apt-get install vim-full vim-runtime

Open vim rc configuration file

sudo vi /etc/vim/vimrc

& add the following ,

 syntax on

Ubuntu : Firefox Flash Support

Most of us will face the problem with flash support in all Ubuntu firefox versions. This following shell script ( got it from Internet – Credits to the Unknown author ) will fix the problem of flash supportĀ in Ubuntu Firefox.

echo "Closing Firefox"
sudo killall -9 firefox
 
echo "Downloading and instaling Getlibs for required libraries"
wget http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs-all.deb
sudo dpkg -i getlibs-all.deb
 
echo "Removing previous installs of flash:"
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo rm -rfd /usr/lib/nspluginwrapper
 
echo "Installing ia32-libs and nspluginwrapper"
sudo apt-get install ia32-libs nspluginwrapper
 
echo "Getting libs"
sudo getlibs -p libcurl3
sudo getlibs -p libnss3-1d
sudo getlibs -p libnspr4-0d
 
echo "Installing Flash Player 10"
cd ~
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
tar zxvf install_flash_player_10_linux.tar.gz
sudo cp install_flash_player_10_linux/libflashplayer.so /usr/lib/mozilla/plugins/
rm -rf ~/install_flash_player_10_linux/
 
echo "Linking the libraries so that firefox can see them."
sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/
sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/
 
echo "Done :-)"
echo "You may re-start Firefox now"

Download Script

How to Download Megavideo Videos

There are lot of sites offering the downloads from megavideo site.But most of the time , it won’t work because of frequent changes from megavideo.com site owners.

This is the permenant way of downloading megavideo videos:

You need the following tools

+ FireFox ( http://www.mozilla.com/en-US/firefox/ )
+ Firebug ( https://addons.mozilla.org/en-US/firefox/addon/1843 )
+ Megavideo Link ( ex : http://megavideo.com/?v=FC9KQNF4 )

Step 1 : If you not installed Firebug , install it .

Step 2 : Open megavideo link with Firefox

step1-megavideo

step1-megavideo

Step 3 : Open the firebug console and enable Net .

Step 4 : The page will refresh and load all contents once again. once the page loaded goto

Firebug – > net – > all and click clear

Step 4 : Now Click the play button on megavideo site .

Step 5 : You can see the download url . copy paste the url to new window .

Thats it . You can able to download any video in FLV format. Use any FLV player to view the files offline .

Enjoy ..

Thanks,

Umakanthan