{"id":16193600,"url":"https://github.com/pyramation/mn-setup-scripts","last_synced_at":"2025-10-13T05:40:54.072Z","repository":{"id":66351097,"uuid":"119783546","full_name":"pyramation/mn-setup-scripts","owner":"pyramation","description":null,"archived":false,"fork":false,"pushed_at":"2018-02-02T05:52:26.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T02:03:52.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyramation.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-01T04:38:24.000Z","updated_at":"2018-03-27T06:31:27.000Z","dependencies_parsed_at":"2023-02-26T23:47:08.262Z","dependency_job_id":null,"html_url":"https://github.com/pyramation/mn-setup-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fmn-setup-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fmn-setup-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fmn-setup-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyramation%2Fmn-setup-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyramation","download_url":"https://codeload.github.com/pyramation/mn-setup-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247675597,"owners_count":20977378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T08:15:43.623Z","updated_at":"2025-10-13T05:40:49.003Z","avatar_url":"https://github.com/pyramation.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# masternode helper scripts\n\noriginal source: https://denariustalk.org/index.php?/topic/129-dnr-masternode-setup\n\n## initial security setup\n\nif you already have a secure box and a user, just skip right now down to section \"masternode setup\"\n\n### 1 change your root password\n\n```sh\npasswd root\n```\n\n### 2 install scripts and some deps\n\n```sh\napt-get update\napt-get upgrade\napt-get install ufw python virtualenv git unzip pv make\ngit clone https://github.com/pyramation/mn-setup-scripts.git\ncd mn-setup-scripts \u0026\u0026 ./install.sh\n```\n\n### 3 add user\n\nmake sure `/root/.ssh/authorized_keys` exists first! If you used DigitalOcean or similar, should already be there ;)\n\n```sh\nmn-setup-init-user \u003cusername\u003e\n```\n\nWrite down the username it creates! Added randomness for extra security.\n\n### 4 add firewalls\n\n```sh\nmn-setup-firewalls\nreboot\n```\n\n# masternode setup\n\n\n### 1 install denarius\n\nLog back in, then switch to root (or can use sudo):\n\n```\nsu - root\napt-get install build-essential libssl-dev libdb++-dev libboost-all-dev libminiupnpc-dev libqrencode-dev\n```\n\nthen type `exit` if root, to go back to regular user:\n\n```\ncd ~/\ngit clone https://github.com/carsenk/denarius\ncd denarius\ngit checkout masternodes # CAREFUL THIS STEP MAY BE DIFFERENT WHEN IN PRODUCTION!\ncd src\nmake -f makefile.unix\n```\n\n### 2 generate the config\n\n```sh\nmkdir -p ~/.denarius\nmn-setup-init-config\n```\n\nor if using testnet,\n\n```sh\nTESTNET=1 mn-setup-init-config\n```\n\n\n\n### 3 start `denariusd`\n\n```sh\ncd ~/denarius/src\n./denariusd\n```\n\n### 4 update `denarius.conf` with masternode info\n\n```sh\ncd ~/denarius/src\nmn-setup-update-config\n```\n\nif using testnet,\n\n```\nTESTNET=1 mn-setup-update-config\n```\n\n### 5 load up on 5000 coin!\n\nNow, open another shell, and navigate to the `src/` dir\n\n```sh\ncd ~/denarius/src\n./denariusd getaccountaddress 0\n\u003e\u003e 8aEgCZRJcmSUymnd8mLsQqE9SfWAnGYZrB\n```\n\nSend 5000 DNR to the address it returns\n\n### 6 wait until your funds arrive\n\nFirst, wait until you are sync'd and have coins!\n\n```sh\ncd ~/denarius/src\n./denariusd getbalance\n\u003e\u003e 5000.00\n```\n\n#### Trouble shooting:\n\ntestnet: `tail -f ~/.denarius/testnet/debug.log`\n\nmainnet: `tail -f ~/.denarius/debug.log`\n\nif you see not a lot of action, or something like `02/02/18 02:55:31 No valid UPnP IGDs found`, then:\n```sh\n./denariusd addnode denarius.win add\n```\n\n### 7 generate `masternode.conf`\n\nWhen ready, generate the config:\n\n```sh\ncd ~/denarius/src\nMN_ALIAS=pyramation mn-setup-init-masternode-config\n```\nor for testnet,\n\n```sh\nMN_ALIAS=pyramation TESTNET=1 mn-setup-init-masternode-config\n```\n\n### 8 restart `denariusd`\n\nIn one shell,\n\n```sh\n./denariusd stop\n```\n\nthen in the original one running `./denariusd`, hit `ctl+c`, then\n\n```sh\n./denariusd\n```\n\n### 9 start your masternode\n\n\n```sh\n./denariusd masternode start\n```\n\nTo ensure the masternode is running properly you can use the debug command:\n\n```sh\n./denariusd masternode debug\n```\n\n#### Troubleshooting\n\nIf you receive `masternode input must have at least 15 confirmations` error when starting, you'll simply have to wait.\n\nIf you receive `masternode is stopped` error, just try to start again:\n\n```sh\n./denriusd masternode start\n```\n\n### 10 init.d scripts\n\nIn case of a failure, this will create a service that starts up on reboot:\n\nrun as `root`\n\n```sh\nmn-setup-masternode-service dnr /home/myuser-d0cf0ccc5b/denarius/src/denariusd myuser-d0cf0ccc5b\n```\n\ntest it ;)\n\n```sh\nreboot now\n```\n\n### 11 clean your history!\n\nAs an extra security precaution, in case you entered a passphrase or other sensitive information via the command line, this line will completely erase all of your bash history:\n\n```sh\ncat /dev/null \u003e ~/.bash_history \u0026\u0026 history -c\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fmn-setup-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyramation%2Fmn-setup-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyramation%2Fmn-setup-scripts/lists"}