Update: I strongly recommend PulseAudio and the flashsupport-lib instead
Worked for me:
- Remove all leftovers from Flash 7, or other flash plugins, from the system:sudo aptitude remove flashplugin-nonfree flashplayer-mozilla libflash-mozplugin
sudo rm /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/firefox/plugins/libflashplayer.so /usr/lib/mozilla-firefox/plugins/libflashplayer.so /opt/swiftfox/plugins/libflashplayer.so /opt/flash32/libflashplayer.so - Remove all leftovers from Flash 7, or other flash plugins, from your home-dir:
rm ~/.mozilla/plugins/libflashplayer.so
rm ~/.firefox/plugins/libflashplayer.so
rm ~/.mozilla-firefox/plugins/libflashplayer.so - Start your browser, visit “about:plugins” and make sure that you have no flash-player installed. (It may alternatively appear as something with “SWF”). If neccessary, remove all files that is named something with “flash” from the directories where libflashplayer.so resided.
- Flash 9 can use Alsa instead of OSS, which is not only preferrable, but the only way I could make it work. Firefox/Swiftfox needs to be aware of this, and you can make it known by editing /etc/firefox/firefoxrc. Make sure that FIREFOX_DSP=”none”.
gksudo gedit /etc/firefox/firefoxrc - Get libflashplayer.so from Adobe by downloading and unpacking the file in one go:
wget http://www.adobe.com/go/fp9_update_b1_installer_linuxplugin -O- | tar zxvf - --strip-components=1 --no-anchored libflashplayer.so - Move the plugin to the Firefox-plugin-directory on the system:sudo mv libflashplayer.so /usr/lib/firefox/plugins/
- Link or copy the plugin to wherever else you wish to have it:sudo cp /usr/lib/firefox/plugins/libflashplayer.so /usr/lib/mozilla/plugins/
sudo ln -s /usr/lib/firefox/plugins/libflashplayer.so /opt/swiftfox/plugins/ - Make sure Alsa is working, follow any tutorial on the web. If this command plays a sound, it works:ls -rS /usr/share/sounds/*.wav | tail -1 | xargs aplay
- Now, here’s the thing that took a lot of time for me to figure out. It’s not enough to make Alsa play sounds, it has to be configured so that the default Alsa-device and soundcard is the one you wish to play sound through. This may not be an issue for you if you only have one soundcard. Skype has (or had) the same problem as Flash here, so there are some tutorials in connection with Skype that might work for you. For me, it meant:- Commenting out the soundcard-module I didn’t want to be first from:
/etc/modprobe.d/alsa-base(You can find the name of the modules for each soundcard with a combination of looking in /proc/asound, lspci, lsmod, dmesg and aplay -l)- Then adding the same soundcard-module to the bottom of /etc/modulesCheck that the soundcard you wish to play through is listed first with this command:cat /proc/asound/cards
- Then, making sure that there weren’t any surprises in /etc/asound.conf or ~/.asoundrc.- And finally ending up with an ~/.asoundrc like this:
pcm.lydkort0 {
type hw
card 0
device 0
}pcm.lydkort1 {
type hw
card 0
device 1
}pcm.flash {
type plug
slave.pcm "lydkort0"
}pcm.!default {
type plug
slave.pcm "flash"
}
“lydkort” is Norwegian for “soundcard”, you can change the name as you like. This file probably won’t work for you if you’ve got a different setup from me, but it might be a starting-point for editing the file. The “!default”-name is essential, however, and if you change “flash”, remember to change it both places. aplay -d and aplay -D are great for checking some of the settings. You could sudo mv .asoundrc /etc/asound.conf when you’re happy with the settings. - Now, if Alsa works, .asoundrc is correct and all the planets in our solar-system are lined up correctly, you can start Firefox, and both Flash 9 and Alsa-sound will work. You should also double-check with “about:plugins”. At least, it finally worked here. Hopefully you’ll make it work in a shorter amount of time than myself. If it doesn’t, you could always install Flash 7 again, and run Firefox with the FIREFOX_DSP=”aoss”-setting. Good luck to you.







