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 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.
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:
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.
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?
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 )
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
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?
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."
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.