Home » Search results for 'ultimate home automation server'

Search Results for: ultimate home automation server

The Most Versatile VoIP Provider: FREE PORTING

Ultimate Home Automation Server: The $500 Mac Mini, Part III

Our final installment in the HOW-TO Build a Home Automation Server series delves into the software that is available to make your home come to life. The first installment provided an overview of building such a system, and we covered much of the recommended hardware for such a system in the second installment. As mentioned previously, the brain of this system is a clever piece of software called Indigo (see inset).

With Indigo, you first define all of the X10 components that have been installed in and around your home: sensors, motion detectors, lamp modules, appliance modules, door chimes, and on, and on. Next, you define what you want to happen with each device and when. These actions occur because of one of two types of triggers: time/date matches or external triggers. For Time/Date Actions you define (1) a Time/Date Trigger, (2) a Condition, and (3) an Action. The Time/Date trigger can be a specific time, or a time within so many minutes of sunrise or sunset, or a repetitive time every so many hours or minutes. The date can be one or more days of the week, a specific date, or every day. Conditions let you limit actions to only during daytime or nighttime or based upon the value of a certain variable which you also can control. An Action can be either turning a specific device on or off, dimming a light, executing a combination of predefined actions, setting a variable, executing an Applescript, or sending an e-mail. All of these events can be randomized within a specified range of minutes or hours. As you can see the flexibility is virtually limitless. Finally, all Indigo actions can be enabled for use from two other pieces of software: Ovolab Phlink and Salling Clicker. Phlink is a complete telephony server for your Mac. Salling Clicker lets you control many Mac functions including Indigo using almost any Bluetooth-enabled cell phone.

The other powerful component of Indigo is Trigger Actions. Instead of a time and date, these actions are programmed to take place when a specific triggering event occurs. Triggering events include motion detection, darkness or daylight detection, power failure, device state change, receipt of an X10 command, receipt of an email message containing certain letters or words in the subject or received from a particular email address, or a change in the value of an Indigo variable. As with other actions, you can specify conditions for these actions which must be met, and you can define what actions or combinations of actions occur when the condition is met. As mentioned in the first installment, Indigo also can be used to download most of its actions and triggered actions into a PowerLinc Controller which obviates the need to have an always-on computer to manage your Home Automation System.

The only real limitation to Indigo is your imagination. If you’re not that imaginative, then you might want to visit the Indigo online forum which has hundreds of tips and suggestions to get you started. In addition, there is a voluminous script library that supports Indigo, Phlink, and Salling Clicker functions as well as a web interface to virtually all Indigo functions and controls. We’ll save an in depth discussion of Ovolab Phlink and Salling Clicker for next week, but these two software products will make your Home Automation Server something that no PC on the planet can rival … at any price.

Ultimate Home Automation Server: The $500 Mac Mini, Part II

This is the second of our three-part series on building a Home Automation System using your Mac mini. You probably should read the first installment before continuing here. So where were we? Before you start buying home automation equipment, sit down and figure out what you want to automate and what you don’t. You also need to familiarize yourself with what’s available in the home automation marketplace and decide which components you want now and which ones you’ll defer until later. Lamps and overhead lights on a single switch are very easy to automate, and I’d recommend you start simple. $49 will get you a great starter set to control nine separate lights and appliances in your home. Add a $12.99 wireless transceiver with your order, and all of these devices also can be controlled from the included remote. Motion controlled outdoor floodlights are also easy to implement if you want to tackle something else initially. This week you can get two sets of dual, motion-controlled X10 floodlights for $50. Not bad if you’ve compared pricing at your favorite hardware store lately. As a last purchase in Round 1, I recommend you acquire a couple motion detectors which can be used outside for porch lights or inside to illuminate rooms with difficult to reach light switches. These are half price for the remainder of this week, but they go on sale often at X10.com as well. Once you get all of these components installed and working reliably, then you can place another order for more exotic components: three-way (or more) switches, thermostats, sprinkler systems, swimming pool lights, and virtually anything else that has a plug. A good rule of thumb is that the more sophisticated a control device becomes, the more expensive it is to automate. Remember, too, that after you install a couple of new X10 components, check for reliability using some of the tests we outlined in the first installment. It’s much easier to isolate problems when you do some checking after every few additions. If there are unreliable devices, order a signal booster and resolve the problem before adding more devices.

It’s also worth mentioning that X10 equipment is available from a variety of sources including SmartHome.com, X10.com, and a number of eBay stores. Use your favorite search engine to find matches for "X10 equipment." For some items such as socket rocket lamp modules (a device that screws into a regular lamp socket to control a light bulb or flood light), it pays to watch the X10.com web site for several weeks. Many items are offered at 3-for-1 pricing at least once or twice a month, and the savings are significant. If a couple of overhead lights in your kitchen are controlled by four wall switches, you have two choices. You can replace all the wall switches with an X10 four-way switch system (about $150), or you can install a socket rocket for each light in the ceiling at a cost of $10 per socket (when they’re on sale!). You can do the math. If you watch the X10.com web site sale page for a few weeks, you will get an idea about what goes on sale and how often. Moral: Don’t get in a big hurry to buy this stuff all at once, or you will pay about triple what you’ll pay by being patient. SmartHome.com has the broadest array of home automation equipment, and they also have the highest prices. Some things like repeaters and noise filters you will just have to buy at market price and probably from SmartHome.com. But, again, spend a little time on their web site and their auction site to get a feel for what things should cost and how often they go on sale. It will save you hundreds of dollars. A final word of caution is in order. X10.com is an aggressive marketer to put it charitably. These are the folks that introduced pop-under web page ads among other things. Once you get on their mailing list, your grandchildren will probably still be getting your X10 emails long after you have moved on. It’s probably worth opening a new Yahoo email account just to handle X10.com mailings.

Tomorrow, we’ll wrap this series up and review some of the things you can do with your Indigo control software. And we’ll take a look at other great software applications that will further enhance your Home Automation System.

The Ultimate Home Automation Server: Your Shiny, New $500 Mac Mini

If you thought the Mac mini was only an entry-level PC Killer, think again. The Mac mini may just be the perfect server on which to build your dream Home Automation System. Having built one of these using an iMac G5, I’m more than a little jealous that it now can be done for $1,000 less using a Mac mini … or about $5,000 less than what you’d pay an "expert" to build it for you. So let’s get started. Just like baking a cake, we’re going to start with the ingredients, and then we’ll put them together and produce the finished product. When we’re finished, everything in your home or apartment can be controlled and managed from your home automation server, the Mac mini, using the keyboard, automatic timers, a web browser, an email message, or touchtone commands from any telephone in the world. A typical scenario might go something like this. You drive in your driveway after a long day at the office and, yep, the outside lights come on. But that’s not all. Your entire home magically comes alive. The living room, den, and dining room lights all dim to an appropriate level for just after dusk and your favorite after-work album for the 6 p.m. hour begins to play in the kitchen and exercise room. The aquarium lights go on, and, your Mac mini begins downloading all of your personal e-mail for later viewing. An hour later, the outdoor floods turn off. All of the interior lights turn off two hours after no motion has been detected in your home. This is the first of three articles on how to build just such a system.

Required Components. There are a number of components that can be used to build a home automation system. I’m going to break these components down into required, unnecessary, recommended, and optional. As far as required components, you obviously will need a bare bones Mac mini. It will serve as the hub for the Home Automation System. Does it need to be a unit dedicated just to home automation? Probably not, but I recommend it because the home automation system works better with an always-on server. If you’re going to do other things with your Mac mini, invest in some additional RAM. Otherwise, you’re fine with the $499 model as is.

We’re going to build this system using X10 technology so you need some software to control the timing of home automation tasks and to send X10 signals over the existing electrical wiring in your home. These signals control turning lights on and off as well as dimming them. And they can control appliances and thermostats. Combinations of tasks can be sent from the server to dim the lights, turn on your home entertainment system, choose a playlist from iTunes, and draw the drapes. It all depends upon how spiffy you want your ultimate system to be. Now that you have your Mac mini, the next required component is the X10 control software, an extremely powerful, well-supported product called Indigo. It costs $89.95 and is available with a 3o-day free trial directly from the author. Next, you’ll need a PowerLinc USB device, which is the device to which Indigo sends device instructions at scheduled times specifying when particular events should occur (e.g. driving in the driveway, sunset, or two hours after no motion is detected on motion sensors #1, #2, and #3). The PowerLinc device then sends the actual X10 signals down your power lines to individual X10 devices which control each light, or appliance, or outlet in your house .

When you buy Indigo, you get a special price on the PowerLinc device and one lamp module so here’s the link to get the deal. The cost is $35. You’re also going to need a USB hub to expand the number of USB ports on the Mac mini. A $10 4-port, bus-powered USB hub from CompUSA will suffice; however, make certain you plug the PowerLinc device into a dedicated USB port on the Mac mini, not into the hub! If you only want to control one light in your home, your required components are complete so get those pieces ordered first. However, we set out to build the ultimate Home Automation System so I’m assuming you probably don’t want to invest $635 and stop reading just yet. There are cheaper ways to dim one lamp, but you knew that.

Unnecessary Components. PowerLinc also makes a new device with memory called a PowerLinc Controller. This can be used to control X10 devices in your home without a computer even being on. Indigo can download the desired X10 commands, times, and triggers into the controller, and then you can shut down your computer. You lose some functionality with the controller, but not a lot. For example, the controller doesn’t know what time sunset is each day, but it does have an internal clock. So Indigo will handle the translation to an actual time and send the time of sunset today to the controller. This usually will suffice for a month or two at a time without another brain dump from Indigo. I’d recommend you skip this component for the time being and leave your computer on. You can always add it later when you decide to turn your Mac mini into a media center. Also in the unnecessary category is a UPS for your Mac mini. Unless your home is run by a generator when the power is off, a UPS doesn’t buy you much for reasons which should be obvious. A UPS also may cause interference which can scramble the X10 signals and produce undesired results. A power strip with surge protection should suffice for the Mac mini. Note that the PowerLinc USB device needs to be plugged directly into an AC outlet. For best results at lowest cost, the preferred location for the Mac mini and the PowerLink USB device is somewhere fairly close to the circuit breaker box in your home.

Intermission: Some X10 Theory. Let’s take a break from our buying spree long enough to talk about some of the problems you’ll encounter in an X10 Home Automation System. X10 systems suffer from two problems: line noise or interference and weak signal strength typically due to distance limitations. Large appliances, particularly older televisions, generate lots of "noise" on the power lines in your home. UPS systems and many no-name-special computers do the same thing. This causes X10 signals to get scrambled leading to undesirable or even no results. Weak signals are generally caused by one of two things: distance or too many X10 devices. Each X10 device absorbs part of the X10 signals on the line. You may not know it but there usually are two 120 volt runs of power in your home. To get a signal from an outlet on one run to an outlet on the other, that signal has to travel outside your house to the nearest transformer and back … unless you know the magic trick. Generally, you solve noise and interference problems with filters. And you solve diminished signal problems with signal boosters or the magic trick that we’ll get to in a minute.

The best way to install a problem-free X10 system is to build the server, load Indigo, and plug in your PowerLinc USB device and connect it to your computer. Get those three components working reliably first. Then turn off every other circuit breaker in your house. Now plug a lamp into your one lamp module, and then plug the module into an outlet near your computer. Enable the breaker that controls that outlet. Set the desired X10 address for this module by creating a new device in Indigo which matches the specs of your lamp module and then assign it a device address. Turn the lamp OFF at the lamp switch and then turn it back ON. Move immediately to Indigo and turn the device on three consecutive times in rapid succession. This will set the lamp module to whatever device address you configured in Indigo. There are 256 unique addresses so you don’t have to worry about running short. Turn the device off and on several times using Indigo to make sure it works reliably. If not, repeat the above steps.

Once the lamp can be reliably controlled from Indigo, unplug the lamp and lamp module and move them to five or six different areas of your home. Plug the lamp into the lamp module and the lamp module into a new outlet. Enable this outlet on the breaker box, and then turn the lamp on and off from Indigo. Repeat the test several times. If it works every time, move on to your next location. Here’s the magic trick. If it fails, turn on your electric clothes dryer (after enabling it on the breaker box), and repeat the test. If it still fails, you will need a repeater between the location of the computer and the location of the outlet. All you do is plug the repeater in to various outlets along the way, and repeat the test. If the lamp works after turning on the dryer and repeating the test, it doesn’t mean you have to run your dryer forever more just to turn your lights on. Instead, just buy an inexpensive phase coupler that matches the outlet on your dryer. If your house is larger than 3,000 square feet or is laid out in such a way that a heavy smoker would be out of breath when he or she got to the other end, I’d recommend you purchase a coupler-repeater instead of a phase coupler. This boosts the signal in addition to connecting the two 120 volt runs in your house. Turn off your clothes dryer now, move to the next location for testing, enable the breaker for the outlet, and repeat the testing procedure above. This sounds harder than it actually is. The good news is that, when you are finished, you will have isolated most of the signal strength problems in your house. As you add more devices, you may find that the signal diminishes below reliable levels again. At this juncture, you simply purchase another repeater and install it in various outlets between the source and destination until the problem goes away. A good rule of thumb is to buy one repeater for every thousand square feet in your house.

Now that the weak signal problemss have been addressed, you’re ready to tackle the line noise and interference issues. Make sure you’re back to square one in the breaker box with no breakers enabled except the one controlling the computer and PowerLinc device and one additional breaker controlling the outlet where you are going to plug in your lamp module and lamp to begin testing. Be sure you can turn the lamp on and off with Indigo several times. If not, go back to the tests outlined above. If all is well, turn on one additional breaker at a time and repeat the lamp testing. I’d start with the appliance breakers that typically cause the most problems: circuits with old TVs, circuits with a UPS device, and circuits with a computer. If you cannot turn on the lamp reliably using Indigo, then you need a noise filter on the circuit with the noisy appliance that is controlled by the breaker you have enabled. Turn off that breaker and proceed to the next breaker. Once you complete testing all the breakers, move the lamp and lamp module to another section of the house and repeat the tests outlined above again. It is quite possible to have a noise problem in one area of your house (which requires a filter) and not see the problem in other outlets so don’t get lazy and skip any testing steps, or you’ll be absolutely miserable down the road. In the event you run into problems or get frustrated, here’s a more detailed analysis of what I’ve covered in summary. You do not need to buy a signal meter to diagnose X10 problems. You just have to perform the above tests carefully and methodically. If you’re just curious later and want to verify whether a particular appliance is "noisy," use a battery-operated radio, tune it to a low AM frequency that is clear of noise, turn up the volume, and hold it close to each appliance and outlet you want to test. You’ll know instantly if there’s significant noise being generated by a particular appliance, and you just avoided making a $300 investment in testing equipment. If you want a more in-depth review of X10 home automation technology, SmartHome.com is a great place to start.

Stay Tuned. Your eyes are probably glazing over by now so we’ll save a discussion of the recommended and optional hardware for your Home Automation System for tomorrow. Then, in our third installment, we’ll connect all the dots and you’ll see what a truly incredible Home Automation System you’ve been able to build using a $500 Mac mini for your foundation. The moral of the story thus far is simple: start small and thoroughly test your outlets to find potential trouble spots. Don’t buy 50 home automation components and install them all thinking everything will work just fine. They won’t. If you’ve ever had a marine aquarium and tried to populate it with a dozen new fish in one fell swoop, then you already appreciate the virtue of patience. Otherwise, save yourself some grief, and just trust me on this.

Ultimate Computer Telephony Server: The $500 Mac mini

If you’ve always wanted a complete Computer Telephony Integration (CTI) solution for your small business or home office but were put off by mega-thousand dollar sticker shock, there’s good news. Your clean living finally has paid off. Thanks to Apple’s introduction of the $499 Mac mini and Ovolab’s 2.0 release of their $150 Phlink telephony server, you now can build an Interactive Voice Response (IVR) call center and auto-attendant with complete messaging, voice mailing, call routing, data base lookuping, out-dialing, faxing, and email message forwarding for under $650 … in one afternoon. And, yes, I’ve done it so this isn’t a sales pitch. Need support for additional incoming lines? Just add additional $150 Phlink server modules, and you’re in business. If you’re contemplating building the Home Automation Server we discussed last week, then this telephony server is a perfect complement. All you’ll really need is Phlink and a little additional RAM when you purchase your Mac mini.

Here’s a quick introduction to Ovolab Phlink’s feature set. Using any phone line with caller ID (including VOIP lines such as those we’ve previously recommended), you can build customized solutions to answer and route calls based upon the caller’s identity. This customization includes user-specific IVR menus to retrieve customer data, weather reports, sales figures, or virtually anything else you need. After retrieval, the caller can use a touch tone phone to route a fax or email to a specific phone number or email address. Or you can use the IVR capabilities to capture voice mail messages which immediately can be retrieved using any web browser or emailed to you or your cell phone. All you need is an Ovolab-provided script. If you need to turn on the sprinkler system in your front yard while away on vacation, that’s no problem either. Just phone home, key in your secret sprinkler watering code, and Phlink will pass the instruction along to the Home Automation Server we built on the same Mac mini last week using Indigo. Another great use of this system is to route telemarketers and folks on your personal do-not-call list into that special place: IVR Hell, an endless variety of choices to press 1 for this and press 2 for that. It can entertain obnoxious sales people for hours at a time, and you’ll never even know the phone rang. Or, if you prefer, Phlink can just disconnect these calls. Finally, you can use the Mac’s powerful text-to-speech capabilities which are incorporated into Phlink to build customized responses to queries from callers. For example, a customer could be provided a current inventory status based upon a customer-initiated query. The possibilities are endless. And if you’re not that imaginative, Ovolab has assembled an incredible array of scripts to get you started. Some of you probably are shaking your head saying, "I’ve tried cheap IVR solutions before, and the touch-tone commands just weren’t reliable." Well, Phlink is bundled with a USB hardware adapter to handle caller ID and touch-tone translation, and I have found it to be just as accurate as corporate systems costing thousands of dollars. You won’t be disappointed. Just send me a check for half your savings, and we’ll call it a day. Enjoy!

HOW-TO Bonanza: 50 Great Summertime Projects for You & Your Mac mini

Well, it’s that time of the year again. The Nerd Vittles staff will be taking a breather for a bit to recharge our batteries. But, in the finest college tradition, we’re leaving you lots of homework. Here’s a listing of what we’ve built thus far in our Mac mini ISP-In-A-Box project. So, while we’re taking it easy, pick out a few projects you haven’t tried and knock yourself out. Any Mac running at least Mac OS X v10.3 aka Panther is a suitable candidate for these projects. Many also have been tested with Tiger. Visit Tiger Vittles for the Tiger update notes to many of these tutorials. Also be sure to check out our WHERE-TO Bonanza: 50 Great Summertime Web Sites for You & Your Mac mini.
Mac mini

  • Apache Web Server
  • Email Servers: SMTP, POP3, and IMAP
  • MySQL Database Server
  • PHP and PhpMyAdmin
  • WebMin
  • The Webalizer
  • Web Calendars
  • Email Reminders
  • Crontab and CronniX
  • WordPress 1.5 Blog
  • TrixBox/Asterisk® VoIP PBX
  • A special welcome to Popular Science visitors
    And here are some of our other tutorials to keep you and your Mac mini busy:

  • Web Sites 101
  • Remote Access
  • P2P from A to Z
  • Network Security
  • Domain Names and ISPs
  • Skype = Free Phone Service and Mastering Internet Telephony: One SIP At A Time
  • And finally we and our friends at MacSurfer and Engadget and Gizmodo and MacOSXhints and MacDevCenter and Entropy. Give ’em a whirl!

  • WebDAV Server HOW-TO
  • WebDAV Clients HOW-TO
  • Managing Web Sites with WebDAV
  • Remote Mac Access with AFP and SSH
  • RSS Made Really, Really Simple
  • Backing Up Your Mac … for Free
  • Mac OS X Tiger Backups: The Good, The Bad, and The Ugly
  • Building a Data-Driven Web Site
  • Building a Streaming Audio Server
  • Web Hosting (Is Not) For Dummies
  • Hosting Multiple Web Sites and Domains
  • Creating a Secure (HTTPS) Mac OS X Web Server
  • Building A PureFTP Server … If You Must
  • Building a Home Automation Server
  • Building a Computer Telephony Server
  • Installing a Free Asterisk@Home PBX: Part I, II, III, IV, V
  • Mastering Internet Telephony: One SIP at a Time
  • Turning Your Mac mini Into a DVD Player Kiosk
  • HOW-TO: Turn your Mac mini into a media center
  • HOW-TO: Create Your Own Planet (aka Web Site of Your Favorite RSS Feeds)
  • CenterStage – The Mac Media Center Open Source Project
  • UStec Mac mini Home Media Server
  • Wiki Knowledge Base: Using a Mac mini as a Home Media Center
  • MacVroom – The Definitive Mac mini Car Integration Site
  • iDash: Mac mini for Your Car or Land Rover or Lexus or VW GTi or BMW or 3000GT or Prius
  • HOW-TO: Turn your Mac mini into a low-cost recording studio
  • Installing and Tuning Open Office on Mac OS X
  • Exploring the Mac OS X Firewall
  • 50 Ways To Get More From Your Mac mini
  • Last but not least, for PC users thinking about making the Switch to a Mac, read our article and this one. Then buy David Pogue’s book, and you’ll have everything you need. It really is a No Brainer!


    We’ve gotten lots of terrific feedback and some great tips from many of you since we first began putting this list together in early spring, but we’d love to hear from the shy types as well. What did you like? What can we improve? What can we cover which would be of interest to you in the coming months? If you have a favorite open source application or a must-have tool that we’ve overlooked thus far, don’t be timid. Drop us a note or just leave a comment below. We do this for fun, not as a business fortunately, but we strongly believe that Apple should be doing something similar as part of their business plan. We, their loyal customers, deserve nothing less. Thanks for visiting NerdVittles.com. And do tell your friends about us. Finally, take a look at our Tiger Vittles site for the latest happenings with Mac OS X Tiger.

    Who Is This Guy? Ward Mundy, the author of the ISP-In-A-Box series, is a retired attorney who spent more than 30 years providing legal and technology assistance to the federal courts in the United States.

    ISP-In-A-Box: The $500 Mac mini (Chapter V, WebMin)

    Today, we were supposed to wrap up our opening series on turning your Mac mini into a full-fledged Internet hosting (or staging) server… but I’ve changed my mind. More than 10,000 visitors showed interest in our articles last week, and more than half of them were from the Windows World. So I’ve decided to continue beating the dead horse a bit longer. We’ll add a couple installments each week until we fill up everyone’s hard disks. You’ll notice we’ve changed from Parts to Chapters. That indicates our intention to continue building on what we’ve already done for some time to come. Think of this as a college class that you don’t have to pay for … or attend, for that matter. And, just like college, we’ll slack off when Spring Fever hits. And, when June rolls around, don’t expect much until next fall. We will wave to you from the beach house, however.

    If you’re just finding our site, you can read the entire series of articles (preferably from the bottom up) by selecting the Internet/Web Category on Nerd Vittles. We also encourage a look around while you’re here. After all, you wouldn’t want your Mac mini to grow up to be just a one trick pony. Our series on Home Automation and Computer Telephony servers can put a Mac mini to good use during those idle cycles. We might even get you interested in photography one of these days, perhaps this summer. And then you can really bore your friends with two nerdy pastimes.

    Coming Attractions. Tomorrow, for Mardi Gras, we’ll be covering RSS, a much better way to keep current with blogs and especially HOW-TO web sites like this one. We’ll tell you why. On Wednesday, we’ll add another chapter to our ISP-In-A-Box series by installing Webalizer, a statistical analysis package with the best bar graphs and pie charts west of the Pecos. On Thursday we’ll address hardware-based firewalls and routers to protect your new system, and we’ll cover all the nitty gritty details to actually get you a domain set up on the Internet so that folks like me can start looking at your web site. If you don’t yet have a web site, don’t worry. We’ll tackle that next week. And then on Friday of this week we’ll have another ISP-In-A-Box feature covering how to install and make quick, free system backups for your Mac mini or any other Mac using any portable USB or Firewire hard disk … even your iPod. And, unlike Windows World, you can test your backup’s integrity by booting your Mac from the remote drive after the backup is complete.

    WebMin, the Ultimate ISP Tool. In days of old, every operating system vendor wrote a proprietary user interface (UI) to make their OS "user-friendly." The trouble was that every time you switched operating systems, you had to learn an entirely new UI, too. Jamie Cameron changed all of that with the introduction of WebMin. If you have any previous experience with almost any flavor of BSD, Linux, IBM AIX, Sun Solaris or Java Desktop, then today’s topic will not be news to you. WebMin is one of the must-have tools on almost every server platform. What PhpMyAdmin did for MySQL, WebMin does for virtually every open source application in the marketplace. It provides a web front-end to manage almost everything running under the hood of your machine including cron jobs, bootup and shutdown processes, system logs, DNS, SSH Server, Apache web server, Postfix SMTP server, MySQL, PostgreSQL, NFS, SSL, Perl, and SAMBA to name a few. If you want to host multiple domains on a single server with Apache (including a Mac mini), nothing can come close to WebMin for quick, reliable, and automatic Apache configuration. As was true with PhpMyAdmin, powerful tools pose powerful risks if (1) you don’t know what you’re doing or (2) you don’t consider security before installation. WebMin includes its own web server which runs on port 10000 by default. You either need to enable the firewall on your Mac mini and leave port 10000 closed or you need to install a firewall/router between your Mac mini and the Internet and leave port 10000 closed. This will assure that no one can get to WebMin except sitting in front of your machine. And you’ll still need a username and password to get in. That’s about as secure as life gets these days. So let’s begin the installation.

    First, we need to download the WebMin software. Go to prdownloads.sourceforge.net/webadmin/ and scroll to the bottom of the list. We want to download the latest and greatest version which includes support for Mac OS X v10.3: webmin-1.180.tar.gz. If you’re reading this months from now, there may be a later one. If so, get it in the tar.gz format. Choose a mirror close to you and download the file to your desktop. Once the file has been downloaded, it will decompress in a couple minutes into a folder with the same name as the original file: webmin-1.180. At the present time, there are 182 items in the folder. Your mileage may vary if a new version comes out down the road. Now drag the entire folder to your Applications folder.

    We’ll need to get our hands dirty a little bit to complete the installation so just follow along and don’t get ahead of us. Go to the Applications/Utilities folder and open a Terminal window. Type sudo su and press enter. If prompted, type your admin password to switch to root access. Now move to the webmin installation folder: cd /Applications/webmin-1.180. Start the installation script by typing ./setup.sh and press enter. Don’t forget the leading period! You’re now going to be asked a series of questions. Listed below are the questions (in bold) followed by the corrrect answers (in italics) for you to provide:

  • Config file directory /etc/webminpress enter
  • Log file directory /var/webminpress enter
  • Full path to perl /usr/bin/perlpress enter
  • Web server port (10000)press enter
  • Login name (admin)press enter
  • Login passwordtype your admin password and press enter
  • Password againtype your admin password again and press enter
  • Start Webmin at boot timetype y and press enter
  • The installation script then will whirrr away for a minute or two. Be patient! WebMin will then tell you it’s finished and give you a couple little pieces of information that you need to either write down or bookmark this page.

  • To uninstall WebMin, open a Terminal window, sudo su, provide admin password, and run this script: /etc/webmin/uninstall.sh
  • To manually stop WebMin, open a Terminal window, sudo su, provide admin password, and run this program: /etc/webmin/stop
  • To manually start WebMin, open a Terminal window, sudo su, provide admin password, and run this program: /etc/webmin/start
  • To access WebMin with a web browser, go to http://localhost:10000 or http://127.0.0.1:10000 or http://nnn.nnn.nnn.nnn:10000 where nnn.nnn.nnn.nnn is your Mac’s IP address
  • Now we’re ready to see if things are working properly. Open a web browser and go to one of the addresses above. You should be prompted for a username and password. Type admin for your username and type your admin password. Don’t save it … but you knew that! You should see the WebMin opening page. Now that wasn’t so bad, was it?

    WebMin WARNING: WebMin has a deceptively simple user interface, and you may be tempted to muck around and improve things. Don’t … until you first RTFM (read the manual)! Or go to your favorite bookstore and thumb through a few of the many great books on WebMin. Pick one that best suits your reading style. They all pretty much cover the territory.

    WebMin Housekeeping. WebMin updates are released periodically. You can get on the mailing list at webmin.com. Once you know of an update, here’s the process to get it and install it. Nothing could be simpler. Open WebMin with your web browser. Go to Webmin, Webmin Configuration, Upgrade Webmin. Move to the third form on the page which is labeled Update Modules Now. Run the test to see what you’re missing by leaving the defaults and clicking the Update Modules button. WebMin will then check for updates and tell you what you’re missing. Go back to the Update Modules section again, uncheck the "Only show …" option and check the "Install Modules …" option. Then click the Update Modules button again. The new modules will be installed. You’ll need to do this once after this install because there is at least one update available. If you don’t get on the mailing list, then you need to go through this drill about once a month. I would not turn on the automatic updates. If the WebMin update server gets compromised, you are toast!

    Finally, a word about whether to run WebMin all the time. If you have a gig of RAM, it won’t hurt. With anything less, I would turn it off until I needed it. That means you probably don’t want it to start up when you boot your machine. You then can manually start it with the command shown above. Here’s how to disable the automatic boot of Webmin. Open WebMin in your browser. Go to System, Bootup and Shutdown, and click on WebMin in the alphabetical list. Change the startup setting from -YES- to -NO- and click the Save button. That should get you started with WebMin.

    Vindication At Last: ISP-In-A-Box Performance. Privately, I’ve caught more than a little grief from colleagues suggesting that the Mac mini really isn’t up to snuff to handle some of the tasks we’ve been throwing at it this past week. Well, the testing results are in comparing a Mac mini to a 1.8GHz dual-G5 using the industry-standard Apache Bench application. According to Macminicolo.net, which handles colocation services for servers of all flavors, "While [Mac mini] figures aren’t at the top end of the generally available ISP-class web server performance curve by any means, the economics of the Mac mini are such that for the first time ever there is a competitive Macintosh server able to handle more than 1000 hits per second yielding 20Mbits of data at a price that meets or beats much of the industry…"

    PHP/MySQL Book List. I promised last week to put together a reading list to get you started with PHP and MySQL. There are a number of books that cover both topics together which is a good way to learn PHP and MySQL. My favorite is PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide by Larry Ullman. There’s also a little more advanced O’Reilley book on the subject: Web Database Applications with PHP & MySQL, 2nd Edition. You can’t go wrong with either one, or just buy them both and skip that romantic dinner out next week. Heh heh heh.