Login

Headless Setup of Raspberry Pi

Objectives

  • Enabling the server configuration of Raspberry Pi
  • Connect to Raspberry Pi via Secure Shell (SSH)
  • Connect to Raspberry Pi via PuTTY
  • Access Raspberry Pi from a remote computer

Things

For this project we will be needing the following components and software

  1. Raspberry Pi 3B (quantity: 1 no.)
  2. microSD card (quantity: 1 no.)
  3. 5V power adapter and Micro USB cable A to B (quantity: 1 no.)
  4. WiFi router / mobile hotspot (quantity: 1 no.)
  5. Raspibian Stretch
  6. SD Card Formatter software and BalenaEtcher software
  7. Wireless Network Watcher.
  8. VNC Viewer software
  9. PuTTY.

Let’s Begin!

The Raspberry Pi is a series of small single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote teaching of basic computer science in schools and in developing countries.

It does not include peripherals (such as keyboards and mice) and cases. However, some accessories have been included in several official and unofficial bundles.

Now let us get started with setting up the Raspberry Pi.

SD Card Formatter

In the following units we prefer using the Raspbian OS as it is more flexible and preferred OS for the Raspberry Pi (RPi).

To install the Raspbian OS on the sd card make sure the sd card is formatted as it already has the NOOBs OS installer in it, if the sd card came along with the RPi. Here we will use the SD Card Formatter to format the sd card and install the Rasbian OS.

Step 1: Preparing SD Card: Go to this link and click on “accept” to download “SD Card Formatter”.

Step 2:  Extract and Install the “SD Card Formatter” by running the downloaded “.exe” file.

Step 3: Connect a 8 GB/16 GB/32 GB SD card with your Laptop using an SD Card Holder, run the “SD Card Formatter” and format completely.

 

Next step is to flash the SD card with the Raspbian software. To  do that follow the steps below:

Step 1: Downloading Operating System for Raspberry Pi: Click on this link and download the latest version of Raspbian OS. Save the zip file.

Step 2: Once the file is downloaded, right click on it and extract. You will find an “.img” file in it named similar to “2018-11-13-raspbian-stretch.img”.

Step 3: Burning the image onto the SD Card: Run “Etcher”, click on “Select Image” and select the “2018-11-13-raspbian-stretch.img” file mentioned above.

Step 4: Once you select the Image, it automatically selects the SD card. If the selected card is not correct you can change it by clicking on “change” option.

Step 5: Now click on “Flash” to start the installation of Raspbian in the SD card.

Once the installation is compete, create “ssh” file for headless operation of RPi.

Step 1: Enabling SSH on Raspberry Pi: Create a file named “ssh” (the file does not expect any extension) in the boot partition, not the /boot directory in the main partition of the SD card. When the Pi is first started, it checks if the file exists and activates the SSH accordingly.

Step 2: Configuring the Raspberry Pi to your Wi-Fi router: To configure the Wi-Fi connection when starting the Pi, connect the microSD card to your computer and create a wpa_supplicant.conf file in the boot disk. Enter the following lines in the file:

update_config=1
ctrl_interface=/var/run/wpa_supplicant
country=IN

network={
    scan_ssid=1
    ssid="SSID"
    psk="PASSWORD"
}

Step 3: Replace SSID and PASSWORD with the name and password of your WiFi network or hotspot.

Step 4: Now, your SD card is ready for the first boot.

Step 5: Insert SD card in the slot given in the Raspberry Pi.

Step 6: Power it on using micro USB adapter with appropriate rating – 5V, 2A.

Step 7: First boot might take a few minutes (usually 4-5 minutes).

Step 8: Upon its first boot, the Raspberry Pi would have got connected to your network.

Step 9: In order to check its IP address, use Wireless Network Watcher or any other software you are used to. Make sure that both your laptop and RPi are connected to the same network. Download

Step 10: Now, use PuTTY to SSH into your RPi. Download

Step 11: Type the IP address of the RPi into the ‘Host Name’ field and click the ‘Open’ button. Click “Yes” when the Security Window pops up.

Step 12:  You will now see the usual login prompt. Use the default login for Raspbian i.e. “pi” with the password “raspberry”.

Note: When you are typing your password, the screen will appear blank and no characters will appear on your screen. This feature exists to protect your password. So you type your password and press Enter even if nothing appears on screen beside “password”.

There you have it.

Remote Desktop using VNC

If you are not comfortable using Raspberry Pi from command line (Terminal), you can access the GUI desktop using VNC viewer.

Step 1: Since you have access to the Terminal of RPi using PuTTY, install VNC on it by typing following command.

sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

Step 2: After installation, enable VNC Server at the command line using rasp-config

sudo raspi-config

Step 3: Now, enable VNC Server by doing the following:

  • Navigate to Interfacing Options.
  • Scroll down and select VNC > Yes.
  • Exit raspi-config by navigating to Finish.

Step 4: Next, On your Laptop/PC, you will need to download and install VNC Viewer so that you can access the desktop of the Raspberry Pi.

Step 5: Once installed, you need to start a New Connection

Step 6: Enter the IP address of your Raspberry Pi and click OK. Then double-click to open the newly created connection.

Once you open it, the graphical desktop will look like this

 

April 22, 2020

180 responses on "Headless Setup of Raspberry Pi"

  1. tadalafil 60 mg for sale: http://tadalafilonline20.com/ tadalafil tablets

  2. meds without a doctor prescription: https://genericwdp.com/ pills without a doctor prescription

  3. medications without a doctor’s prescription: https://genericwdp.com/ generic pills for ed

  4. buying prescription drugs from canada: https://genericwdp.com/ sildenafil without doctor prescriptio

  5. best place to buy generic viagra online order viagra online</a

  6. viagra from india buy real viagra online
    viagra amazo

  7. cost of viagra over the counter viagra
    viagra witho

  8. buy generic 100mg viagra online cheap viagra online

  9. http://diflucanfavdr.com/ – diflucan tablet uk
    prescription meds without the prescriptions

  10. https://aralenph.com/ – chloroquine
    how can i order prescription drugs without a doctor

  11. http://paxil100.com/ – paxil hair loss
    best ed pills

  12. best over the counter viagra https://viagrapills100.com/ buy generic 100mg viagra online

  13. buy viagra online usa https://viagrapills100.com/ viagra from india

  14. cheap ed pills in mexico cheap ed pills from canada
    order e

  15. buy ed pills cheap ed pills in mexico
    buy ed pills

  16. medications for ed ed pills online
    cheap ed pills usa

  17. http://hydroxychloroquinest.com/# hydroxychloroquine sulfate tablet 200 mg

  18. http://zithromaxst.com/# buy zithromax 500mg online

  19. http://gabapentinst.com/# neurontin 100mg capsule price

  20. https://prednisonest.com/# can i buy prednisone over the counter in usa

  21. http://zithromaxproff.com/# zithromax capsules price
    zithromax over the counter canada

  22. https://zithromaxproff.com/# zithromax 500 mg lowest price pharmacy online
    generic zithromax 500mg

  23. tetracycline online: buy myambutol generic
    buy bactrim

  24. meds from india: india pharmacy online medications from indi

  25. buy prescriptions from india pharmacy: india pharmacy onl

  26. best erectile dysfunction pills review: https://edpillsonline24.com/# viagra pills online

  27. buy erectile dysfunction pills online: https://edpillsonline24.com/# cialis pills

  28. best erectile dysfunction pills review: https://edpillsonline24.com/# over the counter ed medication

  29. online pharmacy viagra: viagra prescription viagra wit

  30. clomiphene online: cheap clomid – clomid medication

  31. diflucan canada prescription: diflucan – diflucan 200 mg

  32. generic clomid: clomid generic – clomid online purchase

  33. amoxicillin 500 mg brand name: amoxicillin without a doctors pres

  34. can you buy ventolin over the counter in usa: buy ventolin

  35. cheap tadalafil: cialis pills – tadalafil 20mg best price
    v

  36. generic valtrex: valtrex – generic valtrex canada
    how to bu

  37. cost of finasteride: buy propecia – finasteride 1mg
    how much

  38. natural remedies for ed: erectile dysfunction pills – online

  39. ed medications list: erectile dysfunction medications – pills

  40. which online pharmacy is reliable – erectile dysfunction pills

  41. online pharmacy ed – reliable online pharmacy pharmacy in can

  42. where can i buy cialis without a prescription erectile dysfunction

  43. cheap generic cialis buy cialis online best price – cost of c

  44. generic viagra 100mg viagra from canada – buy viagra order

  45. taking cialis soft tabs taking cialis soft tabs – can i buy c

  46. buy cialis rush buy cialis online cheap – buy cialis tadalafi

  47. cialis original for sale can i buy cialis in toronto – cost o

  48. buy cialis doctor buy cialis cheap canada – buy cialis witho

  49. lisinopril prescription coupon: zestril 5mg – zestril bra

  50. vibramycin 100 mg: doxycycline hyclate 100 mg – buy dox

  51. buy cialis online overnight – ordering cialis online australia<

  52. cialis in europe – cialis sale 20mg
    buy cialis rush

  53. where can u buy cialis – cialis 20mg for sale buy cialis e

  54. buy cialis philippines – order original cialis online ori

  55. cialis 20mg low price – buy cialis cheaper online cheapes

  56. generic cialis daily pricing buy cialis tadalafil tablets – c

  57. how to get ciails without a doctor can i buy cialis in toronto</a

  58. buy amoxicillin from canada buy amoxicillin – amoxicillin 200

  59. 600mg wellbutrin wellbutrin – wellbutrin xl 150mg
    https:

  60. cost of wellbutrin generic 75mg wellbutrin buy online uk

  61. how to order valtrex purchase valtrex – valtrex tablets for s

  62. buy amoxicillin without prescription amoxil – generic amoxil 50

  63. otc zyrtec benadryl gel tablets – 20 benadryl pills

  64. do you need a prescription for zyrtec allegra otc uk – otc

  65. best erection pills cheap erectile dysfunction pill – natural r

  66. ed drugs compared cheapest ed pills online – generic ed pills

  67. buy prescription drugs online legally cheap pills online prescr

  68. viagra cost per pill: viagra price cost of viagra

  69. 100mg viagra http://viagrabng.com/# 100mg viagra

  70. neurontin 300mg gabapentin – order neurontin

  71. doxycycline hydrochloride 100mg doxycycline mono – doxyc

  72. amoxicillin order online purchase amoxicillin online – a

  73. buy chloroquine buy chloroquine canada – chloroquine pho

  74. chloroquine tablets buy generic aralen – chloroquine for

  75. cheap viagra online: viagra – how much is viagra

  76. best over the counter viagra – 100mg viagra viagra without a

  77. buy real viagra online: cost of viagra – viagra without a doc

  78. viagra from india – viagra viagra discount

  79. buy prescription drugs from canada cheap buy generic ed pills onli

  80. I love reading an article that will make men and women think.
    Also, many thanks for allowing me to comment!

  81. Hi to all, for the reason that I am truly keen of
    reading this website’s post to be updated on a regular basis.
    It consists of pleasant information.

  82. Excellent web site. Lots of helpful info here. I’m sending
    it to some buddies ans additionally sharing in delicious.
    And obviously, thank you to your sweat!

  83. Hi there! This article could not be written any better!

    Looking through this article reminds me of my previous roommate!
    He always kept preaching about this. I will send this post to
    him. Pretty sure he’s going to have a great read.

    I appreciate you for sharing!

  84. Thankfulness to my father who told me about this web site, this weblog is in fact remarkable.

  85. Just want to say your article is as surprising. The clearness in your
    post is just great and i could assume you’re an expert on this subject.
    Fine with your permission allow me to grab your feed
    to keep updated with forthcoming post. Thanks a million and please continue the enjoyable work.

  86. Woah! I’m really loving the template/theme of this site.

    It’s simple, yet effective. A lot of times it’s tough to get that “perfect balance” between usability and appearance.
    I must say you’ve done a excellent job with this. Additionally, the blog loads extremely quick for me on Opera.
    Exceptional Blog!

  87. Excellent article. I certainly love this website. Keep writing!

  88. ivermectin eye drops ivermectin – ivermectin cream 1%

  89. metformin 500 mg prices metformin coupon pharmacy – metfor

  90. Somebody essentially assist to make seriously posts
    I would state. That is the very first time I frequented your website page and thus far?
    I surprised with the analysis you made to make this actual
    submit incredible. Magnificent activity!

  91. These are in fact great ideas in concerning blogging.

    You have touched some fastidious points here.

    Any way keep up wrinting.

  92. Howdy are using WordPress for your blog platform?

    I’m new to the blog world but I’m trying to get started and set up my
    own. Do you require any coding knowledge to make your own blog?
    Any help would be really appreciated!

  93. Excellent post. I certainly appreciate this website.
    Stick with it!

  94. I love reading a post that will make men and women think.
    Also, many thanks for allowing me to comment!

  95. Hello, after reading this remarkable piece of writing i am too delighted to
    share my familiarity here with mates.

  96. It’s enormous that you are getting thoughts from this
    piece of writing as well as from our argument made at this time.

  97. I couldn’t refrain from commenting. Exceptionally well written!

  98. Woah! I’m really enjoying the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between usability
    and visual appearance. I must say you have done a great job
    with this. Also, the blog loads extremely fast for me on Chrome.

    Superb Blog!

  99. Hello friends, nice post and good urging commented here, I am actually
    enjoying by these.

  100. Definitely imagine that that you stated. Your favourite reason seemed to be at
    the internet the simplest factor to be mindful of. I say to you, I certainly get annoyed
    whilst other folks think about worries that they plainly do
    not recognize about. You controlled to hit the nail upon the
    top and outlined out the whole thing with no need side effect , other people can take
    a signal. Will probably be back to get more. Thank you

  101. I read this article fully concerning the comparison of newest and
    previous technologies, it’s amazing article.

  102. I blog quite often and I truly appreciate your content.

    The article has really peaked my interest. I will take a note of your site
    and keep checking for new details about once per week. I opted in for your Feed
    as well.

  103. Wonderful work! This is the type of information that are meant to be shared across the internet.
    Shame on Google for not positioning this post higher!
    Come on over and talk over with my site . Thank you =)

  104. Admiring the hard work you put into your blog and
    detailed information you provide. It’s good to come across a blog every once
    in a while that isn’t the same out of date rehashed material.

    Great read! I’ve bookmarked your site and I’m including your RSS
    feeds to my Google account.

  105. You should be a part of a contest for one of the finest websites on the net.
    I most certainly will highly recommend this website!

  106. metformin coupon pharmacy metformin without a script – ge

  107. Magnificent goods from you, man. I’ve understand
    your stuff previous to and you’re just extremely magnificent.
    I really like what you have acquired here, really like what
    you are saying and the way in which you say it. You make it enjoyable and you still care for to keep it smart.
    I can not wait to read far more from you. This
    is really a tremendous site.

  108. Excellent beat ! I would like to apprentice while you amend your site, how can i subscribe for a blog site?

    The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear
    idea

  109. hey there and thank you for your information – I’ve definitely picked up something
    new from right here. I did however expertise a few technical issues using this website,
    since I experienced to reload the website a lot of
    times previous to I could get it to load correctly.
    I had been wondering if your hosting is OK?
    Not that I’m complaining, but slow loading instances times will sometimes affect your placement in google and can damage your quality score if
    ads and marketing with Adwords. Well I am adding this RSS to my email
    and could look out for much more of your respective interesting content.

    Ensure that you update this again soon.

  110. buy ivermectin pills stromectol for humans for sale – s

  111. generic viagra without a doctor prescription: causes

  112. Its like you read my thoughts! You appear to grasp a
    lot approximately this, such as you wrote the e book in it or something.

    I believe that you could do with a few p.c. to pressure the message house a bit, but instead of that, this
    is excellent blog. A great read. I’ll definitely be back.

  113. Hello, I desire to subscribe for this weblog to take hottest updates, thus where can i do it please help.

  114. Heya i am for the first time here. I came
    across this board and I find It truly helpful & it helped me out a lot.
    I hope to offer something back and aid others such as you helped me.

  115. I used to be recommended this blog by way of my cousin. I’m no longer
    positive whether this submit is written through him
    as no one else realize such unique approximately my problem.

    You’re incredible! Thanks!

  116. Hi, I think your site might be having browser compatibility issues.
    When I look at your blog site in Safari, it looks fine
    but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, great blog!

  117. This is my first time pay a quick visit at here
    and i am genuinely happy to read all at alone place.

  118. Hi there! Would you mind if I share your blog with my myspace group?

    There’s a lot of people that I think would really appreciate your content.
    Please let me know. Many thanks

  119. online ed pills: medicine for erectile erectil

  120. canadian pharmacy: how to treat ed – impotence tr

  121. Hello there, I do believe your web site could be having web browser compatibility issues.
    Whenever I take a look at your web site in Safari, it looks fine however, when opening in Internet Explorer, it’s got some overlapping issues.
    I just wanted to give you a quick heads up! Aside from that, wonderful blog!

  122. Have you ever thought about publishing an ebook or
    guest authoring on other websites? I have a blog centered on the same subjects you discuss and would love to have you share some stories/information.
    I know my viewers would value your work. If you are even remotely interested,
    feel free to send me an e mail.

  123. My developer is trying to persuade me to move to .net from PHP.
    I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using Movable-type on various websites for about a year and am worried about
    switching to another platform. I have heard fantastic things about blogengine.net.
    Is there a way I can transfer all my wordpress
    posts into it? Any kind of help would be really appreciated!

  124. obviously like your web-site but you have to test the spelling
    on quite a few of your posts. A number of them are rife with spelling problems and I find it very
    troublesome to inform the reality however I will definitely
    come back again.

  125. What i do not realize is in reality how you are now not actually a lot
    more neatly-liked than you might be right now. You are very intelligent.
    You already know therefore significantly in terms of this
    matter, produced me personally imagine it from so many
    various angles. Its like women and men don’t seem to be involved unless it is something
    to do with Girl gaga! Your individual stuffs great.
    At all times maintain it up!

  126. Hello colleagues, fastidious post and nice arguments commented here,
    I am really enjoying by these.

  127. Excellent post. I used to be checking continuously this blog and I’m inspired!
    Very useful information specifically the ultimate part 🙂
    I maintain such information much. I used to be seeking this certain info for
    a long time. Thank you and best of luck.

  128. Hey very interesting blog!

  129. If you want to get a great deal from this paragraph then you have to apply these
    strategies to your won blog.

  130. I am curious to find out what blog platform you are utilizing?

    I’m having some small security problems with my latest website
    and I’d like to find something more safe. Do you have any suggestions?

  131. What’s up everyone, it’s my first visit at this web page, and article is really fruitful for me, keep up posting these types of content.

  132. This piece of writing will help the internet people for building up new webpage or even a blog from start to end.

  133. I am truly happy to read this website posts which consists of lots of valuable data,
    thanks for providing such statistics.

  134. I think that everything posted made a bunch of sense.
    But, think on this, suppose you added a little content?

    I mean, I don’t wish to tell you how to run your blog, however what if you added something to possibly
    get a person’s attention? I mean Headless Setup of Raspberry
    Pi – Cisco thingQbator is a little vanilla. You could look at Yahoo’s home page and see how they write post titles to get viewers to
    click. You might add a related video or a related pic or two to grab people excited about what
    you’ve written. Just my opinion, it would bring your posts
    a little livelier.

  135. It is not my first time to pay a visit this site, i am visiting this website dailly
    and obtain good data from here all the time.

  136. Hey there! This post could not be written any better!
    Reading this post reminds me of my good old room mate!

    He always kept chatting about this. I will forward this post to him.
    Pretty sure he will have a good read. Thanks for sharing!

  137. best over the counter viagra blue pill viagra – viagra cost

  138. Hello There. I found your blog using msn.
    This is an extremely well written article. I’ll make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll certainly comeback.

  139. What i don’t understood is in reality how you’re no longer actually
    much more smartly-preferred than you might be right now. You’re
    very intelligent. You recognize therefore significantly when it comes to this subject,
    produced me individually consider it from a lot of numerous angles.

    Its like women and men don’t seem to be involved except
    it’s something to do with Lady gaga! Your individual stuffs great.
    Always deal with it up!

  140. Hi! I’ve been following your weblog for a long time now and
    finally got the bravery to go ahead and give you a
    shout out from Kingwood Tx! Just wanted to mention keep up the great
    work!

  141. Hi there I am so excited I found your weblog, I really found
    you by mistake, while I was looking on Digg for something else, Anyhow I
    am here now and would just like to say thanks
    for a incredible post and a all round thrilling blog (I also love the theme/design), I don’t have
    time to browse it all at the minute but I have book-marked
    it and also included your RSS feeds, so when I have time
    I will be back to read much more, Please do keep up the great work.

  142. Hello, its pleasant post on the topic of
    media print, we all know media is a fantastic source of facts.

  143. I’m truly enjoying the design and layout of your website.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come here
    and visit more often. Did you hire out a developer to
    create your theme? Fantastic work!

  144. Inspiring quest there. What happened after? Take care!

  145. best place to buy viagra online viagra without a doctor prescript

  146. over the counter viagra viagra discount – viagra without a

  147. buy cialis cheap canada generic cialis 20 mg tadalafil – how

  148. lasix for sale lasix pills – buy lasix online

  149. ivermectin 2% ivermectin – stromectol liquid

  150. Hi there would you mind letting me know which hosting company you’re
    utilizing? I’ve loaded your blog in 3 different browsers and I must say
    this blog loads a lot quicker then most. Can you recommend a good hosting provider at a honest price?
    Many thanks, I appreciate it!

  151. We stumbled over here coming from a different page and thought I might as well check things
    out. I like what I see so now i am following you.
    Look forward to looking at your web page again.

  152. I loved as much as you’ll receive carried out right
    here. The sketch is attractive, your authored material stylish.
    nonetheless, you command get bought an impatience over that
    you wish be delivering the following. unwell unquestionably come
    more formerly again since exactly the same nearly a lot often inside case you shield this hike.

  153. I was very pleased to discover this website. I want to to thank you for your time due
    to this fantastic read!! I definitely really liked every little bit of it and I have you saved to fav to
    see new stuff in your website.

Leave a Message

Your email address will not be published.

top

Knowledge and Content by Li2 Technologies | © 2021 NASSCOM Foundation | All rights reserved

X