master
Raw Download raw file
  1<?xml version="1.0" encoding="utf-8"?>
  2<feed xmlns="http://www.w3.org/2005/Atom">
  3
  4  <title><![CDATA[Category: Cloud | BryFry]]></title>
  5  <link href="http://bryfry.github.com/blog/categories/cloud/atom.xml" rel="self"/>
  6  <link href="http://bryfry.github.com/"/>
  7  <updated>2013-03-05T07:22:42-05:00</updated>
  8  <id>http://bryfry.github.com/</id>
  9  <author>
 10    <name><![CDATA[bryfry]]></name>
 11    
 12  </author>
 13  <generator uri="http://octopress.org/">Octopress</generator>
 14
 15  
 16  <entry>
 17    <title type="html"><![CDATA[Namecoin on Ubuntu 11.10]]></title>
 18    <link href="http://bryfry.github.com/blog/2011/11/26/namecoind-on-ubuntu-11-10-x64/"/>
 19    <updated>2011-11-26T00:00:00-05:00</updated>
 20    <id>http://bryfry.github.com/blog/2011/11/26/namecoind-on-ubuntu-11-10-x64</id>
 21    <content type="html"><![CDATA[<p><img class="right" src="http://i.imgur.com/RJTsK.jpg" width="150" height="150" title="dot-bit" ></p>
 22
 23<p>So I setout to try a setup of <a href="https://github.com/vinced/namecoin">Namecoin</a>, the sibling to <a href="http://bitcoin.org/">Bitcoin</a> that is used for <a href="https://bitcointalk.org/?topic=6017.0">name/value storage</a> and is the foundation for the <a href="http://dot-bit.org/Main_Page">dot-bit project</a>.  The dependencies were not explicitly laid out in the README so I wrote up the things I found I needed.  Hopefully someone else doing the same thing will not have to do as much searching as I did.</p>
 24
 25<ul>
 26<li>Setup: namecoin version 0.3.24.64-beta</li>
 27<li>Target: Ubuntu 11.10 (x64), Amazon EC2 (Server) and Desktop</li>
 28</ul>
 29
 30
 31<p><code>bash
 32sudo apt-get install git build-essential libssl-dev \
 33libdb4.7++-dev libboost-dev libboost-system-dev \
 34libboost-filesystem-dev libboost-program-options-dev \
 35libboost-thread-dev libglibmm-2.4-dev
 36git clone git://github.com/vinced/namecoin.git
 37cd namecoin/src
 38make -f makefile.unix USE_UPNP=
 39</code></p>
 40
 41<p>I built my install list from the headers that were missing from a mostly generic 11.10 install. The list of the errors I came across are below. Shoot me a line if anyone comes across other packages that need added to the list.</p>
 42
 43<p>If you get this far you can start running namecoind which is well documented here: <a href="http://www.bluishcoder.co.nz/2011/05/12/namecoin-a-dns-alternative-based-on-bitcoin.html">Post Install</a></p>
 44
 45<p>If you have compilation errors you can read more after the jump.</p>
 46
 47<!--more-->
 48
 49
 50<p><code>text Compilation error - libssl
 51In file included from auxpow.cpp:4:0:
 52headers.h:37:28: fatal error: openssl/buffer.h: No such file or directoy
 53compilation terminated.
 54</code></p>
 55
 56<p><code>bash Solution - libssl
 57sudo apt-get install libssl-dev
 58</code></p>
 59
 60<p><code>text Compilation error - libdb
 61In file included from auxpow.cpp:4:0:
 62headers.h:43:20: fatal error: db_cxx.h: No such file or directory
 63compilation terminated.
 64</code></p>
 65
 66<p><code>bash Solution - libdb
 67sudo apt-get install  libdb4.7++-dev
 68</code></p>
 69
 70<p>If that fails ...
 71For some reason libdb4.7++-dev is not in the 11.10 server repositories, probably because the 4.7 and 4.7++ dev libraries have some conflicts. My workaround was to get 4.7++ and then manually install the 4.7++-dev.deb from launchpad. This is unstable and apt-get -f install will remove 4.7++-dev but for the compilation I didn't have any extra issues. When I ran the install on my desktop 11.10 libdb4.7++-dev was in the repositories so you only get this error 11.10 server :|.</p>
 72
 73<p><code>bash
 74wget http://launchpadlibrarian.net/66419156/libdb4.7%2B%2B-dev_4.7.25-10ubuntu1_amd64.deb
 75sudo dpkg -i --force-all libdb4.7++-dev_4.7.25-10ubuntu1_amd64.deb
 76</code></p>
 77
 78<p><code>text Compilation error - libboost
 79/usr/bin/ld: cannot find -lboost_system
 80/usr/bin/ld: cannot find -lboost_filesystem
 81/usr/bin/ld: cannot find -lboost_program_options
 82/usr/bin/ld: cannot find -lboost_thread
 83/usr/bin/ld: cannot find -lgthread-2.0
 84</code></p>
 85
 86<p><code>bash Solution - libbost
 87sudo apt-get install libboost-system-dev
 88sudo apt-get install libboost-filesystem-dev
 89sudo apt-get install libboost-program-options-dev
 90sudo apt-get install libboost-thread-dev
 91sudo apt-get install libglibmm-2.4-dev
 92</code></p>
 93
 94<p>Resources used:
 95<a
 96href="http://www.bluishcoder.co.nz/2011/05/12/namecoin-a-dns-alternative-based-on-bitcoin.html">Bluish Coder</a></p>
 97]]></content>
 98  </entry>
 99  
100  <entry>
101    <title type="html"><![CDATA[EFF Tor Challenge + Amazon EC2 Free Usage Tier]]></title>
102    <link href="http://bryfry.github.com/blog/2011/06/01/eff-tor-challenge-amazon-ec2-free-usage-tier/"/>
103    <updated>2011-06-01T00:00:00-04:00</updated>
104    <id>http://bryfry.github.com/blog/2011/06/01/eff-tor-challenge-amazon-ec2-free-usage-tier</id>
105    <content type="html"><![CDATA[<p>Goal: Setup a Tor Node (Exit) on a <a href="http://aws.amazon.com/free/">Free Usage Tier</a> Amazon VPS Image (EC2).  This and easy and free way to join the EFF in their annonced <a href=”https://www.eff.org/torchallenge”>TOR Challenge</a>.</p>
106
107<p>What you'll need:</p>
108
109<ul>
110<li>Amazon AWS Account</li>
111<li>Some basic Linux know-how</li>
112</ul>
113
114
115<p>First setup your new instance with the below specs.  Check the <a href="https://help.ubuntu.com/community/EC2StartersGuide">EC2StarterGuide</a> and the <a href="http://cloud.ubuntu.com/ami/">Ubuntu Cloud AMI Finder</a> for help.</p>
116
117<p>AMI: Micro (free usage tier) - Ubuntu 10.10 - x86_64 - EBS - (ami-cef405a7)</p>
118
119<ul>
120<li>Use the default Instance Properties</li>
121<li>Create a new Key Pair</li>
122<li>Create new Security Group (name it something recognizable, like tor)</li>
123<li>Add SSH + 9001 ports to the security group.</li>
124</ul>
125
126
127<p>Now that the VPS is up and running login to it, run some updates, install and configure Tor.</p>
128
129<p>``` bash</p>
130
131<h1>replace with your new key name and ec2 address.</h1>
132
133<p>ssh -i yournewkey.pem ubuntu@ec2-xxx-xxx-xxx-xxx.yyyyyyyy.amazonaws.com
134sudo apt-get update
135sudo apt-get upgrade</p>
136
137<h1>add the tor project repository</h1>
138
139<p>sudo apt-add-repository \</p>
140
141<pre><code> 'deb http://deb.torproject.org/torproject.org maverick main'
142</code></pre>
143
144<p>sudo apt-get update</p>
145
146<h1>install tor</h1>
147
148<p>sudo apt-get install tor tor-geoipdb</p>
149
150<h1>make a backup of the standard config file</h1>
151
152<p>sudo mv /etc/tor/torrc /etc/tor/torrc.bak
153```</p>
154
155<p>Edit /etc/tor/torrc or create a new config from scratch and make it look like this</p>
156
157<p><code>text /etc/tor/torrc
158SocksPort 0 # we are not going to make local connections, aka a simple relay
159ORPort 9001 # what port to advertise for incoming Tor connections
160Nickname xxxxxxxxxxxxx # Give your node a nickname for the EFF Tor Challange
161BandwidthRate 300 KB
162BandwidthBurst 350 KB
163AccountingStart month 1 00:00
164AccountingMax 3 GB
165</code></p>
166
167<p>The last two lines of this is important.  We want to make sure our node does not use enough traffic to use up the entire allowed free bandwidth that a free image is allotted because then you will have to start paying for those bits.  You could up it to around 15 GB which is where you start paying but we can start low for now.  Finally, we can startup Tor.  I like to use screen to run it so startup a new screen and run tor.</p>
168
169<p><code>bash
170screen -S tor
171/usr/sbin/tor
172</code></p>
173
174<p>Watch for errors, if none show up, head over to <a href="http://metrics.torproject.org/relay-search.html">http://metrics.torproject.org/relay-search.html</a> and after an hour or so you should be able to search for your node's nickname.</p>
175
176<p>When your done don't forget to submit your new node's nickname to the <a href="https://www.eff.org/torchallenge/report/">EFF's Tor Challenge</a>!</p>
177
178<p>Resources Used:</p>
179
180<ul>
181<li><a href="https://www.eff.org/torchallenge">https://www.eff.org/torchallenge</a></li>
182<li><a href="http://en.wikibooks.org/wiki/How_to_Protect_your_Internet_Anonymity_and_Privacy/Your_own_TOR_node_on_Amazon_EC2">http://en.wikibooks.org/wiki/How_to_Protect_your_Internet_Anonymity_and_Privacy</a></li>
183<li><a href="http://cloud.ubuntu.com/ami/">http://cloud.ubuntu.com/ami/</a></li>
184<li><a href="https://help.ubuntu.com/community/EC2StartersGuide">https://help.ubuntu.com/community/EC2StartersGuide</a></li>
185<li><a href="http://aws.amazon.com/free/">http://aws.amazon.com/free/</a></li>
186</ul>
187
188]]></content>
189  </entry>
190  
191</feed>