30 November 2008

How to Install Media Plugins in Flock for Ubuntu

This is only a brief tutorial for installing flash, totem, and xulrunner plugins in Flock for Ubuntu.

  • Open up the folder /home/****/flock/plugins [replace the **** with your user name. This location depends on where you saved flock, if you followed my other tutorial, How to Install Flock in Ubuntu 8.10 Intrepid Ibex, this would be the location] and create a new file there which you will call "flockplugins.sh" without the quotation marks.
#!/bin/bash
OLDIFS=$IFS
FOLDERLIST="
/usr/lib/xulrunner-addons/plugins
/usr/lib/totem/default
/usr/lib/flashplugin-nonfree"

if [ ! -d ~/.flock/plugins ];
then
mkdir -p ~/.flock/plugins/
fi

for a in $FOLDERLIST; do
if [ -d "$a" ]; then
printf "\n$a plugins found, linking\n"
for i in `ls -1 $a | grep -E 'so|xpt'`;
do
if [ -f "$a/$i" ]; then
rm -f ~/.flock/plugins/$i;
ln -s $a/$i ~/.flock/plugins/$i;
printf "linking $i into ~/.flock/plugins\n"
else
printf "$i is a symlink, skipping\n"
fi
done
fi
done

if [ -z `cat /etc/ld.so.conf.d/* | grep xul` ]; then
printf "
Xul dependency not in path. Please paste these lines to fix:
sudo echo "/usr/lib/xulrunner" > ~/xul.conf
sudo mv ~/xul.conf /etc/ld.so.conf.d/xul.conf
sudo ldconfig

"
fi
  • Save the file and you should be good to go.

1 comment:

  1. Hi

    You need to do bash flockplugins.sh as well to make this work. Thanks for mentioning the link

    ReplyDelete

Feel free to comment. Your comments makes keeping my site worthwhile. Also, please refrain from profanity. Thank you.