{"id":1270,"date":"2021-09-03T11:59:56","date_gmt":"2021-09-03T10:59:56","guid":{"rendered":"https:\/\/matthewolden.co.uk\/?p=1270"},"modified":"2021-09-03T11:59:56","modified_gmt":"2021-09-03T10:59:56","slug":"pi-set-up","status":"publish","type":"post","link":"https:\/\/matthewolden.co.uk\/?p=1270","title":{"rendered":"Pi Set Up"},"content":{"rendered":"<p style=\"text-align: left;\">The long list of instructions here, when followed\u00a0in order will result in a raspberry pi running the lastest version of raspbian, that you can operate wirelessly thru another computer. We will also back up the Pi so we have a clone of it. Further instructions on the website will enable you then to turn this base Pi into many different tools.<\/p>\n<p style=\"text-align: center;\"><strong>Equipment<\/strong><\/p>\n<p>the best place to start is always the official raspberry pi website. <a href=\"https:\/\/projects.raspberrypi.org\/en\/projects\/raspberry-pi-setting-up\/1\">heres what they have to say<\/a><\/p>\n<p>the equipment we will defiantly need is as follows, it&#8217;ll cost you around fifty quid<\/p>\n<p>raspberry pi &#8211; i would suggest at least a version 3<\/p>\n<p>power lead\u00a0 -worth getting the official, most problems with raspberry pi&#8217;s come from insuffient power- it can cause programs to behave unpredictably<\/p>\n<p>2 memory cards &#8211; 32 gigs is good, but no smaller that 16gigs. you will also need a card reader.<\/p>\n<p>Notice i havent listed a moniter,keyboard or mouse,\u00a0the following set up will set the Pi up in a headless mode, that is you don&#8217;t need a monitor , mouse or keyboard. We will use a computer to access the Pi and its desktop, if you want to use the Raspberry Pi as a standard computer with its own screen, you can just plug in a keyboard ,mouse and use the HDMI output to plug into a moniter. There are other things we will need to plug in the pi when we come to make stuff (such as a soundcard,camera,arduino) but these will be detailed when required for a project<\/p>\n<p style=\"text-align: center;\"><strong>Getting it working- Burning a memory card<\/strong><\/p>\n<p>The raspberry pi brain exists on a memory card. The first job is to burn the operating system on the memory card. This is very simple with the Raspberry PI imager.<\/p>\n<p>download it from here<\/p>\n<p class=\"p1\"><a href=\"https:\/\/www.raspberrypi.org\/software\/\">https:\/\/www.raspberrypi.org\/software\/<\/a><\/p>\n<p class=\"p1\">and here&#8217;s the official video of telling how to burn<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/ntaXWS8Lk34\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Before you go of and burn theres a few settings we should change, so we can connect wirelessly to the raspberry pi and use our own computer to access its desktop.<\/p>\n<p>first with Raspberry Pi imager open before we hold down<\/p>\n<p class=\"p1\">control ,shift, x<\/p>\n<p class=\"p1\">this will bring up a dialog box, fill it out so it matches this<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/advanced-setting.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1277\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/advanced-setting-513x1024.jpg\" alt=\"advanced setting\" width=\"513\" height=\"1024\" \/><\/a><\/p>\n<p class=\"p1\">Set password for &#8220;pi&#8221; user &#8211; i have left as the defualt password , raspberry<\/p>\n<p class=\"p1\">under the configure wifi spot put your own wifi network details in<\/p>\n<p class=\"p1\">press save then burn the card.<\/p>\n<p class=\"p1\" style=\"text-align: center;\"><strong>First Boot to the Raspberry Pi<\/strong><\/p>\n<p class=\"p1\">when finished place the card in the pi, and power up.<\/p>\n<p class=\"p1\">wait for a few minuets, (until the green light stops flashing) , then open up a Terminal window and type<\/p>\n<p class=\"p1\"><span class=\"s1\">ping raspberrypi.local<\/span><\/p>\n<p class=\"p1\">this will tell us the\u00a0IP of raspberry pi (so we can communcate with it wirelessly) you can see on my machine its 192.168.0.35 (to stop it printing numbers press (alt . )<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ping-a-pi.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1279\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ping-a-pi-1024x645.jpg\" alt=\"ping a pi\" width=\"660\" height=\"415\" \/><\/a><\/p>\n<p class=\"p1\">!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<\/p>\n<p class=\"p1\">YOU DONT HAVE TO DO THIS NEXT STEP. BUT IF YOU HAVE PROBLEMS CONNECTING TO THE PI OVER THE NEXT STEP, THIS IS WHAT YOU DO!<\/p>\n<p class=\"p1\">A bit of housekeeping here. We have to get rid off any old &#8220;ssh keys&#8221; you might have used communicating with a raspberry before. In the terminal on the mac type<\/p>\n<p class=\"p1\"><span class=\"s1\">cd<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">cd .ssh<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">nano known_hosts<\/span><\/p>\n<p class=\"p1\">this will bring up a box.Delete the entry for the ip number you&#8217;ve just noted down. then save (ctlin X, y , return)<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssshshshs.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1444\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssshshshs-1024x666.jpg\" alt=\"ssshshshs\" width=\"660\" height=\"429\" \/><\/a><\/p>\n<p class=\"p1\">!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<\/p>\n<p class=\"p1\">\n<p class=\"p1\">next (on a mac) we go to connect to server . for a Pc use putty, <a href=\"https:\/\/magpi.raspberrypi.org\/articles\/ssh-remote-control-raspberry-pi\">here are the instructions<\/a><\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/gotoserver.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1280\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/gotoserver-1024x830.jpg\" alt=\"gotoserver\" width=\"660\" height=\"534\" \/><\/a><\/p>\n<p class=\"p1\">and type in ssh:\/\/pi@ YOUR IP NUMER HERE and press connect<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1281\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh-1024x475.jpg\" alt=\"ssh\" width=\"660\" height=\"306\" \/><\/a><\/p>\n<p class=\"p1\">both on a mac or windows machine this will then bring up a new terminal window, which asks do you want to join up with the raspberry pi?, type yes, then it will ask for the raspberry pi&#8217;s password, which is :\u00a0 \u00a0raspberry<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1282\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh1-1024x658.jpg\" alt=\"ssh1\" width=\"660\" height=\"424\" \/><\/a> <a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1283\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh2-1024x642.jpg\" alt=\"ssh2\" width=\"660\" height=\"413\" \/><\/a><\/p>\n<p class=\"p1\">now it&#8217;ll join onto the pi. in the terminal window again type sudo raspi-config and this brings up the raspberry pi configuartion pages.<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1287\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ffh1-1024x254.jpg\" alt=\"ffh1\" width=\"660\" height=\"163\" \/><\/a><\/p>\n<p class=\"p1\">choose number 3 .interface options<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1284\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh4-1024x662.jpg\" alt=\"ssh4\" width=\"660\" height=\"426\" \/><\/a><\/p>\n<p class=\"p1\">the number 3 again , for VNC and enable<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1285\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ssh5-1024x664.jpg\" alt=\"ssh5\" width=\"660\" height=\"427\" \/><\/a><\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/klcvkxlcvk.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1446\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/klcvkxlcvk-1024x624.jpg\" alt=\"klcvkxlcvk\" width=\"660\" height=\"402\" \/><\/a><\/p>\n<p class=\"p1\">choose &lt;Back&gt; then &lt;Finish&gt;<\/p>\n<p class=\"p1\">finally go back to terminal and type<\/p>\n<p class=\"p1\">sudo reboot<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ffh2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1288\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ffh2-1024x165.jpg\" alt=\"ffh2\" width=\"660\" height=\"106\" \/><\/a><\/p>\n<p class=\"p1\">we&#8217;ll wait a while for the pi to boot up again (when the green light stops flashing) and will now join onto the pi with VNC<\/p>\n<p class=\"p1\" style=\"text-align: center;\"><strong>VNC<\/strong><\/p>\n<p class=\"p1\">download VNC for your <a href=\"https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/\">computer here<\/a><\/p>\n<p class=\"p1\">open it and you&#8217;ll see this box, type in the pi&#8217;s IP number<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1293\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc4.jpg\" alt=\"vnc4\" width=\"941\" height=\"428\" \/><\/a><\/p>\n<p class=\"p1\">then the username (pi) and the password (raspberry<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1291\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc2.jpg\" alt=\"vnc2\" width=\"660\" height=\"329\" \/><\/a><\/p>\n<p class=\"p1\">you will then get this warning, press continue<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1292\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc3.jpg\" alt=\"vnc3\" width=\"660\" height=\"410\" \/><\/a><\/p>\n<p class=\"p1\">then the raspberry pi desktop will appear in a vnc window! congratulations you&#8217;re talking to your pi wirelessly<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1290\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/vnc1-1024x687.jpg\" alt=\"vnc1\" width=\"660\" height=\"442\" \/><\/a><\/p>\n<p class=\"p1\">VNC is a great little program and let you do everything on the pi, but using you normal laptop or computer. You can transfer files over to the pi with it and you can copy and paste from your home computer to the pi (remember the key\u00a0combinations from a mac to a pi are different,so i always use copy and paste from the drop down menu). For more info about\u00a0how you can use VNC to transfer files wirelessly between computers <a href=\"https:\/\/matthewolden.co.uk\/?p=1298\">\u00a0go here.<\/a><\/p>\n<p class=\"p1\">a couple of other housekeeping things, then we&#8217;ll copy off the card.<\/p>\n<p class=\"p1\">firsts we&#8217;ll get rid of the annoying password warning (i never change the user or password from the defualt\u00a0 user <strong>pi<\/strong> and password <strong>raspberry<\/strong>)<\/p>\n<p class=\"p1\">open a terminal window and type<\/p>\n<p class=\"p1\">cd \/etc\/xdg\/lxsession\/LXDE-pi\/<\/p>\n<p class=\"p1\"><span class=\"s1\">sudo mv <\/span><span class=\"s2\">sshpwd.sh<\/span> <span class=\"s2\">old_sshpwd.sh<\/span><\/p>\n<p class=\"p1\">next set the screen resolution to the largest.<\/p>\n<p class=\"p1\">go to the raspberry (top left hand corner), go to preferences, go to raspberry pi configuration, then displays, then set resolution<\/p>\n<p class=\"p1\"><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/p2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1367\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/p1-886x1024.jpg\" alt=\"p1\" width=\"660\" height=\"762\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1369\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/ser-reso-1024x666.jpg\" alt=\"ser reso\" width=\"660\" height=\"429\" \/><\/a><\/p>\n<p class=\"p1\">finally we&#8217;ll copy the card , if the memory card becomes currupted we&#8217;ll have a copy of the original that we can then use instead. A good tip is to get your pi how you want it, then copy the card,it&#8217;ll save you a few hours if you ever have to re-install the operating system.<\/p>\n<p style=\"text-align: center;\"><strong>copying off you raspberry pi card<\/strong><\/p>\n<p>Realy easy this.First attach a memory card reader to one of the pi&#8217;s usb slots. Then put in a blank memory card the same size as the one already in the raspberry pi.<\/p>\n<p>Next go to the raspberry (top left hand corner) choose Accessories, then SD Card Copier , which will launch the card copier application.<\/p>\n<p><a href=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/sdcard.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1368\" src=\"https:\/\/matthewolden.co.uk\/wp-content\/uploads\/2021\/09\/sdcard-1024x664.jpg\" alt=\"sdcard\" width=\"660\" height=\"427\" \/><\/a><\/p>\n<p>copy from device &#8211; choose the raspberry pi card<\/p>\n<p>copy to device &#8211; choose the card in your card reader<\/p>\n<p>press start,ok everything, and in about 10 minuets you&#8217;ll have a copy of your card.<\/p>\n<p>&nbsp;<\/p>\n<p>there you go!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The long list of instructions here, when followed\u00a0in order will result in a raspberry pi running the lastest version of raspbian, that you can operate wirelessly thru another computer. We will also back up the Pi so we have a clone of it. Further instructions on the website will enable &#8230;<\/p>\n","protected":false},"author":2,"featured_media":1255,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[57],"class_list":["post-1270","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pd-on-a-pi","tag-pure-data-raspberry-pi","column","fourcol","has-thumbnail"],"_links":{"self":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1270"}],"version-history":[{"count":0,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1270\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=\/wp\/v2\/media\/1255"}],"wp:attachment":[{"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthewolden.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}