LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 10-15-2003, 05:51 AM   #1
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
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<
 
Old 10-15-2003, 06:21 AM   #2
lesleyb
Member
 
Registered: Sep 2003
Distribution: Debian, OpenBSD 3.9 & 3.7
Posts: 79

Rep: Reputation: 17
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
 
Old 10-15-2003, 09:11 AM   #3
justinsleary
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: RedHat 9
Posts: 10

Rep: Reputation: 0
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
 
Old 10-15-2003, 09:26 AM   #4
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Original Poster
Rep: Reputation: 15
thanks -

ahhh -

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
 
Old 10-15-2003, 11:33 AM   #5
justinsleary
LQ Newbie
 
Registered: Sep 2003
Location: Australia
Distribution: RedHat 9
Posts: 10

Rep: Reputation: 0
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
 
Old 10-16-2003, 08:03 PM   #6
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/lib/mozilla-1.7.11/run-mozilla.sh: line 159: 3492 Segmentation fault behmjoe Linux From Scratch 2 11-28-2005 10:48 AM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 11:55 AM
CUPS Cannot print in mozilla non-root (can as root)? mismacku Linux - Software 0 08-26-2004 03:07 AM
Can only run Mozilla Firefox as root after installing extension Anjin Mandriva 1 05-17-2004 04:43 PM
Why cant I run Mozilla Browser as Root User LinzyNJ Linux - Software 8 04-05-2003 02:25 AM


All times are GMT -5. The time now is 12:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration