LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Could not run Firefox from terminal (https://www.linuxquestions.org/questions/linux-newbie-8/could-not-run-firefox-from-terminal-4175532261/)

future_computer 01-27-2015 09:38 PM

Could not run Firefox from terminal
 
I boot with Kubuntu Live CD,
I launched terminal,
go to the folder where I unpack the Firefox TAR ball,
and run ./firefox
it says Permission denied

How to solve this?

frankbell 01-27-2015 09:52 PM

Addendum: Since Firefox comes installed in most distros, I've never tried this, so this is a shot in the dark.

The most likely issue is that the firefox binary does not have permission to be executable, though it could be something else. In the directory created by decompressing the tarball, what is the output of the command

Code:

ls -l
Be sure to surround the output with "code" tags, which become available when you click the "Go Advanced" button at the bottom of the "Quick Reply" window.

future_computer 01-27-2015 11:14 PM

I think I need to type su and get root position.

future_computer 01-27-2015 11:19 PM

if you want to turn into a root user then you can use

sudo -i

from terminal

jdkaye 01-28-2015 12:19 AM

Quote:

Originally Posted by future_computer (Post 5307596)
I think I need to type su and get root position.

You mean so you can change the permissions to make firefox executable (assuming that is the problem). You do not want to be running firefox as root.
jdk

future_computer 01-28-2015 11:56 PM

Still does not work,
but I can run firefox from the folder where I unzip the tarball in INSTALLED Linux.
It does not work in Live-CD.

QYInst 01-29-2015 01:11 AM

Quote:

Originally Posted by future_computer (Post 5308094)
Still does not work,
but I can run firefox from the folder where I unzip the tarball in INSTALLED Linux.
It does not work in Live-CD.

I agree with frankbell. Maybe it is just the problem of executable permission.
I suggest you to run
Code:

chmod +x firefox
And if the output is still "permission denied", try
Code:

sudo chmod +x firefox
Then you should run
Code:

./firefox
corectly.

jpollard 01-29-2015 07:08 AM

Also make sure that the "firefox" isn't a directory containing the kit.

Firefox itself is a shell script that sets up an environment for the executable.

On my system, the installed firefox executable is called "run_mozilla.sh", which resides in yet another path, but the actual binary is $MOZ_LIB_DIR/firefox/firefox - which is /usr/lib64/firefox/firefox).

There is a fairly extensive environment setup for it... so it may not work properly without a full install to get all the shell scripts set up.

Soadyheid 01-29-2015 09:58 AM

Quote:

I boot with Kubuntu Live CD,
I launched terminal,
go to the folder where I unpack the Firefox TAR ball,
Where is this directory? if it's on the live CD it'll never work, it's read only, do I assume it's in RAM somewhere? Is there other storage you've not told us about?

Can I ask why you're trying to do this with a LiveCD as Firefox will invariably be available through the Distro's Window manager menu? I don't understand why (or where!) you're trying to install it. :scratch:

With any LiveCD distro I've spun up I've always had it connect to the internet (I'm generally cabled up rather than WiFi) and I can browse the net with Firefox from the menu as you would with an installed version.

Just curious...

Play Bonny!

:hattip:


All times are GMT -5. The time now is 04:43 AM.