AMP AMP

How to install Command Line Browser in Linux

To install Command Line Browser in Linux

Web browser is used to surf the internet, mostly we are using the GUI based browsers. Operating systems like Linux supports browsers in command line mode also. Installation of command line browsers is explained in this manual.

Links

To install Links
Utilise the following command to install Links package.

root@linuxhelp:~# apt-get install links
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  links
0 upgraded, 1 newly installed, 0 to remove and 252 not upgraded.
Need to get 386 kB of archives.
After this operation, 1,351 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ wily/universe links amd64 2.10-1 [386 kB]
Fetched 386 kB in 3s (100.0 kB/s)       
Selecting previously unselected package links.
(Reading database ... 176941 files and directories currently installed.)
Preparing to unpack .../links_2.10-1_amd64.deb ...
Unpacking links (2.10-1) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up links (2.10-1) ...

To Launch Links
Run the following command to open the links.

root@linuxhelp:~# links 
                (or)
root@linuxhelp:~# links www.google.com 

links

Press “ Esc” Choose File -> Go to URL.

Type the URL.


Press “ q” to quit

Links2

To install Links2
Utilise the below command to install Links2 package.

root@linuxhelp:~# apt-get install links2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libdirectfb-1.2-9
The following NEW packages will be installed:
  libdirectfb-1.2-9 links2
0 upgraded, 2 newly installed, 0 to remove and 252 not upgraded.
.
.
.
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.2~bzr0+15.10.20150627.1-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
Setting up libdirectfb-1.2-9:amd64 (1.2.10.0-5.1) ...
Setting up links2 (2.10-1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...

To Launch Links2
Run the following command to open the Links2 browser.

root@linuxhelp:~# links2 
                       (or)
root@linuxhelp:~# links2 www.google.com


Press “ Esc” Choose File -> Go to URL.

Type the URL.


Press “ q” to quit

Lynx

To install Lynx

Utilise the following command to install Lynx package.

root@linuxhelp:~# apt-get install lynx
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  lynx-cur
The following NEW packages will be installed:
  lynx lynx-cur
0 upgraded, 2 newly installed, 0 to remove and 252 not upgraded.
Need to get 1,036 kB of archives.
.
.
.
Unpacking lynx (2.8.9dev6-3) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for doc-base (0.10.6) ...
Processing 1 added doc-base file...
Setting up lynx-cur (2.8.9dev6-3) ...
Setting up lynx (2.8.9dev6-3) ...

To Launch Lynx

Run the following command to open lynx

root@linuxhelp:~# lynx
               (or)
root@linuxhelp:~# lynx www.google.com


Press “ G” to go to the URL.

Elinks

To install Elinks
Utilise the following command to install Elinks.

root@linuxhelp:~# apt-get install elinks
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  elinks-data libfsplib0 liblua5.1-0 libtre5
Suggested packages:
  elinks-doc tre-agrep
The following NEW packages will be installed:
  elinks elinks-data libfsplib0 liblua5.1-0 libtre5
.
.
.
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up libtre5:amd64 (0.8.0-4) ...
Setting up libfsplib0 (0.11-2) ...
Setting up liblua5.1-0:amd64 (5.1.5-8) ...
Setting up elinks-data (0.12~pre6-10) ...
Setting up elinks (0.12~pre6-10) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...

To Launch Elinks
Run the following command to open elinks browser.

root@linuxhelp:~# elinks
                       (or)
root@linuxhelp:~# elinks www.google.com



W3m

To install W3m
Utilise the below command to install W3m package.

root@linuxhelp:~# apt-get install w3m w3m-img
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libgif4 libid3tag0 libimlib2
Suggested packages:
  libsixel-bin w3m-el cmigemo
The following NEW packages will be installed:
  libgif4 libid3tag0 libimlib2 w3m w3m-img
.
.
.
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up libgif4:amd64 (4.1.6-11) ...
Setting up libid3tag0 (0.15.1b-11) ...
Setting up libimlib2:amd64 (1.4.7-1) ...
Setting up w3m (0.5.3-24) ...
Setting up w3m-img (0.5.3-24) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ... 

To Launch W3m

Run the below command to open W3m.

root@linuxhelp:~# w3m www.google.com

Netrik

To install Netrik
Utilise the following command to install netrik package.

root@linuxhelp:~# apt-get install netrik -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  netrik
0 upgraded, 1 newly installed, 0 to remove and 252 not upgraded.
Need to get 281 kB of archives.
After this operation, 676 kB of additional disk space will be used.
.
.
.
Unpacking netrik (1.16.1-1.1) ...
Processing triggers for doc-base (0.10.6) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.4-1) ...
Setting up netrik (1.16.1-1.1) ...

To Launch netrik

Run the following command to open the netrik.

root@linuxhelp:~# netrik www.google.com

Tag : Browser Lynx
FAQ
Q
Is there any provision for enabling Line Browser in GUI?
A
Line Browser isn cli based browser and it cannot be enabled in GUI.
Q
How to install the Line Browser in LinuxMint?
A
The Procedure for installaing Line Browser remains same for all browsers.
Q
Will Line Browsers accept SSL self-signed certificates?
A
Line Browser is a basic browser and hence it doesn't support SSL.
Q
How to resolve the below error while installing Line Browser by "archive.ubuntu.com not found error, run apt-get with –fix-missing or update"
A
During Line Browser installation you have to run this command first: apt-get update && apt-get upgrade
Q
What kind of output execution we receive whether it is XML or something else in Line Browser?
A
Similar to your curl command output, which you get when you execute curl optionin cli.