Tag Archive for 'Howto’s'

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

Make Home, End and Delete keys work on FreeBSD

This tutorial will explain you how you can enable Home, End and Delete keys in ssh terminal of FreeBSD.

The default environment for FreeBSD is CSH. You will need to open .cshrc file located in your home directory.

Install PC-BSD 7 in VMware Fusion (howto)

This tutorial will guide you every step of the way through installing PC-BSD 7 in VMware Fusion (version 2.0).

Google Chrome on FreeBSD 7.0 (howto)

Chris Arnold has been able to get Google Chrome to run on FreeBSD 7.0 under Wine. He’s written up a step-by-step procedure how to get this done.

Well done, Chris, and thanks for dropping me a line.

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.

More…

Add a second hard drive to FreeBSD (howto)

There are two ways to install a new hard disk under FreeBSD system. You can use all command line utilities such as fdisk, bsdlabel and newfs to create partitions, label and format it. This method requires complete understanding of BSD partitions and other stuff.

more…

Setting up Squid on FreeBSD (howto)

Squid is a caching proxy and conserving badwidth application for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. With Squid, you can reduce the network/internet traffic by 30% or more from normal usage (without squid) and enhance respone time.

Step-by-step instructions on how to install Squid on FreeBSD can be found here.

Reset admin/root password in FreeBSD (howto)

  1. Turn the system off.
  2. Hit ESC when the OS boots up
  3. Choose to boot into Single User Mode (option 4)
  4. Select the default shell (/bin/sh)
  5. When the machine is booted up and you see the prompt, enter:
    • mount -u /
    • mount -a
  6. Type passwd to reset the password
  7. Enter the new password and confirm it
  8. Type reboot to reboot the machine (or press the shutdown button to reboot)

How to resize ZFS in FreeNAS

One of the frequently asked questions regarding ZFS. Is it possible to resize a RAIDZ, RAIDZ2 or MIRRORED ZPOOL?

The answer is a littlebit complicated…
If you want to change the ‘geometry’ of the ZPOOL (for example: change from a mirrored pool to a raidz, or simply add a disk to a raidz, or change from raidz to raidz2) then the answer is no.

But it is possible to change the disks of a pool with bigger ones and use the space.

Read further…