Posted by Giles Turnbull
Now, don't laugh. I've just managed to install my first piece of command line software, and I'm feeling rather pleased with myself.
I've got two text-based web browsers (lynx and, err, links) installed *and* working, aftre a great deal of huffing and puffing. It was the getting them to work that was tricky.
For command line activities, I tend to use iTerm instead of the built-in Terminal.app. iTerm runs the bash shell, whereas Terminal runs tcsh. Before your eyes glaze over - these things mean very little to me, too. But I'm learning, slowly, and having fun along the way.
(If you want/feel you need to know: a shell is a command line environment where you can tell your computer what to do. Thing is, you can have more than one shell, you can run different ones simultaneously, and each one works in a slightly different way.)
My main difficulty was getting bash (in the guise of iTerm) to recognise where the program was. This involves editing a variable called the path, in effect telling bash to look in a particular directory for software it can run. What perplexed me was that while I could edit the path once, and make things work once, when I started a new shell (another bash session), it stopped working.
This evening, after a little exploration, I worked out what I doing wrong. I had been changing the path correctly, but only *for that particular session*. What I needed to do was tell bash (and iTerm) that I wanted the path changed *permanently*. This required a swift edit of a file (/etc/profile) - at which point I was very pleased that I have picked up the basics of using vi, because it was the only editor I could think of using to make the changes to the file.
Ta-da! Now it works. Thanks to my l337 h4xx0r 5ki11z, I've managed to install both links and lynx (Cor! *Two* text web browsers!) and get them to work over and over again! I'm feeling dead chuffed with myself, even though what I have acheived must sound terribly simple to those of you who know your way around a command line interface.
And why bother with all these text-based browsers, when I have more than enough Normal Browsers (Safari, Chimera, and Mozilla all have places on my Dock) to keep me busy? Bandwidth, baby. It's pretty scarce here in rural Wiltshire, so I need to make the most of it. Sometimes, plain text is all I need.
Posted to the luvly mailing list on Wed, 26 Feb 2003 14:33:44 +0000 , under Creative Commons licence.
Contact: giles at gorjuss dot com.