Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


apu_ubuntu

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
apu_ubuntu [2019/02/01 07:37] adminapu_ubuntu [2019/02/24 08:58] – [PC Engines APU2 - Ubuntu 18.04 LTS server] admin
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 'Prepare a USB drive (optional)'.
  
-====Prepare a USB drive==== 
-  * [[https://www.ubuntu.com/download/alternative-downloads|Download the latest Ubuntu server net install mini.iso for amd64 architecture.]] 
-  * Extract downloaded ISO and copy the files to a temporary location:<code> 
-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</code> 
-  * Modify ''/var/tmp/iso/isolinux.cfg''<code>serial 0 115200 
-console 0 
-path 
-include menu.cfg 
-default vesamenu.c32 
-prompt 0 
-timeout 0</code> 
-  * Modify ''Command-line install'': ''/var/tmp/iso/txt.cfg''<code> 
-append file=/cdrom/preseed/ubuntu-server.seed vga=off initrd=/install/initrd.gz console=ttyS0,115200n8 ---</code> 
-  * Create a new ISO file (this was done from Fedora):<code>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 .</code> 
-  * Write the new image to the USB drive:<code>sudo dd if=~/file.iso of=/dev/sdX bs=4k conv=fsync status=progress</code> 
 ====Install Ubuntu 18.04==== ====Install Ubuntu 18.04====
-  * Connect the USB drive to the APU board and boot from USB (F10 / F12).\\ +  * dd Ubuntu server netinstall (mini.iso) to USB drive [[https://www.ubuntu.com/download/alternative-downloads]] 
-  * Select ''Command-Line install''.+  * Connect the USB drive to the APU2 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''.   * When asked to unmount mounted partitions choose ''Yes''.
   * Install options as you like.   * Install options as you like.
Line 39: Line 20:
 GRUB_CMDLINE_LINUX="console=ttyS0,115200n8" GRUB_CMDLINE_LINUX="console=ttyS0,115200n8"
  
-sudo update grub+sudo update-grub
 </code> </code>
   * Reboot to test the update grub configuration.   * Reboot to test the update grub configuration.
Line 78: Line 59:
 systemctl enable beeponshut systemctl enable beeponshut
 </code> </code>
 +
 +====Prepare a USB drive (optional)====
 +  * [[https://www.ubuntu.com/download/alternative-downloads|Download the latest Ubuntu server net install mini.iso for amd64 architecture.]]
 +  * Extract downloaded ISO and copy the files to a temporary location:<code>
 +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</code>
 +  * Modify ''/var/tmp/iso/isolinux.cfg''<code>serial 0 115200
 +console 0
 +path
 +include menu.cfg
 +default vesamenu.c32
 +prompt 0
 +timeout 0</code>
 +  * Modify ''Command-line install'': ''/var/tmp/iso/txt.cfg''<code>
 +append file=/cdrom/preseed/ubuntu-server.seed vga=off initrd=/install/initrd.gz console=ttyS0,115200n8 ---</code>
 +  * Create a new ISO file (this was done from Fedora):<code>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 .</code>
 +  * Write the new image to the USB drive:<code>sudo dd if=~/file.iso of=/dev/sdX bs=4k conv=fsync status=progress</code>
  
 {{tag>[hardware apu apu1 apu2 Ubuntu linux ]}} {{tag>[hardware apu apu1 apu2 Ubuntu linux ]}}
apu_ubuntu.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1