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
TSOCKS(1)						      General Commands Manual							 TSOCKS(1)

NAME
tsocks - Shell wrapper to simplify the use of the tsocks(8) library to transparently allow an application to use a SOCKS proxy SYNOPSIS
tsocks [application [application's arguments]] or tsocks [-on|-off] or tsocks DESCRIPTION
tsocks is a wrapper between the tsocks library and the application what you would like to run socksified. OPTIONS
[application [application's arguments]] run the application as specified with the environment (LD_PRELOAD) set such that tsocks(8) will transparently proxy SOCKS connec- tions in that program [-on|-off] this option adds or removes tsocks(8) from the LD_PRELOAD environment variable. When tsocks(8) is in this variable all executed applications are automatically socksified. If you want to use this function, you HAVE to source the shell script from yours, like this: "source /usr/bin/tsocks" or ". /usr/bin/tsocks" Example: ". tsocks -on" -- add the tsocks lib to LD_PRELOAD (don't forget the leading dot!) ". tsocks -off" -- remove the tsocks lib from LD_PRELOAD (don't forget the leading dot!) [-show|-sh] show the current value of the LD_PRELOAD variable <without any argument> create a new shell with LD_PRELOAD including tsocks(8). SEE ALSO
tsocks.conf(5) tsocks(8) AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the debian package of tsocks. It (along with this manual page) have since been adapted into the main tsocks project and modified. TSOCKS
TSOCKS(1)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy