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 [2018/06/01 21:35] adminapu_ubuntu [2019/02/24 08:51] admin
Line 1: Line 1:
-=====PCEngines 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 34: Line 15:
   * Scroll to the line starting with ''linux'' and add:<code>console=ttyS0,115200n8</code>   * Scroll to the line starting with ''linux'' and add:<code>console=ttyS0,115200n8</code>
   * Then press 'ctrl-x' to boot.   * Then press 'ctrl-x' to boot.
-  * You can now log in with your user account.\\ +  * You can now log in with your user account.
-{{:screenshot_from_2018-04-09_22-15-54.png?nolink|}}+
   * Modify grub:<code>   * Modify grub:<code>
 sudo vi /etc/default/grub sudo vi /etc/default/grub
 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.
-===Stop / disable unwanted services=== + 
-  * Disable iscsid ([[https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/1630946|there is an open bug]]):<code>sudo systemctl disable iscsid.service</code> +
-  * If you're not using software raid, disable the monitor:<code>update-rc.d mdadm disable</code> +
-  * Remove snapd:<code>sudo apt purge snapd</code>+
 ====Misc==== ====Misc====
   * Multi-user target (not graphical):<code>sudo systemctl set-default multi-user.target</code>   * Multi-user target (not graphical):<code>sudo systemctl set-default multi-user.target</code>
Line 81: 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