{"id":1858,"date":"2018-03-02T03:42:32","date_gmt":"2018-03-02T03:42:32","guid":{"rendered":"http:\/\/www.talkcrypto.org\/blog\/?p=1858"},"modified":"2018-03-02T03:45:51","modified_gmt":"2018-03-02T03:45:51","slug":"how-to-run-ethereum-on-a-raspberry-pi-2","status":"publish","type":"post","link":"https:\/\/www.talkcrypto.org\/blog\/2018\/03\/02\/how-to-run-ethereum-on-a-raspberry-pi-2\/","title":{"rendered":"How to run Ethereum on a Raspberry Pi 2"},"content":{"rendered":"<p>Interested in getting Ethereum running on a Raspberry Pi 2? Here are some simple steps:<\/p>\n<h3>Step 1: You get, I get, We get<\/h3>\n<pre>&gt;&gt; wget https:\/\/gethstore.blob.core.windows.net\/builds\/geth-linux-arm7-1.8.1-1e67410e.tar.gz<\/pre>\n<p>Of course this means you know what wget is (a way to download files using cmd) and you have already ssh&#8217;d into your raspberry pi with something like ssh pi@192.168.x.x<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1860\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.05.20-AM-300x74.png\" alt=\"\" width=\"450\" height=\"111\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.05.20-AM-300x74.png 300w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.05.20-AM-768x190.png 768w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.05.20-AM.png 922w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>Where did this link come from? It came from\u00a0<a href=\"https:\/\/geth.ethereum.org\/downloads\/\" target=\"_blank\" rel=\"noopener\">https:\/\/geth.ethereum.org\/downloads\/<\/a>\u00a0Search for Linux -&gt; armv7 for the Raspberry Pi 2 and you&#8217;ll find the link. This is important to know because you&#8217;ll want to change the link to retrieve the latest binary.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-1859\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-8.59.31-AM-300x132.png\" alt=\"\" width=\"464\" height=\"204\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-8.59.31-AM-300x132.png 300w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-8.59.31-AM-768x337.png 768w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-8.59.31-AM-1024x449.png 1024w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-8.59.31-AM.png 1209w\" sizes=\"(max-width: 464px) 100vw, 464px\" \/><\/p>\n<h3>Step 2: Lay down the tar-seal and zip it up<\/h3>\n<pre>&gt;&gt; tar -xvf geth-linux-arm7-1.8.1-1e67410e.tar.gz<\/pre>\n<p>The file downloaded is a tar or a &#8220;Tape Archive&#8221; in reference to the good old days when files would be put on &#8220;tapes&#8221; and then archived for storage. It is also known as a tarball. It stores multiple files together as a single file. gz\u00a0 stands for GNU zip which compresses it. This is the equivalent of Winzip in the windows world.<\/p>\n<p>The x flag extracts it, v stands for verbose output, telling the user what is happening in more details and f tells tar to use the file specified otherwise tar will use the system-dependent default file of the form <a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/en\/ssw_aix_72\/com.ibm.aix.cmds5\/tar.htm#tar__row-d3e75683\" target=\"_blank\" rel=\"noopener\">\/dev\/rmt0<\/a><\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1861\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.20.12-AM-300x63.png\" alt=\"\" width=\"467\" height=\"98\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.20.12-AM-300x63.png 300w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.20.12-AM.png 596w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/p>\n<h3>Step 3: cd your CDs and mv your body<\/h3>\n<pre>&gt;&gt; cd geth-linux-arm7-1.8.1-1e67410e<\/pre>\n<p>cd stands for Current Directory. It moves the user into the geth-linux-arm7-1.8.1-1e67410e directory that was automatically created when you fired the tarball cannon.<\/p>\n<pre>&gt;&gt; sudo mv geth \/usr\/local\/bin\/<\/pre>\n<p>mv moves the geth binary to the new location user\/local\/bin which is the standard place for binaries to be placed.<\/p>\n<p>That is it. The next step is to start geth which again is the Ethereum client written in the Go programming language, hence the name &#8220;geth&#8221; and it will start downloading the Ethereum blockchain.<\/p>\n<h3>Consideration #1: Disk space<\/h3>\n<p>On a Raspberry pi, disk space will be limited. You probably have an 8Gb SD card. Make sure you have at least 500Mb free if not more.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1862\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.58.19-AM-300x106.png\" alt=\"\" width=\"430\" height=\"152\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.58.19-AM-300x106.png 300w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-9.58.19-AM.png 354w\" sizes=\"(max-width: 430px) 100vw, 430px\" \/><\/p>\n<h3>Consideration #2: Light Sabre mode<\/h3>\n<pre><span class=\"s1\">&gt;&gt; geth --testnet --syncmode \"light\"<\/span><\/pre>\n<p>Run on testnet with syncmode = light. This means the blockchain will only be several hundred Mb instead of Gb!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1863\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-10.19.39-AM.png\" alt=\"\" width=\"271\" height=\"36\" \/><\/p>\n<h3>Consideration #3: Running a defence screen<\/h3>\n<pre><span class=\"s1\">&gt;&gt; screen geth --testnet --syncmode \"light\"<\/span><\/pre>\n<p>This will keep geth running and after you close the terminal screen. Otherwise geth will close down.<\/p>\n<h3>Consideration #4: Chaindata directory<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1864 size-full\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-10.42.07-AM.png\" alt=\"\" width=\"526\" height=\"80\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-10.42.07-AM.png 526w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/Screen-Shot-2018-03-02-at-10.42.07-AM-300x46.png 300w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/p>\n<p>The blockchain will be in a folder called lightchaindata in\u00a0~\/.ethereum\/testnet\/geth<\/p>\n<h3>Consideration #4: Connecting to via IPC<\/h3>\n<pre>&gt;&gt;\u00a0geth attach ipc:\/home\/pi\/.ethereum\/testnet\/geth.ipc<\/pre>\n<p class=\"p1\">Ref:\u00a0https:\/\/owocki.com\/install-ethereum-geth-raspberry-pi-b\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Interested in getting Ethereum running on a Raspberry Pi 2?<\/p>\n","protected":false},"author":1,"featured_media":1866,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ethereum"],"featured_image_urls":{"full":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"thumbnail":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1-150x150.jpg",150,150,true],"medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1-300x198.jpg",300,198,true],"medium_large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"1536x1536":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"2048x2048":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"chromenews-featured":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"chromenews-large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false],"chromenews-medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2018\/03\/pi-1.jpg",300,198,false]},"author_info":{"info":["seandotau"]},"category_info":"<a href=\"https:\/\/www.talkcrypto.org\/blog\/category\/ethereum\/\" rel=\"category tag\">Ethereum<\/a>","tag_info":"Ethereum","comment_count":"1","_links":{"self":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/1858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/comments?post=1858"}],"version-history":[{"count":3,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/1858\/revisions"}],"predecessor-version":[{"id":1869,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/1858\/revisions\/1869"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media\/1866"}],"wp:attachment":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media?parent=1858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/categories?post=1858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/tags?post=1858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}