Xterm: web browsing through terminal

First of all open the Terminal by pressing Ctrl + Alt + T.

First of all type:

sudo apt-get install w3m w3m-img

w3m is a text-based web browser. But w3m-img can be used to view images.

Now to Xterm be installed on your system, type:

sudo apt-get install xterm

xterm is a terminal emulator for windows systems. It may be included with various linux distributions as built-in package. But if it is not there in your’s then try above command.

After all setup, type in terminal :

xterm -bg white -fg black

Here -bg white argument is for changing the background of xterm to white, and -fg black is for changing font color to black. For default looks, you can just type “xterm” command. In a few seconds, you will came to know why I have selected these colors.

Then a new window will be open like below one:

open xterm


Then in the xterm window type :

w3m google.com

opening google

Then you will see Google.com opening like below image. If you can’t see image on website, then double click anywhere on the xterm screen. Xterm does not support .gif format images (animated). This page is similar to the original google homepage. That’s why I have chosen background color white by using man xterm command.

google.comPress “Tab” key to move the cursor through the hyper-links (links). Then press tab keys and arrow keys to navigate to the text input bar of google. Then press Enter to input the text. Then you will see what you type is shown on the bottom left corner. Then press Enter.

entering textNow use Arrow keys (or Tab) to go the link “Google Search“. Or just press Tab and Press Enter. Then page will open with appropriate results like below:

search resultsYou can see the result as above. It is also showing the map to tcc, gndec. Then press Tab key (or arrow keys) to toggle the cursor through links, and press Enter to open a website. In this case, I have clicked on images link to open images related to tcc, gndec. So here are the results:

images results

Right Click on any image and choose the required option. Double click an image to open large size. For example, if you want to save the image press “Shift+i”. Then give a path to save the image on your system or just press Enter. A Download List Panel will be open as shown below:

DownloadsDefault directory for downloaded images in /home/mandeep/ directory. Replace mandeep by your username. You can also play online music from the websites like this. This will open the vlc media player for online streaming.

The same procedure will also work in case of Terminal (ctrl+alt+T) , but the problem is that we can’t see any images in terminal because it does not support images.


2 thoughts on “Xterm: web browsing through terminal

    • What do you mean by “GUI google”? Assuming you are talking about google with images, then you must use xterm (or other terminal client that supports images). The gnome-terminal (that’s default in Ubuntu) don’t support images.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s