{"id":375,"date":"2018-10-27T13:00:22","date_gmt":"2018-10-27T12:00:22","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=375"},"modified":"2018-10-27T23:27:50","modified_gmt":"2018-10-27T22:27:50","slug":"setting-up-the-ci20-for-the-cluster","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/375\/setting-up-the-ci20-for-the-cluster\/","title":{"rendered":"Setting up the CI20 for the cluster"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1683\" data-permalink=\"https:\/\/chewett.co.uk\/blog\/375\/setting-up-the-ci20-for-the-cluster\/setting_ci40_for_cluster\/\" data-orig-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?fit=800%2C300&amp;ssl=1\" data-orig-size=\"800,300\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"setting_ci40_for_cluster\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?fit=300%2C113&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?fit=678%2C254&amp;ssl=1\" class=\"aligncenter size-full wp-image-1683\" src=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?resize=678%2C254\" alt=\"\" width=\"678\" height=\"254\" srcset=\"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?resize=300%2C113&amp;ssl=1 300w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?resize=768%2C288&amp;ssl=1 768w, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/setting_ci40_for_cluster.jpg?resize=50%2C19&amp;ssl=1 50w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p>This post talks about the steps I have followed to set up my Creator CI20 for the Raspberry Pi Cluster.<\/p>\n<p><!--more--><\/p>\n<h2>Burning Debian to the onboard NAND and configuring it<\/h2>\n<p>To run the CI20 on the Raspberry Pi Cluster I am going to write Debian 8 to the NAND storage. First the image must be downloaded, this can be found on <a href=\"https:\/\/www.elinux.org\/CI20_Distros#Debian\" target=\"_blank\" rel=\"noopener\">ELinux<\/a>. Once the image has downloaded it will need to be burned to a SD card.<\/p>\n<p>This follows the same steps as burning a Raspbian Image for a Raspberry Pi detailed on <a href=\"https:\/\/chewett.co.uk\/blog\/241\/installing-raspbian-onto-raspberry-pi\/\">my previous blog post<\/a>. Additional details for the Creator CI20 have been noted in the <a href=\"https:\/\/www.elinux.org\/CI20_Dev_Zone#NAND_Flashing_SD_card\" target=\"_blank\" rel=\"noopener\">CI20 Dev zone on ELinux<\/a>.<\/p>\n<p>Once the image has been burned we need to copy this to the NAND storage of the Creator board. Once the Creator CI20 has been turned off, set the boot_sel jumper to 2,3 Boot SD. This will tell it to boot the SD card.<\/p>\n<p>Once you have inserted the SD card turn on the Creator and the red light will switch on. The light will change to blue while the NAND storage is being written to, and change back to red once finished.<\/p>\n<p>When this is done you just need to turn off the Creator,\u00a0swap the boot_sel switch back to Boot NAND and turn it back on. Debian will then boot as normal and you will be able to use the Creator.<\/p>\n<h2>Once Debian has been installed<\/h2>\n<p>Once Debian has been installed it will have been set up with the default username (ci20) and password (ci20).<\/p>\n<p>You will want to SSH into the creator CI20 (or plug it into a screen and open a terminal) and change the password to start with.<\/p>\n<p>This can be done with the ci20 user with the command <code>passwd<\/code>.\u00a0The next thing you will want to do is update the installed packages. This should ensure that the Creator is up to date. This can be performed with the following commands.<\/p>\n<pre>sudo apt-get update\r\nsudo apt-get upgrade<\/pre>\n<p>Running\u00a0<code>apt-get update<\/code>\u00a0will update the package list. This will then allow running\u00a0<code>apt-get upgrade<\/code>\u00a0to install new packages.<\/p>\n<h2>Installing packages and setting up user accounts<\/h2>\n<p>Now I have the Creator updated and ready to run headless I will install a couple more programs.<\/p>\n<p>Personally, to run a headless Debian install I always install at least the below programs using the command:<\/p>\n<pre>sudo apt-get install vim htop byobu screen<\/pre>\n<ul>\n<li><code>vim<\/code>\u00a0is my preferred command line editor. It appears its not installed by default so it must be installed first!<\/li>\n<li><code>htop<\/code>\u00a0is a more graphical version of the standard linux tool\u00a0<code>top<\/code>. Its colour more than wins me over from standard top<\/li>\n<li><code>byobu<\/code>\u00a0is a very useful addition on top of screen or tmux. It customises how screen\/tmux works and adds some useful information along the top\/bottom<\/li>\n<li><code>screen<\/code>\u00a0is my chosen terminal multiplexer that I use with byobu.<\/li>\n<\/ul>\n<p>Once these programs have been installed I create a new user to run my scripts. This can be done by following my previous Raspberry Pi (works the same for the Creator)\u00a0\u00a0<a href=\"https:\/\/chewett.co.uk\/blog\/521\/add-new-user-account-raspbian-raspberry-pi\/\">\u201chow to create a user\u201d guide<\/a>.<\/p>\n<p>Finally I set up my SSH keys by copying the SSH keys from my bunker-master Raspberry Pi to the newly configured Creator CI20.<\/p>\n<pre>mkdir .ssh\r\nscp bunker-master:~\/.ssh\/* .<\/pre>\n<p>This I will use to log in via my private key and removes the need to enter my password every time.<\/p>\n<p>Now the Creator is ready to join the cluster.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post talks about the steps I have followed to set up my Creator CI20 for the Raspberry Pi Cluster.<\/p>\n","protected":false},"author":1,"featured_media":1687,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Here I talk about setting up the Creator #CI20 for the #RaspberryPi cluster","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[122],"tags":[119,121,39,101],"class_list":["post-375","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry-pi-cluster","tag-creator-ci20","tag-debian","tag-linux","tag-raspberry-pi-cluster"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/ci40_setup.jpg?fit=800%2C800&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-63","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":307,"url":"https:\/\/chewett.co.uk\/blog\/307\/adding-a-creator-ci20-to-the-cluster\/","url_meta":{"origin":375,"position":0},"title":"Adding a Creator CI20 to the cluster","author":"Chewett","date":"October 17, 2018","format":false,"excerpt":"This post talks about the Creator CI20 and explains the differences between it and the Raspberry Pi. What is the Creator CI20? The Creator CI20 is a small Linux based computer that is similar to the Raspberry Pi. I have been looking at these for a while and decided to\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/chewett.co.uk\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2018\/10\/creator_main_post_image.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2739,"url":"https:\/\/chewett.co.uk\/blog\/2739\/installing-influxdb-on-a-raspberry-pi\/","url_meta":{"origin":375,"position":1},"title":"Installing InfluxDB on a Raspberry Pi","author":"Chewett","date":"December 5, 2020","format":false,"excerpt":"Today I am writing a quick describing how you can install InfluxDB on a Raspberry Pi What is InfluxDB? InfluxDB is a relatively popular time series database that allows storing metrics and data. It is specifically designed to store and operate on data that is bound by a time component.\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_influxdb_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_influxdb_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_influxdb_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_influxdb_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_influxdb_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":232,"url":"https:\/\/chewett.co.uk\/blog\/232\/building-raspberry-pi-cluster\/","url_meta":{"origin":375,"position":2},"title":"Building a Raspberry Pi cluster","author":"Chewett","date":"October 16, 2016","format":false,"excerpt":"Today's blog marks the official start of my Raspberry Pi cluster project. Here I will be documenting the process of assembling,\u00a0building, and running a small cluster.\u00a0This blog will include both code snippets, \u00a0hardware diagrams and the results of various projects using the cluster. Aims of the project The\u00a0Raspberry Pi cluster\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"dsc_0525","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2016\/10\/DSC_0525.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":764,"url":"https:\/\/chewett.co.uk\/blog\/764\/virtualized-raspian-os-virtualbox\/","url_meta":{"origin":375,"position":3},"title":"Virtualized Raspian OS with Virtualbox","author":"Chewett","date":"October 21, 2017","format":false,"excerpt":"This post walks you through the process of installing the Raspberry Pi OS, Raspbian, with VirtualBox. I am going to use this at times to test my software running on the OS that the Raspberry Pi Cluster runs. Why do I need a special version of Raspbian OS to work\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/raspbian_on_virtualbox.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":241,"url":"https:\/\/chewett.co.uk\/blog\/241\/installing-raspbian-onto-raspberry-pi\/","url_meta":{"origin":375,"position":4},"title":"Installing Raspbian onto a Raspberry Pi","author":"Chewett","date":"May 17, 2017","format":false,"excerpt":"Here I suggest some recommended steps to install Raspbian on top of their install guide. Choosing an OS for the Raspberry Pi One of the main ways to install a Raspberry Pi OS is to download a disk image called NOOBS.\u00a0This lets you\u00a0choose to easily install a number of different\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":367,"url":"https:\/\/chewett.co.uk\/blog\/367\/overview-raspberry-pi-cluster\/","url_meta":{"origin":375,"position":5},"title":"Overview of the Raspberry Pi Cluster","author":"Chewett","date":"June 17, 2017","format":"gallery","excerpt":"Now I have the power supply and built the stacking system\u00a0I can show off the clusters initial state. Every Raspberry Pi in\u00a0the cluster Here are the 7 initial Pi's that are to become part of the cluster. Each have been given a codename to designate\u00a0its position in the cluster.\u00a0The Raspberry\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/05\/cluster_uncovered.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/05\/cluster_uncovered.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/05\/cluster_uncovered.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/05\/cluster_uncovered.jpg?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=375"}],"version-history":[{"count":5,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"predecessor-version":[{"id":1691,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/375\/revisions\/1691"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media\/1687"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}