# Moonlight

Related articles

- Pipelight

Moonlight was a free and open source implementation of Silverlight, primarily for Linux and other Unix/X11 based operating systems. Moonlight 1.0 was released on January 20, 2009 and 2.0 on December 17, 2009. The preview release of Moonlight 4.0 was released in early 2011.

Users of Moonlight are encouraged to move to Pipelight.

Note: Since 2011 the project has been discontinued (from Wikipedia):
"In December 2011 Miguel de Icaza announced that work on Moonlight had stopped with no future plans. He explained that, although there was always some bloat, complication and over-engineering in the Silverlight vision, Microsoft had "cut the air supply" to it by omitting cross-platform components, making it a web-only plugin, and including Windows-only features. He advised developers to separate user interface code from the rest of their application development to ensure "a great UI experience on every platform (Mac, Linux, Android, iOS, Windows and Web)" without being dependent on third party APIs."

## Installation

### Mozilla Firefox

From the AUR: Install firefox-moonlight.

Manually: Go to the download page of the Moonlight website and download and install the `.xpi` file.

### Google Chrome

From the AUR: Install google-chrome-extension-moonlight.

Manually: Installing extensions from outside the Chrome Web Store is disabled by default since Chrome v21.

1. Download the Moonlight package for Chrome.
2. Make sure no page is currently trying to load Silverlight.
3. Go to the "Extensions" page (`chrome://extensions`).
4. Enable `Developer mode` (top right).
5. Drag and drop the extension.

Tip: An alternative download link, in case the Moonlight web site isn't responding.

## Tips and tricks

You may trick the Moonlight plugin to play supposedly unsupported content by editing the Silverlight version number in `libmoonpluginxpi.so`.

For Google Chrome:

    sed -i 's/4.0.51204.0/4.0.60831.0/g' ~/.config/google-chrome/Default/Extensions/ldjmcjaammmjjilbjpacphekcgfnmdlk/3.99.0.3_?/moonlight/libmoonpluginxpi.so

For Mozilla Firefox:

    sed -i 's/4.0.51204.0/4.0.60831.0/g' ~/.mozilla/firefox/*.default/extensions/moonlight@novell.com/plugins/moonlight/libmoonpluginxpi.so

Note: DRM protected content is only supported through Pipelight.

## See also

- Moonlight project
- Get Moonlight

Category:

- Audio/Video