{"id":851,"date":"2020-11-14T13:06:01","date_gmt":"2020-11-14T03:06:01","guid":{"rendered":"http:\/\/www.nickdu.com\/?p=851"},"modified":"2020-11-14T13:06:01","modified_gmt":"2020-11-14T03:06:01","slug":"raspberry-pi-4-setup","status":"publish","type":"post","link":"https:\/\/nickdu.com\/?p=851","title":{"rendered":"Raspberry Pi 4 setup headless"},"content":{"rendered":"\n<p>Recently, I bought a <a rel=\"noreferrer noopener\" href=\"https:\/\/www.raspberrypi.org\/products\/raspberry-pi-4-model-b\/\" target=\"_blank\">Raspberry Pi 4<\/a>. It&#8217;s better for me to record all the steps to setup my Raspberry Pi headless.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.nickdu.com\/wp-content\/uploads\/2020\/11\/Raspberry-Pi-4-8b-1024x768.jpg\" alt=\"\" class=\"wp-image-852\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Download Raspberry Pi OS from <a rel=\"noreferrer noopener\" href=\"https:\/\/www.raspberrypi.org\/software\/operating-systems\/\" target=\"_blank\">https:\/\/www.raspberrypi.org\/software\/operating-systems\/<\/a><\/li><li>Burn the image to the micro SD card, I use rufus, which can be found at <a rel=\"noreferrer noopener\" href=\"https:\/\/rufus.ie\/\" target=\"_blank\">https:\/\/rufus.ie\/<\/a><\/li><li>Write an empty text file named &#8220;<em>ssh<\/em><strong>&#8220;<\/strong>&nbsp;(no file extension) to the root of the directory of the card.&nbsp;<\/li><li>Setup a Wi-Fi connection<strong>&nbsp;<\/strong>for your Raspberry Pi.  Create a text file called &#8220;<em>wpa_supplicant.conf<\/em>&#8220;, and place it in the root directory of the microSD card. You will need the following text in the file.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>country=US\nctrl_interface=DIR=\/var\/run\/wpa_supplicant GROUP=netdev\nupdate_config=1\nnetwork={\nscan_ssid=1\nssid=\"your_wifi_ssid\"\npsk=\"your_wifi_password\"\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Open &#8220;<em>config.txt<\/em>&#8221; from the micro SD card root folder. Uncomment out the following code<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>hdmi_force_hotplug=1\n\nhdmi_drive=2<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Insert the micro SD card to Raspberry Pi and boot up.<\/li><li>Connecting via SSH. I use Putty, which can be downloaded from <a rel=\"noreferrer noopener\" href=\"https:\/\/www.putty.org\/\" target=\"_blank\">https:\/\/www.putty.org\/<\/a><\/li><li>Enter&nbsp;&#8220;<em>raspberrypi<\/em>&#8221;&nbsp;or&nbsp;&#8220;<em>raspberrypi.local&nbsp;<\/em>&#8220;as the address you wish to connect to in Putty, and&nbsp;click Open.&nbsp;<\/li><li>Enter&nbsp;&#8220;<em>pi<\/em>&#8221;&nbsp;as your username and&nbsp;&#8220;<em>raspberry<\/em>&nbsp;&#8220;as your password.&nbsp;<\/li><li>Enabling and Connecting over VNC<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo raspi-config<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Download, install and launch<strong>&nbsp;<\/strong><a rel=\"noreferrer noopener\" href=\"https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/\" target=\"_blank\">VNC Viewer<\/a> to connect raspberry.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I bought a Raspberry Pi 4. It&#8217;s better for me to record all the steps to setup my Raspberry Pi headless. Download Raspberry Pi OS from https:\/\/www.raspberrypi.org\/software\/operating-systems\/ Burn the image to the micro SD card, I use rufus, which can be found at https:\/\/rufus.ie\/ Write an empty text file named &#8220;ssh&#8220;&nbsp;(no file extension) to &hellip; <a href=\"https:\/\/nickdu.com\/?p=851\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Raspberry Pi 4 setup headless&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-851","post","type-post","status-publish","format-standard","hentry","category-it"],"_links":{"self":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=851"}],"version-history":[{"count":0,"href":"https:\/\/nickdu.com\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions"}],"wp:attachment":[{"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nickdu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}