Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi,
i would like to install flash plug for my firefox under slackware 13 -64 bit.
i downloaded install_flash_player_10_linux.tar.gz from adobe website.
i unzip it and extract the tar file. what i found is only
libflashplayer.so. how do i proceed from here?
try copying libflashplayer.so to your plugin directory, ~/.mozilla/plugins/ or /usr/lib64/mozilla/plugins/
You can use the Flash plugin without 32 bit compatibility
The 64-bit flash player plugin can easily be built into a Slackware package using the SlackBuild script provided in the /extra/flashplayer-plugin/ directory of your DVD or any online mirror. It gets installed to the system-wide mozilla plugins directory so that Firefox, Seamonkey and other mozilla based browsers will be able to use it.
I have stumbled around the net looking for a solution to this issue but it seems like I'm stuck. At first I thought it was all flash apps were crashing firefox after installing flash player 10 using all of the methods above. I tried them all except the slackbuild in the extra dir until I found this post. The slackbuild does seem to present the best results but it still crashes.
With youtube, some videos will work and some will cause firefox to crash. Some flash ads cause firefox to crash, some don't. I had to post this twice due to a crash. My main concern is my girlfriends games don't work. They cause firefox to crash every time. Back to youtube... if I watch the same video, it will never crash so long as it doesn't the first time I watch it. If the video crashes firefox when I first view it I will never get any other results.
I have tried reinstalling it after uninstalling it and that didn't work either. I've been checking around on the net and I haven't been able to find any other resources regarding this issue. Does anyone have any tips ideas etc? The flash program on facebook that I've been testing for my girlfriends sake is FarmVille by Zynga.
I'm going to try a few of their other flash games to see if it's just this flash game that's causing it or if it's all of them. Anyone have any insight they'd care to share regarding these crashes I would most appreciate any of them.
I'm running slackware 13.0 64 on an AMD Athlon 64 3500+ with 1GB of ram on an ASUS A8V board. Before I installed the flash player I have not had any issues with any programs crashing, as soon as I uninstall flashplayer firefox ceases to crash.
[edit]
I tried another flash game and it crashed as well.
Last edited by wrinkledcheese; 12-10-2009 at 10:59 PM.
With youtube, some videos will work and some will cause firefox to crash.
AMD Athlon 64 3500+
If you run firefox from the command line, do you get an error message? If it is "Illegal instruction" then maybe I know what the problem is. At least the original AMD Opteron and the first 64-bit Intel P4 processors did not have the LAHF assembly instruction in the 64-bit mode, but newer processors support that. The 64-bit flash plugin uses that instruction. Try this:
Code:
cat /proc/cpuinfo | grep lahf_lm
If it outputs nothing, your processor has this problem. Newer processors display "lahf_lm" in line "flags".
Fix by Maks Verver: Use Google to find flashplugin-lahf-fix.tar.gz and extract flashplugin-lahf-fix.c. There are compiling instructions written inside. Copy the compiled flashplugin-lahf-fix.so to directory /usr/lib64/mozilla/plugins
/usr/lib64/firefox-3.5.5/run-mozilla.sh: line 131: 3566 Illegal instruction "$prog" ${1+"$@"}
When I run that cat cpuinfo command you mentioned it doesn't output anything. I will try installing what you had mentioned and update this post. Hopefully this will help someone someday...aside from me.
This worked for me. Because I had a little trouble finding the fix, due to flash and my lazyness to uninstall it I have included it here.
Save the code below in a c file. Compile instructions are included in the header of the file.
Code:
/* Simple work-around for running the 64-bit Adobe Flash plug-in version 10
on Athlon64 processors without support for the lahf instruction.
Compile with:
cc -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so flashplugin-lahf-fix.c
Then place the .so file in the plug-in directory (e.g. $HOME/.mozilla/plugins)
or use LD_PRELOAD to force Firefox to load the library.
- Maks Verver <maksverver@geocities.com> July 2009 */
#define _GNU_SOURCE
#include <stdlib.h>
#include <signal.h>
#include <ucontext.h>
static void sig_handler(int signal, siginfo_t *info, void *context) {
if (signal != SIGILL) return;
if (*(char*)info->si_addr != (char)0x9f) abort();
greg_t *regs = ((ucontext_t*)context)->uc_mcontext.gregs;
((char*)®s[REG_RAX])[1] = ((char*)®s[REG_EFL])[0];
regs[REG_RIP]++;
}
static struct sigaction old_sa, new_sa = {
.sa_flags = SA_SIGINFO,
.sa_sigaction = &sig_handler };
int _init() { sigaction(SIGILL, &new_sa, &old_sa); return 0; }
int _fini() { sigaction(SIGILL, &old_sa, &new_sa); return 0; }
Last edited by wrinkledcheese; 12-11-2009 at 11:55 AM.
/usr/lib64/firefox-3.5.5/run-mozilla.sh: line 131: 3566 Illegal instruction "$prog" ${1+"$@"}
When I run that cat cpuinfo command you mentioned it doesn't output anything. I will try installing what you had mentioned and update this post. Hopefully this will help someone someday...aside from me.
This worked for me. Because I had a little trouble finding the fix, due to flash and my lazyness to uninstall it I have included it here.
Save the code below in a c file. Compile instructions are included in the header of the file.
Code:
/* Simple work-around for running the 64-bit Adobe Flash plug-in version 10
on Athlon64 processors without support for the lahf instruction.
Compile with:
cc -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so flashplugin-lahf-fix.c
Then place the .so file in the plug-in directory (e.g. $HOME/.mozilla/plugins)
or use LD_PRELOAD to force Firefox to load the library.
- Maks Verver <maksverver@geocities.com> July 2009 */
#define _GNU_SOURCE
#include <stdlib.h>
#include <signal.h>
#include <ucontext.h>
static void sig_handler(int signal, siginfo_t *info, void *context) {
if (signal != SIGILL) return;
if (*(char*)info->si_addr != (char)0x9f) abort();
greg_t *regs = ((ucontext_t*)context)->uc_mcontext.gregs;
((char*)®s[REG_RAX])[1] = ((char*)®s[REG_EFL])[0];
regs[REG_RIP]++;
}
static struct sigaction old_sa, new_sa = {
.sa_flags = SA_SIGINFO,
.sa_sigaction = &sig_handler };
int _init() { sigaction(SIGILL, &new_sa, &old_sa); return 0; }
int _fini() { sigaction(SIGILL, &old_sa, &new_sa); return 0; }
This is immensely helpful. Thank you!
I still have a problem in that flash 64 has no sound. Does anyone know how to go about resolving that?
I found at least a dozen things to check for sound issues with flash. It seems pretty distribution specific at times but mostly non-distro specific things to check as well.
Hope this helps.
[edit]
After reading the fourth page, there are Slackware issues mentioned and KDE issues mentioned as well.
Last edited by wrinkledcheese; 02-02-2010 at 09:05 PM.
Flash tends to default to outputting sound to the first alsa device it finds, which is often not the default device. The best way I have found of making it output to default or your preferred device is with an ~/.asoundrc file in your home directory, eg:
Code:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
It should look similar to the above, your card number will quite possibly different so check first.
This command should list all configured alsa playback devices so you can find the one you want to use:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.