Speed up installing from ports (howto)

There is a port under ports-mgmt called fastest_sites. This the MASTER_SITE definitions depending on the round-trip time for the tcp connections. The results are sorted by fastest response time and in a format suitable for Makefile.

# cd /usr/ports/ports-mgmt/fastest_sites

# make install

Now let’s generate the sorted list of master sites:

# fastest_sites > /usr/local/etc/ports_sites.conf &

This step may take some time as quite a number of sites have to be checked. In the meantime you can add the following line to /etc/make.conf:

.include "/usr/local/etc/ports_sites.conf"

From: arnolds.se. Originally published by the writer of this python script on semicomplete.com.

Encrypting your laptop with ELI and ZFS

Some time ago, I’ve given my laptop yet another FreeBSD reinstall – mostly beause I wanted to encrypt its contents (hey, you never know!). It turns out the best way to do this is to use GEOM_ELI. Of course, I can’t quite live without ZFS, so the idea was that I have a minimal /boot paritition and everything else lives on ZFS, which is encrypted using ELI.

Step-by-step instructions on rink.nu (14/11/2008)

Setting up a LAMP Server on FreeBSD

There are already many useful guides around showing how to set up and tune a FAMP server. Unlike some this guide gives also a bit more background details and explanation.

Setting up a LAMP server is a common task for systems administrators, and FreeBSD is one of the most reliable and stable operating systems available. You can swap out the L in LAMP with F for FreeBSD to build a fast and reliable Web server.

In this article I assume FreeBSD is already installed. If not, make sure you download the latest stable production version of FreeBSD and run the installer. I recommend choosing the MINIMUM option at the installer screen to quickly install only the most basic and necessary things.

Continued on cbhacker.com

Setting up MLDonkey on FreeBSD (howto)

Linux/BSD: sharing experiences is a blog with useful howtos for FreeBSD and Linux. The latest howto is on setting up MLDonkey on an old, headless, PC.

MLDonkey is an open source, free software multi-network peer-to-peer application. Currently the following protocols are supported: eDonkey, Overnet, Bittorrent, Gnutella, Gnutella2, Fasttrack, FileTP and Kademlia.

I wanted to put my 266 Mhz Celeron to good use so I’ve decided to install MLDonkey without X11 support leaving only the core with both telnet and web interfaces.

Bellow are the steps need to install MLDonkey on FreeBSD 7.0:

Thanks for letting me know about this post, Ricardo!

gmirror – recovering data from a failed hard disk

Having a working RAID and data mirroring set up on your server/PC is great for when your one of your hard disks dies, but what to do when this really happens to you? How do you get that data back?

This article shows what to do to retrieve your data back on a FreeBSD system that uses gmirror

I like RAID. On my development server, I use both hardware and software RAID. For hardware RAID on FreeBSD, I like 3Ware. For software RAID, I tend to use gmirror, because I don’t need more than RAID-1.

Some time ago I added two 120GB HDD to this system. One was SATA, one was PATA. They were joined together via gmirror. Tonight I received some errors that one of the drives was failing. I replaced the drive, and recovered the mirror. I’ll show you what I did, mostly so I know what to do the next time it happens, but also so you can see what to do as well.