Seo Sanghyeon wrote:
> This is a short howto. I'm interested in your experience. The
> instruction at
http://www.mono-project.com/Moonlight is actually
> enough. But this howto provides some Debian package names and
> workarounds to problems you may encounter.
> 1. Install build dependencies
> # Install Mono runtime, header and C# compiler
> sudo aptitude install mono libmono-dev mono-gmcs
> # GTK+ 2.0 development package
> # This pulls Cairo 1.4.x by dependency
> sudo aptitude install libgtk2.0-dev
> # FFmpeg
> # You can compile from SVN, but packages work fine too
> sudo aptitude install libavformat-dev libswscale-dev
> # ALSA
> sudo aptitude install libasound2-dev
> # Mozilla
> # This installs complete XULRunner SDK
> sudo aptitude install libxul-dev
> 2. Download and install Moonlight
> # I tested SVN revision 80500
> # Make very sure olive and moon are in sync!
> svn co svn://anonsvn.mono-project.com/source/trunk/olive
> svn co svn://anonsvn.mono-project.com/source/trunk/moon
> cd olive; ./configure; make; make install
> cd moon; ./autogen.sh; make; make install-plugin
> Contrary to the instruction on Moonlight page, there is no configure
> script in moon SVN. autogen.sh generates one for you. Also use make
> install-plugin (which installs plugin under your home directory)
> instead of make install.
> 3. Test
> Open about:plugins in Firefox. You should see:
> (I am using Korean-localized version of Firefox and below is my back-
> translation to English. Your output may differ.)
> WPFe Plug-In
> Filename: libmoonplugin.so
> Novell Moonlight is Mono's Free/Open Source implementation of
> SilverLight
> MIME type / Description / Extension / Used
> application/ag-plugin / Novell MoonLight / xaml / Yes
> 4. Notes
> Silverlight.js included in Microsoft Silverlight SDK does user agent
> sniffing. Moreover, it is looking for "Firefox" in the user agent
> string. But due to trademark issues with Mozilla Corporation, Debian-
> packaged Firefox uses "Iceweasel" in the user agent string (and other
> places). Until we beat Microsoft to check for "Gecko" instead (or
> better, avoid user agent sniffing altogether), you need a workaround.
> I recommend User Agent Switcher extension for this:
> https://addons.mozilla.org/firefox/addon/59
> To change user agent string manually, open about:config and filter for
> useragent. Replaces Iceweasel with Firefox.
> Navigate to Silverlight Clock example:
> http://silverlight.net/samples/1.0/clock/default.html
> You should see an animated clock. Yay!
> Caveats: unloading the page seems to kill the browser.
> You can also download samples and run them from your local web server
> like Apache. To get this working, check your Apache configuration.
> mod_mime should be enabled and there should be TypesConfig directive.
> (Both are default on Debian.)
> Edit /etc/mime.types and add a line:
> application/ag-plugin xaml
> Restart Apache.
> Most Microsoft samples won't run because of case-sensitivity problems.
> Filenames in ZIP download seem to be all in lowercase, probably for
> backward compatibility or just laziness. You may need to rename
> default.html.js to Default.html.js for example.
> As Firefox recognizes /etc/mime.types file too, you can just open xaml
> using the file: URL scheme instead of going through Apache. This
> should avoid Silverlight.js problems too.
> Seo Sanghyeon
grep /usr/lib/libstdc++.la not found. I am using gcc 4.1.2 and found
out that they had incidently removed the .la file. Is there any
workaround?