Google Groups Home Help | Sign in
Building and running Moonlight on Debian
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Seo Sanghyeon  
View profile
 More options Jun 21 2007, 5:24 pm
From: Seo Sanghyeon <sanx...@gmail.com>
Date: Thu, 21 Jun 2007 14:24:08 -0700
Local: Thurs, Jun 21 2007 5:24 pm
Subject: Building and running Moonlight on Debian
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
blessmurk  
View profile
 More options Jul 2 2007, 5:54 am
From: blessmurk <mk.kris...@gmail.com>
Date: Mon, 02 Jul 2007 02:54:40 -0700
Local: Mon, Jul 2 2007 5:54 am
Subject: Re: Building and running Moonlight on Debian

Hi I am compiling moonlight ,

I am getting error

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?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google