Easy with Docker ...
With the ease of using Docker, you can easily run pre-build things without the need of having all the knowledge or time.
When you have Docker installed (read below), it requires only one command to start. For Safex, the Ninja has created the Docker images below. (Also see our page on Docker hub)
With Docker you can easily run anything anywhere, even on a Raspberry Pi or a NAS (Synology supports installing and running Docker, so let it run as a node!).
Note: on Windows leave "sudo" out of the command.
Running a Node, even on a NAS or low end hardware
Run a mainnet Node with this docker image, by running this command (see more details, options and reference to source code on dockerhub):
- specific version:
sudo docker run -i -p 17400-17403:17400-17403 safexninja/safex-node:7.0.1
Be aware here: The in/out peers are set to 50.
To receive in-peers make sure port range 17400-17403 is open on the router/network and if needed portforwarded to the docker-host (your pyshical machine), or the host is connected to the internet directly. When the node is running type
status to see the synchronization status and the amount of peers.
To update a running node stop the node by
exit, then start the docker command with the new version specific tag
Run xmrig and start mining on the safex.org pool, by running this command (add your own address) (see more details, options and reference to source code on dockerhub):
Be aware here: mining in a docker container and/or VM is not optimal and will not get everything out of your hardware. But it will give you some hashes and works fine if you want to get acquainted with mining, or when using docker is the only way to run a miner. Mining on a Raspberry Pi is useless.
Visit Dockers website and find a way to install it on your OS.
- Mac OS: install Docker Desktop from the site
- Windows 10 Pro or Enterprise: install Docker Desktop from the site
- Other windows is a bit harder: install VirualBox (easy and there is lots of tutorials on this), run i.e. Ubuntu in it, and see Linux. I might be even better to just install Linux as OS. Dual boot is also possible.
- Linux: search for your distribution what the best way is to install it.
For example in Ubuntu you can easily install Docker using snapd
$ sudo apt update
$ sudo apt install snapd
$ sudo snap install docker