{"id":781217,"date":"2015-11-25T10:39:30","date_gmt":"2015-11-25T08:39:30","guid":{"rendered":"http:\/\/www.sv5fri.eu\/?p=781217"},"modified":"2019-01-04T10:40:10","modified_gmt":"2019-01-04T08:40:10","slug":"install-dxspider-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.sv5fri.eu\/?p=781217","title":{"rendered":"Install DxSpider on Raspberry Pi"},"content":{"rendered":"<h6 style=\"text-align: justify;\"><span style=\"font-size: 8pt; text-decoration: underline;\">Revision: 1.01 &#8211; 12\/11\/2018<\/span><\/h6>\n<p style=\"text-align: justify;\">Here you find my installations guide how to install dxspider on raspberry Pi. Also you can find more information here <a href=\"http:\/\/wiki.dxcluster.org\/index.php\/Main_Page\" target=\"_blank\" rel=\"noopener\">wiki.dxcluster.org<\/a>. If you\u00a0need help please contact with me.<\/p>\n<p>Furthermore if you don&#8217;t want make manual installation you can used my <a title=\"nstallation and Configuration Script for Dxspider\" href=\"http:\/\/www.sv5fri.eu\/?p=4318051\">script<\/a> for the installation and configuration Dxspider.<\/p>\n<p>1. Fisrt change user from pi\u00a0to root<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ sudo su -l<\/pre>\n<p>2. Create user sysop and setup password<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># adduser -m sysop \n\n# passwd sysop<\/pre>\n<p>3. Install perl libraries<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># apt-get update \n\n# apt-get install libtimedate-perl libnet-telnet-perl libcurses-perl libdigest-sha-perl libdata-dumper-simple-perl<\/pre>\n<p>4. Now download and\u00a0 unpack the DX Spider distribution, set symbolic links and group permissions. Copy the tarball to \/home\/sysop and do the following.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># cd ~sysop \n\n# wget http:\/\/www.dxcluster.org\/download\/CVSlatest.tgz \n\n# tar xvfz CVSlatest.tgz \n\n# ln -s ~sysop\/spider \/spider \n\n# groupadd -g 251 spider<\/pre>\n<p>If you do not have the command &#8216;groupadd&#8217; available to you, simply add a line in \/etc\/group by hand.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># vi \/etc\/group<\/pre>\n<p>You also need to add some others to the group, including your own callsign (this will be used as an alias) and root. The finished line in \/etc\/group should look something like this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">spider:x:251:sysop,sv5fri,root<\/pre>\n<p><!--more-->5. The next step is to set the permissions on the Spider directory tree and files<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># chown -R sysop.spider spider \n\n# find . -type d -exec chmod 2775 {} \\; \n\n# find . -type f -exec chmod 775 {} \\;<\/pre>\n<p>6. Now login to your machine as the user you created earlier. In my case that user is called &#8216;sysop&#8217;. Once logged in, issue the following commands<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># su -l sysop \n\n$ cd \/spider \n\n$ mkdir local \n\n$ mkdir local_cmd \n\n$ cp perl\/DXVars.pm.issue local\/DXVars.pm \n\n$ cd local \n\n$ vi DXVars.pm<\/pre>\n<p>Using the distributed DXVars.pm as a a template, set your cluster callsign, sysop callsign and other user info to suit your own environment.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$mycall = \"SV5FRI-1\"; \n$myalias = \"SV5FRI\"; \n$myemail = \"myemail@gmail.com\";<\/pre>\n<p>7. E<em>dit Listeners.pm to remove \u201c#\u201d from the line for the port, and add additional ports as needed:<\/em><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ cp \/spider\/perl\/Listeners.pm \/spider\/local\/Listeners.pm \n\n$ cd \/spider\/local\/ \n\n$ vi Listeners.pm<\/pre>\n<p>After edit Listeners.pm file like<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">@listen = \n ( [\u201c0.0.0.0\u201d, 7300], \n);<\/pre>\n<p>8. Now type the following command which creates the basic user file with you as the sysop.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ cd ..\/perl \n\n$ .\/create_sysop.pl<\/pre>\n<p>9. Starting up for the first time cluster<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ cd ..\/perl \n\n$ .\/cluster.pl<\/pre>\n<p>10. On a separate ssh or system console, log into the system as sysop<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"classic\">$ \/spider\/perl\/console.pl\n<\/pre>\n<p>11. C<em>reates the connect script file and enters the editor. <\/em>Your connect script should look similar to this script.<\/p>\n<p>Create connect script<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ touch \/spider\/connect\/&lt;adjacent_node_callsign&gt; \n\n$ vi \/spider\/connect\/&lt;adjacent_node_callsign&gt;<\/pre>\n<p>Connect script must like this<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">timeout 60 \nabort (Busy|Sorry|Fail) \n# don't forget to chmod 4775 netrom_call! \nconnect telnet cluster.xyz.com 7300 \n# example 'login' 'sv5fri-1' 'login' '&lt;your_node_callsign&gt;' \n# example if you connect to k1ttt \n# client k1ttt \ntelnet client &lt;connect_node_callsign&gt; telnet<\/pre>\n<p>After check permission file<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">chmod 775 \/spider\/connect\/&lt;adjacent_node_callsign&gt;<\/pre>\n<p>12. To configure your node you must set the adjacent node by node type:<\/p>\n<p>i. For connection to a DXSpider node use the set\/spider command from the console<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">$ \/spider\/perl\/console.pl \n\u2013----- \nsv5fri de sv5fri-1 25-Nov-2015 0755Z dxspider &gt; set\/spider &lt;adjacent_node_callsign&gt;<\/pre>\n<p><em>Enter your link partner as after set\/spider<\/em><\/p>\n<p>ii. For a connection to an ARCluster node<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ \/spider\/perl\/console.pl \n\u2013----- \nsv5fri de sv5fri-1 25-NOV-2015 0757Z dxspider &gt; set\/arcluster &lt;adjacent_node_callsign&gt;<\/pre>\n<p>13. To initiate a connection to the your new adjacent node partner<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ \/spider\/perl\/console.pl \n\nconnect &lt;adjacent_node_callsign&gt;<\/pre>\n<p>14. At least you need a\u00a0<b>cron<\/b>\u00a0and a\u00a0<b>connect<\/b>\u00a0script to connect to the nodes automatically <i>for examble \u2013 your node parter is: k1ttt<\/i><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">$ touch \/spider\/local_cmd\/crontab \n\n$ vi \/spider\/local_cmd\/crontab<\/pre>\n<p>the cron like this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\"># Check every 10 minutes to see if xxxx is connected and if not \n# start a connect job \n#\n0,10,20,30,40,50 * * * * start_connect('k1ttt') unless connected('k1ttt')<\/pre>\n<p>After check permission file<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">chmod 775 \/spider\/local_cmd\/crontab&gt;<\/pre>\n<p>Good luck with DxSpider installation \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Revision: 1.01 &#8211; 12\/11\/2018 Here you find my installations guide how to install dxspider on raspberry Pi. Also you can find more information here wiki.dxcluster.org. If&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[3],"tags":[12,45,44,40,9,46,43,42,41,149,10],"class_list":["post-781217","post","type-post","status-publish","format-standard","hentry","category-projects","tag-amateur-radio","tag-dx-cluster","tag-dxcluster","tag-dxspider","tag-hamradio","tag-linux","tag-raspberry","tag-raspberry-pi","tag-raspberrypi","tag-sv1-sv5fri","tag-sv5fri"],"_links":{"self":[{"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=\/wp\/v2\/posts\/781217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=781217"}],"version-history":[{"count":3,"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=\/wp\/v2\/posts\/781217\/revisions"}],"predecessor-version":[{"id":4318118,"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=\/wp\/v2\/posts\/781217\/revisions\/4318118"}],"wp:attachment":[{"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=781217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=781217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sv5fri.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=781217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}