The differences in installing the G7 in Linux are really tiny
In Linux terminal (Mint 19.3 Cinnamon, but I think it’s irrelevant)
no step 1 needed
from step 2 to 9 as above
step 10 no need to install drivers
from 11 to 34 as above
I stopped here, since I did not install Magisk
Could be a good idea to check, from time to time to enter in the terminal
fastboot devices
to check that the phone is connected and the USB cable is the proper one