{"id":3301,"date":"2020-04-27T13:37:08","date_gmt":"2020-04-27T01:37:08","guid":{"rendered":"http:\/\/signsofsuccess.co.nz\/?p=2876"},"modified":"2020-04-27T13:37:08","modified_gmt":"2020-04-27T01:37:08","slug":"raspberry-pi-and-raspbian-lite-buster","status":"publish","type":"post","link":"https:\/\/glover.gen.nz\/wordpress\/raspberry-pi-and-raspbian-lite-buster\/","title":{"rendered":"Raspberry PI and Raspbian Lite Buster"},"content":{"rendered":"<p>The tiny computer projects to control garage doors and display webcam images has moved on a bit, and I have added two new tiny computers into the network. The first feature I wanted to add was an access to the garage from the outside. Obviously this had to be secure, and to me that also means discrete. So I discounted keypads, and decided that a finger print recognition system\u00a0 was the way to go. I did a quick search on the web for Finger Print recognition and Raspberry PI, and that led to much research, and after a while, I decided on<a href=\"https:\/\/www.waveshare.com\/capacitive-fingerprint-reader.htm\"> this model from Waveshare.<\/a> Its the most expensive model in their range, but it looks the best, and it looks like it might be more versatile.<\/p>\n<p>While waiting for the new toy to arrive, I started building the Raspberry PI I had selected for the job. This was a Raspberry Pi Model B, yes one of the very earliest Raspberry PIs, I think I bought it in 2013! It&#8217;s last use was to prototype the garage door opener system, which I later migrated to an Onion Omega 2S system. So setting it up to use the relays I used before, but activating via the fingerprint reader sounded like it may make life easier.<\/p>\n<p>My Raspbian Lite SD card from that project had been corrupted, so I started the build from scratch, installing a new download of Raspbian Lite Buster version (the latest at the time I think). I assumed setting up would be very similar to before, but Raspbian Buster has some subtle changes that need to be documented.<\/p>\n<p>To get through the initial steps, I plugged in a mouse and keyboard, and an HDMI monitor. A number of set up changes and software installs are required, including.<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Change the password to log on to the machine. Use <code>sudo raspi-config<\/code>.<\/li>\n<li>Setting up the date and time zone, and allowing the whole of the SD card to be used as system memory. Use <code>sudo raspi-config<\/code>.<\/li>\n<li>New to Buster is that the Edimax Nano wifi adapter is recognised, and<code>sudo raspi-config<\/code>\u00a0can be used to set up the SSID and password.<\/li>\n<li>Also different in Buster is setting up a fixed IP address for wlan0. This is relatively simple, just <code> sudo nano \/etc\/dhcpcd.conf<\/code> and add lines similar to these to the end of the file, using your router addresses and the fixed ip address you would like to use<br \/>\n<code>interface wlan0<br \/>\nstatic ip_address=192.168.1.96\/22<br \/>\nstatic routers=192.168.1.254<br \/>\nstatic domain_name_servers=192.168.1.254<\/code><\/li>\n<li>Allowing another computer to SSH into the computer. Use raspi-config again,<a href=\"https:\/\/www.raspberrypi.org\/documentation\/remote-access\/ssh\/\"> as described here<\/a><\/li>\n<li>Installing and enabling an FTP server, Proftpd was the one I used, <a href=\"https:\/\/howtoraspberrypi.com\/setup-ftp-server-raspberry-pi\/\">description here.<\/a><\/li>\n<li>Installing Apache and PHP, I used <a href=\"https:\/\/howtoraspberrypi.com\/how-to-install-web-server-raspberry-pi-lamp\/\">this page<\/a>, but I didn&#8217;t to the MYSQL bit<\/li>\n<li>Use\u00a0 sudo visudo to modify\u00a0 \/etc\/sudoers.\u00a0 An extra line is appended to the end of the file, namely <code>www-data ALL=(ALL) NOPASSWD:ALL. Beware - danger!<\/code><\/li>\n<\/ul>\n<p>Once I had the fixed IP address for the PI on the local network 192.168.1.73, and the SSH set up I was able to use PuTTY to login to the new machine, and set up an FTP client to look at \/var\/www &#8211; I needed to change the permissions on this directory to get full access to to it (as follows)<br \/>\n<code>sudo chown -R pi:www-data \/var\/www\/html\/<br \/>\nsudo chmod -R 770 \/var\/www\/html\/<\/code><\/p>\n<p>I could now remove the HDMI cable, mouse and keyboard, and the ethernet cable, and SSH and FTP into the pi from my development environment.<\/p>\n<p>Everything from now on is getting the attached hardware to work and installing the software for this particular application. More on this and the second additional computer in the next post.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The tiny computer projects to control garage doors and display webcam images has moved on a bit, and I have added two new tiny computers into the network. The first feature I wanted to add was an access to the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/glover.gen.nz\/wordpress\/raspberry-pi-and-raspbian-lite-buster\/\"> <span class=\"screen-reader-text\">Raspberry PI and Raspbian Lite Buster<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[],"class_list":["post-3301","post","type-post","status-publish","format-standard","hentry","category-technical","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/3301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=3301"}],"version-history":[{"count":0,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/3301\/revisions"}],"wp:attachment":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=3301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=3301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=3301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}