{"id":313,"date":"2016-05-23T14:23:14","date_gmt":"2016-05-23T13:23:14","guid":{"rendered":"http:\/\/www.adienicholls.co.uk\/blogs\/?p=313"},"modified":"2024-04-30T03:21:50","modified_gmt":"2024-04-30T02:21:50","slug":"raspberry-pi-base-image","status":"publish","type":"post","link":"http:\/\/www.adienicholls.co.uk\/blog\/raspberry-pi-base-image\/","title":{"rendered":"Raspberry Pi Base Image"},"content":{"rendered":"<p>Here is a quick instruction set on how to setup a Raspberry Pi Full Desktop Image with a basic configuration completed so a fresh build can be put on an SD card from an image so you wont have to start from scratch for each new project\/rebuild.<\/p>\n<p>For instructions on creating a base image for Raspbian Light, <del>see the following link &#8211; Raspbian Lite Base Image<\/del><\/p>\n<p>&nbsp;<\/p>\n<p>You don&#8217;t need to complete every one of the options below, just the ones that suit you.<\/p>\n<p style=\"text-align: center;\">**work in progress**<\/p>\n<p style=\"text-align: center;\"><!--more--><\/p>\n<h2>Software<\/h2>\n<p>Download the following 3 required applications to enable the install and config the Raspbian OS.<\/p>\n<p><strong>SD Card Formatter<\/strong> &#8211; required<br \/>\n<a href=\"https:\/\/www.sdcard.org\/downloads\/formatter_4\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.sdcard.org\/downloads\/formatter_4\/<\/a><\/p>\n<p><strong>Win32DiskImager<\/strong>&#8211; required<br \/>\n<a href=\"https:\/\/sourceforge.net\/projects\/win32diskimager\/\" target=\"_blank\" rel=\"noopener\">https:\/\/sourceforge.net\/projects\/win32diskimager\/<\/a><\/p>\n<p><strong>Raspbian Jessie Full Image <\/strong>(2016-03-18) &#8211; required<br \/>\n<a href=\"https:\/\/www.raspberrypi.org\/downloads\/raspbian\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.raspberrypi.org\/downloads\/raspbian\/<\/a><\/p>\n<p>2 optional applications are listed below for remote access to the RPi<\/p>\n<p><strong>Putty <\/strong>&#8211; optional<strong><br \/>\n<\/strong><a href=\"http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/download.html<\/a><\/p>\n<p><strong>WinSCP <\/strong>&#8211; optional<br \/>\n<a href=\"https:\/\/winscp.net\/eng\/download.php\" target=\"_blank\" rel=\"noopener\">https:\/\/winscp.net\/eng\/download.php<\/a><\/p>\n<hr \/>\n<h2>Lets Get Started!<\/h2>\n<p>Start off by formatting the SD card using &#8216;SD Card Formatter&#8217;.<\/p>\n<p>Then<\/p>\n<p>Write the raw downloaded Raspbian Operating System Image to the SD card using &#8216;Win32DiskImager&#8217;.<\/p>\n<p>Place the SD card into the Raspberry Pi and power up.<\/p>\n<hr \/>\n<h2>Install done, Setup time<\/h2>\n<p>There are 2 ways to connect into the Raspberry Pi, using a keyboard\/mouse and monitor directly connected to the RPi or connect remotely using Putty.<\/p>\n<p>For this guide we will be using Putty to remotely connect, you will need to find out the IP address of the RPi,\u00a0 check your DHCP server for this information.<\/p>\n<h3><strong>Login as pi\/raspberry<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-269 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-1-600x63.png\" alt=\"\" width=\"600\" height=\"63\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-1-600x63.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-1.png 671w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><strong>Update Raspbian<\/strong><\/p>\n<pre>sudo apt-get update<\/pre>\n<pre>sudo apt-get upgrade<\/pre>\n<pre>sudo apt-get dist-upgrade<\/pre>\n<pre>sudo apt-get clean<\/pre>\n<hr \/>\n<h3><strong>Enter the Raspbian Setup<\/strong><\/h3>\n<pre>sudo raspi-config<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-272 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-4.png\" alt=\"\" width=\"421\" height=\"20\" \/><\/p>\n<hr \/>\n<h3><b>Expand file System<\/b><\/h3>\n<p>Select option:<\/p>\n<pre>1\u00a0 Expand Filesystem<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-273 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-5.png\" alt=\"\" width=\"529\" height=\"18\" \/><\/p>\n<p>Select option:<\/p>\n<pre>&lt;Ok&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-274 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-6.png\" alt=\"RPiSetup-6\" width=\"488\" height=\"325\" \/><\/p>\n<p style=\"text-align: center;\">You will be returned to the Raspi-Config menu<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-291 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png\" alt=\"\" width=\"600\" height=\"256\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0.png 641w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<hr \/>\n<h3><b>Enable Login to Desktop with the user Pi <em>&#8211; option<\/em><br \/>\n<\/b><\/h3>\n<p>Select option:<\/p>\n<pre>3\u00a0 Boot Options<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-275 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-7.png\" alt=\"\" width=\"529\" height=\"18\" \/><\/p>\n<p>Select option:<\/p>\n<pre>B4<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-276 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-8.png\" alt=\"\" width=\"570\" height=\"18\" \/><\/p>\n<p style=\"text-align: center;\">You will be returned to the Raspi-Config menu<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-291 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png\" alt=\"\" width=\"600\" height=\"256\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0.png 641w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<hr \/>\n<h3><b>Set Host name <em>&#8211; option<\/em><br \/>\n<\/b><\/h3>\n<p>If your creating a base image it would be best to name the device something so it stands out on your network as &#8216;the new device&#8217; rather then just another RPi device. to do this i set the Hostname as HHFT, no other devices on the network will have this name&#8230;<\/p>\n<p>Select option:<\/p>\n<pre>9 Advanced Options<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-277 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-9.png\" alt=\"\" width=\"528\" height=\"17\" \/><\/p>\n<p>Select option:<\/p>\n<pre>&lt;Ok&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-278 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-10.png\" alt=\"\" width=\"560\" height=\"322\" \/><\/p>\n<p>Enter a Host name and\u00a0 Select<\/p>\n<pre>&lt;Ok&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-292 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-23.png\" alt=\"\" width=\"480\" height=\"320\" \/><\/p>\n<p style=\"text-align: center;\">You will be returned to the Raspi-Config menu<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-291 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png\" alt=\"\" width=\"600\" height=\"256\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0.png 641w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<hr \/>\n<h3><b>Overclock <em>&#8211; option<\/em><br \/>\n<\/b><\/h3>\n<p>Select option:<\/p>\n<pre>8\u00a0 Overclock<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-280 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-12.png\" alt=\"\" width=\"532\" height=\"18\" \/><\/p>\n<p>Select option:<\/p>\n<pre>&lt;Ok&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-281 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-13.png\" alt=\"\" width=\"561\" height=\"322\" \/><\/p>\n<p>Select option:<\/p>\n<pre>High 1000MHz ARM,..............<\/pre>\n<p>And then<\/p>\n<pre>&lt;Ok&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-282 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-14.png\" alt=\"\" width=\"481\" height=\"322\" \/><\/p>\n<p>Select option:<\/p>\n<pre>&lt;Ok&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-283 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-15.png\" alt=\"\" width=\"483\" height=\"323\" \/><\/p>\n<p style=\"text-align: center;\">You will be returned to the Raspi-Config menu<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-291 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png\" alt=\"\" width=\"600\" height=\"256\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0-600x256.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-0.png 641w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<hr \/>\n<p>Select option:<\/p>\n<pre>&lt;Finish&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-284 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-16-600x71.png\" alt=\"\" width=\"600\" height=\"71\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-16-600x71.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-16.png 652w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Select option:<\/p>\n<pre>&lt;Yes&gt;<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-285 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-17.png\" alt=\"\" width=\"483\" height=\"323\" \/><\/p>\n<p>The system will now reboot<\/p>\n<hr \/>\n<h3>WiFi Connection <em>&#8211; option<\/em><\/h3>\n<p>If you want to add a WiFi config to your base image, <a href=\"http:\/\/www.adienicholls.co.uk\/blog\/raspberry-pi-wifi-config\/\">see this post on RPi WiFi setup<\/a><\/p>\n<hr \/>\n<h2><\/h2>\n<h3><b>Force the screen to stay On <em>&#8211; option<\/em><\/b><\/h3>\n<p>After approx 15 minutes with no user input the screen will go black, to stop this the lightdm.cofig file must be edited;<\/p>\n<pre>sudo nano \/etc\/lightdm\/lightdm.conf<\/pre>\n<p>Add\/edit the following lines to the [SeatDefaults] section:<\/p>\n<pre># don't sleep the screen\r\nxserver-command=X -s 0 dpms<\/pre>\n<hr \/>\n<h3><b>Force HDMI Output <em>&#8211; fix<\/em><br \/>\n<\/b><\/h3>\n<p>Some devices may not immediately notice the Pi&#8217;s HDMI or may not do the negotiation.<\/p>\n<p>Update the .config file to force the HDMI output and mode<\/p>\n<p>The .config\u00a0 file is access through a PC, mount the SD card and open the drive in &#8216;My Computer&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-286 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-18.png\" alt=\"\" width=\"528\" height=\"522\" \/><\/p>\n<p>Open the Config.txt using a notepad editor.<\/p>\n<p>Update the Following lines as applicable:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-287 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-19-600x36.png\" alt=\"\" width=\"600\" height=\"36\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-19-600x36.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-19.png 627w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<hr \/>\n<h3><b>HDMI not detected <em>&#8211; fix<\/em><\/b><b> <\/b><\/h3>\n<p><b>Increase signal strength <\/b>(max value= 9)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-288 size-medium\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-20-600x46.png\" alt=\"\" width=\"600\" height=\"46\" srcset=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-20-600x46.png 600w, http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-20.png 663w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3><b>HDMI Group<\/b><b> <\/b><b><\/b><\/h3>\n<p>This defines the HDMI output group to be either CEA (Consumer Electronics Association, the standard typically used by TVs) or DMT (Display Monitor Timings, the standard typically used by monitors). This setting should be used in conjunction with hdmi_mode.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-289 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-21.png\" alt=\"\" width=\"540\" height=\"52\" \/><\/p>\n<p>(use hdmi_group=1 and if it is an older TV, try hdmi_group=2.)<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>hdmi_group<\/b><\/td>\n<td><b>result<\/b><\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>Auto-detect from EDID<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>CEA<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>DMT<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3><b>HDMI Mode<br \/>\n<\/b><\/h3>\n<p>See <a href=\"https:\/\/www.raspberrypi.org\/documentation\/configuration\/config-txt.md\">https:\/\/www.raspberrypi.org\/documentation\/configuration\/config-txt.md<\/a> for mode settings<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-290 size-full\" src=\"http:\/\/www.adienicholls.co.uk\/blog\/wp-content\/uploads\/2016\/05\/RPiSetup-22.png\" alt=\"\" width=\"540\" height=\"52\" \/><\/p>\n<p>Do not set hdmi_safe=1 as this overrides many of the previous options.<\/p>\n<hr \/>\n<h2>Wrap it all up ready for next time<\/h2>\n<p>Once your happy with the base image, using WinDisk32,\u00a0 we can save the contents of the SD card back to an image file on your PC, ready to write to another SD card for the next project.<\/p>\n<hr \/>\n<h2>Finally<\/h2>\n<p>Don&#8217;t forget to run an update on Raspbian when you come to use it in your next project:<\/p>\n<pre>sudo apt-get update<\/pre>\n<pre>sudo apt-get upgrade<\/pre>\n<pre>sudo apt-get dist-upgrade<\/pre>\n<pre>sudo apt-get clean<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is a quick instruction set on how to setup a Raspberry Pi Full Desktop Image with a basic configuration completed so a fresh build can be put on an SD card from an image so you wont have to start from scratch for each new project\/rebuild. For instructions on creating a base image for &hellip; <a href=\"http:\/\/www.adienicholls.co.uk\/blog\/raspberry-pi-base-image\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Raspberry Pi Base Image<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":222,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,88],"tags":[264,263,257],"_links":{"self":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts\/313"}],"collection":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=313"}],"version-history":[{"count":7,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":462,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/posts\/313\/revisions\/462"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/media\/222"}],"wp:attachment":[{"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.adienicholls.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}