Unix/Linux Go Back    

Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Bad flash sound in Firefox, Chrome (youtube norm)

Red Hat

Thread Tools Search this Thread Display Modes
Old Unix and Linux 03-21-2011   -   Original Discussion by Xcislav
Xcislav Xcislav is offline
Registered User
Join Date: Jun 2008
Last Activity: 25 October 2015, 11:47 AM EDT
Posts: 28
Thanks: 2
Thanked 1 Time in 1 Post
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---

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)
asm volatile("rep ; movsb"
:"=D" (dst), "=S" (src)
:"0" (dst), "1" (src), "c" (size & 7)
return orig;
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:

LD_PRELOAD=$HOME/Downloads/linusmemcpy.so /usr/bin/firefox &

For Google Chrome users:

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..
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
google chrome os linux_land Google Chrome OS 2 04-06-2011 07:29 AM
Argh! Chrome! Go away! Corona688 What is on Your Mind? 4 06-27-2010 01:37 AM
Google Chrome For Linux!!! Dervish Google Chrome OS 1 08-30-2009 01:44 PM
Flash player in Firefox Sixmax UNIX for Dummies Questions & Answers 3 05-29-2008 01:55 PM

All times are GMT -4. The time now is 08:11 AM.