{"id":12775,"date":"2020-05-29T07:17:01","date_gmt":"2020-05-29T11:17:01","guid":{"rendered":"https:\/\/qxf2.com\/blog\/?p=12775"},"modified":"2020-05-29T07:17:01","modified_gmt":"2020-05-29T11:17:01","slug":"setup-raspberry-pi-headlessly-without-any-external-mouse-keyboard-and-display","status":"publish","type":"post","link":"https:\/\/qxf2.com\/blog\/setup-raspberry-pi-headlessly-without-any-external-mouse-keyboard-and-display\/","title":{"rendered":"Setup Raspberry Pi headlessly without any external mouse, keyboard and display"},"content":{"rendered":"<p>Beginners find it confusing to set up the Raspberry Pi from scratch. There are many tutorials that show each individual steps in detail\u00a0but not many of them have\u00a0a list of all the individual steps together. I also come across the same problem and come up here with the solution. I hope this post is helpful to you.<\/p>\n<hr \/>\n<h3>Components<\/h3>\n<p>To setup Raspberry Pi, you only require:<\/p>\n<ul>\n<li>Raspberry Pi kit (Raspberry Pi Board, SD Card and SD Card Reader)<\/li>\n<li>LAN Cable<\/li>\n<\/ul>\n<hr \/>\n<h3>Steps to setup Raspberry Pi in headless mode<\/h3>\n<p>To setup Raspberry Pi headlessly without any external keyboard, mouse, and display, you need to go through the following steps:<\/p>\n<p><strong>Step 1: Download Rasberry Pi supported OS Image<\/strong><\/p>\n<p>I downloaded <strong>Raspbian Buster with desktop and recommended software<\/strong> (zip download) from the\u00a0<a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\">official Site<\/a>\u00a0and this image is of 2530 MB. In case, if you only want to ssh into Raspberry Pi, I suggest you go with <strong>Raspbian Buster Lite<\/strong>, it is only 434MB in size. Please download any available image as per your project requirements.<\/p>\n<p><strong>Step 2: Format SD Card with SD Card Formatter<\/strong><\/p>\n<p><a href=\"https:\/\/www.sdcard.org\/downloads\/formatter\/\">Download<\/a> and install any SD Card Formatter to format the SD Card. After installation, select the card which you want to format and click on the format button with existed other default settings to format the card.<\/p>\n<p><strong>Step 3: Download a tool to write image on SD card<\/strong><\/p>\n<p>I downloaded <a href=\"https:\/\/www.balena.io\/etcher\/\">balenaEtcher<\/a>. balenaEtcher is compatible with Mac OS, Linux and Windows, and it is easy to use. balenaEtcher also supports writing images directly from the zip file, without any unzipping required.<\/p>\n<figure id=\"attachment_12788\" aria-describedby=\"caption-attachment-12788\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/balenaEtacher_.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12788 size-medium\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/balenaEtacher_-300x180.png\" alt=\"balenaEtacher\" width=\"300\" height=\"180\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/balenaEtacher_-300x180.png 300w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/balenaEtacher_-768x461.png 768w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/balenaEtacher_.png 996w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-12788\" class=\"wp-caption-text\">balenaEtacher<\/figcaption><\/figure>\n<p>To write your image with balenaEtcher:<\/p>\n<ol>\n<li>Download the latest version of <a href=\"https:\/\/www.balena.io\/etcher\/\">balenaEtcher<\/a> and install it.<\/li>\n<li>Connect the SD card reader with the SD card inside.<\/li>\n<li>Open balenaEtcher and select from your hard drive the Raspberry Pi .img or .zip file you wish to write to the SD card.<\/li>\n<li>Select the SD card you wish to write your image to.<\/li>\n<li>Review your selections and click &#8216;Flash!&#8217; to begin writing data to the SD card.<\/li>\n<\/ol>\n<p>Note: Writing image may take approximately 5 to 7 mins and it may vary based on the size of the image.<\/p>\n<p><strong>Step 4:\u00a0Add ssh file on SD Card Root<\/strong><\/p>\n<p>On the boot partition of the SD card,\u00a0create\/add a file named \u201cssh\u201d (without any extension), it will\u00a0Enable\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Secure_Shell\" target=\"_blank\" rel=\"noopener\">SSH<\/a>. I created mine from Windows Explorer. Right-click on the boot partition folder, create a new text file and rename it to &#8220;ssh&#8221; and remove .txt extension. You can also create it by running command <code>\"echo boot_partion_directory:\\ssh\"<\/code> in command prompt.<\/p>\n<p><strong>Step 5: Insert SD card into Raspberry Pi and connect LAN cable to Raspberry Pi and Laptop<\/strong><\/p>\n<figure id=\"attachment_12789\" aria-describedby=\"caption-attachment-12789\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_20200429_172717.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12789\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_20200429_172717-300x225.jpg\" alt=\"Connect RaspberryPi with LAN Cable\" width=\"300\" height=\"225\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_20200429_172717-300x225.jpg 300w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_20200429_172717-768x576.jpg 768w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/IMG_20200429_172717-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-12789\" class=\"wp-caption-text\">Connect Raspberry Pi with LAN Cable<\/figcaption><\/figure>\n<p><strong>Step 6: Figure out IP\u00a0 Address of Raspberry Pi<\/strong><\/p>\n<p>To connect with your Raspberry Pi, you need to find the IP address. You can check in your Router\u2019s DHCP lease allocation table as shown in the following image.<\/p>\n<figure id=\"attachment_12839\" aria-describedby=\"caption-attachment-12839\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/find-ip-addr.png\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12839 size-large\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/find-ip-addr-1024x595.png\" alt=\"Find IP Address\" width=\"1024\" height=\"595\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/find-ip-addr-1024x595.png 1024w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/find-ip-addr-300x174.png 300w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/find-ip-addr-768x446.png 768w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/find-ip-addr.png 1288w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption id=\"caption-attachment-12839\" class=\"wp-caption-text\">Find IP Address<\/figcaption><\/figure>\n<p>If you don&#8217;t know\/remember your router&#8217;s IP, please refer tutorial <a href=\"https:\/\/helpdeskgeek.com\/how-to\/determine-computers-connected-to-wireless-network\/\">here<\/a>.<\/p>\n<p>You can also find the IP address of Raspberry Pi by using any <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.goodidea.network.ipscanner&amp;hl=en_IN\">Android IP Scanner APP<\/a> or <a href=\"https:\/\/apps.apple.com\/tt\/app\/ip-network-scanner-lite\/id335517828\">iOS IP Scanner APP<\/a>.<\/p>\n<p>In case, if you are not getting an IP address by checking DHCP Client List or by IP Scanner app, you need check LAN connection between Raspberry Pi and Laptop and also need to check your WiFi\/Network sharing property enabled for other connected devices or not.<\/p>\n<p>To check WiFi sharing property, on Windows, go to &#8220;Network and Sharing Center&#8221;, click on the WiFi connection to check WiFi Property. On the &#8220;Sharing&#8221; tab, check the following options pointed in the image were enabled or not. If not enabled, please enable it to share your network with Raspberry Pi.<\/p>\n<figure id=\"attachment_12840\" aria-describedby=\"caption-attachment-12840\" style=\"width: 453px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/WIFI-sharing_settings.png\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-12840\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/WIFI-sharing_settings.png\" alt=\"Network Sharing Settings\" width=\"453\" height=\"585\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/WIFI-sharing_settings.png 453w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/05\/WIFI-sharing_settings-232x300.png 232w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/a><figcaption id=\"caption-attachment-12840\" class=\"wp-caption-text\">Network Sharing Settings<\/figcaption><\/figure>\n<p><strong>Step 7: SSH to Raspberry Pi<\/strong><\/p>\n<p>Use any SSh Client to connect with your Raspberry Pi. Here I used git bash.<\/p>\n<p>The default credentials of Raspberry Pi are:<\/p>\n<pre>username: pi\r\npassword: raspberry<\/pre>\n<figure id=\"attachment_12790\" aria-describedby=\"caption-attachment-12790\" style=\"width: 1021px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/ssh-into-raspberry.png\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-12790 size-full\" src=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/ssh-into-raspberry.png\" alt=\"ssh-into-raspberry\" width=\"1021\" height=\"528\" srcset=\"https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/ssh-into-raspberry.png 1021w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/ssh-into-raspberry-300x155.png 300w, https:\/\/qxf2.com\/blog\/wp-content\/uploads\/2020\/04\/ssh-into-raspberry-768x397.png 768w\" sizes=\"auto, (max-width: 1021px) 100vw, 1021px\" \/><\/a><figcaption id=\"caption-attachment-12790\" class=\"wp-caption-text\">ssh to Raspberry Pi<\/figcaption><\/figure>\n<hr \/>\n<p>Now, you have access to configure and work on your Raspberry Pi. Hope this blog is helpful for you.<\/p>\n<hr \/>\n","protected":false},"excerpt":{"rendered":"<p>Beginners find it confusing to set up the Raspberry Pi from scratch. There are many tutorials that show each individual steps in detail\u00a0but not many of them have\u00a0a list of all the individual steps together. I also come across the same problem and come up here with the solution. I hope this post is helpful to you. Components To setup [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[224,232],"tags":[233],"class_list":["post-12775","post","type-post","status-publish","format-standard","hentry","category-hardware-devices","category-raspberry-pi","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/12775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/comments?post=12775"}],"version-history":[{"count":24,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/12775\/revisions"}],"predecessor-version":[{"id":13073,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/posts\/12775\/revisions\/13073"}],"wp:attachment":[{"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/media?parent=12775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/categories?post=12775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qxf2.com\/blog\/wp-json\/wp\/v2\/tags?post=12775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}