Flash Plugin install problem in Linux

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
I download it to my desktop navigate to the folder in terminal and type in the command to make it install. I do everything the instructions tell me to here. But when I press enter it gives me a message saying "ERROR: Your architecture, \'x86_64\', is not supported by the
Macromedia Flash Player installer." I guess it says that you cant use it on either AMD64 or Linux 64bit. Does anyone else get the same problem or is it just something I did wrong?
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
I don't think it's supported for x86-64. You'll want to get a 32-bit version of whatever browser you use. Alternatively, you can wait for GPLFlash to stabilize enough.
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
Well, then make sure you install the 32-bit version of that package from your distro, and I can tell you how to manually install the plugin.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Flash was giving me a headache in Fedora Core both 32 and 64 , so I looked in the code for the installer and removed corrctly the line that tells the installer to check the architecture part( In Fedora 64), and then went on with the installation in terminal. then was asked to remove the xpti.dat file from mozilla, logged out then logged in as root, searched for that file in mozilla then deleted it.
Rebooted / loged in back as user and behold flash. Hope this helps.
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
eek. I don't know if I want to mess with code. How do you get to it anyway?
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
The flash installation file can be opened with a text editor look for a line that has architecture mentioned and delete it completeley then save.
If you have a very basic programming knwoledge even veery slight experience you should be able to do it, if not I ll send you the edited file once I get the chacne.
Make sure you make a backup of the original one.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Remeber in OS land this is called a forced install it's not guaranteed to work 100 % ut in most cases it should.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
You should clean up your instructions a bit. They'd be great to spread around if they aren't already. :beer:

(It'd be like a man page!)
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
How do I open it with the text editor? What file is it exactly? flashplayer-installer? Like n0cmonkey said clean up the instructions and post them so everyone else can see them.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Originally posted by: MBrown
How do I open it with the text editor? What file is it exactly? flashplayer-installer? Like n0cmonkey said clean up the instructions and post them so everyone else can see them.


My mistake I appologize for that.

Here are the detailed step by step of of the whole process, some of them you already have completed but for others to see we will mention all of them :

1 - Download flash from macromedia' s download section.

Note that I have firefox configured to save any file I download to My home directory whihc is in my case if we conidre that my OS user name is linuxator my home directory would be in : /home/linuxator, and I assume you have the same configuration if not then read step b and then apply a and then carry on. If you have firefox configured to download files to your homw directory then skip step b.

a - Click on the "Download Now" link, then firefox will download it to your home directory in the form of a tar file ( a compressed file ).

b - Open the firefox web browser then go to edit--> Prefrences --> click on downloads---> select the save all files to this folder radio button, then select from the list that is enabled now your home directory in this case it's /home/linuxator.

2 - Go to your home directory once the download is complete, then you should see a file called install_flash_player_7_linux right click this file then hover the mouse pointer over the extract option then select extract here.

3 - An extracted file called install_flash_player_7_linux should show up and it uses a folder icon instead of the tar icon the compressed file uses. double click the
install_flash_player_7_linux folder.

4 - Now you will see a file called flashplayer-installer right click it , a menu should appear .

5 -
a - From the the menu hover the mouse pointer over the open with selection and another menu should appear from that menu select text editor
now the code will appear in a text editor window.

b - If for some reason the text editor doesn't appear in the second menu, then run text editor selecting it from the KDE or Gnome menu or whatever GUI menu you might have, then after text editor opens click on the File menu that shows on top , and click open from their you should see a list of folders you have click on Home then click on the install_flash_player_7_linux icon, then click on the flashplayer-installer icon and the code will appear in the text editor.

6 - After the code appears in the text editor, go to the Search menu on top, then select find .

7- in the find window that will open, there is a text box paste in it the following # the architecture is not supported and then click the find icon.

8 - the text editor will take you to the exact line of code in question here which should look like this :


# the architecture is not supported
exit_cpu () {
echo ""
echo "ERROR: Your architecture, \'$1\', is not supported by the"
echo " $PRODUCT installer."
echo ""
exit 1


The above section I am going to refer to it as code A


9 - Some info on this code you might want to know , it's a subroutine ( a case) that the program will recall in if it detects that the system is actually not a 32-bit system and the exit 1 indicates that the program will exit . after knowing this we need to modify this line so here is what we do.
I for kicks and giggles am going to modify it as follows below :

# the architecture is not supported
exit_cpu () {
echo "Hey now this architecture is supported yeppy"


The above section I am going to refrence as Code B

10 - All you have to do is replace Code A with Code B in the text editor, and then click File in the top menu then save which will save this work that we have done.

11 - Now to test our changes , we are going to run the installer go to the terminal and type :

a-
cd install_flash_player_7_linux press enter . then

b-

./flashplayer-installer press enter and the setup should start. follow the setup instructions in the terminal.


12 - At the end of the setup it might inform you about a file called xpti.dat and tells you that the root should delete it,

13 - Close everything and logout , then login as root , that can be done by typing root at the login screen in the usernmae textbox, and then you type the root's password in the password textbox which you should know you are screwed and have to reinstall your Linux OS.

14 - After you login as root , navigate to the following directory /usr/lib/mozilla/components there you will find a file called xpti.dat delete this xpti.dat file.

15 - Logout then login as the usual user in my case I type linuxator in the username textbox , then I type my password in the password textbox, then I press enter.

17 - Launch firefox , then navigate to www.anandtech.com if firefox doesn't give you a note that a missing flash plugin needs to be installed, and you can see those flash ads at the top then congrats :beer:
You have installed flash and it's working properly.
If not then give Macromedia a call and tell them there Linux support sucks and you want a 64-bit version of flash or else :| .

I hope my instructions above are organised enough.






 

daniel49

Diamond Member
Jan 8, 2005
4,814
0
71
this is fedora core 4 your doing this in linuxator?
Just downloaded the iso for it last night may try it later so will bookmark this.:)
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Well I don't know what distro he is running but this should work for all distros , since we are using the terminal here and the macromedia flash file is the same for all distro's so it's pretty much conventional stuff.
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
It was going well until I hit step 14. I don't have a mozilla folder under my lib I guess. Any clue what happened?
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
btw your instructions where exact and easy to follow...up in til step 14 that is(for me atleast).
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Hmm ,it's been a while since I have done this, try /usr/lib/firefox-1.0.6/components/xpti.dat
this should work for sure, once you delete it, flash will replace it with another one that will make things work for you. And after deleting the xpti.dat I would recommend a reboot.

PS : I have firefox version 1.0.6 so if you have any other version all you have to do is change the version number in the command above and keep everything the same ;) .
Incase you have an older version and want to update it to the newest one the easiest way, then all you have to do is go to terminal and type :

su to gain root acess, press enter then input password

then type

yum update firefox and follow instructions by typing y when asked to and you should be done once the updates are downloaded.
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
Aww. It keeps on saying no such directory exists. So I entered ls and I didn't find the firefox-1.0.6 file but there were two mozilla files listed both with a number combination like a version of Mozilla. None of those existed either. So I decided to try it again and I entered clear, did the whole process step by step and now there is none of the mozilla folders there. Its messed. Oh and before I did that I update my firefox and it worked nice. And also I didnt log of my reg acount. I simply just typed su in terminal and entered in the root password to do this xpti.dat thing. Could that have been a problem? Should I have fully logged out and entered again as root? Thanks alot btw. You are very knowelegable.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Well I can't tell what happened exactly what distro are you running fedora? and what version ? but we can fix mozilla, and to make things

easier I am going to show you how to install a graphical package/software installer

based on yum. Go to terminal become root and type :

yum install yumex this will install yum extender which you can access after the
i
nstall from the gnome/kde menu .

Now go to yum extender and click on the uninstall icon and type fire in the search

field to locate anything that has to do with firefox, uninstall everything by marking it

and pressing unindtall. then click on the install icon and search for fire again this will

show you the available firefox packages, select the newest version of firefox , then

click install.

The above step should be suffecient in most cases to fix the situation once completed

refer to my detailed instructions about the flash install and go through them again and

this time just to be safe you logout and login as root and go through the filesystem

and try to locate that file using the search function in you GUI menu, it should be in a

mozilla folder or at least that's what I remember about it's location.

Also the prblem here is that I can''t gain acess to my 64-bit rig, the only thing I have

access to is my trusty Thinkpad, I am away from my

place and won't be going back for a while, if it wasn't for that I would have been able

to sit down and do it all over again to see where I could have done something

different, sorry.
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
Well instead of going into /lib I did /lin64 . I pressed ls. Mozilla is there but when I type it in it says no such directory exists but its right there. I dont understand. And with file manager I can see the firefox folder but it terminal it still says it doesnt exist. wierd.
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
ok. Did that last instructions you told me to do with yum and all. I reinstalled flash. Then I logged out of my local user and logged into root. I used the file system to find the firefox 1.6.1 folder but I could not find the specific xpti file. There were some other xpi ,xpt etc but not the specific xpti.dat file.
 

MBrown

Diamond Member
Jul 5, 2001
5,726
35
91
Well guess what. I found the file actually. I forgot to go under componets. I'm not completely sure how to delete it so I just right clicked and chose move to trash. Im using fedore core 4 btw. Assuming thats the right way to delete it I rebooted and logged in as my regular account and.....It didnt work. So I guess im going to be emailing flash and telling them to make a 64bit version of flash. Thanks for you help anyway. You are very knoweledgable. I have a feeling I will be asking you a lot more linux questions later on. I hope you dont mind...im just a noob :)
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
I don't mind at all, if I know it I will be helping you as much as possible with it, If not I will help you with the invistigation to get through it.
Well there was nothing wrong with trying our best to make things work, you didn't lose much, you actually gained some insight into the linux filesystem and this knwoledge will be useful for future problems you are probably going to face in Linux land.

And no I don't considre my self very knwoldgable in Linux you can always see me around the forums asking for help with Linux in some more advanced issues ( like getting the extra trackpoint functions working in Fedora Core 4), but receiving none due to the presence of some ELITIST arrogant Linux knwoledgeable members that would like to deter other members from learning more by making them feel stupid even though members like me have a good solid background in Windows / Programming and PC hardware, but still they feel that everyone else is non-existant even though members like me are trying to learn the ways of Linux and make it a complete substitute for their Micro$oft OS
Therefore I after helping you want you to help me now.

How ? well there is a small favoure I would like from you in return, you can accept to do it or refuse to , I will be helping you whenver the need arises anyway, but think about it if you want to, the favoure is that these ELITIST ARROGANT members need to receive our end of the message, to tell them that they are spoiling the joy of learning Linux for everyone else. and so I would like you to considre pasting what's below in you Signature.

I am an Anti-Elitist member please join me in the fight against elitists in AT forums by posting this in your sig , inorder to return AT forums to it's original path as a place where people can help and get help in all apects of computing.

So just think about it and tell me if you do appreciate getting help in here and if you would have got the help from some arrogant member that
feels that you should not learn things the way things should be i.e : SIMPLIFIED .

That's not the only way you can help, you might instead or with that look for those members here on the forums and when ever the need arises let them now that helping others is not a joke AT forums are mostly there for issues like the one you had either it's OS issue , hardware issue or whatever it is , it could be a personal issue in offtopic for example, no matter what the issue in here is they should be helpful not arrogant.
 

The Linuxator

Banned
Jun 13, 2005
3,121
1
0
Just to clear things up a little when I say elitist members I don't mean members with an Elite status, but I mean arrogant members.