I have been thinking about the best way to chronicle my experiment in living la vida console. I realized this morning that it mostly will be a series of reviews of applications since applications are the real tool in computing. Not to sound like a certain dancing monkey boy but it really is about applications, applications, applications, applications, applications, applications, applications, applications, applications. (Can one ever really pass up the opportunity to link to that gem?)
I am using elinks for my console web browser. I chose elinks because it seemed the best of the three options. The other two were links and lynx. I wish I had a sound, scientific reason for choosing elinks over these two, but I simply installed each, went to http://www.google.com and selected the browser that was most appealing. According to the links site, elinks is still in heavy development whereas links is not.
As I have blogged before, I am using my console in framebuffer mode. This is necessary to view images from the console. The default elinks configuration does not include support for viewing images. This is likely because framebuffer usage is not universal. Here is my short HOWTO for using the framebuffer in Linux.
First, make sure your kernel is compiled to support framebuffer devices. If you are using your distribution’s stock kernel, it probably has this support already. If you are not, you may need to recompile. Remember, Google is your friend. Search for “enable framebuffer linux kernel” and I am quite sure you will find the options necessary. After installing this you need to edit your boot loader. In /boot/grub/menu.1st (if you are using lilo, why? grub is vastly superior.), add this to the end of your kernel parameter (the one that specifies the kernel to boot):
video=vesa:ywrap,mtrr vga=0×318
This will produce a 1024×768x32 framebuffer. If your video card has insufficient memory for that color depth, you may need to try various vga parameters. If your system hangs with a message about the kernel referencing some memory something something, this is probably the reason. See here for more information. After booting, you should have a nice framebuffer console. You will notice the difference immediately. If you are using grub for a bootloader and if your system hangs with the above options, fear not! Grub is configurable on the fly! At the grub menu, simply press ‘e’ for edit and then select the kernel boot line and press ‘e’ again and try a different combination. If you are using your only net-connected pc, delete everything from “video” to the end of the line. Your system will boot without a framebuffer. If you are using LILO, again, why?
Tto get elinks to display graphics to your beautiful framebuffer console, you need to have fbi installed as elinks will pass the display of the image to it. Edit /etc/elinks/elinks.conf (in Debian; if you run another distro – why? – it may be /etc/elinks.conf) and add the following lines:
set mime.extension.jpg = “image/jpeg”
set mime.extension.png = “image/png”
set mime.extension.gif = “image/gif”
set mime.handler.image_viewer.unix.program = “fbi %”
set mime.type.image.jpeg = “image_viewer”
set mime.type.image.png = “image_viewer”
set mime.type.image.gif = “image_viewer”
Now start elinks, browse to a web page with images, and click on the “IMG” tag. A dialog box will appear. Select “Open” rather than “View” and elinks will call fbi and display the image. Yes, I did mention “clicking” on a link. With gpm running, elinks functions much like a gui-web browser.
I will post some screenshots tonight.
* * *
Lilo? It works, it’s easy, and it’s not a huge pain in the butt like GRUB. :)
— Topher Jan 19, 04:47 PM #
— Ed Heil Jan 19, 04:49 PM #
Heh. The funny thing about Topher’s 8000000×70000000 display resolution is it is rarely taken up by applications. Every time I have seen his desktop, it has been mostly that – desktop. He has all the screen real estate in the world to show half a wallpaper image. :-)
Mplayer can use aalib? (Heh…why? Actually, why not?) Hmm… Since I am living la vida ascetic, perhaps I should look into that… Ballmer dancing about on stage in techni
colorASCII. Ah well, another late night. :-)— jtr Jan 19, 05:04 PM #
You rarely see apps on my shots because I like to show off my wallpapers. :) It’s usually filled with a browser and a couple terms and a gaim window.
— Topher Jan 20, 08:40 AM #
— Josiah Ritchie Jan 20, 10:35 AM #
— Ed Hurst Jan 20, 11:59 AM #
— Topher Jan 20, 12:11 PM #
Having to reinstall Linux to get LILO is dumb. You should not have to do that.
On this machine (the one I am using for the experiment) the Debian installer found the Win95 partition and correctly/automagically configured grub for it.
BTW, configuring grub is as easy as ‘vi /boot/grub/menu.1st’.
— jtr Jan 20, 01:36 PM #
I guess one of the reasons I like lilo so much is that it just works, and it’s simple.
— Topher Jan 23, 01:22 PM #
BTW, LILO “just works” – unless you forget to run lilo before rebooting. :-)
— jtr Jan 24, 12:08 PM #