FreeBSD

  • Adding a Second Drive

    This article documents how to add a second drive to your FreeBSD system and format it as UFS.  If you have a system that allows hot-plugging (like the Dell line of servers) then this can be done live without shutting down the server.  If not, then you will have to shut down the server only to insert the drive.  In this article I am going to reference SCSI drive devices (da2) if you have SATA devices, then please not that the device ID will be different (ada2).  

     

  • Port or Package Installation Date

    There are a number of times that I need to find out when a port or package was last upgraded or installed.  This comes in very handy every time I need to upgrade all my ports and I can't remember how far back I need to check in /usr/ports/UPDATING.

     

  • Stop PHP files from executing.

    If you are a maintainer of a websiter or CMS, don't always trust the built in security.  If the user can upload images or stories to the web site then a hacker may be able to upload script or code as well.  One easy way to mitigate this is to make sure that you do not allow scripts to execute by turning off PHP. 

     

  • What SSL protocols is a site using.

    Wondering what SSL encryption and protocols a site is using.  Cipherscan is free and work well.  You can find it here: Cipherscan

     

  • ZFS Bare Metal Restore

    This article documents the procedure to do a full bare metal restore of a FreeBSD ZFS system that has been backed up with ZFS send.