element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog HOW-TO: First steps with the Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: tekmeister
Date Created: 2 Aug 2014 12:42 PM
Views: 172
Likes: 3
Comments: 8
  • forget_me_not
  • iot_modern_security
  • raspberrypi
  • raspbian
  • linux
Related
Recommended

HOW-TO: First steps with the Raspberry Pi

tekmeister
tekmeister
2 Aug 2014

Getting started with Linux and the Raspberry Pi can be daunting. Hopefully this post helps alleviate the pain for those just starting out.

 

Before you start, I'm assuming you already have a Raspberry Pi (RPi) and an SD card (microSD for the model B+). Life will be a bit easier if you have a monitor and keyboard that you can use with the RPi, although it's not essential.

 

Download an OS image

Firstly you want to choose a Linux image. I normally use the Raspbian distribution. You can also try the NOOBS image, which provides a number of options of operating systems.

http://www.raspberrypi.org/downloads/

 

Burn the image to your SD card

I use the free tool Win32 Disk Imager on Windows to write the image to my SD card. Full instructions are documented at http://www.raspberrypi.org/documentation/installation/installing-images/README.md

 

Boot the Raspberry Pi

Once the image has been written to the SD card, put the card into your RPi.  Also plug the ethernet cable into the RPi to connect it to the network.

 

If you are using a monitor you also want to connect the HDMI cable to the RPi before you power it up.

 

Now turn on the Rpi by plugging your power cable into the microUSB socket.

 

If you have a monitor , you'll see a bunch of messages will while the RPi is starting up - it will take around 30 seconds.

 

 

Finding your Pi on the network

If you have a monitor and keyboard connected to the Pi, you can skip this step.

If you don't have an external monitor connected to the Pi, you'll need to connect to it via Ethernet. To do this we'll need to find its IP address.

 

The tool I use is Advanced IP Scanner. It generally picks up the subnets automatically, so you just need to hit "Scan" and wait.

 

Once it's done, you want to look down the Manufacturer column for entries called "Raspberry Pi Foundation". Make a note of the IP address.

 

 

Connecting to the Pi

You can connect to the Pi using SSH over ethernet to run commands, install software, etc.

The best tool on Windows is Putty. Enter the IP address of your Pi, and make sure the port is 22 and the connection type is SSH, then click "Open".

 

Logging in

You can either log in over SSH or using an attached keyboard and monitor.

The default username for Raspbian is "pi" (without the quotes) and the password is "raspberry".

 

Extending the partition on the SD card

By default, the image you burned to the SD card earlier doesn't actually use the entire space of the SD card.

You will want to run sudo raspi-config and select  "Expand Filesystem" . After you have rebooted (sudo reboot) the partition will be extended to the size of your SD card.

 

 

Updating software

Generally one of the first things I will do is make sure the latest packages are installed. This is done with 2 commands:

 

  • sudo apt-get update makes sure the list of packages is up to date
  • sudo apt-get upgrade installs the latest packages

 

 

There is another command sudo rpi-update which will update the firmware and kernel to the latest (bleeding-edge) versions. Typically you don't need to do this unless a particular app requires it.

 

 

Miscellaneous commands

You may find these useful:

  • sudo dpkg-reconfigure tzdata - change your timezone
Anonymous

Top Comments

  • ipv1
    ipv1 over 7 years ago in reply to shabaz +2

    Dear sir,

    Here is another popular tutorial for your kind consideration. Adding a shutdown button to the Rpi. http://embeddedcode.wordpress.com/2013/10/18/adding-a-shutdown-button-to-the-raspberry-pi/

Parents
  • vish
    vish over 7 years ago

    Hi tekmeister,

    That was a wonderful quick tutorial.

    Even if I'm using NOOBS sdcard image, will this work? Because I read like we have to select an OS while booting.

    And how can I figure out whether the booting is complete? Does the new h/w has any indicator leds?

    -vish

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • tekmeister
    tekmeister over 7 years ago in reply to vish

    Hi Vishnu,

     

    You can use NOOBS, but you'll need an external monitor and keyboard/mouse in order to select which OS to boot.

     

    Unfortunately there aren't any specific LEDs on the board to tell you booting is complete.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Comment
  • tekmeister
    tekmeister over 7 years ago in reply to vish

    Hi Vishnu,

     

    You can use NOOBS, but you'll need an external monitor and keyboard/mouse in order to select which OS to boot.

     

    Unfortunately there aren't any specific LEDs on the board to tell you booting is complete.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Children
No Data
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube