# Install your own node uCoin

**URL:** https://forum.duniter.org/t/install-your-own-node-ucoin/160
**Category:** Networks
**Created:** [31 January 2015 13:08 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160 "2015-01-31T13:08:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)
#### Post date: [31 January 2015 13:08 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/1 "2015-01-31T13:08:30Z")

</div>

How to install your own instance of uCoin to either:

- Participate to the writing of the blockchain
- Just have a local passive node for mirroring

Let’s go!

### Requirement

- A GNU/Linux distribution
- node.js + npm installed
- MongoDB:

```bash
sudo [package manager] (apt-get) install mongodb

```

### 1. Installing uCoin

Simply run:

```bash
$ sudo npm install -g ucoin

```

You can check installed version by using:

```bash
$ ucoind --version
0.10.x

```

### 2. Configure and synchronize your node

```bash
ucoind bootstrap metab.ucoin.io 9201

```

Good! We have downloaded & applied an existing blockchain on our node.

As a first installation, you only need to make a basic configuration. Here is how:

```bash
$ ucoind wizard basic

```

This command is an helper to configure your node without making too much errors. My configuration looks like:

```bash
[?] Key's salt: ***********
[?] Key's password: *********
[?] IPv4 interface: eth0 192.168.1.18
[?] IPv6 interface: None
[?] Port: 9101
[?] Remote IPv4 88.163.127.43
[?] Remote IPv6 None
[?] Remote port: 9101
[2014-11-21 19:08:55.694] [DEBUG] ucoind - Configuration saved.

```

Where salt & password are the values I use for my personal key of member. If what you want is to write into the blockchain, you should do this too. Otherwise, you can put whatever values for salt & password.  
Remote parameters

On above config, you can see 3 special parameters:

```bash
[?] Remote IPv4 88.163.127.43
[?] Remote IPv6 None
[?] Remote port: 9101

```

These are the network configuration for others to reach your node outside your private network, for example from the Internet.

This data will be publicly available, since your node will send it to ucoin network so your node can be forwarded new data (blocks, peers, …).

This is where you might need to access your Internet box and open a port, and redirect it to your local ucoin instance whose parameters are (for example):

```bash
[?] IPv4 interface: eth0 192.168.1.18
[?] IPv6 interface: None
[?] Port: 9101

```

Proof-of-Work parameters

You will also need to configure Proof-of-Work parameters:

```bash
$ ucoind wizard pow
[?] Participate writing the blockchain (when member) Yes
[?] Start computation of a new block if none received since (seconds) 1200
[2014-11-21 19:15:53.635] [DEBUG] ucoind - Configuration saved.

```

Here, if you do not want to participate to the writing of the blockchain, just answer “No” to the first question. Otherwise, you will be asked for a delay to wait before computing next block. I suggest value 1200 here. You can put whatever value you want, this is for computation (CPU) saving purposes. This value is in seconds.

### 3. Start your node

```bash
ucoind start

```

### 4. Enjoy!

There we are! You should have your node either computing next block, or just waiting for new data.

#### CPU use

You can limit CPU use with the command:

```bash
ucoind --cpu 0.8

```

uCoin will use 80% of CPU.

---

<div class="post-metadata">

### Author: ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)
#### Post date: [31 January 2015 22:07 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/2 "2015-01-31T22:07:20Z")

</div>

I’ve copied your tutorial to the Wiki: [https://github.com/ucoin-io/ucoin/wiki](https://github.com/ucoin-io/ucoin/wiki)

We should edit it there (on the Wiki) from now, since we need a central place for documentation.

Anyway, thanks for your work 🙂

---

<div class="post-metadata">

### Author: ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)
#### Post date: [2 February 2015 10:01 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/3 "2015-02-02T10:01:36Z")

</div>

I’ve updated your tutorial with my latest try on a raw Ubuntu 14.04 LTS.

One may now follow [official wiki tutorial](https://github.com/ucoin-io/ucoin/wiki/Install-uCoin-node) to install its node.

---

<div class="post-metadata">

### Author: ![OAuber](https://forum.duniter.org/user_avatar/forum.duniter.org/oauber/32/36_2.png) [@OAuber](https://forum.duniter.org/u/OAuber)
#### Post date: [3 February 2015 17:45 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/4 "2015-02-03T17:45:55Z")

</div>

Some problems on my ububtu 14.04 LTS 32 bits  
[http://paste.yunohost.org/dicilecusa.coffee](http://paste.yunohost.org/dicilecusa.coffee)  
Do you need my npm-debug.log?

---

<div class="post-metadata">

### Author: ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)
#### Post date: [3 February 2015 18:01 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/5 "2015-02-03T18:01:14Z")

</div>

Well, can you first try to:

```
sudo npm uninstall -g node-gyp

```

And then retry:

```
sudo npm install -g ucoin

```

If it still fails, yes, please past us your logs + npm-debug.log.

---

<div class="post-metadata">

### Author: ![OAuber](https://forum.duniter.org/user_avatar/forum.duniter.org/oauber/32/36_2.png) [@OAuber](https://forum.duniter.org/u/OAuber)
#### Post date: [3 February 2015 18:07 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/6 "2015-02-03T18:07:12Z")

</div>

root@toto:/home/olivier# sudo npm uninstall -g node-gyp  
npm WARN uninstall not installed in /usr/lib/node\_modules: “node-gyp”

npm-debug.log is to big for pastebin  
where should I send it?

---

<div class="post-metadata">

### Author: ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)
#### Post date: [3 February 2015 18:10 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/7 "2015-02-03T18:10:26Z")

</div>

Maybe just paste the last 3000 lines with `tail -n 3000` of your npm-debug.log.

---

<div class="post-metadata">

### Author: ![OAuber](https://forum.duniter.org/user_avatar/forum.duniter.org/oauber/32/36_2.png) [@OAuber](https://forum.duniter.org/u/OAuber)
#### Post date: [3 February 2015 18:16 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/8 "2015-02-03T18:16:20Z")

</div>

last 3000 lines:  
[http://paste.yunohost.org/hisojetaxe.tex](http://paste.yunohost.org/hisojetaxe.tex)

---

<div class="post-metadata">

### Author: ![cgeek](https://forum.duniter.org/user_avatar/forum.duniter.org/cgeek/32/279_2.png) [@cgeek](https://forum.duniter.org/u/cgeek)
#### Post date: [4 February 2015 22:35 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/9 "2015-02-04T22:35:04Z")

</div>

Problem identified & reproduced: you are running a **32 bits** Ubuntu, which seems to make the compilation fail! I have to investigate how to overcome this 🙂

---

<div class="post-metadata">

### Author: ![OAuber](https://forum.duniter.org/user_avatar/forum.duniter.org/oauber/32/36_2.png) [@OAuber](https://forum.duniter.org/u/OAuber)
#### Post date: [24 June 2015 09:09 UTC](https://forum.duniter.org/t/install-your-own-node-ucoin/160/10 "2015-06-24T09:09:37Z")

</div>

Je suis de retour via l’appli android (chouette!!!). Mais est que qqun doit me recertifier (poiete) pour je rerentre dans jeu ?our je rerentre dans jeu ? ??
