{"id":520,"date":"2021-08-10T19:35:40","date_gmt":"2021-08-10T17:35:40","guid":{"rendered":"https:\/\/www.petersplanet.nl\/?p=520"},"modified":"2021-08-11T09:38:47","modified_gmt":"2021-08-11T07:38:47","slug":"using-raspberry-pi-in-headless-mode","status":"publish","type":"post","link":"https:\/\/www.petersplanet.nl\/index.php\/2021\/08\/10\/using-raspberry-pi-in-headless-mode\/","title":{"rendered":"Using Raspberry Pi in headless mode"},"content":{"rendered":"\n<p>It is possible to use a Raspberry Pi in headless mode. So without a keyboard and monitor. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>First install an OS on the Raspberry Pi. <a href=\"https:\/\/www.raspberrypi.org\/software\/\" data-type=\"URL\" data-id=\"https:\/\/www.raspberrypi.org\/software\/\">Download <\/a>the latest imager and install it on your desktop. Run the imager and write the Raspberry Pi OS on the SD-card. When you remove and insert the card you will see that it has a boot partition.<\/p>\n\n\n\n<p>Create an empty file with the name &#8220;ssh&#8221; in the root of the boot partition of the SD-card. This will enable the SSH daemon so that you can connect with SSH to the server.<\/p>\n\n\n\n<p>If you have WIFI on board you can also enable this on startup. Create a file called wpa_supplicant.conf in the same boot partition. Example content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\ncountry=&lt;Insert 2 letter ISO 3166-1 country code here&gt;\nupdate_config=1\n\nnetwork={\n ssid=\"&lt;Name of your wireless LAN&gt;\"\n psk=\"&lt;Password for your wireless LAN&gt;\"\n}<\/code><\/pre>\n\n\n\n<p>The additional files in the boot partition will be moved to the correct location on the Linux operating system after the OS has been started.<\/p>\n\n\n\n<p>Now connect power to your Raspberry Pi and wait a few minutes for the OS to boot. Connect to it with an SSH terminal e.g. Putty on your desktop. However first you will have to find out what the IP-address is. I found the IP-address on an admin page of my Wireless router.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>References:<br><a href=\"https:\/\/www.raspberrypi.org\/documentation\/computers\/\">https:\/\/www.raspberrypi.org\/documentation\/computers\/<\/a><br><a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\">https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is possible to use a Raspberry Pi in headless mode. So without a keyboard and monitor.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-520","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts\/520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/comments?post=520"}],"version-history":[{"count":14,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts\/520\/revisions"}],"predecessor-version":[{"id":535,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/posts\/520\/revisions\/535"}],"wp:attachment":[{"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/media?parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/categories?post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.petersplanet.nl\/index.php\/wp-json\/wp\/v2\/tags?post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}