Once you've downloaded the .iso file for a Linux installer, you need to get it onto installation media. This video covers using the Terminal to create a USB installer
- The process of making a USB installer for Linux on the Mac is a little bit technical. There are two primary steps. Converting the image into a different format, and then writing that image to the disk. Each of these can take a few minutes, so keep that in mind. Here in the terminal, I'm inside the downloads folder and I'll use the hdiutil tool to convert the image into a format called U-D-R-W. And then, save that as ubuntu.dmg. Alright, hdiutil, convert, format, UDRW.
And then, start typing to auto-complete my ubuntu server installer. Then, dash O for output and we'll write ubuntu.dmg. Now, I've got a new image here in my folder. I need to get that image onto the USB disk. I can't just copy it. I need to use a tool called D-D to create the installer. But first, I need to know the name of the USB drive.
I'll open up disk utility here and I'll click over to the USB disk that I've plugged in, making sure to click on the device, not the volume. And down here on the bottom right, I can see this is named disk one. It's important to get the right name, otherwise you could accidentally overwrite the wrong disk later on. In order to write information to this device, I need to unmount, but not eject, the volume on that disk. Ejecting it will get rid of it and disconnect it from the system, and I don't want that.
Now, I'll go back to the terminal and use the D-D command to write our newly converted image to the disk. But first, I'll clear the screen. Alright, sudo dd if=ubuntu.dmg that image we just created. And of=/dev/rdisk1 bs=1m. I-F stands for input file and O-F stands for output file. This is where it's important to get the right disk.
So, double check if you're not sure and make sure you notice this R in front of the word disk here. Using rdisk, instead of disk, writes to the raw device instead of the buffer. So, sometimes it goes quite a big faster. And B-S here is block size. So, I'm writing one megabyte blocks to the disk. That's not necessary, but I find it helps with speed too. And, when the process is done, I'll actually get an error notice from the operating system saying it can't read the disk.
That's a good sign. It means the information has been written in a format different from what Mac OS expects because it's a Linux format disk now. So, I'll eject the disk and physically disconnect it from my system. And now, I'm ready to use the USB drive to install ubuntu on my server.
- Setting up a home server
- Creating an installer from Windows, macOS, or Linux
- Installing Ubuntu Server
- Configuring the network for a server
- Adding storage with a local disk
- Sharing files on the network
- Serving up video over the network with Plex
- Blocking domains on your network
- Backing up your server and files
- Using Dynamic DNS for external access
- Sharing and syncing files with Nextcloud