apu_ubuntu
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apu_ubuntu [2019/02/16 19:40] – [Install Ubuntu 18.04] admin | apu_ubuntu [2021/10/09 15:14] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====PC Engines APU2 - Ubuntu 18.04 LTS server ===== | =====PC Engines APU2 - Ubuntu 18.04 LTS server ===== | ||
+ | Install Ubuntu 18.04 LTS on a PC Engines APU2 board. | ||
+ | If you're using an **APU1** board, try the section [[# | ||
====Install Ubuntu 18.04==== | ====Install Ubuntu 18.04==== | ||
- | * dd Ubuntu server netinstall (mini.iso) to USB drive [[https:// | + | * dd Ubuntu server netinstall (mini.iso) to USB drive [[https:// |
- | * Connect the USB drive to the APU board and boot from USB (F10 / F12).\\ | + | * Connect the USB drive to the APU2 board and boot from USB, press F10 at boot. |
- | * Select '' | + | * Select '' |
+ | * Change kernel options to '' | ||
* When asked to unmount mounted partitions choose '' | * When asked to unmount mounted partitions choose '' | ||
* Install options as you like. | * Install options as you like. | ||
Line 19: | Line 22: | ||
GRUB_CMDLINE_LINUX=" | GRUB_CMDLINE_LINUX=" | ||
- | sudo update grub | + | sudo update-grub |
</ | </ | ||
* Reboot to test the update grub configuration. | * Reboot to test the update grub configuration. | ||
- | + | ===Networking=== | |
+ | * Edit ''/ | ||
+ | # This file describes the network interfaces available on your system | ||
+ | # For more information, | ||
+ | network: | ||
+ | version: 2 | ||
+ | renderer: networkd | ||
+ | ethernets: | ||
+ | enp1s0: | ||
+ | addresses: | ||
+ | - 10.10.10.2/ | ||
+ | gateway4: 10.10.10.1 | ||
+ | nameservers: | ||
+ | search: [mydomain, otherdomain] | ||
+ | addresses: [10.10.10.1, | ||
+ | </ | ||
+ | * Apply config:< | ||
====Misc==== | ====Misc==== | ||
+ | * Install and start openssh:< | ||
+ | * Enable firewall:< | ||
+ | ufw enable</ | ||
* Multi-user target (not graphical):< | * Multi-user target (not graphical):< | ||
* Configure timezone:< | * Configure timezone:< | ||
* Configure locale:< | * Configure locale:< | ||
+ | |||
+ | ===Watchdog=== | ||
+ | It seems the sp5100_tco module is blacklisted by default in ''/ | ||
+ | |||
+ | * Blacklist conflicting modules:< | ||
+ | blacklist i2c_piix4 | ||
+ | blacklist ccp | ||
+ | EOF</ | ||
+ | * Update the initramfs:< | ||
+ | * Install watchdog:< | ||
+ | * Add module to config:< | ||
+ | # Load module before starting watchdog | ||
+ | watchdog_module=" | ||
+ | </ | ||
+ | * Edit ''/ | ||
+ | watchdog-device = / | ||
+ | </ | ||
+ | * Reboot to test:< | ||
+ | * Kill watchdog, it should restart your system after some time:< | ||
+ | # if wd_keepalive is started, also kill that | ||
+ | pkill -9 wd_keepalive</ | ||
+ | |||
===PC speaker=== | ===PC speaker=== | ||
* Install beep:< | * Install beep:< | ||
Line 59: | Line 102: | ||
</ | </ | ||
- | ====Prepare a USB drive (optional)==== | + | =====Prepare a USB drive (optional)===== |
+ | * Install required packages:< | ||
* [[https:// | * [[https:// | ||
* Extract downloaded ISO and copy the files to a temporary location:< | * Extract downloaded ISO and copy the files to a temporary location:< | ||
Line 67: | Line 111: | ||
tar -cvf - iso | (cd /var/tmp/ && tar -xf - ) | tar -cvf - iso | (cd /var/tmp/ && tar -xf - ) | ||
cd / | cd / | ||
- | * Modify '' | + | * Modify '' |
console 0 | console 0 | ||
path | path | ||
Line 74: | Line 118: | ||
prompt 0 | prompt 0 | ||
timeout 0</ | timeout 0</ | ||
- | * Modify | + | * Modify |
- | append | + | #From: |
- | * Create a new ISO file (this was done from Fedora):< | + | append |
+ | |||
+ | #To: | ||
+ | append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false vga=off initrd=initrd.gz console=ttyS0, | ||
+ | |||
+ | </ | ||
+ | * Create a new ISO file:< | ||
+ | #Fedora host: | ||
+ | xorriso -as mkisofs -R -J -V " | ||
-o ~/file.iso -b isolinux.bin -c boot.cat -no-emul-boot \ | -o ~/file.iso -b isolinux.bin -c boot.cat -no-emul-boot \ | ||
-boot-load-size 4 -boot-info-table \ | -boot-load-size 4 -boot-info-table \ | ||
- | -isohybrid-mbr / | + | -isohybrid-mbr / |
- | * Write the new image to the USB drive:< | + | |
+ | #Ubuntu host: | ||
+ | xorriso -as mkisofs -R -J -V " | ||
+ | -o ~/file.iso -b isolinux.bin -c boot.cat -no-emul-boot \ | ||
+ | -boot-load-size 4 -boot-info-table \ | ||
+ | -isohybrid-mbr / | ||
+ | |||
+ | |||
+ | |||
+ | </ | ||
+ | * Write the new image to the USB drive:< | ||
{{tag> | {{tag> |
apu_ubuntu.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1