{"id":4871,"date":"2020-04-13T15:38:18","date_gmt":"2020-04-13T15:38:18","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=4871"},"modified":"2025-07-23T10:38:36","modified_gmt":"2025-07-23T10:38:36","slug":"raspberry-pi-iii","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/raspberry-pi-iii\/","title":{"rendered":"Raspberry Pi III"},"content":{"rendered":"\n<p>My third attempt to build a raspberry pi, it seemed easier to start a third page than refactor the last one. Here are my notes. I turned it off in August 22, and back on in Nov 2022. &#8230;<br><\/p>\n\n\n\n<!--more-->\n\n\n\n<h3 class=\"wp-block-heading\">1st steps<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>I bought myself a micro-sd\/usb adaptor and a ceritifed power adaptor.<\/li>\n\n\n\n<li>I reformatted the sd card using<a href=\"https:\/\/www.sdcard.org\/downloads\/formatter\/\"> this tool<\/a>.<\/li>\n\n\n\n<li>I <a href=\"https:\/\/www.raspberrypi.org\/downloads\/\">installed the OS onto the SD card<\/a>.<\/li>\n\n\n\n<li>I &#8216;<a href=\"https:\/\/linuxize.com\/post\/how-to-enable-ssh-on-raspberry-pi\/\">touched&#8217; the \/boot\/ssh file<\/a>. I used the dos command program and used <code>type nul &gt; ssh<\/code>&nbsp;I used&nbsp;<code title=\"I was using windows 10, and the mount point will differ.\">D:<\/code> to access the boot directory. I got the&nbsp;<a href=\"https:\/\/www.wikihow.com\/Create-and-Delete-Files-and-Directories-from-Windows-Command-Prompt#Creating-a-File\">advise here<\/a>.<\/li>\n<\/ol>\n\n\n\n<p>I then plugged the thing into the hub and power<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>I logged in using ssh<\/li>\n\n\n\n<li><code>sudo apt-get install git samba apache2 xrdp<\/code><\/li>\n\n\n\n<li><code>adduser ${newusername};<\/code> and then <code>usermod -a -G sudo ${newusername}<\/code>&nbsp;and then <code>sudo adduser xrdp ssl-cert<\/code><\/li>\n\n\n\n<li>Virtual Box VMs will need <code>ssh<\/code> installed, for more on VB, see <a href=\"https:\/\/davelevy.info\/wiki\/virtual-box\/#pi\">here<\/a>.<\/li>\n\n\n\n<li>I reinstalled the web site using ftp. In 2025,\u00a0I used the vfstpd package. I then used ufw to set an ssh rule and then restarted vsftpd &amp; ufw. This <a href=\"https:\/\/docs.rackspace.com\/docs\/installing-and-configuring-vsftpd\">page <\/a>helped, sort of.<\/li>\n\n\n\n<li>I reauthorised the hostname with noip.com and changed the firewall rule on the hub. I used&nbsp;<a href=\"https:\/\/www.whatismyip.com\">whatismyip<\/a>&nbsp;to discover my pubic ip address.&nbsp; I <a href=\"https:\/\/www.noip.com\/support\/knowledgebase\/install-ip-duc-onto-raspberry-pi\/\">reinstalled noip&#8217;s dynamic update client<\/a>. and copied down my noip service file and then <code>systemctl enable<\/code> &#8216;d it. (Need to checkit works after the next boot.)<\/li>\n\n\n\n<li>I restored the https certificates using <a href=\"https:\/\/davelevy.info\/wiki\/ssl-on-a-raspberry-pi\/\">these instructions<\/a>.<\/li>\n\n\n\n<li>I set up \/share, using <a href=\"https:\/\/magpi.raspberrypi.org\/articles\/samba-file-server\">these instructions<\/a>., the service names are <code>nmbd<\/code> and <code>smbd<\/code><\/li>\n\n\n\n<li>I removed the games, they are called <a href=\"https:\/\/forums.raspberrypi.com\/viewtopic.php?t=302327\">code-the-classics<\/a><\/li>\n<\/ol>\n\n\n\n<p>On three, but not on its rebuild<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>then <code>usermod -a -G videos ${newusername}<\/code> for Raspi Check<\/li>\n\n\n\n<li>I am still copying HUGO files, but if I wanted it on the Pi, then <a href=\"https:\/\/snapcraft.io\/install\/hugo\/raspbian\">How to install Hugo on <b>Raspberry Pi<\/b><\/a>&nbsp;will be useful although it uses snap which I have managed to avoid by now.<\/li>\n\n\n\n<li>I also found this <a href=\"https:\/\/forum.deluge-torrent.org\/viewtopic.php?t=55612\">about deluge and buster<\/a>, on deluge&#8217;s community forums which talks about the install and apt.<\/li>\n\n\n\n<li>A link to <a href=\"https:\/\/erdgeist.org\/arts\/software\/opentracker\/\">opentracke<\/a>r, a bittorrent index, and <a href=\"https:\/\/github.com\/masroore\/opentracker\">a git repo<\/a>, I write more about opentracker on <a href=\"https:\/\/davelevy.info\/wiki\/bittorrent\/\">my bittorrent page<\/a>.<\/li>\n<\/ol>\n\n\n\n<p>I turned it back on today <em>12 Nov 2022<\/em>.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>I turned off <code>deluge <\/code><a href=\"https:\/\/www.redhat.com\/sysadmin\/linux-systemctl-manage-services\">using systemctl<\/a>. i.e. <code>service stop deluge &amp;&amp; service disable deluge<\/code><\/li>\n\n\n\n<li>I installed the microsoft rdp client onto my tablet; it&#8217;s very slow. I also installed <code>Juicessh <\/code>&amp; <code>raspcontroller<\/code>. I can&#8217;t get <code>Raspicheck <\/code> which is what I used to use, to work and it&#8217;s not available on the tablet, raspcontroller does what&#8217;s needed and I can issue commands using the ssh program.<\/li>\n\n\n\n<li>I amended <code>whatismyip<\/code> to cope with Pi outputs from ifconfig and fixed the menu option.<\/li>\n\n\n\n<li>I looked at the cronjobs, I must use <code>run_aptjob -u<\/code> to do the upgrades in future, run_aptjob writes log files. It should be amended to also use logger.<\/li>\n\n\n\n<li>I <a href=\"https:\/\/davelevy.info\/wiki\/ssl-on-a-raspberry-pi\/\">installed an ssl certificate<\/a> which was a bit of a faff . Nov 2022.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">To do<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>I then looked at my check_aptrepo and checkfspct, and discovered that notify-send was not working. So I spent a couple of hours working on it, installing notification-daemons which seem not to work which I <a href=\"https:\/\/forums.raspberrypi.com\/viewtopic.php?t=342860\">asked for help<\/a> on the PI community forums, although it seemed to fix itself or my mucking around with the base software fixed it. See also <a href=\"https:\/\/davelevy.info\/wiki\/notify-send\/\">https:\/\/davelevy.info\/wiki\/notify-send\/<\/a><\/li>\n\n\n\n<li>I have installed postfix on the virtual machine, and send a message between root and dave using mail. So <code>mailutils<\/code> is on the machine. See also <a href=\"https:\/\/davelevy.info\/wiki\/my-little-mail-server\/\">https:\/\/davelevy.info\/wiki\/my-little-mail-server\/<\/a>. The next phase on mail involves installing on the real machine, working out the firewall rules. Installing postfix will need a robust naming solution on my internal network. (Or will it, will the hub and nip solve it for me. I need to workout how to fix a firewall rule.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Backups and Disk Cloning<\/h3>\n\n\n\n<p>All the reading suggests that an appropriate image based cut and paste will work; it seems it needs to be image based to pick up the boot partition.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=tiCCoBiW4E4\">How to copy \/ clone \/ back up a raspberry pi microSD card image for retropie and raspbian<\/a>. a video by Mt Sujano, makes recommendations on the apps, Win32 imager to read, and Etcher to write.and on pimylife, <a href=\"https:\/\/pimylifeup.com\/backup-raspberry-pi\/\">How to Backup your Raspberry Pi SD Card<\/a>, additional sites that recommend using windows include, <a href=\"https:\/\/www.ubackup.com\/articles\/clone-raspberry-pi-sd-card-4125.html\">Easily Clone Raspberry Pi SD Card to Larger Card in Window<\/a>, or <a href=\"https:\/\/www.crackedconsole.com\/2019\/03\/17\/backing-up-and-cloning-your-raspberry-pi-sd-card-in-windows\/\">Backing up and Cloning your Raspberry Pi SD card in Windows<\/a>, the latter is using WDI.<\/li>\n\n\n\n<li><a href=\"https:\/\/linuxhint.com\/how-to-clone-a-raspberry-pi-sd-card\/\">How to clone a raspberry pi&nbsp; sd card<\/a>, from linuxhint.com this is text based, app agnostic and proposes using Pi tools., as does<strong> <a href=\"https:\/\/all3dp.com\/2\/back-up-raspberry-pi-sd-card\/\">this<\/a><\/strong> from&nbsp; all3dp.com,; it uses <code>SD Card Copier<\/code> which is accessed via the GUI and seems the best option. I found <a href=\"https:\/\/pimylifeup.com\/raspberry-pi-mount-usb-drive\/\">this page<\/a>, from pi my life up, on mounting an external micro sd, which should allow me to do a file based back up of v3 of my&nbsp; build.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Extending Swap<\/h3>\n\n\n\n<p>To <a href=\"https:\/\/pimylifeup.com\/raspberry-pi-swap-file\/\">extend swap on my pi<\/a>, and or <a title=\"Change swap size in Ubuntu \" href=\"https:\/\/ploi.io\/documentation\/server\/change-swap-size-in-ubuntu\">an ubuntu 22 system<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Related Posts<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/davelevy.info\/wiki\/raspberry-pi-part-deux\/\">https:\/\/davelevy.info\/wiki\/raspberry-pi-part-deux\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/davelevy.info\/wiki\/raspberry-pi\/\">https:\/\/davelevy.info\/wiki\/raspberry-pi\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/davelevy.info\/wiki\/systemd-ptui\/\">https:\/\/davelevy.info\/wiki\/systemd-ptui\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/davelevy.info\/wiki\/raspberry-pi-and-messages\/\">https:\/\/davelevy.info\/wiki\/raspberry-pi-and-messages\/<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/davelevy.info\/wiki\/event-monitoring\/\">https:\/\/davelevy.info\/wiki\/event-monitoring\/<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>My third attempt to build a raspberry pi, it seemed easier to start a third page than refactor the last one. Here are my notes. I turned it off in August 22, and back on in Nov 2022. &#8230;<\/p>\n","protected":false},"author":1,"featured_media":2842,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[8,3],"tags":[495,1864,178,1180,916,1851,994,1286,1429,572,911],"class_list":["post-4871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology","tag-backup","tag-badblocks","tag-bittorrent","tag-hugo","tag-linux","tag-opentracker","tag-raspberry-pi","tag-raspbian","tag-raspicheck","tag-sftp","tag-technology"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2016\/03\/Raspberry-Pi-Logo-w650.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=4871"}],"version-history":[{"count":4,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4871\/revisions"}],"predecessor-version":[{"id":12659,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4871\/revisions\/12659"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/2842"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=4871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=4871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=4871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}