Ubuntu is a Debian-based Linux operating system, with Unity as its default desktop environment. It is based on free software and named after the Southern African philosophy of ubuntu, which often is translated as “humanity towards others” or “the belief in a universal bond of sharing that connects all humanity”.
The way to install it on a PC is extremely easy. Here I’ll show how to install it on a “MacBook Pro 5,5, 13-inch, Mid 2009”:
- Download Ubuntu (easy but important)
- Open the Terminal (Applications> Utilities> Terminal.app).
- Convert the .iso file to .img using the convert option of hdiutil:
$ hdiutil convert -format UDRW -o ~/path/to/target.img ~/path/to/ubuntu.iso
Note: Remove the .dmg ending manually. OS X tends to put it on the output file automatically.
Tip: Drag and drop the ISO file from Finder to Terminal to ‘paste’ the full path to avoid typing errors.
- Run diskutil to get the current list of devices:
$ diskutil list
- Insert your flash media.
- Run diskutil again and determine the device node assigned to your new flash media (e.g. /dev/disk2):
$ diskutil list
- Run diskutil to unmount the flash media:
$ unmountDisk /dev/diskN (Replace N with the disk number from the last step)
- Execute dd and copy the image to the flash drive:
$ sudo dd if=path/of/target.img of=/dev/rdiskN bs=1m (Remember replace N)
- Run diskutil to eject the drive and remove your flash media when the command completes:
$ eject /dev/diskN (Remember, the N)
- Restart your Mac and press ‘alt/option‘ key while the Mac is restarting to choose the USB stick.