buzzkillb Posted October 2, 2019 Report Share Posted October 2, 2019 Official Denarius QT / daemon Snap is available at https://snapcraft.io/denarius To install sudo apt update sudo apt install snapd sudo snap install denarius To run QT denarius To run the daemon denarius.daemon chaindata stored in ~/snap/denarius/common/.denarius cd ~/snap/denarius/common/.denarius Sample daemon command denarius.daemon getinfo stop daemon denarius.daemon stop 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted October 6, 2019 Author Report Share Posted October 6, 2019 Multiple Instances can now be run. How to do Snap Denarius Parallel Installs # Enable parallel instances sudo snap set system experimental.parallel-instances=true # First instance - normal install (not required if already installed) sudo snap install denarius # Second or more instances sudo snap install denarius denarius_1 sudo snap install denarius denarius_2 sudo snap install denarius denarius_3 Â Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted October 6, 2019 Author Report Share Posted October 6, 2019 I have denarius snap already installed so I add denarius_1 as above and this is what snap list shows. snap list Name Version Rev Tracking Publisher Notes core 16-2.41 7713 stable canonical✓ core core18 20191001 1192 stable canonical✓ base denarius 3.3.9.4 77 stable carsenk - denarius_1 3.3.9.4 77 stable carsenk - to run the 2nd denarius daemon denarius_1 denarius_1.daemon denarius_1 is now in the ~/snap/denarius_1 folder ~/snap$ ls -l total 28 drwxr-xr-x 5 user user 4096 Oct 5 20:15 denarius drwxr-xr-x 4 user user 4096 Oct 6 10:18 denarius_1 hint: listen=0 and +1 to port and rpcport per additional daemon/QT EZ-MODE 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted March 30, 2020 Author Report Share Posted March 30, 2020 Running non stock kernels in Ubuntu, you might get an SELINUX error like "cmd_run.go:876: WARNING: cannot create user data directory: failed to verify SELinux context" sudo apt install selinux-policy-default sudo nano /etc/selinux/config then change the config file to SELINUX=disabled # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled reboot system reference: https://forum.snapcraft.io/t/selinux-warning-when-running-lxc/11100/11 1 Quote Link to comment Share on other sites More sharing options...
chris92 Posted May 16, 2020 Report Share Posted May 16, 2020 thanks a lot for this awesome guide. i didn't know snap rocks that much 2 Quote Link to comment Share on other sites More sharing options...
chris92 Posted May 16, 2020 Report Share Posted May 16, 2020 (edited) If you get this error: Command 'denarius.daemon' is available in '/snap/bin/denarius.daemon' The command could not be located because '/snap/bin' is not included in the PATH environment variable. ... when starting the daemon via "denarius.daemon", you need to do the following: 1) Folder "etc" => open file "environment" 2) Add "/snap/bin:" to the string, for me it looks like this: "PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:"" 3) "reboot" to restart VPS => "denarius.daemon" should work Edited May 16, 2020 by chris92 2 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted May 25, 2020 Author Report Share Posted May 25, 2020 To install Denarius snap QT / daemon in Qubes OS. reference: https://www.qubes-os.org/doc/software-update-domu/ "Installing Snap Packages" Open up one of the template VM terminals like Fedora Template VM. sudo dnf install snapd qubes-snapd-helper Then shutdown the TemplateVM. sudo shutdown -h now Once this is done, create a new AppVM based on that TemplateVM. I used these settings. Name and Label: Crypto Color: Purple Type: Qube based on a template (AppVM) Template: default (fedora-30) Networking: sys-whonix launch settings after creation Then gave it 12gb of storage in the settings. Start a terminal in the new AppVM. snap install denarius After that's done go back to your Qube Settings -> Applications -> Click Refresh Applications, click Denarius then the single arrow to move it so selected, click OK. You can run Denarius Snap QT from the menu, or go to terminal and run denarius.daemon for the daemon. A nice feature is that you can run under whatever firewall rules you want. In this example using sys-whonix I am now through TOR completely. 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted July 12, 2020 Author Report Share Posted July 12, 2020 To mount the chaindata folder to another location, like external drive. Install snap in devmode, this will not auto update the Denarius snap though. snap install --devmode denarius reference: https://github.com/carsenk/denarius/issues/279#issuecomment-653414967 1 Quote Link to comment Share on other sites More sharing options...
buzzkillb Posted November 12, 2020 Author Report Share Posted November 12, 2020 reference: https://forum.proxmox.com/threads/ubuntu-snaps-inside-lxc-container-on-proxmox.36463/post-230060 To run snap denarius daemon in an proxmox lxc unprivileged container go to your container -> Options -> Features and checkmark Nesting & FUSE sudo apt update sudo apt install snapd sudo snap install denarius You will get an error on the first snap install denarius, run snap install denarius a 2nd time and it will install. sudo snap install denarius 1 Quote Link to comment Share on other sites More sharing options...
Ghost Posted November 13, 2020 Report Share Posted November 13, 2020 Yes just wanted to say snapd relies on FUSE typically, it is installed within this tutorial I did as well: That could relate in ways to this Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
buzzkillb Posted November 29, 2020 Author Report Share Posted November 29, 2020 To run mainnet and testnet daemons together. sudo snap set system experimental.parallel-instances=true sudo snap install denarius sudo snap install denarius denarius_1 denarius.daemon denarius_1.daemon -testnet Folders where the chaindata is located by default. denarius.conf and fortunastake.conf always in .denarius folder ~/snap/denarius/common/.denarius ~/snap/denarius_1/common/.denarius/testnet You may need to edit rpcport and port in for the testnet daemon. rpcport=32368 and port=33368. Testnet fortunastake port is 19999. 1 Quote Link to comment Share on other sites More sharing options...
Ghost Posted November 29, 2020 Report Share Posted November 29, 2020 I think the Parallel instance feature of Snapcraft is highly under-rated....It is an amazing feature of Snap and allows one to run multiple instances of Denarius on the same machine including a mix of testnet/mainnet nodes. 1 Quote Founder of BlockForums.org - PM me for any help - Join our Discord Server: https://discord.gg/UPpQy3n Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.