I turned my old macbook into a linux server because why not šŸŽšŸ§

Alrighty, so just like those stupid recipe sites, Iā€™ll first write up 5 pages telling you a long unnecessary story about my first experience with Linux. Iā€™ll then explain how what youā€™re referring to as ā€œLinuxā€, is in fact, GNU/Linux, or as Iā€™ve recently taken to calling it, GNU plus Linux.

ā€¦ nah just kidding. Literally everyone hates that.

But for real, I had an old 2013 MacBook Pro thatā€™s been gathering dust so I figured Iā€™d throw Linux on there. To spice things up just a tad, I donā€™t have any ethernet in the house (itā€™s a rental). I would need to set the server up to have a static IP via wifi.

It was super easy and def didnā€™t frustrate me at all or take me 2 days to finish.

Gonna keep this as short as possible and just link out to other guides for the most part.

Installation

  1. Download the Ubuntu Server 24.04.1 LTS (or whatever version) iso file.

  2. Follow these steps to create a bootable USB

    1. Flash it to a USB drive (should be at least 5GB) using balenaEtcher

    2. Boot Macbook to USB

  3. Follow these steps to install

    1. One thing to note if you are like me with just wifi, you may not see your network connection configuration during the install. I first tried to install via offline mode. This proved difficult post installation when I needed my wireless drivers. You can probably get this to work by installing drivers on another system, putting them on a drive, then installing on your serverā€¦ but I figured it would be quicker to reinstall šŸ¤·

    2. I highly recommend just hardwiring your laptop during installation. For me, that was plugging directly into my ISP-issued modem/router/switch thing (technical term) using an ethernet to USB-A dongle.

Post-Installation

  1. Alrighty so right after install, do the thing and update all packages: sudo apt update && sudo apt upgrade

  2. Okie doke so now the fun part. After (and during) install, my OS didnā€™t recognize my wireless card. This thread was exactly what I needed šŸ‘Œ

  3. Next step was configuring a wifi connection with static IP. I found this guide, which got me mostly there, but itā€™s for dynamic IP with DHCP. I got that working, then asked my good friend Claude to help me update my config for a static IP. Hereā€™s what my Netplan configuration file ended up looking like (I changed the IPs and removed specific names so pls donā€™t hack me šŸ„ŗšŸ‘‰šŸ‘ˆ)

network:
  version: 2
  ethernets:
    <ethernet interface name>:
      dhcp4: true
  wifis:
    <wireless interface name>:
      dhcp4: false
      addresses:
        - 192.168.0.21/24
      routes:
        - to: default
          via: 192.168.0.1
      nameservers:
        addresses: [192.168.0.1]
      access-points:
        "<SSID>":
          password: "<password>"
  1. After that, just restart the NetworkManager service or reboot and youā€™re all set!

Congrats you did it! šŸ‘

0
Subscribe to my newsletter

Read articles from Michael Raymond (mray) directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Michael Raymond (mray)
Michael Raymond (mray)

Yo! I'm a Software Engineer with a lil blog.