<div id="popup_box_thanks" style="display:none" onClick="close_popup_thanks('popup_box_thanks', 'ts')"><br>Thanks for submitting your tip! All submissions are moderated by an editor before appearing online. We've reset the form so you can enter another tip. Or you can close the tip submission box. <div class="x_close" id="thanks_upper_right"><a href="javascript:void(0)" onmousedown="close_popup_thanks('popup_box_thanks', 'ts'); return true;">Close</a></div></div>
<div class="tbf_row"><div class="tbf_wide_extra_top not_bold">Please submit only technical tips that will help other TidBITS readers better use their Macs, iPhones, and related software and hardware. All product announcements should be sent to <a href="mailto:releases@tidbits.com">releases@tidbits.com</a>.</div></div>
<div class="tbf_left">URL</div><div class="tbf_right"><input type="text" value="" name="tip_link_url" tabindex="3"><span class="tip_description"><br>Enter the URL to a Web page that supports your tip.</span></div>
</div>
<div class="spacer"></div>
<div class="tbf_row">
<div class="tbf_left">Linked text</div><div class="tbf_right"><input type="text" value="" name="tip_link_label" tabindex="4"><span class="tip_description"><br>Enter the name of the page linked above.</span></div>
<div class="tbf_wide"><input type="submit" value="Preview Your Tip" name="preview_tip" onClick="fill_preview('tipbits_enclosure_preview', 'ts', this.form); return false;" tabindex="7"> <input type="submit" value="Send Us Your Tip!" name="submit_this_tip" onClick="handle_tip_submission('ts', '', this.form, 'tip'); return false;" tabindex="8"></div>
</div>
<div class="spacer"></div>
<div class="tbf_row">
<div class="tbf_wide"><span class="fine_print">When you submit a tip, you give us permission to use it. Read <a href="javascript:void(0)" onClick="generic_show_hide('tip_terms')">our terms</a> for more details. All submissions are reviewed before publication.</span></div>
<div class="tbf_wide"><span class="fine_print">Our terms: By submitting a tip, you agree to assign TidBITS Publishing Inc., a non-exclusive, worldwide, perpetual license to reproduce, publish, and distribute your tip in connection with the TidBITS Web site and associated products in any media. You agree that you created the content you submitted, and that you have the right to assign us this license. You give us permission to use your name, but your email address won't be publicly displayed or shared. We review all submissions before publication, and reserve the right to select which submissions we feel are appropriate for our readers and to edit those we publish.</span></div>
<div id="comment_thanks" style="display:none" onClick="close_popup_thanks('comment_thanks', 'comm')"><br>Thanks for submitting a comment! Please check your email for a link that, when clicked, will verify that you're a real person and cause your comment to appear immediately. <div class="x_close" id="comment_upper_right"><a href="javascript:void(0)" onmousedown="close_popup_thanks('comment_thanks', 'comm'); return true;">Close</a></div></div>
<div class="tbf_wide"><span class="fine_print">Our terms: We reserve the right to edit or delete any comment, so please post thoughtfully. We use your email address <i>only</i> to send you a one-time verification message confirming that you posted this comment. We also store your address to allow you to verify using other Web browsers in the future. For more info, see our <a href="http://db.tidbits.com/privacy.html">privacy policy</a>.</span></div>
<li><a href="/feeds/tidbits.rss" title="Subscribe via RSS" class="gettb">RSS <img src="/images/feed-icon-12x12.gif" width="12" height="12" border="0" class="nav_img" alt="Subscribe via RSS"></a></li>
<li><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=276986548" title="Subscribe to the podcast" class="gettb">Podcast <img src="/images/feed-icon-12x12_podcast.gif" width="12" height="12" border="0" class="nav_img" alt="Subscribe to the postcast"></a></li>
<li><a href="http://www.twitter.com/TidBITS" title="Get Article Updates via Twitter" class="gettb">Twitter <img src="/images/feed_icon_12x12_twitter.png" width="12" height="12" border="0" class="nav_img" alt="Get Article Updates via Twitter"></a></li>
<li><a href="http://www.facebook.com/pages/TidBITS/195314925519" title="Go to the TidBITS Page at Facebook" class="gettb">Facebook <img src="/images/feed_icon_12x12_facebook.gif" width="12" height="12" border="0" class="nav_img" alt="Go to the TidBITS Page at Facebook"></a></li>
<li><a href="javascript:void(0)" title="Sections" class="tabhead" onClick="return showhide('articleslist')">Sections <span id="articleslist_triangle"><img src="/images/nav_triangle_open.gif" width="9" height="9" border="0" class="navtriangle" id="articleslist_tri_image" alt="Click to show or hide the contents of this section."></span></a></li>
<li><a href="javascript:void(0)" onClick="return showhide('stafflist')" title="Staff" class="tabhead">Staff <span id="stafflist_triangle"><img src="/images/nav_triangle_closed.gif" width="9" height="9" border="0" class="navtriangle" id="stafflist_tri_image" alt="Click to show or hide the contents of this section."></span></a></li>
<li><a href="javascript:void(0)" title="Issues" class="tabhead" onClick="return showhide('issuelist')">Weekly Issues <span id="issuelist_triangle"><img src="/images/nav_triangle_closed.gif" width="9" height="9" border="0" class="navtriangle" id="issuelist_tri_image" alt="Click to show or hide the contents of this section."></span></a></li>
<li><a href="javascript:void(0)" onClick="return showhide('abouttidbits')" title="About TidBITS" class="tabhead">About TidBITS <span id="abouttidbits_triangle"><img src="/images/nav_triangle_closed.gif" width="9" height="9" border="0" class="navtriangle" id="abouttidbits_tri_image" alt="Click to show or hide the contents of this section."></span></a></li>
<div class="center_top">Thoughtful, detailed coverage of the Mac, iPhone, and iPad, plus the best-selling <a href="http://www.takecontrolbooks.com/?pt=TB-TAGLINE" style="color:yellow">Take Control</a> ebooks.</div>
<!-- begin centercolumn -->
<div id="centercolumn">
<!-- begin rightcolumn_container -->
<div id="rightcolumn_container">
<!-- begin rightcolumn -->
<!-- rightcolumn is embedded within centercolumn so featured text wraps around it -->
</div><!-- end tearoffbox_wide_container for watchlist items -->
<!-- begin tearoff box wide -->
<div class="tearoffbox_wide_container">
<div class="tearoffbox_wide_tips">
<div class="tip_display">
<div class="tips_sponsor_logo">
</div>
<h6>Copy Before Submitting Web Forms</h6>
<p><p>Filling in Web forms (like the one used to submit this tip) can be a bit of a gamble - you put in your pearls of wisdom, perhaps only to lose them all if the Web page flakes out or the browser crashes. Instead of losing all your text, "save" it by pressing Command-A to select all and then Command-C to copy the selected text to the clipboard. Do this periodically as you type and before you click Submit, and you may "save" yourself from a lot of frustration. It takes just a second to do, and the first time you need to rely on it to paste back in lost text, you'll feel smart.</p></p>
</div>
<div class="tearoffbox_wide_bottom_tips">
<div style="padding-bottom:35px"><div class="tip_display" style="float:left"><p><br><a href="/tipbits/148">Link to this tip</a></p></div><div class="tip_display" style="float:right; width:150px">
<div class="tbf_wide_80" id="hc_rc_4637">To help us avoid automated posts and misuse of our site, please enter the words below.</div><div class="x_close_row" id="hc_upper_right2_4637"><a href="javascript:void(0)" onmousedown="HidePopupContent('hc_4637', 'hc', '4637'); return true;">Close</a></div>
<div class="featured_meta"><div class="meta_article">26 Jun 2000 | <a href="/article/5995?print_version=1">Print <span class="shift_up"><img src="/images/printer_icon.gif" alt="Printer-Friendly Version of This Article" border="0" width="9" height="10"></span></a></div></div>
<H2>Serving the Internet from a PowerBook 5300</H2>
<div id="article_box_4637"><P>It has been a year since the seduction began.</P><P>I was an early adopter of ISDN, but years later I felt that it never lived up to its promise. Now that DSL is available in my area, and since I can hit the telco central office with a well-aimed pitch from my back yard, I figured I would get excellent results, since bandwidth available via DSL depends in part on the length and condition of the wires from the central office to your site.</P><P>My DSL installation was quick and practically flawless, in spite of complications caused by the conversion from ISDN. To keep the DSL line isolated from the rest of my network, Pacific Bell provided a PCI Ethernet card for my Mac. My downlink speed reached 1.5 megabits per second (Mbps), although PacBell throttled my uplink bandwidth down to 128 Kbps.</P><P><<A HREF="http://www.pacbell.com/">http://www.pacbell.com/</A>></P><P><STRONG>Spreading the Joy</STRONG> -- I couldn't be happier, except that this new instant-on, super-fast connection worked only for my main computer. My wife Kim's iMac, barely two meters away, was still chained to a 56 Kbps analog modem (and since our voice line uses the same pair of wires as the DSL connection, she could no longer surf and talk at the same time). Other derelict machines scattered around the house had no Internet access at all. We needed a way to share this prodigious new bandwidth resource.</P><P>A quick search of the Web turned up some DSL routers. These devices connect to both the DSL line and an Ethernet network, and optionally share a single IP address among several machines using Network Address Translation (NAT). Just what I needed, except that both Kim and I are resident doctors, which means we make just over minimum wage. The $200 installation fee for the DSL line had already decimated my computer budget for a few months, and DSL routers from companies like Netopia start at about $500.</P><P><<A HREF="http://www.faqs.org/rfcs/rfc1631.html">http://www.faqs.org/rfcs/rfc1631.html</A>><BR><<A HREF="http://www.netopia.com/">http://www.netopia.com/</A>></P><P>It occurred to me that there must be a software-based solution. Another search turned up SurfDoubler by Vicomsoft and IPNetRouter from Sustainable Softworks.</P><P><<A HREF="http://www.vicomsoft.com/">http://www.vicomsoft.com/</A>><BR><<A HREF="http://www.sustworks.com/">http://www.sustworks.com/</A>></P><P>The Vicomsoft product looked friendly and polished, but it limited the number of simultaneous users to two or three. I liked IPNetRouter's approach of leveraging the considerable power already present in Open Transport. The interface was geekier and more flexible, and since I'm a geeky kind of guy, I downloaded the free demo.</P><P>IPNetRouter did everything its author, Peter Sichel, promised. I went seriously over budget by registering the $89 program (generous educational and competitive upgrade prices are available), and within minutes my wife's iMac was enjoying the same unfettered Internet access that I had. Unfettered, that is, as long as my machine was running. That presented a problem: I like to write low-level software, which means that I crash and/or restart my machine frequently while testing. I also hate fan noise and I hate wasting electricity. Leaving my SuperMac S-900 with dual fans and dual monitors continuously running when I wasn't using it was troublesome.</P><P><STRONG>Full-Time Service</STRONG> -- IPNetRouter, I'm told, doesn't use a whole lot of processor power. I had an old PowerBook 5300cs sitting around that had both a malfunctioning display and a broken trackpad. It wasn't worth the trouble and expense to fix it, but the processor still worked fine. It was fanless, sipped power, and even had built-in backup power in the form of its built-in battery. Could it be pressed into service as a router?</P><P>Indeed it could. I hooked up an external monitor and a mouse long enough to load AT&T's Virtual Network Computing (VNC) software onto it, which allows a remote machine to mirror the screen and send keyboard and mouse commands over the Internet. (See Kevin Savetz's look at earlier versions of VNC in <A HREF="http://www.tidbits.com/tb-issues/TidBITS-441.html">TidBITS-441</A>.) It isn't as stable or feature-filled as Netopia's Timbuktu, but it would do the job and, being free, it fit my budget. I bought a Ethernet PC Card from TidBITS sponsor Small Dog Electronics for $19, loaded IPNetRouter onto the PowerBook, and connected it to my Ethernet hub.</P><P><<A HREF="http://db.tidbits.com/article/05021">http://db.tidbits.com/article/05021</A>><BR><<A HREF="http://www.uk.research.att.com/vnc/">http://www.uk.research.att.com/vnc/</A>><BR><<A HREF="http://www.netopia.com/software/">http://www.netopia.com/software/</A>><BR><<A HREF="http://www.smalldog.com/">http://www.smalldog.com/</A>></P><P>What had started as a simple switch from ISDN to DSL had grown into a small but significant LAN construction project. I now had a stable, fast, 24/7 Internet connection that could be shared by all the computers in my home. You would think I'd be satisfied.</P><P>But another problem quickly presented itself.</P><P><STRONG>A Web of One's Own</STRONG> -- I've had a Web presence for a long time, but I'd always been content to have my site served by my ISP. Why should I take on the hassle of keeping a server up constantly, when server space is included with most ISP accounts? The ISP I used for my old ISDN connection, however, didn't support DSL. That meant moving my site, which meant rewriting all of the pages that used server-specific resources (mostly CGI scripts to handle email forms) to be compatible with PacBell's servers. PacBell also limits DSL accounts to three megabytes of server space, which would be a tight squeeze for my site. Free server sites exist, but usually on the condition that you display ads, and I take pride in the fact that my site is free of advertising. I could buy more server space from PacBell or elsewhere, but there was that pesky overextended budget problem again.</P><P>I stared balefully at the 5300cs under my desk. Always on. Always connected. Static IP address. Hundreds of megabytes of free disk space. Why, it was the perfect candidate for a server!</P><P>With no previous need for a Web server, I had never paid much attention to the server software that was out there. I knew about StarNine's WebSTAR, but it violated the Prime Budget Directive. My brief search for a very low cost server was rewarded when I was reminded that Apple's Personal Web Sharing has been bundled with the Mac OS since version 8.0, and runs under Mac OS 7.6. [Another option is NetPresenz, the venerable shareware application which offers Web, FTP, and even Gopher servers, but its $75 price is higher than that of the free Personal Web Sharing. Ron eventually switched his server to NetPresenz, but later in his server odyssey than what's covered in this article. -Geoff]</P><P><<A HREF="http://www.starnine.com/">http://www.starnine.com/</A>><BR><<A HREF="http://asu.info.apple.com/swupdates.nsf/artnum/n10773">http://asu.info.apple.com/swupdates.nsf/artnum/ n10773</A>><BR><<A HREF="http://www.stairways.com/netpresenz/">http://www.stairways.com/netpresenz/</A>></P><P>I activated Personal Web Sharing, copied my Web site files onto the 5300cs, and I was hosting my own site! I was surprised to find that Personal Web Sharing even uses File Sharing to support basic authentication (password-protected Web pages) and CGI scripts. I soon discovered a wealth of AppleScript CGIs on the Web, and installed the venerable Email CGI to support my basic forms.</P><P><<A HREF="http://cgi-resources.com/Programs_and_Scripts/AppleScript/">http://cgi-resources.com/Programs_and_Scripts/ AppleScript/</A>><BR><<A HREF="http://www.lib.ncsu.edu/staff/morgan/email-cgi.html">http://www.lib.ncsu.edu/staff/morgan/email- cgi.html</A>></P><P><STRONG>Why Not Email?</STRONG> High-speed access for all my machines, a local Web server with hundreds of megabytes to play with, freedom to write my own CGI scripts... that should have been enough, but I'd been bitten by the server bug. I have always wanted to host some mailing lists to help my fellow residents communicate better, but never had access to a list server. I remembered Macjordomo, an long-standing mailing list server, and was surprised to find out that it was still free.</P><P><<A HREF="http://leuca.med.cornell.edu/Macjordomo/">http://leuca.med.cornell.edu/Macjordomo/</A>></P><P>Macjordomo doesn't require your own mail server, but as I configured it I realized that I would need several addresses for each list, since I was thinking along the guidelines published in TidBITS for mailing list management (though I haven't set up all the headers yet).</P><P><<A HREF="http://db.tidbits.com/article/05321">http://db.tidbits.com/article/05321</A>></P><P>Sure, I could get extra mailboxes from PacBell, but then that budget thing reared its ugly head again. The Macjordomo documentation, though, listed a couple of free Mac POP and SMTP mail servers. Those would provide me with all the mailboxes I wanted. First, I evaluated Eudora Internet Mail Server (EIMS) since I'm a big Eudora fan. The commercial version looks nice, but is way out of my price range. The freeware version also seems to work well, and has its adherents, but I couldn't get the anti-relay features to work as well as I wanted. I couldn't live with myself if someone were using my site to relay spam. So instead I adopted Stalker Internet Mail Server (SIMS), a flexible server with excellent anti-spam features.</P><P><<A HREF="http://www.eudora.com/freeware/servers.html">http://www.eudora.com/freeware/servers.html</A>><BR><<A HREF="http://www.stalker.com/SIMS/">http://www.stalker.com/SIMS/</A>></P><P>Now I could create whatever email boxes I wanted, and in the process I had solved another problem: many of my patients prefer to communicate with me by email. Some encrypt their mail using PGP, but for others that is too complicated. I worried about their messages sitting, unencrypted, on someone else's POP server. Though messages can still be intercepted in transit, at least now they go directly to a computer under my control.</P><P><STRONG>What's in a Name?</STRONG> Surely that would be the end of things. I now had a server for email and the Web, a mailing list manager, and NAT-equipped router. I had done it all for about $200. The only problem was that the "friendly" DNS name PacBell had given my PowerBook 5300 was hideous - it was more than 40 characters long and contained a mishmash of letters, numbers, and hyphens. How was anyone going to remember an email address at a site with a name which looked like a random slap on the keyboard?</P><P>I admit it: I have always lusted after a vanity Internet address. Now I had my excuse, and with the opening up of the domain-name registration process, prices were falling. It would mean spending a little bit more money, but by then I had saved a bit by skipping meals while trying to get all this server software running. I registered with Network Solutions at $70 for two years.</P><P><<A HREF="http://www.networksolutions.com/">http://www.networksolutions.com/</A>></P><P>Another catch, though: in order to register a domain name, you have to have <EM>two</EM> separate domain name servers (DNS) - ideally on topologically distant parts of the Internet. Again, these services can be purchased from any number of vendors, but I needed a more budget-friendly solution.</P><P>Fortunately, there are two free name servers available for the Mac OS. But first a word of warning. With some perseverance and patience, most people could probably get this far. The free Web, email, and mailing list server software is of generally high quality, well-supported, and more-or-less easy to use. The DNS system, however, does not excel at user-friendliness. Understanding the arcana associated with DNS servers and their zone files can be a monumental challenge. If you're going to break down and pay somebody else to administer part of your site, or plunk down serious bucks for a friendly and supported commercial product (such as the $290 QuickDNS Pro from Men & Mice), DNS is where I'd start.</P><P><<A HREF="http://www.menandmice.com/">http://www.menandmice.com/</A>></P><P>To their credit, Apple attempted to put a friendly face on DNS back in 1995 when they flirted with the idea of supporting Internet servers on the Mac. MacDNS makes it possible to get a domain name server online in minutes, though its capabilities are limited, its performance poor, and its stability is highly questionable (although some report using it without problems). It is still available as a free download from Apple, but has not been updated since 1996.</P><P><<A HREF="http://db.tidbits.com/article/01532">http://db.tidbits.com/article/01532</A>><BR><<A HREF="http://asu.info.apple.com/swupdates.nsf/artnum/n11264">http://asu.info.apple.com/swupdates.nsf/artnum/ n11264</A>></P><P>NonSequitur is an alternative for Unix geeks and others willing to tackle the mysteries of BIND-format zone files. It is a small, fast, streamlined name server that seems extremely stable. It is also free, and is my name server of choice. Since MacDNS's and NonSequitur's zone files both use BIND format, you could conceivably use the MacDNS front end to create a zone file for NonSequitur, though I haven't actually tried it.</P><P><<A HREF="http://www.gross.net/sw/nonsequitur/">http://www.gross.net/sw/nonsequitur/</A>></P><P>Providing a secondary DNS proved more problematic. I only had one IP address, so my secondary service would have to be hosted elsewhere. For the short term, I solved this problem by recruiting a temporarily unused computer at my work. DNS is generally low bandwidth and can run in the background virtually unnoticed for low-volume sites, but this solution wasn't really satisfactory - even the scant few cycles I was using weren't really mine.</P><P>Ideally, now that high-speed access is becoming more commonplace, we could create simple DNS hosting partnerships: you provide secondary DNS for me and I'll provide it for you. Unfortunately, neither of the free Mac OS DNS programs support this concept. Most DNS programs can act as secondary servers by querying the primary, so zone files don't have to be manually synchronized between the two machines. MacDNS and NonSequitur will act as primaries, but do not support secondary DNS. A clever AppleScript could probably circumvent this limitation, but that project is currently languishing on my good intentions pile. The commercial QuickDNS Pro does offer secondary service, but when the budget had recovered a bit, I ended up buying secondary DNS service. Several providers offer secondary DNS for a dollar or two a month.</P><P><<A HREF="http://www.backupdns.com/">http://www.backupdns.com/</A>><BR><<A HREF="http://www.nols.com/dnservice.html">http://www.nols.com/dnservice.html</A>><BR><<A HREF="http://www.secondary.net/">http://www.secondary.net/</A>></P><P><STRONG>Share and Share Alike</STRONG> -- Enough certainly should be enough, but there was just one more piece I wanted to put in place. I was involved in another project that needed some hosting services. Now that I had all the pieces in place, how hard could it be to add another domain to my server?</P><P>I soon became discouraged. There are well-established standards for sharing a single IP address among multiple Web sites as a way of conserving scarce IP address space - a practice called virtual hosting. Alas, virtual hosting implementations for the Mac OS seemed to be limited to WebSTAR plug-ins. I mulled over the idea for a few days before it occurred to me that a CGI script could do the job. When I went to create the script, I discovered that it was frighteningly simple. In its most basic form, Web server multihoming can be accomplished with just three lines of AppleScript! Even after I added some error checking and refinement, the script is less than a screen's length and supports an unlimited number of Web sites all hosted from the same IP address.</P><P><STRONG>Mastering the Web Universe</STRONG> -- We've all heard the A.J. Liebling witticism, "Freedom of the press is guaranteed only to those who own one." What is remarkable, to me, is the dramatic way in which the Internet has decreased the cost of press ownership. The one major piece of the puzzle was full-time access to the Internet, but the rest of the job of building a full-fledged Internet presence required little money, a scrap computer, and a chunk of spare time.</P><P>When I'd considered setting up my own server in the past, I'd always assumed I would run it under Linux. In retrospect, I am glad I took the Mac OS approach, unplanned though it was. It convinced me as nothing else could how viable Macintosh is as an Internet platform.</P><P>More information about setting up Internet services under the Mac OS can be found in the book Providing Internet Services via the Mac OS, by Carl Steadman and Jason Snell, available online. Although the book was published in mid-1996 and is now quite dated in places, it was comprehensive at the time and the basics remain as true as ever.</P><P><<A HREF="http://www.pism.com/">http://www.pism.com/</A>></P><P>[Ron Risley could have been a dot-com. Instead, he closed his communications consulting practice in 1986 to pursue a new career as a psychiatrist and family doctor.]</P><P><<A HREF="http://www.risley.net/">http://www.risley.net/</A>></P><!-- Serving the Internet from a PowerBook 5300 Ron Risley --></div>
<!-- end article text -->
<!-- PayBITS -->
<p> </p><div class="sponsorbox">
<div class="sponsortext"><A HREF="http://www.usefulfruit.com/tb"><IMG SRC="http://db.tidbits.com/images/badges/pear-note-icon50x50.png" ALT="" HEIGHT="50" WIDTH="50" BORDER="0" ALIGN="left"></A>Pear Note 2: More complete, understandable notes on your Mac.<br />Typed notes are blended with recorded audio, video, and slides<br />to create notes that make more sense when you need them most.<br />Learn more at <<a href="http://www.usefulfruit.com/tb">http://www.usefulfruit.com/tb</a>>!</div>