Jump to content

Snap Denarius - Snapcraft (Linux Easy Install Wallet)


buzzkillb
 Share

Recommended Posts

Official Denarius QT / daemon Snap is available at https://snapcraft.io/denarius

bkgdv2.jpg.2e7b2252768182701bbfc970e479f6ab.jpg

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

snapcraftv22.thumb.jpg.0d0b793484290e21ccdf93a6151b5f2c.jpg

  • Like 1
Link to comment
Share on other sites

  • Ghost pinned this topic

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

 

Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

  • 5 months later...

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

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

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 by chris92
  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

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.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

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

image.png.a152fb6aa8c9b4bd122c5848ba31f686.png

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

 

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

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.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...