Bad flash sound in Firefox, Chrome (youtube norm) | Unix Linux Forums | Red Hat

  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


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-21-2011
Xcislav Xcislav is offline
Registered User
 
Join Date: Jun 2008
Last Activity: 10 July 2014, 4:26 PM EDT
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
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 05:22 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:29 AM
Argh! Chrome! Go away! Corona688 What is on Your Mind? 4 06-27-2010 12:37 AM
Google Chrome For Linux!!! Dervish Google Chrome OS 1 08-30-2009 12:44 PM
Flash player in Firefox Sixmax UNIX for Dummies Questions & Answers 3 05-29-2008 12:55 PM



All times are GMT -4. The time now is 03:19 AM.