@@ -227,7 +227,6 @@ In this section we will be setting up the Debian installation for Gitian buildin
227
227
First we need to log in as ` root ` to set up dependencies and make sure that our
228
228
user can use the sudo command. Type/paste the following in the terminal:
229
229
230
-
231
230
``` bash
232
231
apt-get install git ruby sudo apt-cacher-ng qemu-utils debootstrap lxc python-cheetah parted kpartx bridge-utils
233
232
adduser debian sudo
@@ -249,15 +248,16 @@ echo '#!/bin/sh -e' > /etc/rc.local
249
248
echo ' brctl addbr br0' >> /etc/rc.local
250
249
echo ' ifconfig br0 10.0.3.2/24 up' >> /etc/rc.local
251
250
echo ' exit 0' >> /etc/rc.local
252
- # make sure that USE_LXC is always set when logging in as debian
251
+ # make sure that USE_LXC is always set when logging in as debian,
252
+ # and configure LXC IP addresses
253
253
echo ' export USE_LXC=1' >> /home/debian/.profile
254
+ echo ' export GITIAN_HOST_IP=10.0.3.2' >> /home/debian/.profile
255
+ echo ' export LXC_GUEST_IP=10.0.3.5' >> /home/debian/.profile
254
256
reboot
255
257
```
256
258
257
- At the end the VM is rebooted to make sure that the changes take effect.
258
-
259
- ** Note** : If you're following this guide on a physical system instead of a VirtualBox VM you could use ` 10.0.2.2 ` instead
260
- of ` 10.0.3.2 ` in the above ` ifconfig ` line. This avoids having to patch gitian-builder in next section.
259
+ At the end the VM is rebooted to make sure that the changes take effect. The steps in this
260
+ section need only to be performed once.
261
261
262
262
Installing gitian
263
263
------------------
@@ -286,20 +286,6 @@ git clone https://github.com/devrandom/gitian-builder.git
286
286
git clone https://github.com/bitcoin/bitcoin
287
287
```
288
288
289
- We need to change the guest IP range for the gitian builder because otherwise it will
290
- collide with VirtualBox its NAT IP range. Gitian does not have a way yet to configure
291
- this, so we need to patch the IPs using ` sed ` . This is not nice but it will
292
- have to do for now... (a [ pull request
293
- (#52 )] ( https://github.com/devrandom/gitian-builder/pull/52 ) to make this
294
- configurable without patching has been submitted):
295
-
296
- ``` bash
297
- sed -i ' s/10.0.2.2/10.0.3.2/g' gitian-builder/target-bin/bootstrap-fixup
298
- sed -i ' s/10.0.2.5/10.0.3.5/g' gitian-builder/etc/lxc.config.in
299
- ```
300
-
301
- * note* After you update the gitian-builder repository, you may need to repeat these manual changes.
302
-
303
289
Setting up gitian images
304
290
-------------------------
305
291
0 commit comments