Here are my own notes to install Unity3D Web Player on Linux so you can play 3D game in Firefox brower.

1. Prerequisites


Prerequisites to install Unity 3D Web Player
  1. Download http://www.mediafire.com/?g6ndj2dviujtync
  2. Choose a cleaned/fresh WINEPREFIX
    export WINEPREFIX=/where/you/want/to/install/everything
  3. Decomrpess the tarball
    tar xvjf all_tools.tar.bz2
  4. Install firefox
    wine firefox_set_up_23.0.1.exe
  5. Install Flash player
    wine install_flash_player_11_plugin.exe
  6. Install Unity Web Player
    wine UnityWebPlayerFull.exe
  7. Decompress the file Unity_WebPlayer_Lastest_Updates.tar.bz2 into $WINEPREFIX/drive_c/users/yourusername/Local\ Settings/Application\ Data/
    tar xvjf Unity_WebPlayer_Lastest_Updates.tar.bz2 -C $WINEPREFIX/drive_c/users/yourusername/Local\ Settings/Application\ Data/
    Replace 'yourusername' by yours

    Notice: If you want to play BGO then you have to patch wine-1.7.0//dlls/user32/winstation.c Replace

    HDESK WINAPI OpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access )
    {
        FIXME( "(%x,%i,%x): stub\n", flags, inherit, access );
        SetLastError( ERROR_CALL_NOT_IMPLEMENTED );
        return 0;
    }
    
    by
    HDESK WINAPI OpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK access )
    {
    return CreateDesktopA("Desktop", 0, 0, flags, access, 0);
    }

2. Let's play a few games: BGO (battlestar Galactica Online), Ratz instagib, Downtown Drift 3D