I can't run Firefox from my single user(only from a super user)
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 have had this problem with ff before and it was because one of my extensions was hanging up ff when I closed it.
Try running:
Code:
ps -ef | grep firefox
As a user or as root if you don't see anything. There will probably be more then one process so be sure to kill them both. Now uninstall all your extensions and give it another try.
That message is displayed wheneever firefox can't load its executable for any reason. The "Is already running" is the most common reason, but it can be missleading if it's not the real reason. Because you can run as "root," your problem is more likely to be a "permissions" problem than the problem displayed in the "pop-up" box.
Check your permissions on the firefox entries in /usr/lib You should have something like this:
Another thing to check, is firefox puts a lock file in a subdirectory of your home, and if it crashes or shutsdown uncleanly, it will leave the lock file in place, and it might lead to the error you are seeing. The location of the lock file on my machine is
Code:
/home/jim/.mozilla/firefox/234i8fys.default/lock
Obviously the string after .mozilla/firefox/ is some random chars, but you'll find it easily enough. If the lock file is there, and you don't have firefox running, you can rm it.
This used to occur often, and I thought it had been fixed a few versions ago, but it certainly could continue to happen.
The fact that you are launching from /usr/local won't make any difference, it still places files in the .mozilla/firefox under your home.
There are no references of firefox in /usr/bin. I suppose that the entries showed int the /usr/local in my previous post refer to firefox binary. The konsole commands showed bellow doessn't show any entry in /usr/bin.
=================================================================
[ricardo@c9511efb música]$ cd ~
[ricardo@c9511efb ~]$ ls
coolgen/ documentos/ lixo/ plugin_stack.trace testeslazarus/ vídeo/
Desktop/ download/ mp3/ RealPlayer/ tmp/
doc/ fotos/ música/ testesfpc/ tmpxOWlMa.wav.part
[ricardo@c9511efb ~]$ cd .mozilla
[ricardo@c9511efb .mozilla]$ ls
firefox/ mozver.dat plugins/
[ricardo@c9511efb .mozilla]$ cd firefox
[ricardo@c9511efb firefox]$ ls
pluginreg.dat profiles.ini
[ricardo@c9511efb firefox]$ su
Password:
[root@c9511efb firefox]# updatedb
[root@c9511efb firefox]# exit
exit
[ricardo@c9511efb firefox]$ locate firefox
first part:
"I have had this problem with ff before and it was because one of my extensions was hanging up ff when I closed it."
What is the meaning of "my extensions"? And "my extensions was hanging up ff"?
====
second part:
"As a user or as root if you don't see anything. There will probably be more then one process so be sure to kill them both. Now uninstall all your extensions and give it another try."
I try the command as root and as non super user and result was:
[root@c9511efb ricardo]# ps -ef | grep firefox
root 4458 4145 0 23:14 pts/1 00:00:00 grep firefox
[root@c9511efb ricardo]# exit
exit
[1]+ Done sh /usr/local/firefox/firefox
[ricardo@c9511efb ~]$ ps -ef | grep firefox
ricardo 4460 4092 0 23:14 pts/1 00:00:00 grep firefox
[ricardo@c9511efb ~]$
Again I can't understand your words. As you can see in the snapshot above there are process to kill.
Please explain "Now uninstall all your extensions and give it another try." better. I have no idea what is the meaning of extensions in this context. I'm a newbie.
Excuse me if I don't give correct attention to your first post before.
Ricardo, how did you install firefox? Normally, you log in as root and extract everything into /usr/lib/firefox and then create a symbolic link /bin/firefox pointing to /usr/lib/firefox/firefox with "x" permissions for everyone.
If you do it that way, the permissions on the firefox files will be set correctly, and you can start firefox with a simple firefox command. (Note that the extraction needs to be done as "root" so the permissions can be set correctly.)
Even easier is to check the repositories for your distribution to see if there's a firefox package available, and to install it if you can find it. Depending on your distribution, an apt-get install firefox or yum install firefox will often do the trick for you.
I'd suggest that you re-install firefox (as described above) and then see if you still have the problem.
Now, I remember that someone powered off my machine with linux open. Then, as I had terrible problems with java plugin, I don't re-install FF. I recreate a link.
Since this day, FF runs only when called via /usr/local/firefox/firefox and I must be logged as root.
Master PTrenholme points to the probably trouble, I suppose...
Re-install Firefox... Here comes a big pain. Flash pligin, Java plugin... Lots of plugins... I'm dead!
How do I uninstall these whole sheet now?
Must I give a "locate firefox" and manually remove all entries in each directory? I would like to remove all garbage before re-install it.
It would be so easy if FF was furnished as rpm file... If I remember correctly it is distributed as a "tar" or "tar.gz" and I must "untar" it and run a binary.Is this right?
When I run this last binary I must be logged as super user(normally root)?
The plug-ins should be in /usr/lib/mozilla/plugins, and they should automatically recognized (and used) by a new firefox installation. Sometimes the plug-ins are in /usr/lib/firefox/plugins or, in your case, perhaps in your home directory somewhere.
In any case, all you need to do is to save the plug-in files, re-install firefox, and then move the saved files to either the /usr/lib/mozilla/plugins/ or the /usr/lib/firefox/plugins/ directory.
firefox automatically checks those directories when it starts and loads any plug-ins if finds in them. So you shouldn't need to download any of them again. (Unless, of course, they don't work with a newer firefox version. But that's a problem that all firefox users have when they install a newer release.)
So, locate your plug-ins, copy them to a safe place (I'd use /tmp/plugins, but anywhere would do), reinstall firefox and copy the plug-ins to their correct location.
If you install firefox from a repository, the location under /usr/lib may be firefox-1.5.0.7 (i.e., with the version number appended).
I pretend to follow your instructions mr. PTrenholme. But would you tell me, please, the best way of clean my hard disk from the present Firefox files?
Unless your current installation is in /usr/lib/firefox/, you don't really need to clean out your old files. Just install as I described above, and verify that you can run the newly installed firefox. (Note that you should not change anything in your ~/.mozilla or ~/.firefox folders. Those contain your user-specific settings and data, and they should work with the new installation.
Once everything is working you can rm everything in your old installation directory whenever you want to do so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.