<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lioks&#039; &#187; Multimedia</title>
	<atom:link href="http://lioks.buffout.org/?feed=rss2&#038;tag=multimedia" rel="self" type="application/rss+xml" />
	<link>http://lioks.buffout.org</link>
	<description>FreeBSD tutorials &#38; tips for beginners</description>
	<lastBuildDate>Tue, 01 Dec 2009 14:58:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing Firefox plugins in FreeBSD (and yes, even flash and java are working)</title>
		<link>http://lioks.buffout.org/?p=39</link>
		<comments>http://lioks.buffout.org/?p=39#comments</comments>
		<pubDate>Thu, 05 Nov 2009 15:19:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[FreeBSD Tutorials]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Multimedia]]></category>

		<guid isPermaLink="false">http://www.aimxhaisse.com/lioks/?p=39</guid>
		<description><![CDATA[I often hear from people who don&#8217;t use FreeBSD that it&#8217;s an operating system only dedicated to server/production purposes.
In a way, yes, FreeBSD is not as user-friendly than popular Linux distributions and it&#8217;s sometimes hard to get what you want working the way you want but I don&#8217;t think that people who use FreeBSD would [...]]]></description>
			<content:encoded><![CDATA[<p>I often hear from people who don&#8217;t use FreeBSD that it&#8217;s an operating system only dedicated to server/production purposes.<br />
In a way, yes, FreeBSD is not as user-friendly than popular Linux distributions and it&#8217;s sometimes hard to get what you want working the way you want but I don&#8217;t think that people who use FreeBSD would be satisfied with an <code>apt-get everything_you_need-any-version</code> ;)<br />
Computers are now expected to browse the web correctly, allowing you to watch youtube video, play flash games and be flooded by plugin-based ads..<br />
Of course, FreeBSD can!</p>
<p>You must have Mozilla Firefox installed:<br />
<code><br />
# cd /usr/ports/www/firefox35 &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>Since some of the plugins are using linux emulation, we have to install it and get it running ;<br />
<code><br />
# cd /usr/ports/emulators/linux_base-f10/ &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>If you don&#8217;t have the linux kernel module loaded, <code>linux_base-f10</code> won&#8217;t build:<br />
<code><br />
# kldload linux<br />
</code></p>
<p>You also have to get it loaded every time you start your computer by adding this line to <code>/etc/rc.conf</code>:<br />
<code><br />
linux_enable="YES"<br />
</code></p>
<p>Since we will need it later, let&#8217;s mount the linux proc filesystem at boot time.<br />
Add this line to <code>/etc/fstab</code>:<br />
<code><br />
linproc         /usr/compat/linux/proc  linprocfs               rw      0       0<br />
</code><br />
Reboot is not needed to mount the linux proc filesystem:<br />
<code><br />
# mount /usr/compat/linux/proc<br />
</code></p>
<p>Second step is to install <code>nspluginwrapper</code>, a tool that helps you link plugins to your current browser (i.e. firefox):<br />
<code><br />
# cd /usr/ports/www/nspluginwrapper &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>Ok let&#8217;s start with <code><strong>Flash</strong> Player 9</code>, I also have tested flash 10 and it was working for me but I prefer flash 9 for some retro-compatibility issues.<br />
First we have to install it from the ports:<br />
<code><br />
# cd /usr/ports/www/linux-flashplugin9 &#038;&#038; make install clean<br />
</code></p>
<p>I have <strong>Mplayer</strong> already installed with a large bunch of options activated (i&#8217;ll maybe cover it in a future post), that&#8217;s why I want to install <code>mplayer</code> plugin.<br />
Although most of the videos on Internet are in flv (flash) format, there are still some exotic format videos and mplayer will play them:<br />
<code><br />
# /usr/ports/www/mplayer-plugin &#038;&#038; make config-recursive install clean<br />
</code></p>
<p>If you don&#8217;t want to be asked to download each time you open a link to a pdf, linux emulation of <strong>Adobe Reader</strong> support a plugin which allows embedded view of pdf files in firefox.<br />
For some reason I was unable to get <code>acroread9</code> working with firefox, so let&#8217;s install <code>acroread8</code><br />
<code><br />
# /usr/ports/print/acroread8 &#038;&#038; make install clean<br />
</code></p>
<p><code>librsvg</code> is an open source <strong>SVG</strong> rendering library which (probably) provides to Firefox a better handling of SVG graphics but I cover this plugin&#8217;s installation only because I like to read the funny description in <code>about:plugins</code> ;)<br />
<code><br />
# cd /usr/ports/graphics/librsvg2 &#038;&#038; make config-recursive install clean<br />
</code></p>
<p><strong>Java</strong> plugin can also be useful but compilation of this port is long and painful.<br />
<code><br />
# /usr/ports/java/jdk16 &#038;&#038; make config-recursive install clean<br />
</code><br />
As you can see, the FreeBSD port system don&#8217;t fetch neither build this port !<br />
Due to license restriction, you will have to fetch manually almost every needed file, and even create an account on Sun website to be able to get them all. :P<br />
Here is the list of the files I had do download manually and move to <code>/urs/ports/distfiles/</code>:<br />
<code><br />
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-src-b05-jrl-24_sep_2007.jar<br />
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-bin-b05-jrl-24_sep_2007.jar<br />
http://www.java.net/download/jdk6/6u3/promoted/b05/jdk-6u3-fcs-mozilla_headers-b05-unix-24_sep_2007.jar<br />
http://www.FreeBSDFoundation.org/cgi-bin/download?download=diablo-caffe-freebsd7-i386-1.6.0_07-b02.tar.bz2<br />
</code><br />
from <code>http://java.sun.com/javase/downloads/index.jsp</code>:<br />
<code><br />
tzupdater-1_3_18-2009k.zip<br />
</code><br />
from <code>http://www.eyesbeyond.com/freebsddom/java/jdk16.html</code>:<br />
<code><br />
bsd-jdk16-patches-4.tar.bz2<br />
</code></p>
<p><code>nspluginwrapper</code> will now link all the plugins it finds with your user&#8217;s specific firefox plugin folder, so you have to use it with each user your want to be able to access new plugins:<br />
<code><br />
% nspluginwrapper -v -a -i<br />
% nspluginwrapper -i /usr/local/Adobe/Reader8/ENU/Adobe/Reader8/Browser/intellinux/nppdf.so<br />
</code><br />
The second line is needed because <code>nspluginwrapper</code> didn&#8217;t find Adobe Reader plugin.</p>
<p>Unfortunately, <code>nspluginwrapper</code> was unable to link the Java plugin so I created a symlink:<br />
<code><br />
% ln -s /usr/local/jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so ~/.mozilla/plugins/<br />
</code></p>
<p>(Re-)start <code>firefox3</code> and you should be able to list all those plugins by giving <code>about:plugins</code> in the navigation bar.</p>
<p>Oh, I almost forgot it but I encountered a strange problem using <code>libflashplayer.so</code>, Flash wasn&#8217;t working properly (no sound on some machines and no Flash at all for some others) and by checking the needed dependencies with Linux <code>ldd</code> I noticed that Flash library is unable to find <code>libssl.so.5</code>.<br />
By checking in <code>/usr/compat/linux/lib/</code>, <code>libssl.so.0.9.8g</code> is present though and symlinking it as <code>libssl.so.5</code> just don&#8217;t work. :P<br />
In desperation I copied it:<br />
<code><br />
# cp /usr/compat/linux/lib/libssl.so.0.9.8g /usr/compat/linux/lib/libssl.so.5<br />
</code><br />
And it works! Another mystery of Linux compatibily, I guess&#8230; ;)</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://lioks.buffout.org/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
