Linux Text Processing
By Levi Reiss
Damn Small Linux can be an excellent tool for learning Linux commands and running the Linux operating system. But what if you are not interested in becoming a computer nerd; can this software still be useful to regular people? The answer is a resounding yes; you can make use of this tiny operating system whether or not you want to learn the sometimes gruesome details of operating systems. This article introduces the text editors that come with your free Damn Small Linux that runs on even obsolete Windows computers. You can use these applications to compose simple text or programs of any level of complexity.
Once you have downloaded and installed Damn Small Linux there are several equivalent ways of launching its text editors. You can click on the DSL button in the lower-left hand corner or on the Apps/ icon toward the top of the screen. Then open the Editors: there are four, Beaver, Nano, Notepad, and vi (actually vim). We will look at these editors in order plus an additional one.

Beaver is my choice for creating and editing the text files used in my Damn Small Linux tutorials. The name Beaver stands for Beaver is an Early AdVanced EditoR which is the kind of joke that many Linux and Unix people find funny. This editor is particularly useful for programming and web page editing. Among Beaver’s special features are color coding and the ability to convert text to Upper Case, Lower Case or to capitalize the first letter of every word. You can convert text among the following formats: Unix, DOS, and Mac. Programmers will be happy to learn that Beaver formats code for the following programming languages: C/C++, HTML, Perl, JavaScript, PHP, and Bash. Unfortunately the Help function is not available. To learn more about this editor access their website at nongnu.org/beaver.
The nano program is especially used for email messages. It stems from the widely-used Pico email program that is not available for some versions of Linux. I have not had the pleasure of working with nano but am told that many Linux and Unix people like it.
What the Damn Small Linux people call Notepad is actually another text processor that is similar to the DOS/Windows Notepad. I haven’t used it because Beaver is more powerful, and just about as easy to use.
The final application in this group is VIM, vi IMproved. The original vi was a very-widely used text editor for Unix and Linux systems. Today most Unix and Linux people work with other, more sophisticated text editors. When I teach Linux on systems other than Damn Small Linux I teach a reduced version of vi. This editor is cumbersome, but you make like the improved version. Damn Small Linux offers you a choice.
The Office folder contains Ted, a word processor that is compatible with Microsoft Word. Ted saves documents in RTF (rich text format) that can be read by Microsoft Word and other word processors including Open Office. Ted and Beaver belong to different worlds; you can’t take documents back and forth between these two applications.
Levi Reiss has authored or co-authored ten books on computers and the Internet. He loves the occasional glass of wine as exemplified by his wine websites including http://www.theworldwidewine.com. He teaches Linux and Windows operating systems plus other computer courses at an Ontario French-language community college. Visit his new website http://www.linux4windows.com which teaches you how to download and run Damn Small Linux on Windows computers, even if they are “obsolete.”

the operating system itself. We say some users because most users rely on the graphical user interface. The Windows shell is the DOS command line interface accessed by clicking on Run and then entering the cmd command. The Windows graphical user interface is Explorer. This article describes the Damn Small Linux shell interface and several utilities, useful programs that may be launched from the shell. A subsequent article will describe the corresponding graphical user interface.
Other Damn Small Linux text processing utilities include the related egrep and fgrep commands, mawk a pattern scanning and text processing language, sed an editor that handles large files, and diff a utility that compares files. DSL provides utilities that compress and archive files, and a wide range of other utilities. If you need them, these Linux utilities can be very useful and time-saving.
Games: there are eleven; Canfield, Freecell, Golf, Mastermind, Minesweeper, Pegged, Slide_Puzzle, Solitaire, Taipei, Thornq, and Xtris and Taiedit which is not a game, but a game editor. We will examine the first six games in this article saving the rest of them for a companion article. As with any gaming systems, be careful not to get addicted.
Mastermind is a game in which you use a mouse to drag colors from the palette (on the left) to the empty cells in the guess row. When the four cells in the guess row are full, right-click on the right of the screen to see how you did. There will be one black peg for each cell that is the correct color, and one white for a color that is not in the correct sequence. Keep going and you can eventually figure out all the colors in the row. If that’s your thing.
Firefox went to google images and downloaded into the /home/dsl directory the first crayfish image that Google offered me. Then I loaded it into the game which chopped into into pieces to be reassembled. Left-click on a tile to slide it into the adjacent empty space. Right-click to see the original image. If you are really good you won’t have to take a peek at the original image. It helps if you have chosen an image that’s easy to reconstitute. I don’t recommend crayfish.
Weighing in at 50MB, the highly-regarded, extremely light weight distribution proved to live up to its billing, however it certainly wasn’t as user friendly as I would have liked. It comes with JWM and Fluxbox, no Gnome, or KDE with this one, obviously. One big problem I encountered with this version as I occasionally did with subsequent ones is that getting Linux to talk to a USB wi-fi adapter is much tougher than I would suspect a PCI wi-fi adapter. Not to mention I’m sure all distros will connect to a network with no problem these days using a hard-wired ethernet.
It was really fast, too, since it booted itself entirely into the minuscule RAM on the computer! The distro ships with JWM / IceWM + ROX Desktop user interfaces for your convenience. So, it’s still a small distro but it has more modern desktop environments than the previously mentioned DSL.
