apu_ubuntu
This is an old revision of the document!
Table of Contents
PCEngines APU2 - Ubuntu 18.04 LTS server
Prepare a USB drive
- 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 path 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 boot.cat -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
Install Ubuntu 18.04
- Connect the USB drive to the APU board and boot from USB (F10 / F12).
- Select
Command-Line install
. - When asked to unmount mounted partitions choose
Yes
. - Install options as you like.
- Reboot after install.
Post installation steps
GRUB
- At the grub menu, press 'e'.
- Scroll to the line starting with
linux
and add:console=ttyS0,115200n8
- Then press 'ctrl-x' to boot.
- You can now log in with your user account.
- Modify grub:
sudo vi /etc/default/grub GRUB_CMDLINE_LINUX="console=ttyS0,115200n8" sudo update grub
- Reboot to test the update grub configuration.
Misc
- Multi-user target (not graphical):
sudo systemctl set-default multi-user.target
- 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
.
LEDs
- For APU1 see: https://github.com/trick77/apu-led-button
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 [Unit] Description=beep [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/true ExecStop=/usr/bin/beep -f500 -l50 -r3 -n -f1 -l50 -n -f400 [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable beeponshut
apu_ubuntu.1527889697.txt.gz · Last modified: 2018/06/01 21:48 by admin