Installing Linux Mint on a (Slightly Aging) PC
In this post, I’ll be installing Linux Mint 19.2 on an aging, though not obsolete, PC. This is an Dell XPS in an obviously custom case which is in no way overcompensating for anything. The CPU is a 4th generation Intel Core i7 with 24 gb of ram installed. Aging, but plenty powerful enough for my purposes here. I’ll be doing all the preparatory work from Mac OS X 10.5 Leopard. The steps shouldn’t be different for any version later than that. I first attempted this on OS X Tiger, which failed to recognize the image file I downloaded. It doesn’t seem to have been a corrupted file, as I copied it over to a Mac running Leopard, and everything worked fine.
The first step is to grab the Linux Mint installer by navigating your web browser to the downloads page of the linuxmint.com website. You’ll now want to choose the 32 or 64 bit version of the OS, along with the desktop environment you want as your default GUI. No worries. You can always set up other desktop environments once you have the system installed. Anyway, I’ll be running this on 64 bit hardware, and I like the Cinnamon desktop, so…
...I selected those, and chose a mirror site to download from. Then save the file. And go have some coffee. Or surf the web. The 1.9 gb download took just under 20 minutes on my very middle of the road DSL connection.
So, the file has been downloaded (and moved to my desktop.) It’s an ISO file, which is a CD/DVR image file. If I wanted to burn this to a DVD, I could use Mac OS X’s Disk Utility. I really don’t need a permanent copy of the installation disk since I can simply archive the ISO file, so I’m going to prepare an installation USB stick. Unfortunately, you can’t just copy an ISO file to a USB stick and call it done. You’re going to need a disk image format compatible with USB sticks, and that format is IMG. Also fortunately, Mac OS X comes with all the software you need to convert ISO files to IMG format. For Windows users, there is an application called ImgBurn which can be used to perform this conversion, but as I’m doing this from a Mac, I won’t be able to cover that from here. A quick web search should get you pointed in the right direction.
The software I’m going to use to convert the ISO file to an IMG file and then burn it to a USB stick is all console based, so fire up the terminal. Navigate to the folder where you downloaded that ISO file.
The command to perform the conversion is hdiutil, and the format for this command looks like:
hdiutil convert -format UDRW -o converted_filename.img source_filename.iso
In this instance, the command was hdiutil convert -format UDRW -o linuxmint-19.2-cinnamon-64bit.img linuxmint-19.2-cinnamon-64bit.iso
Successful execution of this program results in the output pictured above.
For some reason, OS X likes to tack on the dmg extension to the converted file. Weird, but fixable with the mv command. Execute mv linuxmint-19.2-cinnamon-64bit.img.dmg linuxmint-19.2-cinnamon-64bit.img, changing the filename to reflect the name of the file your working with.
If you haven’t already, go ahead and insert the USB stick into an available USB port on the Mac.
To actually burn the disk image to the USB stick, we need to get the USB stick’s device node. Once again, the terminal provides. Execute diskutil list. This command generates a list of the storage devices connected or otherwise installed to the Mac, as pictured above. My USB stick is named ITSAUSBSTICK. It’s device node is on the first line of the listing for ITSAUSBSTICK, and it’s in the format /dev/diskn, with the n at the end of disk representing a number. The device node of ITSAUSBSTICK is /dev/disk2. Now execute diskutil unmountDisk /dev/disk#, replacing # with the number from the device node of the USB stick we’re working with, in this case, 2. The command here is diskutil unmountDisk /dev/disk2.
We’re now ready to burn that IMG file to the USB stick. For this, we’re going to use the dd command.
This requires super user privileges, so we’ll also be using sudo. The command will look something like this: sudo dd if=diskimage_file.img of=device_node_of_disk_to_burn_image_to bs=1m. So in this case, the command would be sudo dd if=linuxmint-19.2-cinnamon-64bit.img /dev/dusj2 bs=1m. Since you’re using sudo, you’ll be prompted for your password, which should just be the same password you use to log into your Mac.
DD doesn’t really give you any feedback while it’s running, so be patient. I was running this on a PowerMac G5, so it took a little time on such old hardware. Anyway, when it’s done, dd spits a couple of lines out to show its done it’s job and returns you to the command prompt. Your Mac will almost immediately attempt to mount the USB stick and throws out this mildly alarming error dialog informing you it can’t read the USB stick and would you like to Initialize, Ignore, or Eject. You don’t want to choose initialize, as this will erase the USB stick, so just choose eject. You can now insert the USB stick into an available USB slot on the powered off PC you wish to install Linux to.
You may (probably will) have to set up the PC to boot from the USB stick. You can do this from the computer’s bios setup utility. Every bios setup is a little bit different, but somewhere in there will be boot options that let you set what order to have the computer check potential boot devices for an operating system. Set the computer to check the USB device first, then choose the bios setup utility’s option to save and restart the system. After a few moments, you’ll see this splash screen.
Your computer will boot into the Linux Mint Live Installation desktop. (Sorry I didn’t grab a picture of it.) This is sort of a trial mode that lets you try out Linux Mint before committing to installing it. Just be aware that no settings or documents you create in this mode are saved. Once you power off the computer, they’re gone.
On this desktop, you’ll see an icon that looks like a CD titled “Install Linux Mint.” If you’re ready to commit to doing that, double-click the icon.
This begins the Linux Mint installation. I installed Linux Mint as the computer’s sole operating system, so I pretty much just followed the onscreen prompts. If you’re installing Linux alongside another operating system such as Windows or Mac OS, there are some additional steps, and that’s a subject for another post.
The installer does it’s thing, copying files to the hard disk. It’ll let you know when it’s done, offering you the chance to continue using the Live Installation (with the warning that nothing created on a Live Installation is actually saved) or reboot the computer into the new actual for real Linux installation. Select reboot. You’ll be prompted to remove the installation media (the USB stick) and press Enter.
The computer reboots. If you set Linux Mint to require you to enter a password for login, you’ll be taken to this login screen. Enter the password and...
...and you are now on the Linux Mint desktop! Have fun!