Ubuntu Mac

From Open Source Ecology
Jump to navigation Jump to search

Running Ubuntu Using Virtual Box

Download Oracle VM VirtualBox .DMG file

https://www.virtualbox.org/wiki/Downloads

Disk image will automatically mount itself and prompt you to double click "VirtualBox.mpkg"

This will install an app to see if your machine is able to run Virtual Box.

Follow the installer, close the window.

Open Virtual Box

If your machine is able to run Virtual Box, you will find it in your applications folder. Find this and double click it.

Create New Virtual Machine

You should see a window that says "Welcome to Virtual Box"

In order to create a new virtual machine, click New in the top left hand corner of the window.

Name your virtual machine. Select Linux from the Operating System drop down menu. Select Ubuntu in the Version drop down menu.

Virtual Machine will now prompt you to select the Memory to be used. 512 MB is the suggested amount.

Running Ubuntu Using USB Flash Drive

Ubuntu's Instructions

https://help.ubuntu.com/community/How%20to%20install%20Ubuntu%20on%20MacBook%20using%20USB%20Stick


Get the .ISO

Ubuntu 12.04 LTS 32 bit

http://www.ubuntu.com/download/desktop

Convert the .ISO

Convert the .iso file to .dmg using the convert option of hdiutil

In Terminal, type (OS X tends to put the .dmg ending on the output file automatically):

sudo hdiutil convert -format UDRW -o ~/path/to/target ~/path/to/ubuntu.iso

General example:

YOURNAME-MacBook-Pro:~ USERNAME$ sudo hdiutil convert -format UDRW -o ~/IMAGENAME ~/UBUNTUVERSIONNAME.iso

Specific example:

Graham-Robertsons-MacBook-Pro:~ graham$ sudo hdiutil convert -format UDRW -o ~/graham.dmg ~/ubuntu-10.04.2-desktop-i386.iso

Insert then Unmount USB Flash Drive

Put your USB Flash Drive into the USB port of your Mac (usually at the sides of the mac)(flip the USB flash drive if not fitting)

List the disks connected to your devices. Determine the device node assigned to your flash media (e.g. /dev/disk2)

diskutil list

Unmount your USB flash drive disk by inputting this code:

diskutil unmountDisk /dev/diskN

(replace N with the disk number from the last command; in the previous example, N would be 2)

Process and Transfer Ubuntu disk image onto USB flash drive

Specific example:

sudo dd if=/Users/graham/graham.dmg of=/dev/disk2 bs=1m

This step requires patience, as it takes a long time. Wait for Terminal to respond.

Eject USB Flash Drive

Type:

diskutil eject /dev/diskN

Replace "N" with your disk number.

Remove USB Flash Drive

Restart your Mac

Hold alt/option key while rebooting.