Fun with Lynx
I’m writing this post using Lynx, a command-line, text-only browser, just to see how it works out. I feel cool, thrilled, even daring. Lynx is pretty neat shit, however extremely limited. It manages to handle text, links and frames but can’t handle such things as CSS styling, images and all that newfangled fancy shit.
I first installed it as a fall-back if I should ever have a problem with my X server not starting, which is possible since I like to beta and even alpha test shit. This way, even though I didn’t have a GUI desktop environment to launch my usual browser of choice, I could still boot to just a command-line and hit the support forums for assistance using Lynx.
After a bit of tooling around in the options, I configured Vim to run as my default text editor within Lynx, so in an instance where I would need to enter text (like for this blog post), I can launch Vim and start typing away. Vim is a command-line text editor that I’m sorta-kinda-almost comfortable with. It’s one of those editors that at first glance looks ridiculously difficult to handle, but the more you use, the easier it becomes and if you have the balls, you learn the myriad assortment of commands and eventually become the ultimate text wrangling master. You also never get laid again, ever. A geek milestone that I’m not ashamed to aspire to.
Now that I’ve proved to myself that I can effectively post to my blog with a command-line browser, the likelihood that I’ll do so again is pretty much nil. Yeah, it’s cool, old-school shit, but I do prefer the glittery trappings of the WordPress GUI. Still, I think Lynx is a must-have install for situations like I mentioned above when all hell breaks loose and your GUI has shit the bed and died. It’s also a great barometer of how well put together your website is. Fire up Lynx and check out what your site looks like. Like I said before, CSS styling and graphics will not be displayed, but if you’ve laid things out properly, you’ll see a sane and coherent text-only version of your website. If shit’s all jumbled with stuff that’s supposed to be at the bottom running at the top, then perhaps some redesigning is in order.
Tags: browser, command-line, internet, kubuntu, Linux, lynx, text, Ubuntu, vim, web



September 19th, 2006 at 3:02 pm
there’s also links (or is it links2?)… it displays images (and javascript… and mouse input too. can it get more exciting than that!?). also, vim is the best editor ever; wanna swap .vimrc’s?
September 19th, 2006 at 3:04 pm
uhhh… last comment was flagged as spam. was it my frivolous use of exclamation points? anyway… i wanted to recommend links2 as an alternative to lynx. it shows images and let’s you use the mouse.
September 19th, 2006 at 3:07 pm
Yeah, I was actually playing with it a couple days ago. I have that installed as well. It’s pretty cool.
Rescued your comment.
It’s uncanny that you mention .vimrc files. Believe it or not, as I received your comment, I was toiling through Vim’s man pages on .vimrc.
I just have a basic one so far with syntax highlighting on and a few other things. I’d love to see how yours is set. I just started playing with Vim 7 this morning. Spell-check…exciting.
September 29th, 2006 at 6:15 am
links is probably better, featurewise. I find it invaluable when SSHed in to a remote server.
For the same reason, vim rocks. AND, I met Bram Moolenaa last week, and he is a very cool guy, in spite of being a Linux geek (!) He hosted a discussion on what people wanted in vim8 - there weren’t any earth-shattering ideas I have to say - I still don’t know more than 12 commands that i use regularly, and I’ve been using vim for years!
October 9th, 2006 at 2:02 am
You can do a lot with Lynx. Check headers:
lynx -dump -head “http://www.example.com”
Show clients what their Web sites look like to search engines when trying them to not go 100% Flash:
lynx -dump “http://www.example.com” >WebPage.txt
Quickly discover all of the links on a page:
lynx -dump “http://www.example.com” | grep -o “http:.*” | sort | uniq
Lots of fun…