Create a bootable USB stick on macOS
1. Requirements
You will need:
A 4GB or larger USB stick/flash drive
An Apple computer or laptop running macOS
An Ubuntu ISO file. See Get Ubuntu for download links. You need version 24.04
2. Prepare the USB stick
To ensure maximum compatibility with Apple hardware, we’re going to first blank and reformat the USB stick using Apple’s ‘Disk Utility’. But this step can be skipped if you intend to use the USB stick with only generic PC hardware.
Launch Disk Utility from Applications>Utilities or Spotlight search
Insert your USB stick and observe the new device added to Disk Utility
Select the USB stick device (you may need to enable the option View>Show All Devices) and select
Erase
from the tool bar (or right-click menu)Set the format to
MS-DOS (FAT)
and the scheme toGUID Partition Map
Check you’ve chosen the correct device and click
Erase
3. Install and run Etcher
To write the ISO file to the USB stick, we’re going to use a free and open source application called Etcher. After downloading this and clicking to mount the package, Etcher can either be run in-place or dragged into your Applications folder.
By default, recent versions of macOS block the running of applications from unidentified developers. To side-step this issue, enable ‘App Store and identified developers’ in the ‘Security & Privacy’ pane of System Preferences. If you are still warned against running the application, click ‘Open Anyway’ in the same pane.
4. Etcher configuration
Etcher will configure and write to your USB device in three stages, each of which needs to be selected in turn:
Select image will open a file requester from which should navigate to and select the ISO file downloaded previously. By default, the ISO file will be in your Downloads folder.
Select drive, replaced by the name of your USB device if one is already attached, lets you select your target device. You will be warned if the storage space is too small for your selected ISO.
Flash! will activate when both the image and the drive have been selected. As with Disk Utility, Etcher needs low-level access to your storage hardware and will ask for your password after selection.
5. Write to device
After entering your password, Etcher will start writing the ISO file to your USB device.
The Flash stage of the process will show progress, writing speed and an estimated duration until completion. This will be followed by a validation stage that will ensure the contents of the USB device are identical to the source image.
When everything has finished, Etcher will declare the process a success.
Congratulations! You now have Ubuntu on a USB stick, bootable and ready to go.
Warning: After the write process has completed, macOS may inform you that ‘The disk you inserted was not readable by this computer’. Don’t select Initialise. Instead, select Eject and remove the USB device.
Install Ubuntu Server
! Your computer must be connected to the internet so the installer can work properly.
Boot from install media
To trigger the installation process, perform the following:
Insert the stick into your target PC or laptop and reboot the device.
After a few moments, you should see messages like those shown below on the screen…
Most computers will automatically boot from USB or DVD, though in some cases this is disabled to improve boot times. If you don’t see the boot message and the “Welcome” screen which should appear after it, you will need to set your computer to boot from the install media.
There should be an on-screen message when the computer starts telling you what key to press for settings or a boot menu. Depending on the manufacturer, this could be Escape
, F2
,F10
or F12
. Simply restart your computer and hold down this key until the boot menu appears, then select the drive with the Ubuntu install media.
2. Choose your language
After the boot messages appear, a ‘Language’ menu will be displayed.
As the message suggests, use the Up, Down and Enter keys to navigate through the menu and select the language you wish to use.
3. Choose the correct keyboard layout
Before you need to type anything in, the installer will next display a menu asking you to select your keyboard layout and, if applicable, the variant.
Just go with the default - when Ubuntu Server has been installed you can test and change your preferences more easily if necessary. Move down with the arrows and click Done.
4. Choose your install
The Ubuntu Server option will be automatically select just select “Done” button and click enter.
5. Network Configuration
The installer will automatically detect and try to configure any network connections via DHCP.
This is usually automatic, and you will not have to enter anything on this screen, it is for information only. Just click enter to continue.
6. Proxy configuration
If you need to set a proxy connection you can set it here, if you don’t you can skip it by selecting “Done”
7. Ubuntu archive mirror configuration
You can skip this step just click on the “Done” button.
8. Configure storage
The next step is to configure storage. The recommended install is to have an entire disk or partition set aside for running Ubuntu. Here you need to select “Use An Entire Disk”. If you have SSD and HDD make sure that, from the drop down menu under the “Use an entire disk” option, the SSD is selected.
9. Storage configuration
The installer will calculate what partitions to create and present this information… just select “Done”.
10. Confirm partitions
Before the installer makes any changes, it will show this final confirmation step.
Click “Continue”.
11. Profile configuration
The software is now being installed on the disk, but there is some more information the installer needs. Ubuntu Server needs to have at least one known user for the system, and a hostname. The user also needs a password. For our purpose you need to type “racefacer” in all 5 text fields, as shown in the picture below. If you decide to create custom username and password, be sure to type them down and provide them to the RaceFacer team.
12. Upgrade to Ubuntu Pro
For our purpose we don’t need Ubuntu Pro. The “Skip for now” option will be automatically marked, just click “Continue”.
13. SSH configuration
Very important. The “Install OpenSSH server option must be marked with “X”, as shown on the picture below. With the arrows keys, move down to the option, and click “Enter”. Make sure it is marked and then go to the “Done” button and select it.
14. Featured server snaps
We don’t need anything from this page. Just scroll down with the arrow keys and select “Done”.
Selecting “Done” will start the installation and that will take from 3 to 5 minutes.
15. Installation Complete
When the installation is complete you will see this screen. You need to select the “Reboot Now” option.
16. Rebooting
Rebooting will give you an error message, but don’t worry it is normal. Just take out the flash drive from your PC and click enter. Then you will see a screen looking like this
When that is over you will see this screen.
Here you need to enter racefacer for username and racefacer for password. Be careful when entering the password, because you will not be able to see what you are typing in the console. Just type the password and click enter. If you used custom username and password on step 12 use them. If you are successful, you will see this screen.
Take a picture of this screen and send it to the RaceFacer team. Good thing to do, is creating a static IP for the server in your router and create port forwarding for better support.