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

Listen 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




Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com