Ben Stienstra

Linux, Unix, network, radio and more...

User Tools

Site Tools


PC Engines APU2 - Ubuntu 18.04 LTS server

Install Ubuntu 18.04

  • dd Ubuntu server netinstall (mini.iso) to USB drive
  • Connect the USB drive to the APU board and boot from USB (F10 / F12).
  • Select Install, then TAB.
  • Change kernel options to linux initrd=initrd.gz console=ttyS0,115200
  • When asked to unmount mounted partitions choose Yes.
  • Install options as you like.
  • Reboot after install.

Post installation steps


  • At the grub menu, press 'e'.
  • Scroll to the line starting with linux and add:
  • Then press 'ctrl-x' to boot.
  • You can now log in with your user account.
  • Modify grub:
    sudo vi /etc/default/grub
    sudo update-grub
  • Reboot to test the update grub configuration.


  • Multi-user target (not graphical):
    sudo systemctl set-default
  • Configure timezone:
    dpkg-reconfigure tzdata
  • Configure locale:
    dpkg-reconfigure locales

PC speaker

  • Install beep:
    apt install beep
  • Comment or remove pcspkr from /etc/modprobe.d/blacklist.conf.


Power / reset button, J2

  • ACPId is already installed and should be working.
    • Short press: shutdown
    • Long press: hard power off
    • When powered off, short press, will power on.
  • You can add a beep, just before shutdown.
    cat >> /etc/systemd/system/beeponshut.service <<EOF
    ExecStop=/usr/bin/beep -f500 -l50 -r3 -n -f1 -l50 -n -f400
    systemctl daemon-reload
    systemctl enable beeponshut

Prepare a USB drive (optional)

  • Extract downloaded ISO and copy the files to a temporary location:
    sudo mkdir /mnt/iso
    sudo mount -o loop ~/Downloads/mini.iso /mnt/iso
    cd /mnt
    tar -cvf - iso | (cd /var/tmp/ && tar -xf - )
    cd /var/tmp/iso
  • Modify /var/tmp/iso/isolinux.cfg
    serial 0 115200
    console 0
    include menu.cfg
    default vesamenu.c32
    prompt 0
    timeout 0
  • Modify Command-line install: /var/tmp/iso/txt.cfg
    append file=/cdrom/preseed/ubuntu-server.seed vga=off initrd=/install/initrd.gz console=ttyS0,115200n8 ---
  • Create a new ISO file (this was done from Fedora):
    xorriso -as mkisofs -R -J -V "Ubuntu-Server 18.04 LTS amd64" \
    -o ~/file.iso -b isolinux.bin -c -no-emul-boot \
    -boot-load-size 4 -boot-info-table \
    -isohybrid-mbr /usr/share/syslinux/isohdpfx.bin .
  • Write the new image to the USB drive:
    sudo dd if=~/file.iso of=/dev/sdX bs=4k conv=fsync status=progress
apu_ubuntu.txt · Last modified: 2019/02/16 21:23 by admin