LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Location of Down Loaded Code (https://www.linuxquestions.org/questions/linux-newbie-8/location-of-down-loaded-code-514999/)

swamprat 12-30-2006 05:31 PM

Location of Down Loaded Code
 
Hello,

I opened up the Firefox browser in SuSe 9.2 and and clicked on a title which requested me to download the update to the Flash player which did.

It said it would load the tar file down to the desk top which it didn't, put it in the tmp directory.

I'm going to exceute the script code to install the plug in so I'm guessing the code will go into the right place...corectly me of I'm wrong here.

Where should I store the original tar file...in what directory? Or should I just delete it.

Also, when I install new programs should the code be stored so every user in the system can gain access to the new program.

Thanks.:confused:

stress_junkie 12-30-2006 07:01 PM

When Firefox is installed by using SuSE YaST from a SuSE package repository then you will have Firefox files all over your system. When you install Firefox from a tar ball obtained at the Mozilla site you will have all of the Firefox files contained in one directory tree named firefox. You will generally expand this tar ball in the /opt directory so it will create a subdirectory called /opt/firefox. Let's say that the Firefox tar ball is called firefox.tar.gz and you have placed it in the /tmp directory. You would install it as follows:
Log on as root.
Check to see if there is already a firefox directory. If there is then rename it.
Code:

cd /opt
ls
. .. firefox
mv firefox firefox.old

Enter the following commands to install the new version of Firefox.
Code:

cd /opt
tar xzvpf /tmp/firefox.tar.gz

You will end up with a directory called /opt/firefox which will contain all of the Firefox files.

Then check to see if there is an executable or a link named firefox in the /bin directory.
Code:

ls -l /bin/firefox
If there is one then rename it.
Code:

cd /bin
mv firefox firefox.old

Then you can create a new link to the new firefox executable.
Code:

cd /bin
ln -s /opt/firefox/firefox firefox

This new version of Firefox will not have any plugins. If you want to add plugins at the system level then you put the files in the /opt/firefox/plugins directory. Check the permissions after you copy plugin files into this directory to ensure that normal user accounts can access the files.

Once this is done then it doesn't matter if you keep the tar ball or if you delete it.

If your system had Firefox previously installed via SuSE YaST then there will be old Firefox files all over your system. They won't do any harm. The only potential problem is that KDE icons and things that start Firefox may not know about the new Firefox location. That is why we created the firefox link in the /bin directory. Just be aware that if a normal user has trouble running Firefox from a desktop icon this may be the source of the problem. In these cases you simply edit the properties of the desktop icon to look for firefox in the /bin directory or in the /opt/firefox directory.

I hope this was helpful. :)

sumguy231 12-31-2006 12:53 AM

That would be the Flash tarball, not the Firefox tarball, stress_junkie.
I didn't know that the Flash tarball came with an installer, but that' s beside the point. You can get rid of the tarball when you're done installing. If there's a misunderstanding and there is no installer, just copy the libflashplayer.so to the Firefox plugins directory (/usr/lib/firefox/plugins on Ubuntu, but it's probably different for SuSE.) Use the 'locate' command to find it. Make sure you don't put it in /home/<username>/.mozilla/plugins or it will only be installed for you. Also note that you'll need root privileges to copy the file.

Quote:

Also, when I install new programs should the code be stored so every user in the system can gain access to the new program.
Flash is an atypical case, most programs come in through your package manager, YaST. That's the most ideal way to install most programs, and will also install it for all users on the system. As expected, it needs root privileges.

swamprat 12-31-2006 10:05 AM

Thanks folks.

All of this is big help because for the most part I'm fairly new at all of this. Mostly used to Windoz.

Thanks again.:newbie:


All times are GMT -5. The time now is 12:31 AM.