Book Review: Building a Server with FreeBSD 7 by <i>Bryan J. Hong</i>

Book Review: Building a Server with FreeBSD 7 by Bryan J. Hong


My first exposure to Unix was ULTRIX from the Digital Equipment Corporation, a former employer. ULTRIX was Digital's version of the Berkeley Software Distribution (BSD, Unix) that ran on VAX computers. FreeBSD, also descended from BSD, is a robust operating system for x86 and other architectures. What Bryan J. Hong attempts to do in Building a Server with FreeBSD 7 is to create a guide to installing FreeBSD, its applications and services--in short order and without fuss. Hong does this successfully and in great detail.

The sub-title of the book, A Modular Approach, is an apt description of the layout of the book. Hong has documented everything from the first boot of the FreeBSD CDROM to the final configuration of additional software. It is an ideal guide in getting a FreeBSD-based server up and running without having to research installation, package managers or dependencies issues. My approach to testing the contents was to download the latest image of FreeBSD 7 and dive in. Starting with the first section I performed an install of the base operating system. Each well-documented step created a bootable base system ready for customization.

 The book's cover The book's cover

The first step was to use FreeBSD's ports collection to install the software in a simple-to-manage way. The next step was to install the MediaWiki server, an open-source wiki implementation, using (again) the ports collection. After a short introduction to MediaWiki, the pre-requisites (Apache, MySQL and PHP) were shown. After going through each pre-requisite, installation and configuration, a working MediaWiki server was up and running. As an additional test, I decided to install the Drupal content management system alongside the wiki server. Using the same approach, and with no conflicts, Drupal was up and running in parallel.

The sub-title of the book, A Modular Approach, aptly describes the layout

The contents

Weighing in at 288 pages, Building a Server with FreeBSD 7 is broken down into two sections. The minimalist Part One, "The Base System", describes the steps in getting the FreeBSD base operating system installed and configured. The base system includes networking and Secure Shell (SSH) configuration. The ports collection configuration is also covered in this section.

Part Two, "Third-Party Applications", makes up the bulk of the book. Each chapter details the installation and configuration of server applications and their dependencies. The structure of the chapters is unique. Each chapter begins with a short summary of the application followed by URL references for more information and the applications' dependencies. Depending on the application, the chapter continues with preparation, installation and configuration, amongst other sections. References to application-specific files (log and configuration), and any additional notes needed for the application are included.

The preface of the book details all of the sections chapters contain, along with an excellent diagram on setting up a web and mail servers. The appendices detail, for those unfamiliar with Unix-like systems, the basics of commands, system backup, user management and protocols used by FreeBSD.

It's difficult to find fault with Building a Server with FreeBSD 7, though there are downsides. Other operating-system books are also version specific. With this book, being very specific and detailed, one slight change in FreeBSD 7, while not making the book unusable, will outdate it sooner than others. In the same vein, if a referenced link is changed, the readers will need to search for an alternative resource. Some of the referenced application links are version specific and several subdirectories are deep, leading them to become outdated sooner. A lot of the "how" is covered but sometimes not enough of the "why". For those unfamiliar with FreeBSD or GNU/Linux configurations, it is easy to get lost or miss important details on security and updates and these are only lightly touched on.

In spite of the criticisms, this will turn out to be a well-thumbed reference work for anyone deploying FreeBSD servers. Admittedly, in the past, I've attempted to install FreeBSD with limited success, but this book made the steps in configuring a running system clear and concise. Other cookbook-type books for GNU/Linux exist, but none are as detailed and well laid out as this one.

Who's this book for?

This book is for system administrators familiar with Unix or GNU/Linux in general, but not with FreeBSD in particular. I would not recommend this book for someone with little or no system administration experience. It is a fine reference work for the system administrator that wants to get a FreeBSD server up and running without having to search through other books or the internet for help. It is a dedicated one-stop reference for installing FreeBSD servers -but not for maintaining them.

Relevance to free software

GNU/Linux isn't the only free and open operating system. While it is maybe not as visible as GNU/Linux, FreeBSD is nevertheless a mature, stable, well supported and well documented operating system. FreeBSD and its BSD cousins are suitable, and often, superior alternatives to many GNU/Linux distributions.

GNU/Linux isn't the only free and open operating system available

Pros

  • Excellent self-contained reference work
  • Well laid out chapters
  • Pointers to additional on-line resources
  • Detailed howtos

Cons

  • Very version specific
  • Big on "how", small on "why"
  • Not for inexperienced system administrators
  • Short on security and updates
Book
Title Building a Server with FreeBSD 7
Author Bryan J. Hong
Publisher No Starch Press
ISBN 9781593271459
Year 2008
Pages 288
CD included No
FS Oriented 10
Overall score 10

In short

Category: 
Tagging: 
License: 

Comments

roy2098's picture
Submitted by roy2098 on

Many thanks for the book, and the review ... while not wanted to start the old Linux vs whatever flame wars, I do have to say that FreeBSD (I'm not all that acquainted with NetBSD or OpenBSD) has become a very good friend after several dozens of servers and five years of fairly intensive use. Linux refers to a kernel, and everything around it can be quite chaotic with hundreds of distinct distributions based on that kernel. Not so with BSD ... a dedicated group of maintainers/committers ensures that FreeBSD releases (with the exception of some glitches around FBSD 5.X) are coherent and quality-oriented. One does have to take care with hardware, best to stay away from the bleeding-edge until the edge no longer bleeds...

But the best part about FreeBSD is its ability to completely rebuild itself from the inside-out. This can be accomplished via ssh login, making for extremely easy system upgrades handled remotely.

FreeBSD has no high-profile funders a la Ubuntu, but I dare say its community is as fine and competent as exists in the open source world.

And finally, its license is the most liberal of all. Its copyright fights are of the past, and its code is there for all to use as one sees fit, for profit or not. How can you beat that?

In short, I have nothing but praise for this opeating system and its community. There are perhaps twenty or more mailing lists specific to various aspects of FreeBSD.

Oh, lest I forget, there are many desktops/guis suitable for non-server use available via FreeBSD's really unbeatable ports/packages system. PC-BSD and DesktopBSD are versions that are ready-to-go, but rolling your own can be much more fun! Executing pkg_add -r kde3 will grab the whole environment and install it for you while you take a break, it's that easy. For those with powerful machines, cd'ing into /usr/ports/x11/kde3 and executing 'make install' will accomplish more or less the same thing but with a difference: the code will be custom compiled with the idiosyncracies of your specific machine and environment. And, one has greater control over the entire process!

Author information

Ken Leyba's picture

Biography

Ken has been working in the IT field since the early 80's, first as a hardware tech whose oscilloscope was always by his side, and currently as a system administrator. Supporting both Windows and Linux, Windows keeps him consistently busy while Linux keeps his job fun.

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!