Last active
July 8, 2017 20:35
-
-
Save iiLaurens/646af46115b35c4eaaaa3a97f135087b to your computer and use it in GitHub Desktop.
Spinning and installing Ubuntu flavour on Intel Atom device
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
# create mountpoints for the EFI partitions of the harddisk and USB | |
# Note that your USB device might have a different reference (but generally something like /dev/sdX1) | |
mkdir /mnt/bootusb | |
mkdir /mnt/bootdisk | |
mount /dev/sda1 /mnt/bootusb | |
mount /dev/mmcblk1p1 /mnt/bootdisk | |
# Remove the existing bootloader from the hard drive | |
rm -r /mnt/bootdisk | |
# Replace it with the rEFInd bootloader from the USB | |
cp -r /mnt/bootusb/EFI /mnt/bootdisk | |
# Show the EFI system where to look for the new bootloader | |
efibootmgr -c -l \\EFI\\boot\\bootx64.efi -L rEFInd -d /dev/mmcblk1 -b 1234 | |
efibootmgr -o 1234 | |
# Now repair some rEFInd settings so that our system immediately boots the first OS it finds (Ubuntu). No graphics for more speed. | |
sed -i 's/^scanfor manual$/scanfor internal/' /mnt/bootdisk/EFI/boot/refind.conf | |
sed -i 's/^timeout 20$/timeout -1/' /mnt/bootdisk/EFI/boot/refind.conf | |
sed -i 's/^#textonly$/textonly/' /mnt/bootdisk/EFI/boot/refind.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -i | |
cd /home/laurens/Downloads | |
# Set the right execution permissions | |
chmod u+x isorespin.sh linuxium-install-UCM-files.sh linuxium-install-broadcom-drivers.sh wrapper-linuxium-install-UCM-files.sh wrapper-linuxium-install-broadcom-drivers.sh | |
# The following command might not work if not all dependencies are installed. Just run it to see which one you are missing (if any). | |
./isorespin.sh -i xubuntu-17.04-desktop-amd64.iso -l rtl8723bs_4.12.0_amd64.deb -f linuxium-install-UCM-files.sh -f wrapper-linuxium-install-UCM-files.sh -f linuxium-install-broadcom-drivers.sh -f wrapper-linuxium-install-broadcom-drivers.sh -c wrapper-linuxium-install-UCM-files.sh -c wrapper-linuxium-install-broadcom-drivers.sh -s 256MB -k v4.11 | |
# Write the iso to a USB stick (for me this is device /dev/sda) | |
dd if=linuxium-persistence-v4.11-xubuntu-17.04-desktop-amd64.iso of=/dev/sda bs=4M status=progress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment