Jump to content
Sign in to follow this  
buzzkillb

How to Build Denarius Cryptocurrency Snap

Recommended Posts

How to build denarius cryptocurrency in snapcraft. I used Ubuntu 18.04 Bionic as the OS for this process, but the build is done in 16.04 Xenial.

d-sexy-af-icon.thumb.png.f860d8102ee82a6ce701e29a55666489.png

https://github.com/buzzkillb/d-snapcraft

We are going to build in LXD, which I ended up using a combination of the below guides.

https://forum.snapcraft.io/t/how-to-create-a-lxd-container-for-snap-development/4658
https://forum.snapcraft.io/t/build-on-lxd/4157

Install LXD from snap

sudo snap install lxd

initialize LXD (I used all the default settings)

sudo lxd init

Give permissions so we can run without root

sudo usermod -a -G lxd ${USER}

Bring the setting through

newgrp lxd

Building Manually in Xenial

lxc launch ubuntu:16.04 mysnapcraft

Bring your snapcraft.yaml in from your PC and bring into LDX

lxc file push snap/snapcraft.yaml mysnapcraft/home/ubuntu/

Open up a shell and install snapcraft

lxc exec mysnapcraft -- /bin/bash 
snap install snapcraft --classic

Lets build our snapcraft.yaml

cd /home/ubuntu
snapcraft prime
snapcraft

You will get a file like this

denarius_master_amd64.snap

Bring the snap into your PC, open up another terminal and type below and stay on that terminal for the remaining.

sudo lxc file pull mysnapcraft/home/ubuntu/denarius_master_amd64.snap denarius_master_amd64.snap

Install the snap

sudo snap install denarius_master_amd64.snap --dangerous

Run denarius QT

denarius

Should be ready to mess around with this.

799238002_Screenshotfrom2019-09-2816-24-36.png.7caf2fb08e36665dedb50ef0a248cce6.png

2012851753_Screenshotfrom2019-09-2816-31-14.thumb.png.ea366db9366953f804302fd1bb5b95aa.png


Join Denarius Discord - https://discord.gg/JQEmXwb

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...