Jump to content

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

  • Denarius 1
Link to comment
Share on other sites

  • 1 year later...

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...