master
1<?xml version="1.0" encoding="utf-8"?>
2<feed xmlns="http://www.w3.org/2005/Atom">
3
4 <title><![CDATA[Category: Ubuntu | BryFry]]></title>
5 <link href="http://bryfry.github.com/blog/categories/ubuntu/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[Moving Window Buttons back to the right in Ubuntu 10.04+]]></title>
102 <link href="http://bryfry.github.com/blog/2011/06/10/moving-window-buttons-ubuntu/"/>
103 <updated>2011-06-10T00:00:00-04:00</updated>
104 <id>http://bryfry.github.com/blog/2011/06/10/moving-window-buttons-ubuntu</id>
105 <content type="html"><![CDATA[<p>I have gone and looked this up too many times. So for you and me both here is the long and short of it. The simple command that will move the windows buttons (minimize, maximize, and close) back to the right side, where all proper window buttons should be.</p>
106
107<p>``` bash</p>
108
109<h1>move windows back to the right side in Ubuntu 10.04+</h1>
110
111<p>$ gconftool-2 --set /apps/metacity/general/button_layout type string menu:minimize,maximize,close
112```</p>
113
114<p>Update: I have confirmed that this does also work with all Ubuntu distros up through 12.04</p>
115]]></content>
116 </entry>
117
118 <entry>
119 <title type="html"><![CDATA[EFF Tor Challenge + Amazon EC2 Free Usage Tier]]></title>
120 <link href="http://bryfry.github.com/blog/2011/06/01/eff-tor-challenge-amazon-ec2-free-usage-tier/"/>
121 <updated>2011-06-01T00:00:00-04:00</updated>
122 <id>http://bryfry.github.com/blog/2011/06/01/eff-tor-challenge-amazon-ec2-free-usage-tier</id>
123 <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>
124
125<p>What you'll need:</p>
126
127<ul>
128<li>Amazon AWS Account</li>
129<li>Some basic Linux know-how</li>
130</ul>
131
132
133<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>
134
135<p>AMI: Micro (free usage tier) - Ubuntu 10.10 - x86_64 - EBS - (ami-cef405a7)</p>
136
137<ul>
138<li>Use the default Instance Properties</li>
139<li>Create a new Key Pair</li>
140<li>Create new Security Group (name it something recognizable, like tor)</li>
141<li>Add SSH + 9001 ports to the security group.</li>
142</ul>
143
144
145<p>Now that the VPS is up and running login to it, run some updates, install and configure Tor.</p>
146
147<p>``` bash</p>
148
149<h1>replace with your new key name and ec2 address.</h1>
150
151<p>ssh -i yournewkey.pem ubuntu@ec2-xxx-xxx-xxx-xxx.yyyyyyyy.amazonaws.com
152sudo apt-get update
153sudo apt-get upgrade</p>
154
155<h1>add the tor project repository</h1>
156
157<p>sudo apt-add-repository \</p>
158
159<pre><code> 'deb http://deb.torproject.org/torproject.org maverick main'
160</code></pre>
161
162<p>sudo apt-get update</p>
163
164<h1>install tor</h1>
165
166<p>sudo apt-get install tor tor-geoipdb</p>
167
168<h1>make a backup of the standard config file</h1>
169
170<p>sudo mv /etc/tor/torrc /etc/tor/torrc.bak
171```</p>
172
173<p>Edit /etc/tor/torrc or create a new config from scratch and make it look like this</p>
174
175<p><code>text /etc/tor/torrc
176SocksPort 0 # we are not going to make local connections, aka a simple relay
177ORPort 9001 # what port to advertise for incoming Tor connections
178Nickname xxxxxxxxxxxxx # Give your node a nickname for the EFF Tor Challange
179BandwidthRate 300 KB
180BandwidthBurst 350 KB
181AccountingStart month 1 00:00
182AccountingMax 3 GB
183</code></p>
184
185<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>
186
187<p><code>bash
188screen -S tor
189/usr/sbin/tor
190</code></p>
191
192<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>
193
194<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>
195
196<p>Resources Used:</p>
197
198<ul>
199<li><a href="https://www.eff.org/torchallenge">https://www.eff.org/torchallenge</a></li>
200<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>
201<li><a href="http://cloud.ubuntu.com/ami/">http://cloud.ubuntu.com/ami/</a></li>
202<li><a href="https://help.ubuntu.com/community/EC2StartersGuide">https://help.ubuntu.com/community/EC2StartersGuide</a></li>
203<li><a href="http://aws.amazon.com/free/">http://aws.amazon.com/free/</a></li>
204</ul>
205
206]]></content>
207 </entry>
208
209</feed>