LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-27-2015, 10:38 PM   #1
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 392

Rep: Reputation: Disabled
Question 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?
 
Old 01-27-2015, 10:52 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,683
Blog Entries: 12

Rep: Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903
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.

Last edited by frankbell; 01-27-2015 at 10:59 PM.
 
1 members found this post helpful.
Old 01-28-2015, 12:14 AM   #3
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 392

Original Poster
Rep: Reputation: Disabled
I think I need to type su and get root position.
 
Old 01-28-2015, 12:19 AM   #4
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 392

Original Poster
Rep: Reputation: Disabled
if you want to turn into a root user then you can use

sudo -i

from terminal
 
Old 01-28-2015, 01:19 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by future_computer View Post
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
 
Old 01-29-2015, 12:56 AM   #6
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 392

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-29-2015, 02:11 AM   #7
QYInst
LQ Newbie
 
Registered: Jan 2015
Posts: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by future_computer View Post
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.
 
Old 01-29-2015, 08:08 AM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
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.
 
Old 01-29-2015, 10:58 AM   #9
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,192

Rep: Reputation: 204Reputation: 204Reputation: 204
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.

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!

 
  


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
[SOLVED] Run commands inside a terminal opened from a terminal.... charlemagne-is-my-son Linux - Software 10 06-16-2014 01:38 PM
how to run a terminal command that will open in a new terminal automatically floorripper Linux - General 5 06-18-2013 04:36 AM
[SOLVED] udev to run script not behaves like when run in terminal matiasar Linux - Software 6 04-17-2012 08:56 AM
How Do I Run Firefox From A Terminal mirlipi Linux - Newbie 3 02-22-2010 09:24 PM
How to run MP3 file thru Terminal in K.D.E or Terminal itz2000 Linux - Newbie 5 08-04-2005 10:49 PM


All times are GMT -5. The time now is 11:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration