Ubuntu Mac: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
==Running Ubuntu Using Virtual Box==
=Running Ubuntu Using Virtual Box=


=Download Oracle VM VirtualBox .DMG file=
==Download Oracle VM VirtualBox .DMG file==


https://www.virtualbox.org/wiki/Downloads
https://www.virtualbox.org/wiki/Downloads
Line 11: Line 11:
Follow the installer, close the window.
Follow the installer, close the window.


=Open Virtual Box=
==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.  
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=
==Create New Virtual Machine==


You should see a window that says "Welcome to Virtual Box"
You should see a window that says "Welcome to Virtual Box"
Line 25: Line 25:
Virtual Machine will now prompt you to select the Memory to be used. 512 MB is the suggested amount.
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=
==Ubuntu's Instructions==


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




=Get the .ISO=
==Get the .ISO==


Ubuntu 12.04 LTS 32 bit
Ubuntu 12.04 LTS 32 bit
Line 37: Line 38:
http://www.ubuntu.com/download/desktop
http://www.ubuntu.com/download/desktop


=Convert the .ISO=
==Convert the .ISO==


Convert the .iso file to .dmg using the convert option of hdiutil  
Convert the .iso file to .dmg using the convert option of hdiutil  
Line 53: Line 54:
  Graham-Robertsons-MacBook-Pro:~ graham$ sudo hdiutil convert -format UDRW -o ~/graham.dmg ~/ubuntu-10.04.2-desktop-i386.iso
  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=
==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)
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)
Line 67: Line 68:
(replace N with the disk number from the last command; in the previous example, N would be 2)
(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=
==Process and Transfer Ubuntu disk image onto USB flash drive==


Specific example:
Specific example:
Line 75: Line 76:
This step requires patience, as it takes a long time. Wait for Terminal to respond.
This step requires patience, as it takes a long time. Wait for Terminal to respond.


=Eject USB Flash Drive=
==Eject USB Flash Drive==


Type:
Type:
Line 85: Line 86:
Remove USB Flash Drive  
Remove USB Flash Drive  


=Restart your Mac=
==Restart your Mac==


Hold alt/option key while rebooting.
Hold alt/option key while rebooting.

Revision as of 02:54, 26 June 2012

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.