LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mozilla (https://www.linuxquestions.org/questions/linux-software-2/mozilla-94015/)

scottpioso 09-17-2003 10:09 PM

Mozilla
 
Hi yall,

I just downloaded the newest Mozilla. I'm running rh9 with the quick launch buttons. I installed Mozilla in a directory called Mozilla which is located in the root directory because I didn't really know where else to put it.

I don't know where to find the path to the executable to launch the program. I found a shell script called mozilla-installer.sh but that points to the wrong place because everytime I click the quick launch button, the setup runs every time.

So, does someone know where the executable resides once the program is installed? Thanks.

TheRealDeal 09-17-2003 10:42 PM

Hi,

If you open a term emulator and type 'mozilla' the program should start.

If it does, type 'which mozilla' and it will give you the exact path of the mozilla file.

Hope this helps.

>Craig :)

SiriusAB 09-18-2003 01:05 AM

Re: Mozilla
 
Quote:

Originally posted by scottpioso
I don't know where to find the path to the executable to launch the program. I found a shell script called mozilla-installer.sh but that points to the wrong place because everytime I click the quick launch button, the setup runs every time.
There should be 2 folders, <<mozilla>> and <<mozilla-installer>>. I can launch mozilla by executing a mozilla shell script inside the <<mozilla>> folder.

My problem is that I can't figure out how to change the mozilla command default to trigger 1.4. I didn't install 1.2.1 because rpm -e told me there were numerous dependencies based on 1.2.1.

My question is whether or not the system *can* house both versions of mozilla and trigger the new version, rather than the old. I would imagine it must be possible, since one could theoretically run mozilla and firebird, galeon, opera, etc.

Hopefully, someone can help me too.

Clemente 09-18-2003 03:29 AM

Hi SiriusAB,

You can run both versions.

Say, that 1.2 is regulary installed with a file /usr/bin/mozilla to start it, and 1.4 is installed with a file /usr/local/mozilla-1.4/mozilla.

You can create a symbolic link from /usr/bin to /usr/local/mozilla-1.4/mozilla with
ln -s /usr/local/mozilla-1.4/mozilla /usr/bin/mozilla1.4
and can - due to $PATH - start 1.4 via mozilla1.4 and 1.2 via mozilla from elsewhere.

Good luck and greets,
Clemens von Musil

SiriusAB 09-18-2003 05:24 PM

Clemente:

Thanks a lot for the response!

So, would the effect be that Mozilla 1.4 would start if I typed <<mozilla1.4>> into the terminal and Mozilla 1.2 would start if I typed in <<mozilla>>?

If so, very interesting...and thanks a hell of a lot because you would have just explained the concept of symlinks to me (if I'm right).

Extending the lesson, how would I:

1.) Configure the system such that Mozilla 1.4 would start if I typed <<mozilla>> into the terminal?

2.) Change KDE's behavior to make Mozilla 1.4 launch when I click the "Browser" icon...

Any response is appreciated. I'm learning a lot.

scottpioso 09-18-2003 10:01 PM

Hi Clemente,

Thanks for the suggestion. Can you give me a tad more help? What I mean is, a little more specifics as to how to properly do that? I've only done the symbolic link a couple of times before and I'm still kind of confused.

As I previously mentioned, the new mozilla is installed in the root directory. Can you tell me what I need to do to change the pointer from the quick launch button to point to the new executable? Thanks!

Clemente 09-19-2003 02:48 AM

Ho Scott and SiriusAB!

Sirius:
You are right. A symbolic link is very similar to the m$-windows links. You define a file that points to another file. File can be dorectories, shellscripts or whatever.
You can consider a symlink as an alias or pseudonym.

To 1)
Just rename the files towards your liking. To adapt the example from my last posting, I would

mv /usr/bin/mozilla /usr/bin/mozilla-1.2 (renames old 1.2 from mozilla into mozilla-1.2) and

ln -s /usr/local/mozilla-1.4/mozilla /usr/bin/mozilla (sets the link to 1.4, if the link is not yet set up,
mv /usr/bin/mozilla1.4 /usr/bin/mozilla (else)

If didn't mistyped, you can launch 1.4 via mozilla and 1.2 vie mozilla-1.2

To 2)
I use a german version of KDE, adapted by redhat. I try to translate, what I see...
There is a tool in the K-menu, called "command center" . Start it and select "desktop", then "control bar". Now, you can select "menu" to the right and "edit K-menu". If we are still together, you see a new window, in which you can change all settings about your application-starters.
The Quick-Start-Icons follow the settings you make here, too.

If this tool is only available in redhat, you can do the settings by hand. They are all saved in the subtree ~/.kde ...

Scott:
Maybe you did right with your symlinks, but had problems with permissions...
Installing mozilla into /root is not the best choice, for /root is the home just for the user root. Similar to /home/tomaraya would be home only for tom.
/root grants access to root and some access to members of the group root. Normal users should not have to do anything here.
If a symlink, accessible by user tomaraya points to something into /root, tomaraya has very likely not the permissions to execute/write/read that file.
A better place to put applications for all users is /usr/bin or /usr/local/bin. For real big program packages, that build up large tree structures there is /opt.
Since I don't know, what happens, if you just move mozilla, I would uninstall / reinstall mozilla.

Hope, that this one can bring you one step forward,
Clemens von Musil

puppy 09-19-2003 06:58 AM

Mozzy
 
The installation instructions on the download page at Mozilla.org are very comprehensive and recommend you delete the previous program before installing the latest version - they also explain quite clearly where to put all the installation files and how to create the links etc.

Btw even though it is beta Mozilla 1.5B is VERY stable and a real improvement on 1.4.1. Removing the program using RPM doesn't remove your bookmarks etc so it is quite safe to use. User preferences are stored in an entirely different location to the program itself by default so an upgrade won't mean that you lose your settings....

scottpioso 09-19-2003 09:29 AM

Hi Puppy,

Yes, you are correct only in that the instructions ask you to delete the previous versions. However, it says nothing about where specifically to create the Mozilla 1.4 directory. And if I were to delete the previous versions and not install the new version properly, I would be dead in the water.

My only problem is configuring the new mozilla to work with my quick launch buttons. Since every distro of linux is a little different, they do not explain how to do that on their site which is why I came here.

Oh and clemente, the install was not put into /root it was put into the / directory.

SiriusAB 09-20-2003 12:39 AM

True, scott, I'm having much the same problems. I can't get mozilla 1.4 to launch from the desktop. Also, mozilla.org doesn't provide any instructions for KDE. It's Gnome only, there.

Clemente, thanks for your tips. Where exactly is subtree:
~/.kde

Quote:

If we are still together, you see a new window, in which you can change all settings about your application-starters.
The Quick-Start-Icons follow the settings you make here, too.
My question is...what do I change it to? Right know the command listed in the requisite dialog box is:

mozilla %u

I wonder what this means?
In another entry, it simply says:

/usr/bin/mozilla

I know what that means.
The other problem is that the browser won't "fire" when I enter mozilla or mozilla1.4
in the term...no errors either. It's as if the system recognizes the command, but won't complete it.

SiriusAB 09-20-2003 01:32 AM

OK! I fixed it.

scott, I think I can help you now. If you've gotten mozilla 1.4 running, you can query which mozilla and return the path used to deploy the app. In my case /usr/bin/mozilla.

Then, use a simlink, just as Clemente described it, adjusting the entry to your parameters--location of the working script and location of the path.

Before doing that, make sure the existing "mozilla" launcher in the path is moved or renamed. What happened to me was that I had initially copied the actual working script into /usr/bin along with another script requested when I entered mozilla into the term and a mozilla binary. When I removed these files and renamed the symlink mozilla from mozilla1.4 everything worked.

scottpioso 09-20-2003 07:45 AM

Hi,

Yes, I got it fixed also. What I did was simply change the path of the quick launchers like this. Right click on the launcher, go to properties, than navigate to the Execute tab where I changed the path to /usr/local/mozilla/mozilla. Now it works just fine. Thanks for the suggestions from everyone.


All times are GMT -5. The time now is 06:03 AM.