Getting Started on Raspberry Pi as a Server

This will be part of a series of posts on how to get started on using Raspberry Pi 2 as a Server to host a java web service. I am currently exploring the possibility of using Raspberry Pi as a low-cost server.

To get started, you would need a Raspberry Pi 2 (you could use a Raspberry Pi 3 too) and a 8GB micro SD card.

Next would be to download an Operating System (OS) for the Pi. As of this post, Raspbian Jessie is the latest version of Debian for the Pi and you could download it from Raspbian. I would recommend downloading the full desktop image instead of the lite version as I would be using the full version in this guide. Apparently downloading it via the torrent option is much faster as compared to a direct download form the site.

Once it is downloaded, you would have to unzip it.

While you are downloading the image for the OS, it would be wise to get the SD card ready. I had used the SD Card Formatter to format the format the SD card as it is the easily way to do so. You may download it from SD Association and simply follow through the wizard.

Now that both the image and the SD card is ready. Jump over to terminal with the below command. Look for your SD card.

diskutil list

Unmount your SD card with the below command. “disk2” is the name of your SD card. You should see the response as per “Unmount of all volumes on disk2 was successful.

diskutil unmountDisk /dev/disk2

The last step to getting the image onto SD card is the below command.
Do note that this step might take a while depending on the speed of your SD card.

sudo dd bs=1m if=2016-05-27-raspbian-jessie.img of=/dev/disk2

After it is done, you may insert the SD card into the Pi and boot it up.

 

 

Resources which I had referenced to INSTALLING OPERATING SYSTEM IMAGES ON MAC OS

Advertisements
This entry was posted in Raspberry Pi and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s