LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Can't run mozilla outside of root (https://www.linuxquestions.org/questions/mandriva-30/cant-run-mozilla-outside-of-root-104160/)

jxi 10-15-2003 05:51 AM

Can't run mozilla outside of root
 
as user...
Either selecting mozilla from KDEstart -> networking ->WWW
OR
command line $ mozilla

results in nothing. (CPU spikes and then drops immediately)

root can open a mozilla window (e.g., displaying /usr/share/whatever)

mozilla-1.3.1-4.1mdk

permissions are like -rwxr-xr-x root root /usr/bin/mozilla

What log would show error messages? I looked at ~/.xsession-errors and /var/log/messages and found nada

well anyway I used urpmi and installed galeon which i'm in right now. still would like to know what's going on with mozilla though.

Mozilla 1.2 works fine (with user login) in redhat9 on this same machine.

thanks in advance
j i
>Waiting for The Return of the King<

lesleyb 10-15-2003 06:21 AM

try

whereis mozilla

this should give you path where mozilla is installed.

try using the full path to run mozilla

check that the path to mozilla is in your PATH environment variable.

post the error messages you get .

lesleyb

justinsleary 10-15-2003 09:11 AM

Hi jxi,

I have had the same problem with Mozilla - I am running RH9 with the secondmost latest kernel. I can click on the Mozilla icon (or Mozilla Firebird) and sometimes nothing happens. Also I often get the error message "segmentation fault" when trying to start Mozilla or sometimes Evolution. On the seg fault issue, another poster suggested reinstall the rpm(s). I will explore the environment path issue and get back here soon.

Justin

jxi 10-15-2003 09:26 AM

thanks -

ahhh - :rolleyes:

I should have done a search first.

cause maybe this fixes it:
http://www.linuxquestions.org/questi...user+cant+wont

(above, tchernobog in the 3rd post)

am at work now so will try 2-nite

j i

justinsleary 10-15-2003 11:33 AM

Good spotting, jxi!

However, I read the thread you found, and (another poster) suggests maybe not using the script.. I don't know. The other post there listed an alternative:

"well I'm not sure about this multiuser script that I see from tchernobog. Personally, what I do after running the mozilla installation is to do:

$ ln -s /usr/local/mozilla/mozilla /usr/bin/mozilla
$ chmod u+x /usr/bin/mozilla

and that allows all users to run the command "mozilla" and get mozilla up and running"

I would try the above first, as personally I wouldn't run a script that I don't (yet) fully understand. However, I have some questions about the above suggestion, which hopefully you and I can figure out.

The first line "ln -s ..." creates a symbolic link from /usr/local/mozilla/mozilla and this points to the hard link /usr/bin/mozilla . However, I couldn't create this symlink, as I don't have the first part: /usr/local/mozilla/mozilla on my filesystem. So what do you do? Install mozilla in a certain way so that we have this local part? If so, how do you do it? The second part is just changing the user level to allow executable on this file.. that part is already on that file on my system. I might go back to the other thread and ask some "newbie" style questions.

regards,

Justin

jxi 10-16-2003 08:03 PM

Think I got it now
 
justinsleary,

as for the `ln' command you tried from their suggestion

$ ln -s /usr/local/mozilla/mozilla /usr/bin/mozilla
$ chmod u+x /usr/bin/mozilla


, it at least needs to be reversed, according to:

Usage: ln [OPTION]... TARGET [LINK_NAME]


TARGET (/usr/bin/mozilla) needs to be first. As for other part, perhaps they meant /usr/local/bin/mozilla. Anyway just changing permissions with a link like that doesn't do it.

...Here's the simple solution (it's at the end of tchernobog's post http://www.linuxquestions.org/questi... non-root user as mentioned above):
  • You could try also to start mozilla with the "-ProfileManager" option and then create a new profile.
so I ran -
$ mozilla -ProfileManager
and selected Create profile. Didn't work at first the reason was /home/jxi/.mozilla (for userid) was root writeable only. SO as root -
# chown jxi /home/jxi/.mozilla
, created profile, now it works.

BTW I also ran the script that was provided there but still needed to do the Create Profile thing. Is this script needed?
#!/bin/sh
dist_bin=`dirname $0`

run this in /usr/lib/mozilla-1.3.1 (or whatever is current)
MOZILLA_FIVE_HOME=$dist_bin
LD_LIBRARY_PATH=$dist_bin
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH

set two environmental variables to current mozilla directory.
$dist_bin/regxpcom
$dist_bin/regchrome
touch $dist_bin/chrome/user-skins.rdf $dist_bin/chrome/user-locales.rdf

not sure :scratch:


All times are GMT -5. The time now is 07:54 AM.