Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I installed firefox as a regular user to a folder in my home directory (on a gnome desktop in Fedora), then extracted it to a new folder in the home directory which I named Firefox. When I opened the Firefox folder I clicked on the firefox shell which opened the browser. The browser opened and seems to be working fine.
The first question is would it be better to move it from my home to a /usr/local type location? How can I do that now that the contents of the download have been extracted to the Firefox folder in my home directory?
After that, how do you make a menu link that can be located at : Main menu> internet> Firefox? Thanks.
I have tried using Firefox in both my home directory and in /usr/opt or /usr/local. I find that it performs best in my home directory and, if you are the only user of the computer, there is no benefit from putting anywhere else. If however, you wish to share the same binary between several users then it will have to live elsewhere and be installed by 'root'. No particular problem, but if you are happy with it in your home directory why change it?
I'm not sure about putting it on the menu, but in mandrake 9.1 you can put a firefox button on the taskbar by right-clicking on the taskbar, add to panel -> launcher... and fill in 'command' with [location of firefox folder]/firefox. Maybe you could do something similar in RH?
Well I managed to place it on the desktop with the Firefox icon. Still I need to click once then click run before it opens (as I get a box that opens and it says: "firefox is an executable text file. Do you want to run it or display its contents?) So I have to click "run" and then the web browser opes. However, it still allows me to use Firefox. I am also using the Mozilla that came with fedora. Both browsers seem to work just fine.
In any event, if after reading this anyone has an idea of what, if anything can be modified to eliminate the two step clicking process please let me know.
I am running FC1 w/Gnome. I just did a left click on the desktop and chose "create launcher", gave it a name, browsed to "/usr/share/firefox" (or wherever), selected the text script "firefox", slapped on an icon, and it's good to go. Just double click on the desktop icon and hello Firefox.
I have a question along the same lines. I am using Fedora Core 1 with Gnome and I am also installing Firefox. I put the firefox folder in /usr/lib/ (that looked to be where all the other applications were). I have created a launcher on the Gnome panel with the command set to '/usr/lib/firefox/firefox'
When I click the launcher, my beloved Firefox window pops up. Hurray. When I click the launcher again (to open a new browser window), it pops up a window asking me to create a new profile. I don't want to do that. I can create a new window from within Firefox, but I want it to behave as bundled mozilla does, click the launcher and a new window comes up.
Looking at the properties for the Mozilla launcher, it's command is 'Mozilla %u'. When I punch 'mozilla' into a terminal window (regardless of directory), it opens a new Mozilla window, but with firefox I need to be in the program's directory.
So, my question(s):
How do I make Firefox behave as Mozilla described above?
Here is my work-around as there seems to be no setting to change (I did a bunch of research on this when I had the same issue.)
Create a shell script with the content below (firefox.sh) and put it in your home directory then point your launcher to it instead of '/usr/lib/firefox/firefox'.
#!/bin/sh
# find pid of running firefox, if any
PID=`ps -ef | grep $UID | grep /usr/local/firefox/firefox-bin | grep -v "grep" | awk '{print $2}'`
# if firefox is not running, start normally
if [ $PID="" ]; then
/usr/lib/firefox/firefox $1
else
/usr/lib/firefox/firefox -remote "openurl( $1, new-window )"
fi
on line 4, I changed /usr/local/firefox/ to match my install of /usr/lib/firefox/
otherwise it's exaclty as posted.
I noticed that there is a shell script called run-mozilla.sh in the firefox directory. I tried to run it with no success. No error, but nothing happens.
---
Correction, running as root I get this error running 'run-mozilla.sh'
I chmod'ed it and it excecutes now, but it does the same as going directly to /usr/lib/firefox/firefox, pops up the window requesting me to create a new profile.
so what is the difference between firefox and firefox-bin anyway?
Yes, it occurs only on the second attempt, it launches the inital browser window just fine (but so does ./usr/lib/firefox/firefox). And I wouldn't really call the profile prompt an 'error', but it's not the way it should be working, right?
I checked and the script over here has firefox-bin, I must have just typed it here wrong.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.