{"id":398,"date":"2019-02-02T15:02:45","date_gmt":"2019-02-02T23:02:45","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=398"},"modified":"2020-04-12T16:59:45","modified_gmt":"2020-04-12T23:59:45","slug":"setup-raspberry-pi","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/setup-raspberry-pi\/","title":{"rendered":"Setup Raspbian"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Download Raspian Full Desktop<\/h2>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-raspberry-pi\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.raspberrypi.org\/downloads\/raspbian\/\n<\/div><\/figure>\n\n\n\n<p>After downloading run ssl checksum with the SHA-256 key<\/p>\n\n\n\n<p>Burn Image using Windows10 and <a href=\"https:\/\/www.softpedia.com\/get\/CD-DVD-Tools\/Data-CD-DVD-Burning\/Win32-Disk-Imager.shtml\">Win32DiskImager<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"407\" height=\"207\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2019\/02\/Win32DiskImager_Raspian_stretch_full.png\" alt=\"\" class=\"wp-image-401\"\/><figcaption>Select Image file by clicking on folder icon, Select Device (Select SD Card from drop Down), then click Write button to burn image file on the selected device<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Start Raspberry Pi to finish setup and install updates <\/h3>\n\n\n\n<p>Configuration will ask to set country settings, change Password, Select Wifi and Wifi Password, Next Update Software (takes ~15 min) and then Reboot when  finished updates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Alternate Instruction using Raspberry Pi only<\/h3>\n\n\n\n<p>Download Raspian Zip file then use Archiver desktop app to extract contents of zip file.<br>Run open ssl sha256 checksum on the zip file. Verify that the result matches the result on the website.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">openssl sha256 filename.zip<br>example: openssl sha256 home\/pi\/Downloads\/2018-11-13-raspbian-stretch-full.zip<br>SHA256(2018-11-13-raspbian-stretch-lite.zip)= 0ca644.........<\/pre>\n\n\n\n<p>On The Command Line use unzip and replace filename with the file downloaded from Raspberrypi.org\/download. Making Sure there is enough  available Free Space for the uncompressed img file (up to 5.4 GB for Full Desktop Version) <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">unzip filename.zip <br>example: unzip  home\/pi\/Downloads\/2018-11-13-raspbian-stretch-full.zip <br>Archive:  2018-11-13-raspbian-stretch-full.zip<br>   inflating: 2018-11-13-raspbian-stretch-full.img  <\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Copy image to SD Card <\/h3>\n\n\n\n<p>On Linux using dd command: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dd if=\/location\/of\/the\/img\/file.img of=\/dev\/sdx <br><br>example: sudo dd if=\/home\/pi\/Downloads\/Extracted\/2018-11-13-raspbian-stretch-full.img of=\/dev\/sda <br> 10346496+0 records in<br> 10346496+0 records out<br> 5297405952 bytes (5.3 GB, 4.9 GiB) copied, 1620.69 s, 3.3 MB\/s<\/pre>\n\n\n\n<p>To validate img file was copied check \/media\/pi for boot and rootfs folders which are placeholders for the SD card Partitions. <\/p>\n\n\n\n<p>Eject the USB MicroSD Card Reader then insert it into the Raspberry Pi to continue configuring. If setting up for a headless (remote access with no Monitor connected) follow the instructions listed below to configure access. <\/p>\n\n\n\n<p>Enable SSH<br>Create a new empty file with the name ssh without a file extension<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo touch \/media\/pi\/boot\/ssh<\/pre>\n\n\n\n<p>Enable Gadget Mode<br>open file config.txt on the partition named boot<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano  \/media\/pi\/boot\/config.txt<\/pre>\n\n\n\n<p>#Enable USB ethernet Gadget mode by adding the Following Line<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dtoverlay=dwc2<\/pre>\n\n\n\n<p>Save and close the file then open the file cmdline.txt<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano  \/media\/pi\/boot\/cmdline.txt<\/pre>\n\n\n\n<p>The file will list a long instruction set. This needs to remain one continuous line. Find rootwait quiet and insert modules-load=dwc2,g_ether<br>Example Below:<\/p>\n\n\n\n<p>dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=1c7f26dc-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait  modules-load=dwc2,g_ether  quiet splash plymouth.ignore-serial-consoles<\/p>\n\n\n\n<p>to check connection to RaspberryPi usb Gadget use the ping command. Values such as IP and time will be different.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ping rasberrypi.local<br>example: PING raspberrypi.local (169.254.223.0) 56(84) bytes of data.<br> 64 bytes from raspberrypi.local (169.254.223.0): icmp_seq=1 ttl=64 time=0.965 ms<br> 64 bytes from raspberrypi.local (169.254.223.0): icmp_seq=2 ttl=64 time=0.373 ms<\/pre>\n\n\n\n<p>If more than one raspberry pi is connected to the network make sure you keep track of IP addresses and verify that the IP addess is link-local IPv4 address following the format 169.254.#.# and not a DHCP assigned value as it should not be able to connect yet.<br>Next SSH into the RaspberryPi using the IP Address from the ping confirm you want to continue connecting and enter password when prompted<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh pi@raspberrypi.local<br> The authenticity of host 'raspberrypi.local (169.254.57.89)' can't be established.<br> ECDSA key fingerprint is SHA256:###########\/f\/pbatI+sm2cuG+sqkE.<br> Are you sure you want to continue connecting (yes\/no)? yes<br> Warning: Permanently added 'raspberrypi.local,169.254.57.89' (ECDSA) to the list of known hosts.<br> pi@raspberrypi.local's password:<br>Linux raspberrypi 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l<br> The programs included with the Debian GNU\/Linux system are free software;<br> the exact distribution terms for each program are described in the<br> individual files in \/usr\/share\/doc\/*\/copyright.<br> Debian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent<br> permitted by applicable law.<br> Last login: Tue Nov 13 14:25:33 2018<br> -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)<br> -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)<br> SSH is enabled and the default password for the 'pi' user has not been changed.<br> This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.<br> -bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)<br> pi@raspberrypi:~ $  <\/pre>\n\n\n\n<p>From here the rspberry pi is now accessible from the host at the IP Address. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download Raspian Full Desktop After downloading run ssl checksum with the SHA-256 key Burn Image using Windows10 and Win32DiskImager Start Raspberry Pi to finish setup and install updates Configuration will ask to set country settings, change Password, Select Wifi and Wifi Password, Next Update Software (takes ~15 min) and then Reboot when finished updates. Alternate &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/raspian-linux-programs\/setup-raspberry-pi\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Setup Raspbian&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":261,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-398","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/398\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/261"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}