HomeBlogSitemapContact Me

Raspberry Pi Beginners Guide

PLEASE NOTE: This guide is now obsolete. See The Updated Raspberry Pi Guide for the latest and greatest guide.

This guide is aimed at helping newcomers to the the Raspberry Pi (or Linux in general) get up and running with their fantastic new toy and move on to the fun stuff.

I'm going to assume you have the Model B (although most of this will work for Model A too - with the exception of the VNC setup) and some form of Windows.

We'll be installing the Raspbian "wheezy" Debian Linux distribution for Raspberry Pi. If your using the old "squeeze" distro then upgrade now! The Raspbian "wheezy" distribution is much faster.

What you need

You'll need the following bits and pieces:

* The TV/Monitor, Keyboard and Mouse are semi-optional. If you have the Model B Raspberry Pi we can remote desktop into the Pi from any Windows or Linux pc/laptop connected to the network. We'll just need the TV keyboard etc to do the initial setup.

Installing Linux on your SD Card

We'll be using the Debian Raspbian "wheezy" Linux distribution here as it comes with a lot of examples and apps right out the box. Head over to the Raspberry Pi Downloads section to grab it.

You'll also need Win32 Disk Imager to write the downloaded image. Make sure you click on the right download and not one of the annoying ads made to look like the download (you should always stay on http://www.softpedia.com).

Note: if you need to reuse the SD Card in Windows again you may find it can't be read or shows a very small capacity. If so you need to re-write the file system. I found the easiest way was to put the card into a digital camera and format from there. You should now be able to read the card in Windows.

Running the Raspberry Pi Desktop

Right, now we're getting somewhere. Make sure the SD card is inserted and the Pi is connected to the TV.

Now connect the power. You should see the Pi kick into life. Don't worry if you see some errors here, let it finish and you'll get to a login prompt.

If you are having trouble booting, take a look at the above section on compatible SD cards again.

The default username and password are:

Username: pi
Password: raspberry

When you hit the command prompt enter the following to launch the desktop:


Congratulations! You now have a fully working desktop environment on £20 computer!

Updating and Upgrading Debian Raspbian "wheezy" Linux Distribution

Before you begin to install any software it's best to make sure the package index files are up-to-date (essentially just a file pointing to the latest version of compatible software - for example when we install VNC later in the guide). Make sure you have an internet connection and run the following command. It may take a few minutes.

sudo apt-get update

Followed by:

sudo apt-get upgrade

Now's also a good time to make sure the who Linux distribution is up-to-date. You can do this now, or later (it may take a while). Again make sure you have an internet connection and run:

sudo apt-get dist-upgrade

You can run these commands every now and again to make sure you have the latest software. If you're asked to confirm anything, just hit 'y' on the keyboard.

Installing VNC on the Raspberry Pi for Remote Access

You may find it a bit cumbersome having a keyboard and mouse connected to the Raspberry Pi. What's the point in having a computer smaller than your TV remote if you need to connect a massive Keyboard?

Installing VNC will allow for remote access via laptop etc while the Pi remains hidden away behind the TV or next to the router.

Giving the Pi a Static IP Address

So we always know where the Pi is let's give it a static IP address. if you're not sure what your local network range is open a command prompt from a Windows PC.

Start > Run and enter:


Now type:


You should see something like:

IPv4 Address. . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

We give the Pi the same details excluding the last 3 digits of the IPv4 Address. Let's make it easy to remember:

Back in the Raspberry Pi goto the command prompt again, don't start the desktop.


sudo nano /etc/network/interfaces

This will bring up the network interface configuration file in the nano text editor. The word sudo simply runs this command with super user privileges.

You can save yourself a lot of time at the Linux command prompt by using Tab to auto complete.

You should see:

iface lo inet loopback
iface eth0 inet dhcp

Change this to (your IP details maybe different depending what you got from ipconfig):

iface lo inet loopback
iface eth0 inet static

Use Ctrl X to exit. Hit Y when prompted to save.

Now restart the network interface to apply changes without a reboot:

sudo /etc/init.d/networking stop

Followed by (can you guess?):

sudo /etc/init.d/networking start

Now your Raspberry Pi will always have the same IP address. Try pinging it from the Windows command Prompt:


Installing VNC on the Pi

We're going to use Tight VNC here (server on the Raspberry Pi and Viewer on Windows).

There's an excellent tutorial over at Penguin Tutor if you need more information.

First of all install the Tight VNC Server from the command prompt:

sudo apt-get install tightvncserver

Let it finish installing (if you're asked to confirm anything, just hit 'y' on the keyboard). When complete start the server:


You'll be asked to create a password, enter one and confirm. I used raspberry for ease of use, but probably not the most secure!

When asked to create a view only password, say No.

Every time you start VNC you'll see something like:

New 'X' desktop is raspberrypi:1

Note the :1. This is the desktop session created. You can add more by running VNC again.

Head over to TightVNC on your windows box and install the viewer.

To connect run the VNC Viewer and enter:

Tight VNC Login

Where the IP address matches the one entered before and :1 matches desktop session.

When prompted enter the Password used when installing VNC Server.

The VNC Connected to Raspberry Pi

Start VNC Server Automatically on Bootup

There's no point in having VNC if you have goto to the Pi, login and start the server manually. So let's start it on bootup before the login prompt.

Create a new file in the init.d directory:

sudo nano /etc/init.d/tightvncserver

Enter the following details:

# /etc/init.d/tightvncserver
case "$1" in
        su $VNCUSER -c '/usr/bin/tightvncserver :1'
        echo "Starting TightVNC Server for $VNCUSER "
        pkill Xtightvnc
        echo "TightVNC Server stopped"
        echo "Usage: /etc/init.d/tightvncserver {start|stop}"
        exit 1
exit 0

Give the script executable permission:

sudo chmod 755 /etc/init.d/tightvncserver

We can now start or stop the service manually:

sudo /etc/init.d/tightvncserver start
sudo /etc/init.d/tightvncserver stop

But let's make Tight VNC Server start every time the Raspberry Pi starts up:

sudo update-rc.d tightvncserver defaults

Now just power off the Raspberry Pi. Make sure it's connected to the network and power back on. You can now connected across the network using the VNC Viewer!

The Raspberry Pi Config Tool

The Raspberry Pi Configuration Tool (aka Raspi-config) is a very useful tool pre-packaged with the Raspbian "wheezy" distro. You'll probably see it during installation; but you can launching manually for the terminal with the following command:

sudo raspi-config


I'd recommend running the following as soon as possible:

Useful Terminal Commands

Shutdown your Pi in 1 minute:

sudo shutdown -h 1

Reboot your pi in 1 minute:

sudo shutdown -r 1

Get manual for any command:

man [command]


man shutdown




0 #155 relationship tips 2014-09-02 21:46
You can certainly see your expertise within the work you write.
The world hopes for even more passionate writers like you who aren't afraid to say how they believe.
At all times follow your heart.

Feel free to surf to my web-site ... relationship
tips: http://ouidalangler.wordpress.com/
0 #154 relationship tips 2014-09-02 07:37
Hi there, I think your site may be having web browser
compatibility issues. Whenever I look at your blog in Safari, it looks fine however,
if opening in IE, it's got some overlapping issues. I merely wanted to give you a quick heads up!
Besides that, fantastic blog!

Feel free to surf to my web blog ... relationship tips: http://kirstemacghey.wordpress.com/
0 #153 http://umangthefest. 2014-09-02 01:59
Hi to all, the contents existing at this web site are genuinely remarkable for people knowledge, well, keep up the good work fellows.

Feel free to visit my webpage :: dating advice (http://umangthefest.prayasastep.org/members-2/leeboqbjzmh/activity/45627: http://umangthefest.prayasastep.org/members-2/leeboqbjzmh/activity/45627/)
0 #152 www.buryadvertiser. 2014-09-01 06:14
Liquid vitamins are easily consumed which mayn't abandon anyone
using the sensation of going for a medicine.
0 #151 ankara matematik 2014-08-31 06:25
Awesome issues here. I am very happy to see your post.
Thanks so much and I'm looking ahead to touch you.
Will you please drop me a e-mail?
0 #150 www.allprolegal.com 2014-08-30 07:17
Tɦe best of the private investigator ѕub-genre iis
summarized іn two ѡords: Sherlock Holmes.
Вut it iis very impօrtant tҺat somе things should be keрt іn mind when you decide to choose the private detectives fߋr accomplishing үouг work.
s immensely popular Alphabet Mysteries series, Kinsey Millhone іs a fߋrmer
police officer.

my weblog ... Florida Private Investigator - www.allprolegal.com: http://www.allprolegal.com/,
0 #149 umangthefest. 2014-08-30 00:43
Very nice write-up. I certainly love this website.

Keep it up!

Feel free to visit my site :: dating advice for men (umangthefest.prayasastep.org: http://umangthefest.prayasastep.org/groups-2/why-wont-my-boyfriend-take-me-back-3-factors-your-ex-sweetheart-wont-take-you/)
0 #148 matematik dersi 2014-08-28 08:57
It's an remarkable paragraph in support of all the online viewers; they will obtain benefit from it I am sure.
0 #147 desktop wallpapers 2014-08-27 20:45
I'm now not certain the place you're getting your info, but good topic.
I needs to spend a while finding out much more or working out more.

Thank you for excellent information I used to be in search of this info
for my mission.

Also visit my website ... desktop wallpapers: http://aoleonthemartiangirl.com/photo/avatars-icons/
0 #146 printing services 2014-08-26 22:20
What's up, always i used to check webpage posts here early in the morning, because i love
to learn more and more.

Feel free to visiit myy site :: printing services London: http://printintserviceslondon.pen.io/
0 #145 luxury car hire 2014-08-26 16:59
If youu desire to grow your knowledge only keep visiting this site and bee updated wiith the hottest news update posted here.

Add comment

Security code