Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've logged into Linux machine. I issued the following commands to open a browser on the Linux server.

Still, I am unsuccessful.

07:53 AM tomcat@wb-ser1$ nautilus .
-bash: nautilus: command not found
07:53 AM tomcat@wb-ser1$ nautilus
-bash: nautilus: command not found
07:53 AM tomcat@wb-ser1$ xdg-open http://google.com/
-bash: xdg-open: command not found
07:53 AM tomcat@wb-ser1$ xdg -open http://google.com/
-bash: xdg: command not found
07:53 AM tomcat@wb-ser1$ lynx
-bash: lynx: command not found
07:55 AM tomcat@wb-ser1$ xdg-open http://stackoverflow.com
-bash: xdg-open: command not found
07:56 AM tomcat@wb-ser1$
07:56 AM tomcat@wb-ser1$ firefox
-bash: firefox: command not found
share|improve this question

migrated from stackoverflow.com Oct 27 '11 at 12:29

This question came from our site for professional and enthusiast programmers.

4  
It looks like you are logged into a remote server, in which case it is likely that there is no GUI applications at all. – Joachim Pileborg Oct 27 '11 at 12:09
    
@user663724, what are you really trying to do? Why do you need the browser? What are you using to log into the remote server? – slhck Oct 27 '11 at 15:01

if you want to download the HTML, you just need to run wget or curl command

wget http://stackoverflow.com
share|improve this answer
    
Basically i want to start the tomcat server in linux and want to execute a web application . – user663724 Oct 27 '11 at 12:07
    
Do you have a visual access, or only terminal ?! – Ehab Al-Hakawati Oct 27 '11 at 12:10
    
i have only terminal . – user663724 Oct 27 '11 at 12:14
    
Ok that's mean you can't run firefox and watching the GUI, you can only run wget and see the HTML output, the command is wger "URL" – Ehab Al-Hakawati Oct 27 '11 at 12:16
    
ok maybe you can you lynx :) – Ehab Al-Hakawati Oct 27 '11 at 12:26

By the looks of it, you are on a Linux machine with no web browser installed.

To see what things are "installed" on the machine, first check the search path of your shell:

echo $PATH

This should yield a list of dirs seperated by ':'. Like so:

/bin:/usr/bin:/usr/local/bin

next, you can list the files in each (probably a huge number, if it's a desktop install of linux):

ls /bin
ls /usr/bin
...
share|improve this answer
    
I dont know , but i guess the default firefox will be present know – user663724 Oct 27 '11 at 12:04
    
By the looks of the error "firefox: command not found", it appears you don't have firefox installed. See my updates for more info on what is 'installed'. – Adam Wagner Oct 27 '11 at 12:11
    
On echo $PATH , it displayed /usr/local/jdk1.6.0_20/bin/:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/lo‌​cal/sbin:/usr/X11R6/bin:/home/tomcat/bin:. – user663724 Oct 27 '11 at 12:13
1  
it appears you are logged in as a webserver user on a webserver. I'm guessing this has no browser installed. Usually servers are as barebones as possible, as no one will ever need to run a browser from it. – Adam Wagner Oct 27 '11 at 12:15

There are a few console based browers: for example; Lynx, Links and Links2.

You will need to make sure they are installed first, though... If you don't have a clue, find a beginners guide for linux.

share|improve this answer
2  
OTH, what are you REALLY trying to do? Start tomcat? – kalle Oct 27 '11 at 12:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .