LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 07-09-2012, 02:31 PM   #1
lili2002
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Rep: Reputation: Disabled
Unable to launch firefox browser from redhat 5.8


Hi,

I am new to linux. I have installed the firefox 10.0.5 and tried to launch the firefox by command line "firefox" but nothing was happening. Am I missing something? Please kindly provide more details what to do.

Thanks very much,

lili
 
Old 07-09-2012, 02:59 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Where did you install firefox?

If it won't start from a terminal, then you do not have the binary in your path. Your systems path is the set of directories the system searches through when you enter a command, or a program. To know what the path is set to, open a terminal and run the command 'echo $PATH' 9 without the quotes. You should get something like this:

Quote:
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/kde4/libexec:/usr/lib64/java/jre/bin:/opt/kde3/lib64/qt3/bin:/opt/kde3/bin:/usr/lib64/qt/bin:/usr/share/texmf/bin:.
Yours will be a little different, however, you can see my system looks through /usr/local/bin, /usr/bin etc.

So, depending on where the firefox binary is, you can add a symlink to the binary in the search path.

If you install FF in your /home/username/ somewhere, it won't be found, unless you add that to the path, or put a symlink in the path, to the binary.

You can use the find command to find the binary, or my favorite, locate. See the man page for each command.

For locate you need to update the database first. That is done as root user. You can su to root, and run the command 'updatedb'. That will take a few minutes to run. Once finished, exit root, and run the command 'locate firefox'. The system will list all occurrences of the string firefox.

Hope this helps.
 
Old 07-09-2012, 03:01 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Firefox runs as an X Window on UNIX/Linux. When you say "command line" are you trying to run it from within a terminal session within your X environment or are you trying to do it from one of the text consoles? If the latter it won't work.

In the default X Window environment for RHEL (Gnome desktop) there should be a little icon that looks like a world - this is the typical way to launch your browser. Did you try that?

If you type "tty" what does it show at command line?

If you type "which firefox" what does it show?

When you type "firefox" and hit enter exactly what happens? That is do you see any messages or does it come back to command prompt or does it hang?

If you run "ps -ef |grep firefox" after you've tried to start firefox what do you see?
 
Old 07-09-2012, 03:41 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
rhel5 shipped with firefox 3 as i recall
did you UNINSTALL the already installed FF when you installed the OLD and not supported FF10 ( firefox 13.0.1 is current )

see the RedHat knowledge base for setting up the plugins and flash
https://access.redhat.com/knowledge/search

most "how too's" have you put the binary FF in /usr/lib/Firefox13 ( or ff12 or ff11)
but /opt/firefox might be a better choice
put the location of the firefox folder into the system $PATH
then reboot


however there is no real NEED to use the binary from mozilla
the remi repo
HAS A rpm for red hat

install the remi repo
then all you have to do AFTER YOU set up and configure "yum-priorities"
that yum plugin IS A MUST HAVE !!!
is this
Code:
su -
yum update firefox 
or just 
yum update

and seeing as you MUST buy a support contract with red hat to use RHEL
you might want to make use of it seeing as you paid for it

with RHEL your very first stop should be the Knowledge base
https://access.redhat.com/knowledge/search

search " install firefox"

now you will nave to login to the red hat web site
but you all ready have an account with them from buying the license

Last edited by John VV; 07-09-2012 at 03:44 PM.
 
Old 07-09-2012, 03:47 PM   #5
lili2002
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for your help! I first ssh to our linux box and then ran the firefox from a linux terminal where i installed the firefox software followed the doc http://www.if-not-true-then-false.co...-red-hat-rhel/
So in a linux box terminal, i got these return:

:~$ tty
/dev/pts/0

:~$ which firefox
/usr/bin/firefox

:~$ firefox
Error: no display specified

:~$export DISPLAY=:0.0
:~$firefox
Error: cannot open display: :0.0


The firefox couldn't be launched. why i couldn't open the display 0.0?
 
Old 07-09-2012, 03:51 PM   #6
lili2002
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I know for sure there is no firefox installed prior to I install the firefox10. I did command "which firefox" but found nothing.
 
Old 07-09-2012, 03:56 PM   #7
lili2002
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I couldn't locate the little window or I don't know how to open x-window.

"In the default X Window environment for RHEL (Gnome desktop) there should be a little icon that looks like a world - this is the typical way to launch your browser."
 
Old 07-09-2012, 03:56 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Is your SSH-server configured for X-forwarding? Does your local OS have an X-server running?
 
Old 07-09-2012, 03:59 PM   #9
JimiSc
LQ Newbie
 
Registered: Jun 2012
Location: New Mexico
Distribution: openSuse 12.1
Posts: 18

Rep: Reputation: 11
Try using just DISPLAY =:0 firefox http://<web address> I ssh into my linux box everyday for monitoring purposes and I was able to get firefox to open that way. I run opensuse 12.1, dont know if that will make any difference.
 
Old 07-09-2012, 04:05 PM   #10
lili2002
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I am sorry I don't know how to "SSH-server configured for X-forwarding". I can start the x-window on my local os (MacBook Pro) unix env.

I tried "export DISPLAY =:0" and then "firefox http://www.yahoo.com", it shows nothing.
 
Old 07-09-2012, 04:24 PM   #11
lili2002
LQ Newbie
 
Registered: Jul 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
hey, good news, i just tried the "ssh -X username@hostname" replacing with actual user name and host, and I am able to launch firefox remotely. So this means I can move forward to the selenium web ui testing in linux, not sure if it will work or not, but that is a different story.

Thank you so much for all your help! I really appreciate.

lili
 
Old 07-09-2012, 04:26 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
To run GUI programs via SSH your server must be configured to allow this and you need to run a X-server on your local box.
http://www.techotopia.com/index.php/...X11_Forwarding)
 
Old 07-09-2012, 05:43 PM   #13
sharadchhetri
Member
 
Registered: Aug 2008
Location: INDIA
Distribution: Redhat,Debian,Suse,Windows
Posts: 179

Rep: Reputation: 23
After installing if you r not able find to where you have install firefox,run the below command.

find / -name firefox

I hope you will get the result and you will be able to recognise the firefox script.

Do one thing.
directly run the firefox script the path you found after find command.
for eg, it might be different in ur case,

/opt/firefox-3.9/firefox

check it ,if with abosolute path is it running or not.
if it is running. then create a soft link with name firefox directing to ur absolute path.

now check and let us know.

if did nt understand, paste the output of "find / -name firefox" here in this forum
 
Old 07-09-2012, 07:00 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
So this means I can move forward to the selenium web ui testing in linux, not sure if it will work or not, but that is a different story.
first BEFORE you do one more thing
replace the UNSUPPORTED firefox 10
with the CURRENT firefox 13.0.1

there ARE known and NOW FIXED holes that will NEVER get patched in the dead firefox10
 
  


Reply



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
Failed to launch VMware Web Access: unable to find a graphical web browser. rob0t Linux - Server 0 03-18-2009 02:32 PM
"unable To Launch Mozilla Browser In Root?" majji.hari Linux - Newbie 1 12-15-2007 11:18 AM
not able to install firefox browser on redhat 8 charmsqueen Linux - Newbie 2 02-07-2006 01:20 AM
Unable to set preferred browser to Firefox: FC3/Gnome essdeeay Linux - Software 1 04-04-2005 05:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration