**Now install node.js.** *Note the command name changes in ubuntu, `nodejs` instead of `node`. This is to avoid a name conflict with a package called `node` in ubuntu.
`sudo apt-get install -y nodejs`
## Optional (
**Install bower**. __*NOTE:*__ Used by https://github.com/adiwg/mdEditor
### Warning
```
npm WARN deprecated bower@1.8.2: ...psst! Your project can stop working at any moment because its dependencies can change. Prevent this by migrating to Yarn: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
***the capitalized stuff in the file needs to be adjusted to your specific settings. POOL_OPERATOR_USERNAME is your login account name***
Then run core-geth by the following commands
Then run core-geth by the following commands
$ sudo systemctl enable geth
$ sudo systemctl enable geth.service
$ sudo systemctl start geth
$ sudo systemctl start geth.service
If you want to debug the node command
If you want to debug the node command
$ sudo systemctl status geth
$ sudo journalctl -f -u geth.service
### Open Firewall
Firewall should be opened to operate this service. Whether Ubuntu firewall is basically opened or not, the firewall should be opened based on your situation.
You can open firewall by opening 80,443,8008,30305.
### Firewall
at minimum, the following ports must be open/forwarded for the pool (adjust as per your setup)
The frontend is a single-page Ember.js application that polls the pool API to render miner stats.
### Running Pool
./open-etc-pool-friends api.json
### Building Frontend
### Building Frontend
Install nodejs. I suggest using LTS version >= 4.x from https://github.com/nodesource/distributions or from your Linux distribution or simply install nodejs on Ubuntu Xenial 16.04.
> NOTE: at this point keep your nodejs version <= 19.x.
The frontend is a single-page Ember.js application that polls the pool API to render miner stats.
cd www
cd www
Change <code>ApiUrl: '//example.net/'</code> in <code>www/config/environment.js</code> to match your domain name. Also don't forget to adjust other options.
Change <code>ApiUrl: '//example.net/'</code> in <code>www/config/environment.js</code> to match your domain name. Also don't forget to adjust other options.