{"id":3395,"date":"2024-07-27T22:48:28","date_gmt":"2024-07-27T21:48:28","guid":{"rendered":"https:\/\/m0aws.co.uk\/?p=3395"},"modified":"2026-06-30T11:48:00","modified_gmt":"2026-06-30T10:48:00","slug":"automated-raspberrypi-shari-node-build","status":"publish","type":"post","link":"https:\/\/m0aws.co.uk\/?p=3395","title":{"rendered":"Automated RaspberryPi\/SHARI Node Build"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong><em>NOTE: The info in this article is out of date and does not work with the latest version of AllStarLink<\/em><\/strong>.<strong><em> The Debian O\/S it is based on is no longer in support<\/em><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After writing my article on <a href=\"https:\/\/m0aws.co.uk\/?p=3244\" target=\"_blank\" rel=\"noreferrer noopener\">how to build an AllStarLink node using a RaspberryPi 3b and SHARI radio device<\/a> I was asked by a few people if I could possibly automate the process to make it easier for those who aren&#8217;t Linux command line junkies like me.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Over the last couple of days in-between doing other things I&#8217;ve been writing and testing a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bash_(Unix_shell)\" target=\"_blank\" rel=\"noreferrer noopener\">BASH<\/a> shell script that will completely configure a fully working AllStarLink node. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1401\" src=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-ASL-Build-Script-Coding-view-2048x1401.png\" alt=\"M0AWS - Coding the BASH script for the automated AllStarLink installation\" class=\"wp-image-3401\" srcset=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-ASL-Build-Script-Coding-view-2048x1401.png 2048w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-ASL-Build-Script-Coding-view-300x205.png 300w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-ASL-Build-Script-Coding-view-768x525.png 768w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-ASL-Build-Script-Coding-view-1536x1051.png 1536w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">M0AWS &#8211; Coding the BASH script for the automated AllStarLink installation<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To use the script you must already have your RaspberryPi (preferably a Pi 3b) connected to your LAN with full internet access using the Raspbian based version of the AllStarLink software downloadable from <a href=\"http:\/\/downloads.allstarlink.org\/ASL_Images_Beta\/Raspberry_Pi2_3_4\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The specific version I use is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>asl-2.0.0-beta.6-kc1kcc-20210324-rpi-armhf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I have tested the BASH script using this specific version of O\/S <strong><em>only<\/em><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once your RaspberryPi 3b is up and running, has full internet access and is accessible on your local LAN, using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Secure_Shell\" target=\"_blank\" rel=\"noreferrer noopener\">SSH<\/a> login in as the user &#8216;<strong><em>repeater<\/em><\/strong>&#8216; using the password &#8216;<strong><em>allstarlink<\/em><\/strong>&#8216;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s important you only use this login to configure the node as this is the user the script is expecting to be run by. You must login via SSH as the SHARI device needs to be connected to the RaspberryPi 3b and you won&#8217;t be able to connect a keyboard and mouse at the same time. (If you are using two USB cables for the SHARI device then you can use a keyboard and mouse along with a monitor attached to your RaspberryPi instead of using SSH).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once logged in as user <strong><em>repeater<\/em><\/strong> run the following <strong><em>wget<\/em><\/strong> command to download the zipped install script:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/m0aws.co.uk\/AllStarLink\/AllStarLinkBuild.zip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once downloaded you need to unzip the program from the zip file and make it executable using the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>unzip .\/AllStarLinkBuild.zip\nchmod 755 .\/install.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You are now ready to build your AllStarLink node. Before you run the script make sure you have your node number and node secret to hand. These are obtained from the <a href=\"https:\/\/allstarlink.org\" target=\"_blank\" rel=\"noreferrer noopener\">AllStarLink portal<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you&#8217;ve got all your node information you can run the script using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/install.sh<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The script will now take you through the full process of updating the operating system as necessary, installing all the required packages and software. It will then reboot the RaspberryPi and you will need to login and run the script a second time using the command above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the second run the script will install some python specific software, ask you to enter your callsign, node number and node secret and will then configure your node. The last thing it does is configure the Allmon2 and Supermon Web Admin websites. During this process it will ask you to enter a password twice for the Admin user for the two websites, make sure you make a note of this password as you will need it to login and control your node.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the node is configured it will be rebooted and you will then be able to connect to your node using your favourite web browser and the user <strong><em>admin<\/em><\/strong> and the <strong><em>password<\/em><\/strong> you set above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To access the Allmon2 web-admin system use the following URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"http:\/\/your-raspberryPi-IP-Address\/allmon2\">http:\/\/your-RaspberryPi-IP-Address\/allmon2<\/a><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1657\" height=\"838\" src=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-AllMon2-View.png\" alt=\"M0AWS - Allmon2 WebAdmin interface\" class=\"wp-image-3399\" srcset=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-AllMon2-View.png 1657w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-AllMon2-View-300x152.png 300w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-AllMon2-View-768x388.png 768w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-AllMon2-View-1536x777.png 1536w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">M0AWS &#8211; Allmon2 WebAdmin interface<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For those of you who prefer Supermon you an use the following URL:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;your-RaspberryPi-IP-Address\/supermon<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1554\" height=\"1203\" src=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-View.png\" alt=\"M0AWS - Supermon Web Admin view\" class=\"wp-image-3406\" srcset=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-View.png 1554w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-View-300x232.png 300w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-View-768x595.png 768w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-View-1536x1189.png 1536w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">M0AWS &#8211; Supermon Web Admin view<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">I have also pre-populated the <strong><em>Favorites<\/em><\/strong> button with a list of nodes that I use often. You can easily change these entries by editing the <strong><em>favorites.ini<\/em><\/strong> file in the <strong><em>\/var\/www\/html\/supermon<\/em><\/strong> directory as user <strong><em>root<\/em><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1244\" height=\"1251\" src=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-Favorites-View.png\" alt=\"M0AWS - Supermon pre-populated Favourites drop down list\" class=\"wp-image-3407\" srcset=\"https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-Favorites-View.png 1244w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-Favorites-View-298x300.png 298w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-Favorites-View-150x150.png 150w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-Favorites-View-768x772.png 768w, https:\/\/m0aws.co.uk\/wp-content\/uploads\/2024\/07\/M0AWS-Supermon-WebAdmin-Favorites-View-100x100.png 100w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">M0AWS &#8211; Supermon pre-populated Favourites drop down list<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When you first login to your node via your web browser you&#8217;ll notice that it says your node isn&#8217;t in the database. You can update the database by using the following URL in your web browser:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;your-RaspberryPi-IP-Address\/allmon2\/astdb.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This will force an update of the database and your node information should now be displayed correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hopefully this will make it much easier for the non Linux people to build an AllStarLink node using a RaspberryPi 3b and a SHARI radio device.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More soon &#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: The info in this article is out of date and does not work with the latest version of AllStarLink. The Debian O\/S it is based on is no longer in support. After writing my article on how to build an AllStarLink node using a RaspberryPi 3b and SHARI radio device I was asked by &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/m0aws.co.uk\/?p=3395\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Automated RaspberryPi\/SHARI Node Build&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[361,362,332,356,39,287,136,329,334,4,65,38,135,288,192,289,326,122,351,346,349,299,133,344,290,366,62],"tags":[],"class_list":["post-3395","post","type-post","status-publish","format-standard","hentry","category-361","category-362","category-allstarlink","category-asterisk","category-bash","category-commandline","category-community","category-digitalvoice","category-dv","category-ham-radio","category-home-brew","category-linux","category-opensource","category-pip3","category-python","category-python3","category-radio","category-raspberrypi","category-raspbian","category-sa818","category-shari","category-sourcecode","category-ssh","category-tcp-ip","category-terminal","category-webadmin","category-website"],"_links":{"self":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3395"}],"version-history":[{"count":20,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3395\/revisions"}],"predecessor-version":[{"id":4980,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/3395\/revisions\/4980"}],"wp:attachment":[{"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/m0aws.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}