"Behind every stack of books there is a flood of knowledge."
In terms of a quick hardware wrap-up:
I have a little experience working with the Arduino development board, and since the Raspberry PI was lying around the house I thought to get started primarily with the intention of: getting my hands dirty with both a little bit of Hardware work as well as learning a little of non-Windows based OSes.
I initially wanted to write this tutorial, because I didn’t really find something simplistic enough to follow and get started with the Raspberry Pi. As I learn more using the board, I intend on writing similar tutorials that are easy to understand and replicate.
For this tutorial, we’ll do the following:
Before we go further, there are two crucial things required to proceed:
This is how the unit looks with the SD card in place:
The next image from the Raspberry Pi foundation pin-points to the location of each component:
Great, now that we have some background information associated with the Raspberry Pi, lets move onto isolating which Operating System to use. The downloads section on the official website lists 4 OSes (and their description also mentioned from there):
The first two are Debian variants optimized to for the Raspberry Pi hardware. The Raspbian “wheezy” is the recommended one for beginners. Having never/very little knowledge of Linux/Debian this was unanimously my choice and what I will focus on installing. The downloads page offers a few mediums of getting an image (via Torrent, direct download etc.) grab your image from one of the mirrors, save it to disk and extract to a location. The file is typically around 1.8 GB after extraction.
PS: Since, I’m using Windows this guide will focus on installing the OS via Windows
We’ll use a utility called Win32 Disk Imager to transfer the Raspbian OS onto the SD card. Insert your SD-Card into your PC and make note of the drive letter (in my case it was H:). Now, we’ll open up Win32 Disk Imager and browse to where our OS image resides and click Write. This will begin the process of writing the OS to your SD card:
After it completes writing, you will get a pop-up that quite simply says Write Successful. Next, we’ll place the SD card into the Raspberry Pi and make the following connections:
The red LED turning on was the first great sign that everything is working well. If you’ve got a display connected you should next be able to see the following Raspberry Pi configuration screen the first time you boot:
Note: Sorry for the poor quality pictures from this point-on. I didn’t really know how to get a screen capture!
In this screen, one of the only configuration I would suggest performing is to enable expand_rootfs. What this does is it expands the OS root file system to fill the entire SD card, and since I was using a 32GB SD card it made sense to use it as a hard-disk. Use your keyboard to scroll to the option and hit enter:
The only other thing I would recommend changing is the password so you don’t remember the default:
The default login details are:
As soon as you select the change_pass option, you will get a prompt for user input at the lower-left hand side of your screen. Enter your new password:
For now, those are the only two things I’d recommend changing for the moment, if later you ever feel you needed to go back to the configuration page, you can do so by typing this in your terminal:
So, let’s hit Finish on the Raspi-Configuration window:
This will prompt you to reboot next, and you should select yes. After you select yes for a reboot, you should see some command prompt type activity on the lower left hand side of your screen:
After the board reboots, you will see a lot of initial set-up activity occurring, including the resizing of the root partition to fill up the entire SD card (if you did select that option). This took me quite a few minutes, so don’t be surprised if you have to wait here for a bit. If your display goes away, just press a key from your keyboard and you should see the progress on the screen again:
After the resizing has been done, you will finally be prompted to login. Your details from when you changed your password:
Perfect. We just had our first successful login on the Raspberry-Pi!
Now we are within the terminal based view of the Raspbian OS! If you are a more experienced Debian/Linux user I would advise you to stop reading at this point . However, since I am not … I was frantically searching for a Windows-like-GUI view for the OS.
Fortunately, Raspbian does have a GUI based view and it is called the X Window System! If you are a little curious and want to read more about how the X system is able to accomplish the visual interface, I would suggest reading this article.
All you need to do to enable the X Window System is to type in the console window:
Personally, what happens next was the most exciting moment for me in terms of setting up the Raspberry Pi. To believe that something that costs merely 35 dollars, with such minimal initial setup – can bring up a relatively full fledged OS was truly amazing:
Similar to the Start button in Windows, you can click on the lower left button to get a list of applications arranged by Accessories/Internet/Programming/System Tools etc:
At this point, we pretty much have the Raspberry Pi setup in OS mode and you can play around and experiment with the board/OS so far.
The internet opens tons of possibilities, so I decided to end this article by outline out how to enable WiFi on the board as well (there is an on-board LAN port if you prefer a wired connection – see Figure3). However, since I find WiFi is more realistic to get access anywhere thus I chose to use a USB WiFi adapter. I am using one by Rosewell (RNX-G1), it cost about $20. It was really as simple as – plugging the adapter into my USB hub and getting internet access!
That takes care about the hardware required, in terms of making the OS connect to a WiFi network here is how to do it:
Locate the WiFi Config icon on your desktop and double click it:
This opens up a GUI that basically allows us to view/connect to/scan for networks:
Click on the Scan button and you will get a list of networks it was able to pick-up in range:
To add the network, you have to double click on it from the list, which opens up another window. In here, you can enter a password in the PSK field (if the WiFi network was password protected) and merely click Add.
Now in the WPA_GUI window, from the Network: drop-down list select the WiFi network you want to connect to and click the Connect button:
You should now see a successful connection established:
Finally, lets open up a browser and access Google. Raspbian comes installed with a few browsers by default, I chose NetSurf. You can access it by going to the Start Button (lower left corner) -> Internet -> NetSurf:
Unfortunately, there is no Flash support currently in this version of Raspbian so no Youtube videos for the time being . I did find the NetSurf browser to be quite cumbersome to use and I immediately switched to using Firefox instead. The only thing to note is Firefox is called iceweasel in Debian. To download this all you have to do is open up your LXTerminal which is the terminal/console way of communicating with the OS:
And type the following:
sudo apt-get install iceweasel
This should download and install Firefox for you. Lastly, I wanted to end with how to turn off the board correctly. Being a Windows user, I couldn’t help but look for a shut-down button, but here is what you need to do, type the following on your terminal window:
sudo su poweroff
The first line is the Windows equivalent of going into Administrator mode (in Linux referred to as super user). And the next line quite simply does what it says power-off! You will see the GUI based OS go away first, after which there will be some terminal activity and finally you will see the signal to your monitor go off. This is when you can begin to plug everything out.
Virtual Fashion Education
"chúng tôi chỉ là tôi tớ của anh em, vì Đức Kitô" (2Cr 4,5b)
News About Tech, Money and Innovation
Modern art using the GPU
Find the perfect theme for your blog.
Learn to Learn
Con tằm đến thác vẫn còn vương tơ
Khoa Vật lý, Đại học Sư phạm Tp.HCM - ĐT :(08)-38352020 - 109
Blog Toán Cao Cấp (M4Ps)
Indulge- Travel, Adventure, & New Experiences
"Behind every stack of books there is a flood of knowledge."
The latest news on WordPress.com and the WordPress community.