Showing posts with label web browsers. Show all posts
Showing posts with label web browsers. Show all posts

Friday, July 11, 2008

links2 - a cross platform console based web browser which also renders images

Recently, while I was browsing a website in Firefox, I found that it took forever to load the concerned web page. Blame it on my internet connection or on the condition of the web server hosting the web page, I was literally fed up with the wait and closed the window with disgust. It was during this time that I wondered whether it will make my browsing experience a bit more pleasant if I switched to a console web browser such as lynx.

I am aware of a number of web browsers which have a very low memory foot print and also which discard plenty of fluff - which you find increasingly in websites being built now a days - while displaying web pages. Some of these web browsers being Dillo, Lynx and Links. Dillo is a web browser which require an X server to run. But the other two are console web browsers which display only text.

Links2 is a web browser which is based on 'links' and can be run in two modes. It will display web pages only in text when run in console mode and renders images in a variety of graphics formats such as PNG, Jpeg, Gif, Tiff and Xbm when run in graphics mode from within a X window system.

You have to see it in action to actually fathom how it renders the web pages. I have included a couple of screenshots of web pages as viewed in links2 below.

Fig: All about Linux blog rendered in links2.

Fig: Google News page rendered in links2

Fig: Links2 homepage viewed from links2

As you can see from the screenshots, websites which are built using tables are rendered properly where as those which use CSS lose their layout but are still equally readable. This is because links2 does not yet support CSS.

You can install links2 in Debian based Linux distributions by executing the following command :
# apt-get install links2
One of the good things I like about links2 apart from it rendering web pages in the blink of the eye are the number of keyboard shortcuts it supports. Considering that this web browser is also designed to be run in console mode, each and every function can be accessed entirely using the keyboard. Some of the shortcuts I found really convenient are as follows :
  • '\' - toggle between viewing the web page and its source code.
  • '/' - used to search for a word or term in the website that is displayed.
  • [Esc] key - Shows a menu at the top of the browser from which you can also make choices.
  • '=' - Provides further information about the web page such as its size, the web server serving the web page and its url.
  • '|' - Pipe displays the header information.
  • '<- ' - left arrow will take you to the previous view. '->' - right arrow will take you forward to the latest view.
  • [Page up] and [Page down] - these keys can be used to navigate through the web page one page at a time. But you can also use [Space bar] and 'b' key combination for the same.
  • 'g' - will pop-up a dialog box where you can enter the url of the website you want to view. To open this dialog box with the url of the current page already entered, press 'G'.
  • Move the mouse pointer over an image and press 'i' to see only the image.
Features of links2 are varied and many. Some of them being support for javascript, background downloading of files, built in image display for Gif, Jpeg, Xbm, Tiff and Png file formats and built-in fonts in the executable without reliance on any fonts installed in the system just to name a few. You can read the entire list of features at the links2 features page.

Starting links2 in graphics mode
To start links2 in graphics mode which is the mode which displays the images, use the '-g' option with the links2 command :
$links2 -g
The above command will probe all the installed graphics drivers and run on the first found. The drivers that are supported in links2 are x, svgalib, fb, directfb, pmshell and atheos. But if you want to start links2 with a specific driver say driver 'x', pass the value to the '-driver' option as follows :
$ links2 -driver x
links2 also has a lot of other options such as say, you want to save the contents of a webpage to your hard disk. This is easily achieved by using the -dump option as follows :
$ links2 -dump http://news.google.com > news.txt
... which will save the contents of the news.google.com page into the 'news.txt' text file. Which means, using this method you can literally strip all the html elements and save only the text into file. There are a whole lot of command line switches available for links2 from those for changing the foreground and background of the webpage that is viewed to conducting a name lookup of a web address. Check the man page of links2 for more options.

Configuring Links2
As with all things related to Linux and Unix, links2 web browser also stores all its configuration parameters in a text file. If you look into your home directory, you will find a hidden directory called .links2/ which contain all the files pertaining to the user's configuration. It is in the '.links2' directory that links2 web browser stores details such as your bookmarks, the browsing history and the per user configuration details.

The configuration details are stored in the links.cfg text file which is also created in the same location. This file is automatically created by links2 when you make changes to the configuration of the web browser and need not be edited manually by the user. But it is interesting to see the data that is entered in this file. My links.cfg file shows the following details :
# FILE: ~/.links2/links.cfg
# This file is automatically generated by Links -- please do not edit.
async_dns 1
download_utime 0
max_connections 10
max_connections_to_host 8
retries 3
receive_timeout 120
unrestartable_receive_timeout 600
format_cache_size 5
memory_cache_size 1M
image_cache_size 1M
http_proxy ""
ftp_proxy ""
download_dir ""
language "English"
http_bugs.http10 0
http_bugs.allow_blacklist 1
http_bugs.bug_302_redirect 1
http_bugs.bug_post_no_keepalive 0
http_bugs.no_accept_charset 0
http_bugs.retry_internal_errors 0
http_bugs.aggressive_cache 1
http_referer 0
fake_useragent ""
fake_referer ""
ftp.anonymous_password "somebody@host.domain"
ftp.use_passive 0
ftp.fast 0
ftp.set_iptos 1
menu_font_size 16
background_color 14540253
foreground_color 0
scroll_bar_area_color 11184810
scroll_bar_bar_color 0
scroll_bar_frame_color 0
display_red_gamma 2.2000
display_green_gamma 2.2000
display_blue_gamma 2.2000
user_gamma 1.0000
bfu_aspect 1.0000
aspect_on 1
dither_letters 1
dither_images 1
display_optimize 0
gamma_correction 2
enable_javascript 1
verbose_javascript_errors 0
verbose_javascript_warnings 0
enable_all_conversions 1
enable_global_resolution 1
javascript_manual_confirmation 1
js_recursion_depth 100
js_memory_limit 5k
bookmarks_codepage us-ascii
bookmarks_file "/home/octoedge/.links2/bookmarks.html"
extension "aif,aiff,aifc" "audio/x-aiff"
extension "au,snd" "audio/basic"
extension "avi" "video/x-msvideo"
extension "deb" "application/x-debian-package"
extension "dl" "video/dl"
extension "dxf" "application/dxf"
extension "dvi" "application/x-dvi"
extension "fli" "video/fli"
extension "g" "application/brlcad"
extension "gbr" "application/gerber"
extension "gif" "image/gif"
extension "gl" "video/gl"
extension "grb" "application/gerber"
extension "jpg,jpeg,jpe" "image/jpeg"
extension "mid,midi" "audio/midi"
extension "mpeg,mpg,mpe" "video/mpeg"
extension "pbm" "image/x-portable-bitmap"
extension "pcb" "application/pcb"
extension "pdf" "application/pdf"
extension "pgm" "image/x-portable-graymap"
extension "pgp" "application/pgp-signature"
extension "png" "image/png"
extension "pnm" "image/x-portable-anymap"
extension "ppm" "image/x-portable-pixmap"
extension "ppt" "application/powerpoint"
extension "ps,eps,ai" "application/postscript"
extension "qt,mov" "video/quicktime"
extension "ra,rm,ram" "audio/x-pn-realaudio"
extension "rtf" "application/rtf"
extension "sch" "application/gschem"
extension "svg" "image/svg"
extension "swf" "application/x-shockwave-flash"
extension "sxw" "application/x-openoffice"
extension "tga" "image/targa"
extension "tiff,tif" "image/tiff"
extension "wav" "audio/x-wav"
extension "xbm" "image/x-xbitmap"
extension "xls" "application/excel"
extension "xpm" "image/x-xpixmap"
video_driver "x" "1024x675" "" ISO-8859-1
I found this web browser really sleek and easy to use. Considering that it renders graphic images without any problem when run in X windows, this could easily be a good replacement for the mainstream web browsers where one is concerned only in reading the content of a website without the usual distractions such as flash based websites and fancy CSS. Oh yeah, you can also say good bye to most ads you see cluttering websites these days when you use links2.

Tuesday, June 17, 2008

Download Netscape Navigator ver 9 for Linux

Remember Netscape - the very web browser which once enjoyed a major browser market share and which was nearly killed by Microsoft's anti-competitive practices by its release of Internet Explorer ? The very Netscape navigator whose code base was then released as open source and which lead to the eventual development of the stable and increasingly popular Mozilla and then Firefox? Guess what, it has re-incarnated as Netscape Navigator ver 9.0.

Contrary to popular belief, Netscape Navigator was not dead though its popularity was severely diminished. One of the reasons for it to fall out of favor with the net users was because its succeeding versions accumulated a lot of unnecessary bloat. I remember using Netscape navigator ver 4.0 which was really sleek and then when I upgraded to the next major version, it some how did not live up to the mark of its predecessor.

The new Netscape navigator has shed a lot of fat and is now much sleeker. It is based on Firefox and has a couple of unique features built-in such as :
  • Integration with Netscape portal which is now a social bookmarking site (Yes Netscape website is now a social bookmarking/voting site aka digg.com ). From within the web browser without visiting Netscape, you can share and vote for web pages that you find interesting.
  • Read the latest news directly from your browser.
  • Netscape navigator fixes commonly mis-typed URLs for you.
  • And the highlight of ver 9 release is a link pad (Similar to what you have in Opera) which allows you to save interesting links without cluttering your bookmarks.
Netscape ver 9 is available for Linux apart from that for Windows and Mac OSX and is a modest 8.9 MB download. The minimum system requirements are 256 MB RAM and around 100 MB disk space.

If you are interested, you can download Netscape Navigator 9 and take it for a test drive.

Tuesday, June 3, 2008

A talk with Opera CEO Jon Von Tetzchner

Ask me which web browser I use the most and I won't even pause before telling you that Opera is one of the web browsers of my choice. I have always had a soft corner for Opera web browser going even way back when it was an ad supported one. There was this thin non-intrusive bar on the top of the browser which showed a couple of ads when you were browsing the net. But now it is a totally ad-free free web browser which is famed for its innovative features and relatively small memory footprint.

And Jon Von Tetzchner is the CEO of Opera which is a Norwegean web pioneer. The main income for Opera comes from operator deals with search engines such as Google, Yahoo and telephony providers T-Mobile, Vodafone, Telfonica and so on. This means that the end users get to use the world class products of Opera such as the desktop web browser and Opera mini - the web browser for mobile phones, for free while still making money for the company.

Read this exciting interview with Opera CEO Jon Von Tetzchner by Andrew Orlowski.

Firefox reaches 400 million downloads

It is nice to see one of my favorite web browser logging 100s of millions of downloads. When I think about it, I do not even remember the last time I used Internet Explorer. Then again it has been quite a while since I have logged in to Windows too in my dual booting machine.

So a couple of weeks back, Firefox passed the corner stone of being downloaded a whooping 400 million times as tracked by the Spread Firefox website. While the number might be challenged by critics because they don't say if the data is for unique downloads or if it counts all repeat downloads too (Most probably the latter is true). For example, I myself have downloaded Firefox a total of 7 times in the past 6 months.

Fig:Firefox download trends since the past couple of years

I feel happy that this Open Source web browser is gaining more and more patrons as days go by. But it has a long way to go if it needs to challenge the might of Microsoft's Internet Explorer. This is because even now, IE is the dominant web browser for the simple reason that it is installed by default on all Windows machines and it is used by a majority of users. While Firefox's percentage is gradually increasing, it still lags behind IE.

As an example, the graph below highlights the browser usage trends of visitors to this blog. I was really surprised that only just over 25 percent of the visitors to this blog use Firefox as their web browser. And a dominant 66 percent of visitors still use IE.

Fig: Web browser used by visitors to this blog.

But I may add that the percentage of Firefox users is gradually increasing as days go by. And one can definitely dream of a day when Firefox will grab the majority user share of the Web browser. Kudos to the Firefox team for giving us this wonderful web browser.