Sponsored Content
Operating Systems Linux Red Hat Bad flash sound in Firefox, Chrome (youtube norm) Post 302506469 by Xcislav on Monday 21st of March 2011 01:17:32 AM
Old 03-21-2011
Bad flash sound in Firefox, Chrome (youtube norm)

There is a solution but it seems that it works only once - the first run (adding to a shortcut LD_PRELOAD=$HOME/linusmemcpy.so /usr/bin/firefox &) . Then an error occurs:

Failed to execute child process "LD_PRELOAD=$HOME/linusmemcpy.so" (No such file or directory)

linusmemcpy.so exists in the location but it does not work.

It was by the advice:
1. Cut and paste this into a prompt:
---Cut below---
Code:
cat > $HOME/Downloads/linusmemcpy.c <<EOF
#include <sys/types.h>

void *memcpy(void *dst, const void *src, size_t size)
{
void *orig = dst;
asm volatile("rep ; movsq"
:"=D" (dst), "=S" (src)
:"0" (dst), "1" (src), "c" (size >> 3)
:"memory");
asm volatile("rep ; movsb"
:"=D" (dst), "=S" (src)
:"0" (dst), "1" (src), "c" (size & 7)
:"memory");
return orig;
}
EOF
cd $HOME/Downloads
gcc -O2 -c linusmemcpy.c
ld -G linusmemcpy.o -o linusmemcpy.so

---Stop cutting here---

2. Shutdown any running copies of your webbrowser.

3. Until a Adobe has fixed their Flash player, start your webbrowser as below:

For Firefox users:
Code:
LD_PRELOAD=$HOME/Downloads/linusmemcpy.so /usr/bin/firefox &

For Google Chrome users:
Code:
LD_PRELOAD=$HOME/Downloads/linusmemcpy.so /opt/google/chrome/google-chrome &

[mod]Please use [CODE] tags when posting command lines, source, ...

Last edited by pludi; 03-21-2011 at 06:22 AM..
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Flash player in Firefox

Hey people Newly installed Ubuntu 8.04 Hardy Heron (64-bit) on my PC. The problem is that I can't get Adobe Flash Player working in Firefox 3 Beta 5. I have tried many online guides, but none of them worked for me. Anyone knows how to make this work? I remember that I got it to work with a... (3 Replies)
Discussion started by: Sixmax
3 Replies

2. What is on Your Mind?

Argh! Chrome! Go away!

Google's pushing their pet browser with the relentlessness of a drug seller, which makes me more and more suspicious of it by the day. Now they're trying to insert it as opt-out "goodies" with program updates... In this case, Skype presented me with a "push this to not override your default... (4 Replies)
Discussion started by: Corona688
4 Replies

3. OS X (Apple)

Flash player plugin on darwin for firefox

Hi, I have firefox beta 4 on my macbook with macports installed. How can the use adobe flash player plugin on darwin? Thanks (1 Reply)
Discussion started by: Stephan789
1 Replies

4. Solaris

How to make Adobe Flash Player plugin work for Firefox 13.01 on Solaris 11

How do I make Adobe flash Player work on solaris 11 for Firefox-13.0.1 which doesn't have a plugins directory? Thanks in advance.:o (0 Replies)
Discussion started by: Tenyhwa
0 Replies

5. Programming

FORTRAN p-norm

What would be an accurate and efficient computation of the p-norm in Fortran? Integer :: p Real :: sum, pn Do i = 1, Size (a) sum = sum + ((Abs a(i)) ** p) End Do pn = sum ** (1.0/ Real(p)) (0 Replies)
Discussion started by: kristinu
0 Replies

6. What is on Your Mind?

Instructions to Clear Data Cache in Safari, Chrome, Firefox, Opera Browsers (Pictures)

Here are instructions to clear the data cache for four browsers, Safari, Chrome, Firefox, Opera. In these examples I'm using MacOS Mojave, but it should be similar for any OS. You can use these instructions to to clear and reload the cache if you have any issues with the Vue.js UserCP (current... (1 Reply)
Discussion started by: Neo
1 Replies
firefox(1)							   User Commands							firefox(1)

NAME
firefox - Firefox for Sun Java Desktop System SYNOPSIS
firefox [options ... ] [url] DESCRIPTION
Firefox is a free, open-source web browser based on the Mozilla codebase. It is small, fast and easy to use, and offers many advantages over other browsers, such as the ability to block pop-up windows. OPTIONS
The following options are supported: -height value Set the height of startup window to value. -h or -help Display the help message. -width value Set the width of startup window to value. -v or -version Display the version message. -P profile Start with the profile named: profile. -ProfileManager Start with profile manager. -UILocale locale Start with the UI Locale listed: locale. -safe-mode Disables extensions and themes for this session. -jsconsole Open the JavaScript console. -browser Open a browser window. -setDefaultBrowser Set this app as the default browser. EXAMPLES
Example 1: Launching Firefox example% firefox EXIT STATUS
The following exit values are returned: 0 Application exited successfully 1 Application exited with failure FILES
The following files are used by this application: /usr/bin/firefox Executable for Firefox application $HOME/.mozilla/firefox User configuration files for Firefox ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWfirefox | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
For more information about firefox, please refer to http://www.mozilla.org/firefox Refer to Help->Help Contents for more information. NOTES
Updated by Evan Yan, Sun Microsystems Inc., 2008. SunOS 5.11 10 Jul 2008 firefox(1)
All times are GMT -4. The time now is 11:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy