BSD DevCenter

oreilly.comSafari Books Online.Conferences.

We've expanded our LAMP news coverage and improved our search! Search for all things LAMP across O'Reilly!

Search
Search Tips

advertisement

Print Subscribe to BSD Subscribe to Newsletters

FreeBSD Basics Turn FreeBSD into a Multimedia Workstation

by Dru Lavigne
09/05/2002

I recently purchased a shiny new PC and decided to turn it into a multimedia desktop. I spend far too much time in research and networking; I figured it was time to delve deeper into the world of Flash, DVD, and mp3s.

FreeBSD still seems to get a bad rap as a desktop. The impression is still out there that sure, it's a rock-solid server, but you need a master's degree in rocket science in order to get a sound card or Java to work. Hogwash. Granted, you still have to take the time to build and configure the components you desire, but that is the beauty of FreeBSD. No company is deciding for you what you want in your desktop, and you have the satisfaction of knowing you built your system your way. Not to mention the literally hundreds of multimedia applications to choose from, some which put their commercial counterparts to shame.

In today's article, I'll concentrate on a fresh install that is totally up-to-date, then move on to integrating Java, Flash, and streaming multimedia into a browser. I'll be taking the slow, systematic route, so follow along and pick out the bits that are interesting to you.

Being the paranoid person that I am, I like to install from CD, reboot into a firewalled system, than CVSup to the latest sources. Before starting any install, I always copy the following onto a floppy:

  • My shell configuration file (~/.cshrc) {see "Understanding Shell Prompts"}.

  • My firewall ruleset (/etc/ipfw.rules) {see "BSD Firewalls: Fine-Tuning Rulesets"}.

  • My customized /etc/rc.conf file.

  • My customized cvsup configuration file, refuse file, and /etc/make.conf file.

I then start the install from CD and choose to install everything, including the ports collection. Once bin has been installed, I press Alt-F4, which now has a prompt. I then mount the floppy and copy over the first three files:

mkdir /floppy
mount -t msdos /dev/fd0 /floppy
cd
cp /floppy/.cshrc .
source .cshrc  (I now have my favorite prompt)

cp /floppy/.cshrc /usr/share/skel/dot.cshrc (now the users I create will 
					    also get my favorite prompt)

cp /floppy/ipfw.rules /etc/
cp /floppy/rc.conf /etc/
umount /floppy

Usually, by the time I've unmounted the floppy, the install is also finished and prompting me for post-install configuration. I then reboot and watch the messages to ensure that my firewall rules successfully load.

Now that I'm protected by a firewall, I'll go out on the Internet and download the latest sources and today's port collection. First, I'll install the cvsup-without-gui utility:

su
Password:
cd /usr/ports/net/cvsup-without-gui
make install clean

Pages: 1, 2, 3

Next Pagearrow




Recommended for You

Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

Sign up today to receive special discounts,
product alerts, and news from O'Reilly.
Privacy Policy >
View Sample Newsletter >
  • Youtube
  • http://www.youtube.com/OreillyMedia
  • Twitter
  • Subscribe
  • View All RSS Feeds >
O'Reilly Media

800-889-8969 or 707-827-7019
Monday-Friday 7:30am-5pm PT
©2011, O'Reilly Media, Inc.
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
  • About O'Reilly
  • Academic Solutions
  • Contacts
  • Customer Service
  • Careers
  • Press Room
  • Privacy Policy
  • Terms of Service
  • Writing for O'Reilly
  • Community
  • Authors
  • Forums
  • Membership
  • Newsletters
  • RSS Feeds
  • User Groups
  • More O'Reilly Sites
  • igniteshow.com
  • makerfaire.com
  • makezine.com
  • craftzine.com
  • labs.oreilly.com
  • Partner Sites
  • PayPal Developer Zone
  • O'Reilly Insights on Forbes.com