Putting the squeeze play on Linux

Want the smallest, fastest OS possible? I stumbled across several Linux assembly language projects today. There’s asmutils, which attempts to give full functionality of various common Linux tools but in smaller, faster assembly language packages, and there’s Tiny ELF, a page of assembly language utilities that are somewhat useful, but the intent appears to be more to just see how small of a program he can write.
If you want to see just how far the insanity can go, check out this, which is about the craziest thing I’ve seen in a long time. I remember that mentality. It was the mentality of an Atari 2600 programmer. As one who replaced most of the standard Amiga commands with smaller, faster versions, I can appreciate these two projects. Maybe I’m just an old-timer or a sicko, but for some reason I get a kick out of seeing that my text editor uses a scant 68K of memory (with a large file open). The scary thing is, the command window that allows you to run all these tiny programs will itself occupy a meg or more. Sigh. Progress.

Linux memory requirements

I had an old system open today. I’ll call it Austin Powers because it lost its mobo. But anyway, it had 64 MB of RAM in it that I didn’t realize I had (I thought it had 32, or at most, 48). So I pulled out the four 16-MB SIMMs, opened up my P120, pulled its four 8-MB SIMMs, and replaced them. While Linux is OK in 32 megs if you set it up right (using a lightweight window manager instead of KDE or, worse yet, Enlightenment, pulling out the daemons that provide services you never use, such as BIND and sendmail), it’s a lot happier with 64. I still need to really optimize it, but for a P120 I’m very impressed. If I could get AbiWord to work with O’Reilly’s templates, I could use it to write books.

An easy firewall for Linux

Saturday, 4/29/00
PMFirewall. I recommended this firewall-builder for Linux a couple of weeks ago (from www.pointman.org). InfoWorld’s resident Linux guru, Nick Petreley, gives it his seal of approval this week here.

As for making it a standard part of distributions, I e-mailed Jacques Le Marois, president of Mandrakesoft, inquiring just about that possibility. (As an aside, wanna know one reason why I like Linux? Le Marois answers my mail! And sometimes he mails me! Meanwhile, I know neither Gates nor Ballmer give a rat’s behind about anything I think or say.) Le Marois had a team look into it, but informed me that it could be tough to integrate. I’m wondering if maybe it shouldn’t be integrated into the control panel, rather than as part of the setup process (it’s specialized, after all). Hmm. Maybe it’s time to mail him again…

[E-mail him I did. And I have no idea if my lobbying had anything to do with this or not, but Control Panel-based firewalling soon became a standard feature in Mandrake and other Linux distributions. –DF, 5/23/02]

Why Linus Torvalds is more popular than RMS

Quote of the day. This one made me laugh out loud–probably because I have a journalism degree, I’ve seen journalism professors show up for class sloshed, a good number of my friends are journalists, and, technically, I’m a journalist myself.
“I know how journalists work. They drink too much and they search for interesting stories.” –Linus Torvalds, in the Spring 1999 issue of Linux Magazine.

As for Torvalds, his mom, dad, grandfather, sister, and uncle are all journalists. Yikes!

Stallman on the warpath. My chance to be divisive, I guess. As a journalist, I mustn’t shy away from it. Hey, we’re supposed to look for these opportunities. So…

GNU/Linux is a horrible name. Stallman’s efforts should be commended, yes. I believe they have been. Stallman’s not exactly a household name yet, but certainly more people know who he is now than a year ago. If he wants GNU and his Free Software Foundation to be known, he needs to borrow more pages from Eric Raymond, or even better yet, Torvalds.

As an aside, I had a conversation with a friend and one of his friends the other night over coffee, and the whole Linux/Open Source/Free Software/whatever topic came up (probably because he introduced me as, “Dave, my friend who wrote a book about Windows and now he’s writing a book about Linux.”). I was trying to explain Stallman, and finally I just said, “He’s so libertarian he doesn’t believe in capitalism.” She stopped for a minute. “Libertarians don’t believe in capitalism?” Sure they do, usually fanatically so. But capitalism puts certain limits on your liberties, and if those liberties mean more to you than capitalism, you can start to disdain capitalism. It’s strange, but remember, in the 1930s the leaders of Germany, Italy, Japan, and Spain took conservatism to such an extreme that it led to a form of socialism. The boundaries blur at the edges.

End aside. Raymond and Torvalds are better known than Stallman partly because they’re nicer and more reasonable people. Want proof? OK. Here’s an interview with Stallman, here’s one with Torvalds, and here’s one with Raymond.

It’s pretty clear from reading these interviews why Torvalds is the most popular of these guys, and why he’s become a bit of a media darling. Yes, he looks more like the anti-Gates than RMS or Raymond, but there’s more to it than just that: He’s more charismatic, he’s less intellectual (though he’s obviously a brilliant guy, he’s much more apt to laugh or crack a joke than try to convince you he knows more than you do), and he’s considerably more humble. He’s a likable guy. More likeable than Stallman or Raymond, and more likable than Gates.

Harping the GNU/Linux thing isn’t going to accomplish much. People have a hard enough time figuring out what Linux is supposed to be. And where do we draw the line? Sure, Linux isn’t very useful without some set of utilities (and the GNU utilities are the most commonly used). But what about XFree86? That didn’t come from GNU. But if it weren’t for XFree86, very few people would be interested in either GNU or Linux. And what about KDE? Stallman hates KDE because it dares to use the Qt library, which wasn’t always GPL. But it’s largely thanks to KDE that we’re not stuck using the often-convoluted interfaces that shipped with early Linux distributions. Without KDE, there probably wouldn’t have been a GNOME in response. OK, so now we’re up to GNU/Linux/XFree86/KDE. Oh yeah. A lot of the daemons people use with Linux (minor details like Sendmail and BIND–just the building blocks of the Internet, nothing to get worked up about) came not from GNU but from the BSD project. GNU/BSD/Linux/XFree86/KDE, anyone?

This becomes a convoluted mess. Maybe “Linux” isn’t the best name (if we named all OSs after the kernel, Windows 9x would still be called DOS), but it’s the name people recognize. My goal in writing is to communicate as clearly as possible. That means using the popular name.

A makeover for Stallman. I’m already in trouble, so I might as well get in a lot of trouble. We find out early in that interview that Stallman lived in is office for 13 years or something. He had a bed in his office! What, did he sleep there, wake up, code for 16 hours a day, except for breaks for meals and a break for a shower whenever he felt like it? As Torvalds says, journalists look for interesting stories. Here’s an eccentric guy. Let’s find out more about his eccentricism. Find out about the eccentricism, you learn about the dedication. It sounds like this guy just might be more dedicated and fanatic about software than Martin Luther was about Jesus. How can that be?

In fact, Stallman may have logged 16-hour days at the keyboard. He alludes to it in the interview, when he says he suffered carpal tunnel syndrome from too much coding. But he didn’t talk about it.

Stallman has this ridiculous folk song he plays about how hackers need to follow him, and they’ll be free. He alludes to folk music in the interview, how one person can take a song someone took from someone else, and it becomes a rich thing. What if Stallman brought his acoustic guitar to this interview, said, “Like this!” and played his ridiculous song, then said, “Hmm. Maybe not.” A little self-depracating humor works sometimes. Especially when you have a reputation for being pompous and arrogant. Just ask Linus.

People have to have a compelling reason to listen to you. Giving them a bunch of free stuff is a good start, I’ll admit. Though he speaks about word processors in a demeaning manner, which may make some programmers born and bred on text editors stand up and cheer, but I’m not sure I like the tool of my trade looked down upon in that way. I’m sure my mom doesn’t. The tools we need are different from the tools rms needs, and he needs to recognize that.

So, the difference between my mom and me. I have to listen to Stallman, I have to at least feign interest in who he is and what he’s doing (and to be honest, I don’t have to try all that hard) because I’m being paid to write a book that’s almost as much about him and his work as it is about Torvalds and Gates. But why should my mom give a rip about this guy? And therein lies the problem. With years of retraining, my mom could get her job done with a Linux (or better yet, Hurd, so Stallman and GNU can get all the credit) box running GNU Emacs. Hey, it’s a text editor, it’s a Web browser, it’s a programming environment, it’s a dessert topping, it’s a floor wax! And at the end of this retraining, I could then look her in the eye and say, “You’re free.” And you know what she’d tell me? She’d give me a dirty look and tell me it wasn’t worth it.

Stallman’s attitude is, “I’ll sacrifice a little (or a lot of) convenience in order to be free.” Torvalds? He freely admits his mom uses a Mac, his dad uses Windows, and his sister uses Windows. Then he corrects himself. “No, she [his sister] uses Microsoft Works. Windows is nothing more than a program loader to her. She doesn’t care how these computers work.”

I think the contrasting attitudes have a lot to do with why Torvalds feels he has too much attention and Stallman not enough. People more readily identify with Torvalds.

Ultra-useful Windows and DOS utilities (plus Linux stuff)

4/3/00
There are loads of links in this mail. Explore them; you won’t be disappointed.

Hello. I maintain the Interesting DOS programs website and I was pleasantly surprised when I got an email telling me my site was mentioned in your book as a download reference site for XMSDSK.

While I only provided a link to the XMSDSK file on Simtel, it was still great to see my site which I never thought will ever get mentioned in any book, especially a Windows one 🙂

I got your book and I like it (a lot). However, there were some tools I thought should have gotten mentioned (most are mentioned on my site)

———————————————————————–

On Page 65, you mentioned FIPS as a tool to resize partitions. While I haven’t tried FIPS, there is another freeware utility which I’ve used several times :

Partition Resizer v1.33 It resizes/moves your FAT16/FAT32 partitions safely without losing the data on it. It doesn’t eliminate the need for FDISK. You use Partition Resizer to resize and rearrange the FAT16/FAT32 partitions to create free space on your drive and then run FDISK to create the partition.

———————————————————————–

The Infozip link at http://www.cdrom.com/pub/infozip is orphaned and is no longer updated. An updated link is at ftp://ftp.info-zip.org/pub/infozip/Info-ZIP.html

———————————————————————–

On Page 209, you mentioned that internal Zip drives lack DOS drivers, this is not true as I have an internal ZIP drive and I access them from DOS. Perhaps you were trying the older drivers that came with the first Iomega parallel port drive?

———————————————————————–

FastVid v1.10 Improves video performance on Pentium Pro and Pentium II PCI/AGP systems. I haven’t tested this myself but you may want to check it out.

———————————————————————–

LFN Tools v1.48 These are DOS commands (as stand alone EXE’s) that can handle long filenames in plain DOS. Supports FAT32

For example there is LCOPY which works like XCOPY under a DOS window (copying the long filenames) but in plain DOS. This is useful for diaster recovery situations when you can’t get into Windows and you need to get files off your Windows drive. Other commands include

LMD – create a long directory name LRD – remove a directory with a long directory name (e.g lrd “Program Files”) LDIR – like the DIR command showing long filenames.

The Tools are released under the GPL so source code is available and it is free.

————————————————————————

AVPLite Build 134 Free (yet powerful) command-line antivirus detection and removal program.

The engine is only is only 49K (the antivirus updates are about 1.7MB) but it can scan inside ZIP, TGZ, CAB, mail folders in Netscape and Outlook, DOC files). If there is a virus on a machine, you can have a bootable disk with XMSDSK to create a ramdisk, then have the AVPlite and the antivirus update on separate floppy disks unzipped to the ramdrive and then run AVPlite from the ramdrive.

————————————————————————-

Some Linux links :

SET’s editor v0.4.41

GREAT text editor with the fimiliar Borland IDE interface with syntax highlighting. This is literally the FIRST app to install after you boot Linux. Editing text files with Joe, Vi and Emacs were ummmmmm….. kinda difficult ;-). Released under GPL.

(SET edit is also available for DOS with a built-in MP3 player 😉 )

The one page linux manual A PDF containing a summary of useful Linux commands You mentioned on your Silicon Underground that you wished there was a command reference for Linux. This one is close

————————————————————————- Since you mentioned Win3.x program manager, thought I’ll mention this

Calmira II v3.02 Freeware Win95 shell/interface for Windows 3.x, including explorer, etc.

Mask for Windows – PRWin98 Gives Win3.x apps the look and feel of Win9x apps

————————————————————————-

Looking forward to your upcoming Linux book (I agree with your sentiments on Silicon Underground – documentation is the main holdback for Linux)

Dev Teelucksingh
devtee@trinidad.net
Interesting DOS programs at http://www.opus.co.tt/dave
Trinidad and Tobago Computer Society at http://www.ttcsweb.org

— This email sent with Arachne, the ultimate Internet client —
— http://home.arachne.cz/ —

Wow. Thanks for all the links. That’ll keep my readers busy for ages and ages to come. I did immediately go download SET edit. Very, very nice.

I’m very glad you like my book and look forward to the Linux book. It’s coming along, faster than the Windows book did, but not as quickly as I’d like. I’m not even willing to hazard a guess when it will be finished at this point.

A year from now, there will probably be twice as many Linux books available as there are now. Maybe more. The quality will vary widely. But we need them. The stuff coming out of the Linux Documentation Project is getting better (or maybe I’m just getting smarter) but the stuff available even six months ago very frequently had gaps that a newcomer wouldn’t be able to climb over: missing steps, poor or inaccurate description of output–all kinds of little things that suggest the author didn’t take the time to step through the process one last time. A plethora of available Linux books will help in more ways than one.

Back to DOS and Windows… Although many people deny it, DOS is still an integral part of Windows, and some things just can’t be accomplished without diving into DOS. Even under NT, I always keep a command line open. I can tell you the last day I didn’t use a command line. It was in June of last year. I know because I was in New Mexico, far away from work and from any of my computers.

So Iomega finally got around to releasing Zip drivers that work with the internal IDE and ATAPI models? About time. We bought a big batch of them at work about two years ago, and I needed to access them from DOS, and nothing. The drivers wouldn’t work. We contacted Iomega, and their line was, “These drives require Windows 95 or newer.” A year later, when I was writing that chapter, drivers still hadn’t appeared. But better late than never.

Thanks again.

FTP batch files

I found this question on the Sys Admin magazine forum:
Can I create a batch file (or something else) to allow me to execute my file transfer from a Tru64 UNIX to a NT without having to type each command? This is what I’m doing now to transfer a recompiled data base from UNIX to NT: At the NT machine:

C:> cd\sandgis
sandgis> erase *.*
are you sure? Y
sandgis> ftp 000.00.000.0
name: *******
passwd: ********
ftp> cd /data/sandgis
ftp> prompt off
ftp> bin
ftp> mget *.*
ftp> cd /apps/sandcauv
ftp> mget par*.*
ftp> quit
sandgis> cd info
sandgis\info> erase *.*
are you sure? Y
sandgis\info> ftp 000.00.000.0
name: ****
passwd: *****
ftp> cd /data/sandgis/info
ftp> bin
ftp> prompt off
ftp> mget *.*
ftp >quit
(this is half of it)

Well, you get the idea… I can get a batch file to work until it goes into FTP, then it stops. Since I’ve got to do this on five NT machines twice a week and the total files size is near half a gig., this is very time consuming.

And here’s the response I submitted:

Put your pre-FTP commands in a batch file, as it sounds like you already have, then add the -s:[textfile] parameter to your FTP statements containing FTP commands, e.g. ftp -s:ftp1.txt 000.00.000.0.

The contents of ftp1.txt, based on your example:
name
password
prompt off
bin
mget *.*
cd /apps/sandcauv
mget par*.*
quit

Anything you put in a file specified by the -s parameter gets fed to your FTP client.

So, you’ll need a batch file, plus a text file for each FTP session, which could turn into a real mess of files, but it’s a whole lot better than typing all that garbage twice a week.