Support #563
Updated by Daniel Curtis almost 10 years ago
I recently acquired an APU1D4 online and decided to try out OPNsense on it. This is a simple guide for installing OPNsense15.1.5 on an PC Engines APU1D4 using a USB drive, over a serial connection from an Ubuntu-based system. h1. Prepare the media This phase is done on the Ubuntu-based workstation. * Download the serial amd64 "OPNsense":http://sourceforge.net/projects/opnsense/files/15.1.5/OPNsense-15.1.5-memstick-serial-amd64.img.bz2/download image and extract it: <pre> cd ~/Downloads wget http://downloads.sourceforge.net/project/opnsense/15.1.5/OPNsense-15.1.5-memstick-serial-amd64.img.bz2 tar xjf OPNsense-15.1.5-memstick-serial-amd64.img.bz2 </pre> * Write the OPNsense image to a spare USB drive: <pre> sudo dd if=OPNsense-15.1.5-memstick-serial-amd64.img sudo sync </pre> * Install screen <pre> sudo apt-get install screen </pre> * Now connect a NULL modem serial cable from COM1 on the Ubuntu-based workstation to COM1 on the APU1D4. * Unplug the USB drive from the Ubuntu-based workstation and plug it into APU1D4. * Open a terminal and run screen on COM1: <pre> sudo screen /dev/ttyS0 115200 </pre> h2. Boot The APU1D4 * Plug the power to the APU1D4 * Quickly press *[F10]* #* Select *1. USB MSC Drive* * Press *2 Boot to Single-User mode* h3. Securely Erase Drive The APU1D4 I bought came with an 80GB SSD. Just to be on the safe side I zero the hard drives of all new devices entering into my production environment. * Erase SSD: <pre> dd if=/dev/zero of=/dev/ada0 </pre> *WARNING*: Make sure that ada0 is the correct drive. Drive information in dmesg: <pre> dmesg | grep 'ada' </pre> * Reboot the APU1D4 <pre> reboot </pre> h2. Install OPNsense OPN * Quickly press *[F10]* #* Select *1. USB MSC Drive* * Then select *Accept Settings* * And select *Quick/Easy Install* then *OK* * When the installation finishes select *Reboot* * Remove the USB drive