In this post I will explain how to set up your Raspberry PI and get running using the recommended OS .
- Raspberry Pi
- Video or HDMI connector
- Network cable/wifi adaptor
- 5V Power supply with Micro-USB B connector.
- Keyboard (Mouse if using GUI)
- SD Card – (Best to check for compatibility on http://elinux.org/RPi_SD_cards )
- Laptop or PC (To create initial image)
Firstly you will need to download the latest OS (At time of writing Raspbian Wheezy) They can be found at http://www.raspberrypi.org/downloads
Once downloaded unzip to a “.img” file. This image can be burnt to a SD Card.
If you are using windows – http://sourceforge.net/projects/win32diskimager/ is a good tool to easily copy the image to SD Card. Download and run the win32diskimager software, select the drive letter (1) for your SD card IMPORTANT!!! you MUST get this correct as you may damage/corrupt other devices or data on your PC. Once correctly selected choose the “.img” file you previously unpacked and write (2) the file to the SD Card.
You should now have a base install ready to start with the Raspberry PI.
It is worth reducing static risk and checking power is off – before touching the Raspberry PI (Or any electronic equipment)
Carefully connect the SD Card, Network cable or wifi adaptor, keyboard/mouse and video cable. Turn on the monitor and connect the power to the Raspberry PI.
after the boot up process has finished you can log in using the defaults –
Username: pi Password: raspberry
Firstly I would suggest setting the root (administrator) password –
sudo passwd root
This will prompt for new password (twice to confirm)
Then log back in as the administrator. (root)
As everyone has the same default password – I would strongly recommend you change the default “pi” password using the same method:
sudo passwd pi
- If you are connecting using an Ethernet cable directly to your router the Raspberry PI should have obtained an IP address and be already connected to the internet. If you need to configure the LAN adaptor see this page
- If you are using a wireless adaptor this may need additional configuration – please see configure wireless adaptor on Raspberry Pi
Once your internet connection is established –
The next step is to update the package repositories and update:
sudo apt-get update
sudo apt-get upgrade
After downloading various packages and updates your PI will be ready for use.
to open a graphical desktop type:
to further configure the Raspberry PI you can type
This gives you further options:
info Information about this tool expand_rootfs Expand root partition to fill SD card overscan Change overscan configure_keyboard Set keyboard layout change_pass Change password for 'pi' user change_locale Set locale change_timezone Set timezone memory_split Change memory split ssh Enable or disable ssh server boot_behaviour Start desktop on boot? update Try to upgrade raspi-config
one useful option here is to “expand_rootfs” This will expand the base image on the SD card to fill the entire available space.