This is going to be my primary research machine for training.
Pre-installation
- Buy a USB stick, at least 8GB.
- Buy peripherals if you don’t have any
- Download Ubuntu
- Download Balena Etcher
Prepare USB
- Plug USB stick into MacBook (don’t forget you need an adapter) - side thought: are there USB-C sticks?
- Install Balena Etcher
- Open Balena Etcher
- Click “Flash from file” → select the Ubuntu 24.04 ISO you downloaded
- Click “Select target” → choose the USB stick
- Click “Flash!”
- Eject USB
Boot new machine
- Start the machine and make sure it is not DOA.
- Perform Windows setup (setup account, windows updates, etc)
- (Optional Step) Spend 6h trying to figure out why the GPU is not available
- (Optional Step) Figure out the reason is the GPU was not plugged in
- Run Task Manager and verify all components you bought are available and correct (especially the GPU!)
Prepare BIOS
- Power on workstation, immediately tap Delete key repeatedly to enter BIOS
- Find Secure Boot setting (location varies by motherboard, usually under “Boot” or “Security” tab)
- Set Secure Boot to “Disabled”
- Verify Boot mode is UEFI (not Legacy/CSM) and SATA mode is AHCI
- Save and exit
Boot from USB
- With workstation off, plug Ubuntu USB into rear USB port
- Power on, immediately tap Delete key repeatedly to enter BIOS
- Navigate to Boot menu / Boot Priority
- Move the USB drive to the top of boot order
- Save and exit (F10)
- Machine reboots, Ubuntu installer launches
Install Ubuntu
- At welcome screen: select language → English
- Choose “Install Ubuntu” (not “Try Ubuntu”)
- Keyboard layout: select your layout (English (US) or English (UK))
- Network: connect to your network if prompted (ethernet should auto-connect)
- Updates and software:
- Select “Normal installation”
- Check “Download updates while installing Ubuntu”
- Check “Install third-party software for graphics and Wi-Fi hardware”
Disk Partioning
For this is going to be a dedicated research machine; as tempting as it is to turn this to leave space for a gaming PC, I am going to skip that option (the Switch 2 keeps me busy enough).
- Select “Erase disk and install Ubuntu”
- Click “Install Now”
- Confirm changes when prompted
- The entire 2TB becomes one Linux partition
Complete installation
The rest of the installation covers timezone and whether I want to install other third party drivers, which I chose to accept so the NVIDIA drivers are all ready to go.
Ubuntu config
- Run system updates
sudo apt update
sudo apt upgrade -y- Install essential tools
sudo apt install -y \
curl wget git \
build-essential \
vim htop tmux \
software-properties-common \
apt-transport-https \
ca-certificates \
gnupg lsb-release- Reboot to apply kernel updates
sudo rebootInstall NVIDIA drivers
- Add ppa drivers repository
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update- Install GPU driver
sudo apt install -y nvidia-driver-595 # apt might suggest a different driver, use that instead- Reboot
sudo reboot- Validate installation
nvidia-smiIf all goes well you should see your GPU was correctly detected.
I didn’t.
A note on having used Macbooks for 15 years
Macbooks simply work. You can transfer your data from a previous device to your macbook and everything just works. I spent another couple of hours figuring out why Ubuntu couldn’t see my NVIDIA GPU. Eventually I figured out Secure Boot was on and I had to disable it.
Feeling like an imposter right now.
Back to business - set up remote server
I will use this computer as a research machine, mainly SSH’in from my Macbook. More… familiar.
sudo apt install -y openssh-server
sudo systemctl enable --now ssh
sudo systemctl status sshEverything green.
Now get the local IP address by running hostname -I. Finally, from the macbook, run ssh <username>@<workstatio-ip> - replace username with yours and add the IP you got on the previous step.