1

Is there a text-based browser available for Linux (CentsOS) which I can use when I SSH to my server. I use CentOS release 5.5. My server do not have graphic interface.

It would be nice if it support JavaScript.

bman
  • 219
  • 4
  • 13

5 Answers5

6

You can try

links http://www.example.com or lynx http://www.example.com

You can also try links -g to put it into "graphics" mode but I don't think this will work over SSH.

SiegeX
  • 525
  • 1
  • 6
  • 16
  • Wow! It's wonderful. But I have small problem. I only can go into href links. I cannot submit form or press – bman Nov 23 '10 at 18:53
  • Note that both of these are available in the CentOS base repo, so you just need to `yum install` them. – mattdm Nov 23 '10 at 19:00
3

If you install a X server such as Cygwin/X on your local machine then you can instruct your SSH client to enable X forwarding and run a graphical browser such as Firefox or Chrome if the xorg-x11-xauth package is installed on the server.

Ignacio Vazquez-Abrams
  • 45,019
  • 5
  • 78
  • 84
2

Elinks which originates from links. It has support for Javascript, tabs, frames, tables...

I also like w3m, but I don't think it supports Javascript.

skinp
  • 749
  • 1
  • 7
  • 19
2

Here is Wikipedia's list of text-based browsers

Corey Farwell
  • 135
  • 1
  • 9
0

I find it convenient to set up socks forwarding using OpenSSH's -D $port option. Then use a firefox extension that does fine-grained proxy configuration (FoxyProxy IIRC), and tell it to tunnel some sites through the socks proxy at localhost:$port .

Tobu
  • 4,367
  • 1
  • 23
  • 31
  • I already do this using Putty Tunelling. But this is not exactly what I need. I actually want to surf web from inside the server not by tunneling. For example when I want to download file in the server (which I cannot download using wget command). – bman Nov 24 '10 at 10:24