Raspberry Pi is a credit card size ARM-powered mini computer which is very popular among embedded system developer and hobbyist. A vanilla Raspberry Pi is not come built-in with an operating system. The operating system for Raspberry Pi can be installed on an SD-card which is loaded during bootup process. So, to make your Raspberry Pi useful, you need to install an operating system into an SD Card, plug it to the SD Card slot, and turn on the Pi.
Here’s what you are going to need to make your Raspberry Pi run for the first time:
- A Raspberry Pi
- A 4 GB or higher capacity SD Card
- A MacOS X (because this article is using a Macintosh computer running on OS X 10.8 Mountain Lion).
- A Raspberry Pi operating system image based on Debian Linux, Raspbian “Wheezy”. This OS image can be downloaded here. Choose the Raspbian “Wheezy” system image direct download zip file.
- A 5V micro USB power adapter which capable to draw minimum 0.7A currents. A Raspberry Pi requires this as it’s power source. A 5V 0.5A power adapter is not sufficient to power the Raspberry Pi.
Follow the following steps to set up an SD card with Raspbian Wheezy system image:
- Format your SD Card using Disk Utility with FAT32 file system.
- Once it formatted, eject it.
- Open Terminal, and execute
df -h
to view currently mounted disks and it’s free space. This step is essential after you had ejected the SD Card to make sure that you won’t miss the mount point of your SD card on the next step. This command should show you something like below:aryo@MacBookPro ~/Dev/Raspberry Pi$ df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk0s2 446Gi 130Gi 316Gi 30% 34209827 82793155 29% / devfs 183Ki 183Ki 0Bi 100% 635 0 100% /dev map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home aryo@MacBookPro ~/Dev/Raspberry Pi$
- Take note the command output.
- Insert the SD card into the internal card reader, and execute:
df -h
You should see a difference from previous output. That is the mount point of your SD Card.aryo@MacBookPro ~/Dev/Raspberry Pi$ df -h Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk0s2 446Gi 130Gi 316Gi 30% 34210912 82792070 29% / devfs 185Ki 185Ki 0Bi 100% 639 0 100% /dev map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home /dev/disk1s1 15Gi 2.1Mi 15Gi 1% 0 0 100% /Volumes/NO NAME aryo@MacBookPro ~/Dev/Raspberry Pi$
- In my case, the SD card device is /dev/disk1s1 mounted on /Volumes/NO NAME, the SD card device itself is /dev/disk1 and it’s data partition located in s1. Take a note of it.
- Unmount (NOT eject) the SD card, and keep the SD card in place.
aryo@MacBookPro ~/Dev/Raspberry Pi$ diskutil unmount /dev/disk1s1 Volume NO NAME on disk1s1 unmounted aryo@MacBookPro ~/Dev/Raspberry Pi$
- Be careful, the next step is very dangerous, make sure that you are not mistaken in setting the target SD card device path or you may destroy your computer partition. Take your SD card device path notes.
- Extract the downloaded zip file to the same folder. Then, you now have a Raspbian Wheezy .img file.
- Execute the following dd command:
aryo@MacBookPro ~/Dev/Raspberry Pi$ sudo dd if=2013-05-25-wheezy-raspbian.img of=/dev/disk1 bs=1m Password: 1850+0 records in 1850+0 records out 1939865600 bytes transferred in 1050.454374 secs (1846692 bytes/sec) aryo@MacBookPro ~/Dev/Raspberry Pi$
- Be very patient! This step will took some minutes to hours. It depends on your SD card writing speed. In my case, on a Class 10 SD card, it tooks around 17 minutes to flash the whole image file to the SD card. But yours may be quicker or longer.
- After finished flashing the image to your SD card, it will be automatically remounted by your computer. The SD card is ready for you to use on your new Raspberry Pi. Eject it from your Mac, and plug it to the Raspberry Pi SD card slot.
Plug the Raspberry Pi power adapter, USB keyboard, connect the HDMI display port to a HDMI capable display monitor or TV, and you are ready to go.
Congratulations! You have successfully flashed Raspbian Wheezy system image to an SD card and running a Raspbian Wheezy on a Raspberry Pi.
You might want to add that using /dev/rdiskX instead of /dev/diskX is _much_ faster. (cca 20 times) See this post: http://superuser.com/questions/631592/mac-osx-why-is-dev-rdisk-20-times-faster-than-dev-disk
Thank you for mentioning, it’s really helpful.
This is nambah ilmu
Tambah lengkap mbah, thanks
Iyo ki rek, sip
Terima kasih untuk tutorialnya Mas Aryo.
Oyi slur
setuju slur, oyi
Mas Aryo emang hebat.
Tutorial yang sangat berguna
Mantab sekali
Terima kasih
Thank you mas Aryo.
Terima kasih untuk tutorialnya, sangat membantu.
Terima Kasih, Tutorialnya bermanfaat
Thank stafabandvideo.info
Terima kasih Mas Aryo.
Terima kasih, tutorial ini yang memang Saya butuhkan.
Terima kasih mas, berkat tutorial ini aku bisa install raspbian
Menakjubkan tutorial ini adalah apa yang saya butuhkan.
informasi yang baik, terima kasih sudah mau berbagi…sukses selalu
mac os very complicated 🙁
you have another solution sir ?
hmmm thank you!
sebelumnya saya bingung tentang tugas akhir sekolah yang bertemakan raspberry-pi, tapi setelah lihat lihat tutorial disini saya jadi semangat, tutorialnya lengkap, ajib, mudah dimengerti juga. mudah mudahan selesai ya tugas akhir sekolahku.
Dari kemarin cari cari tutorial seperti ini, eh baru ketemu di blognya mas aryo, mantap deh pokoknya, terimakasih.
Jarang banget liat tutorial instalasi wheezy menggunakan mac, saya sempat bingung mengenai tugas akhir saya, eh nemu artikel ini, terima kasih mas aryo. sangat bermanfaat.
Mantap artikelnya, sangat bermanfaat makasih ya
ternyata perintah program instalasi raspian di raspberry melalui mac os tidak jauh berbeda jika install di linux. ku kira kode programnya beda, eh ternyata sama. jadi nambah ilmu lagi nih, hehehe, terima kasih mas. sangat bermanfaat.
nice info mas
siap, baru tau ternyata ada caranya. jenius nih mas aryo. terimakasih mas, ijin icip ya.
Nice
mudah juga ternyata, hehee… BTW makasih lo mas
Makasih udah sharing mas, bermanfaat banget buat aku
Makasih mas bermanfaat
gini toh cara nya selama inii … hehehe
terimakasih ….
Awesome Website
Rasperry memang joss khususnya untuk pemula seperti saya
tai lo
ok thanks yoiu mas
kau penipu cintas