[Android General] Jackspsychosis:
Instructions for replacing Windows 10 with Ubuntu-Budgie and installing Heimdall/ Heimdall-frontend on Ubuntu-Budgie 21.10.

PREREQUISITES

laptop or PC

A 8gb flash drive

A 32gb flash drive

Etcher

A copy of Ubuntu-budgie 21.10 desktop

Heimdall-master.zip

DOWNLOADS:

ubuntu-budgie-21.10-desktop-amd64.iso

https://ubuntubudgie.org/downloads/

Heimdall-master.zip

https://github.com/Benjamin-Dobell/Heimdall

Etcher

https://www.balena.io/etcher/

INSTALLATION (Ubuntu-budgie)

We will be repalcing Windows 10 with Ubuntu so make a installation media (on you're 32 GB USB flash drive ) incase you want to reinstall Windows and backup any files you don't want to lose. See the following link for instructions:

https://support.microsoft.com/en-us/windows/create-installation-media-for-windows-99a58364-8c02-206f-aa6f-40c3b507420d

Next download and install Etcher:

https://www.balena.io/etcher/

download ubuntu-budgie-21.10-desktop-amd64.iso from:

https://ubuntubudgie.org/downloads/

Now we are going to make a bootable copy of Ubuntu-budgie.

Plug in your 8GB flash drive and open Etcher. Select the ubuntu-budgie-21.10-desktop-amd64.iso. Select your flash drive and hit flash.

(If you are using an older pc and it's giving you problems with your flash drive then open command prompt as administrator and type the following code to format the flash drive:

# diskpart
# list disk
# select disk 1
# clean
# create partition primary
# select partition 1
# format fs=fat32 quick
# exit

Once you have you bootable flash drive made, say your goodbyes to and Windows and shut her down.

IF YOU HAVE THE BIOS SET-UP PASSWORD or IT UNLOCKED then follow these instructions:

INSTRUCTIONS (Unlocked BIOS)

Plug in your flash drive (the one with the bootable copy of Ubuntu on it).

Power up your pc and start hitting the F12 key (your computer might be different so google how to get to the boot menu) this should take you to the UEFI boot menu.

Choose the "boot from usb" option.

(If there is a "*" next to that option then you will have to enter the BIOS password aka "Administrators password" . If do not have it, don"t fret because there is a way to bypass it.)

Your pc will reboot into the Ubuntu menu and you have a couple of options.

Choose the first one " Ubuntu".

A screen will come up asking if you want to try ubuntu or install it. Choose "try it".

MAKE SURE THAT:

Your WIFI, KEYBOARD and MOUSE is working.

When your ready choose "install Ubuntu".

You can replace Windows or run it along side of windows.(SO READ YOUR OPTIONS CAREFULLY).

Choose the option to replace Windows and repartition your hard drive for Ubuntu.

(You will recieve a warning stating that your hard drive will be repartitioned.)

Hit ok

You will have the option to install the full version or a minimal version.

I have installed both and like the minimal version better but I suggest installing the full version. (You can uninstall any app you chose.)

Once its done installing and updating open Tilix and enter the following:

$ sudo apt-get update && sudo apt-get upgrade -y
$ sudo apt-get install git wget unzip

IF YOU DO NOT HAVE THE BIOS/ADMINISTRATORS PASSWORD then follow these instructions:

(The first time that I installed Ubuntu all I had to do was hit "Esc" and I was taken straight to the boot option but I ended up reinstalling it after figuring out Binwalk and Heimdall. The reinstallation wasn't as easy and is as follows:)

INSTRUCTIONS (Locked BIOS)

Plug in your flash drive (the one with the bootable copy of Ubuntu on it).

Power up your pc and as soon as the logo hit "Esc" once.

When the GNU GRUB menu pops up hit "E" for edit.

Then the setparams 'Ubuntu' will come on.

Go down to the twelth line(second to last line and it starts with the word "Linux") and delete '"quiet splash" from the code. Just backspace those two words. (If your don't then you pc will not boot Ubuntu, nothing but errors.)

Now hit Ctrl-c or F12 to get to the GRUB command line. We need to be able to boot off the usb so we going to manually do it therefore bypassing the Admin Password. Type the following ls

grub> ls

(This will show your partitions, we need to find the usb. Mine was (hd0,gpt1) So check that on first.) type:

grub> ls (hd0,gpt1)

(You will get the filesystem type and label. Lets assume that its the usb with bootable ubuntu on it. Now we need to set it as root.)

set root=(hd0,gpt1)

(Now we are going to chainload off of the GRUB bootloader.) Type: "chainloader /" and hit "Tab" that will list possible directories.

grub> chainloader /

(EFI is your safest bet) Enter the follow and press "Tab" :

grub> chainloader /efi/

(It should have added /boot to the path) type / and hit "Tab" and it show some files.

grub> chainloader /efi /boot /[/B][/I][/SIZE][/FONT]

Look for "grubx64.efi". and type the following hitting "enter" instead of "tab".

grub> chainloader /efi /boot / grubx64.efi

grub> boot

Your pc will reboot into the Ubuntu menu and you have a couple of options.

Choose the first one " Ubuntu".

A screen will come up asking if you want to try ubuntu or install it. Choose "try it".

MAKE SURE THAT:

Your WIFI, KEYBOARD and MOUSE is working.

When your ready choose to install Ubuntu.

You can replace Windows or run it along side of windows.(SO READ YOUR OPTIONS CAREFULLY).

Choose the option to replace Windows and repartition your hard drive for Ubuntu.

(You will recieve a warning stating that your hard drive will be repartitioned.)

Hit ok

You will have the option to install the full version or a minimal version.

I have installed both and like the minimal version better but I suggest installing the full version. (You can uninstall any app you chose.)

Once its done installing and updating open Tilix and enter the following:

[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ sudo apt-get update && sudo apt-get upgrade -y[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ sudo apt-get install git wget unzip[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]

HEIMDALL INSTRUCTIONS

Download the Heimdall-master.zip from Github.com and open you're file manager and move Heimdall-master.zip to you're home directory (Just like you do when using Explorer). Now open tTilix and type:

[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ unzip Heimdall-master.zip[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ cd Heimdall-master[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ sudo apt-get install libusb-1.0-0-dev[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ sudo apt-get install snap[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ sudo snap install cmake --classic[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ mkdir build && cd build[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ cmake -DDISABLE_FRONTEND=ON -DCMAKE_BUILD_TYPE=Release ..[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ make[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ sudo apt-get install heimdall-flash-frontend[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]$ heimdall-frontend[/B][/I][/SIZE][/FONT][/B][/I][/SIZE][/FONT]
[FONT=georgia][SIZE=5][I][B][FONT=georgia][SIZE=5][I][B]

("sudo apt-get install heimdall-flash-frontend" should install everything needed to run heimdall-frontend and "heimdall" is the start command)

Now enjoy Heimdall!!

Post questions in the comments or you can Dm me. Thanks.