Flash on FreeBSD using gnash

So, I manage to get flash working on FreeBSD. Without using the Linux compatability layer!

Many thanks to drizzt for his precious suggestions.

I used graphics/gnash and www/firefox. Be sure not to check “GSTREAMER” on the gnash port configuration ncurses window: it didn’t work for me.

To watch YouTube videos, you must install multimedia/mplayer and www/mplayer-plugin, the Greasemonkey plugin for Firefox and install this script on Greasemonkey. Be sure to select the “mini” GUI for mplayer because it is needed for the plugin (update: be sure to install mplayer WITH_GUI (thx to Oliver for the hint)).

You should be done, or at least, that’s how I did it.

Comments 16

  1. Oliver Herold wrote:

    Just tested it, it works, but you have to use mplayer with GUI (mplayer console doesn’t work). Thx :-)

    Posted 23 May 2007 at 18:52
  2. Arab wrote:

    Great efforts to make FreeBSD+Flash works for everyone, thank yo! :)

    Posted 24 May 2007 at 10:23
  3. Mihai wrote:

    Strange, after following these steps my Firefox still needs a plugin for application/x-shockwave-flash. Any hints what else I should do ?

    Posted 29 May 2007 at 07:14
  4. Josh wrote:

    It works sorta fine. Sometimes on YouTube gnash and mplayer plugin start both to try playing the media, but gnash cant, and gets tremendously heavy. Killing gnash everything works back ok again, and YouTube can be perfectly viewed.

    How could I prevent gnash to play on youtube.com?

    Posted 24 Jun 2007 at 15:18
  5. chris wrote:

    This isn’t working with mine. Gtk-gnash fires up everytime to attempt to play the youtube video, and it comes out like garbage. The error console under firefox logs :

    playerDiv.src.match(/t=([^(\&|$)]*)/)[1];
    has no properties.

    Any suggestions?

    Posted 16 Dec 2007 at 02:31
  6. Justin wrote:

    I am trying to install mplayer with_gui

    I am using FreeBSD 7.0 RC1

    How should i input this into the command line?

    >>sudo make install WITH_GUI

    if not.. please email me with subject
    MPLAYER INSTALL

    thanks

    freakazoid.j@gmail.com

    –Justin

    Posted 10 Feb 2008 at 13:41
  7. Stefan wrote:

    @Justin

    >>sudo make install -DWITH_GUI

    And BTW, if you make gnash WITHOUT any media handler it will not try to run any videos. But you loose sound as well – which is actually perfect for my office use.

    Posted 08 Apr 2008 at 01:19
  8. Antti Turpeinen wrote:

    I don’t know about gnash and I don’t have currently FreeBSD installed. But I just realized that it might be possible to watch youtube videos by downloading flv file from youtube site and then watching downloaded video with vlc player. (google ‘download youtube video’ to get flv file from youtube site)

    Posted 19 May 2008 at 20:46
  9. lewlz wrote:

    what a waste of time…
    Just use wine+Firefox+Flash9 and get full flawless flash9 support like a charm.

    Posted 24 May 2008 at 21:44
  10. Matteo wrote:

    Well, maybe. But I really prefer a “native” way.

    Posted 25 May 2008 at 12:15
  11. Jason Bacon wrote:

    I got it working on DesktopBSD 1.6 by following the basic instructions above, plus:

    1. Removed linux-flashplugin and nspluginwrapper

    2. Copied /usr/local/lib/browser_plugins{gnash|mplayerplug-in}/* ~/.mozilla/plugins

    Youtube now works, although you have to let it buffer the whole video before clicking “play” on the mplayer plugin. The video stops buffering once it starts playing, and will just quit when it uses up whatever was buffered before you clicked “play”.

    Posted 01 Feb 2009 at 21:17
  12. Tim wrote:

    omg! you sir, are cool. I haven’t tried it yet, but it gives me hope… :)

    Posted 26 Feb 2009 at 01:55
  13. Jason Bacon wrote:

    Update: I just upgraded to FreeBSD 7.1 and installed everything from the Mar 15 2009 ports snapshot. After installing Firefox 3 and Gnash, YouTube just worked. I did *not* install the Greasemonkey scripts. I just installed Firefox and Gnash, and YouTube works great. It also works under KDE4 Konqueror after adding /usr/local/lib/browser_plugins/gnash to the plugin path.

    Posted 19 Mar 2009 at 05:19
  14. Wirasto S. Karim wrote:

    Great article.
    Thank’s

    Posted 02 May 2009 at 03:27
  15. Bejiitas wrote:

    I am building gnash on FreeBSD 8.2, this should work a treat, I was downloading videos with downloadhelper and then watching them with vlc, but this will be a much better option. I have used gnash on Debian Squeeze and I am familiar with it, so it will be perfect for my needs.

    Posted 22 Mar 2011 at 18:40
  16. Bla wrote:

    Thanks for the tips
    I got to block cookies on youtube.com in order to avoid continuous error messages.

    Posted 01 May 2011 at 05:33

Trackbacks & Pingbacks 11

  1. From FreeBSD: Flash, Youtube-Videos mit Gnash auf F!XMBR on 2007-05-23T17:04:08+0000 at 23 May 2007

    [...] Matteo ist es möglich mit gnash Youtube-Videos abzuspielen. Wichtig ist die Installation von Mplayer, [...]

  2. From Flash/Youtube videos on FreeBSD « FreeBSD : The Power to Serve on 2007-05-23T17:04:08+0000 at 24 May 2007

    [...] from the FreeSBIE project has now found a way to watch YouTube videos with Gnash on FreeBSD,  but without using the Linux compatibility layer. [...]

  3. From meneabsd.noticia.es on 2007-05-23T17:04:08+0000 at 25 May 2007

    Flash en Freebsd…

    Pequeño tutorial para poner a funcionar Gnash con FreeBSD….

  4. From Flash, with and without Linux emulation · DragonFly BSD Digest on 2007-05-23T17:04:08+0000 at 25 May 2007

    [...] is interesting: Getting Flash to work on FreeBSD without Linux compatibility.  It may apply to other BSDs – otherwise untested.  (Thanks, [...]

  5. From A Year in the Life of a BSD Guru on 2007-05-23T17:04:08+0000 at 29 May 2007

    Hodge Podge…

    Not much order here–just a medley of stuff that was interesting at the time. BTW, any readers remember Hodge Podge Lodge? I remember Jean Worthley as pretty boring but her house and grounds sure were neat….

  6. From BSDspot » FreeBSD Firefox Flash Java on 2007-05-23T17:04:08+0000 at 03 Jun 2007

    [...] to Matteo at Matteo’s Wasps’ Nest for this one. See his post for more details. 11e1 Filed under: Installing Software, Systems [...]

  7. From Matteo’s Wasps’ Nest - Update about Flash on FreeBSD with gnash on 2007-05-23T17:04:08+0000 at 27 Sep 2007

    [...] Back in May, I wrote a post about Flash on FreeBSD using gnash [...]

  8. From Flash/Youtube videos on FreeBSD | FreeBSD - the unknown Giant on 2007-05-23T17:04:08+0000 at 03 Jul 2008

    [...] from the FreeSBIE project has now found a way to watch YouTube videos with Gnash on FreeBSD, but without using the Linux compatibility layer. [...]

  9. From Code Soldiers » Flash en freebsd utilizando gnash on 2007-05-23T17:04:08+0000 at 31 Aug 2009

    [...] http://www.riondabsd.net/2007/05/23/flash-on-freebsd-using-gnash/ Compartir esto: [...]

  10. From Flash on FreeBSD without Linux « Tim Gustafson's Blog on 2007-05-23T17:04:08+0000 at 23 Dec 2009

    [...] http://www.riondabsd.net/2007/05/23/flash-on-freebsd-using-gnash/ [...]

  11. From Flash on FreeBSD without Linux Emulation | Tim's Blog on 2007-05-23T17:04:08+0000 at 14 Sep 2010

    [...] http://www.riondabsd.net/2007/05/23/flash-on-freebsd-using-gnash/ [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *