Git Product home page Git Product logo

Comments (14)

maflcko avatar maflcko commented on June 5, 2024 5

To run the deamon, you'd have to type bitcoin-core.daemon -testnet

from packaging.

ktuulos avatar ktuulos commented on June 5, 2024 2

This snap should give possibility to run the daemon with command "bitcoind". This is because some 3rd party wallets, like Armory, depend on running Bitcoin daemon using the standard (as in Bitcoin's delivery .tar.gz file) "bitcoind" file name.

from packaging.

AO-LocLab avatar AO-LocLab commented on June 5, 2024 1

So I haven’t tried to use the bitcoin-core snap for over four months. When running it, the "Welcome to Bitcoin Core" dialog offers me to choose my datadir. Now since my datadir is on a separate hard drive, snap can’t access it, so I still can’t access Bitcoin Core with my datadir. Is there any solution to this problem?

from packaging.

maflcko avatar maflcko commented on June 5, 2024 1

There is the home interface https://snapcraft.io/docs/home-interface or https://snapcraft.io/docs/personal-files-interface or https://snapcraft.io/docs/removable-media-interface or https://snapcraft.io/docs/system-files-interface

As the snap dir already resides in the home dir, I am not sure how much the home interface is going to help. And Bitcoin Core generally does not support storing data on removable media, as it is a common cause for data corruption. I guess the removable-media-interface also gives access to "permanent" secondary disks, so I wouldn't object adding that interface.

from packaging.

maflcko avatar maflcko commented on June 5, 2024 1

With the third party package managers like snap or flatpak it is not possible to create a bitcoind alias on installation. If an shell alias is not sufficient, you can try creating ~/bin/bitcoind in the home dir of the user that is running the scripts.

Content of the file should be something like:

#!/usr/bin/env bash
bitcoin-core.daemon "${@}"

from packaging.

maflcko avatar maflcko commented on June 5, 2024

it has ignored my previous /home/user/.config/Bitcoin

Currently the default dir is in the snap dir:

# ~/snap/bitcoin/common/.bitcoin instead of

Maybe you can create a bitcoin.conf in this dir and then change the datadir to something else in the conf file?

the Bitcoin Core GUI is not available in Unity’s dashboard.

Unity has been deprecated by Ubuntu and it doesn't seem to work with our snap. See also

  • Snap install on Unity UI has qt menu bar missing #20

from packaging.

AO-LocLab avatar AO-LocLab commented on June 5, 2024

it has ignored my previous /home/user/.config/Bitcoin

Currently the default dir is in the snap dir:

# ~/snap/bitcoin/common/.bitcoin instead of

Maybe you can create a bitcoin.conf in this dir and then change the datadir to something else in the conf file?

I don’t have a ~/snap/bitcoin, only ~/snap/bitcoin-core, I tried creating a /common/.bitcoin in both ~/snap/bitcoin and ~/snap/bitcoin-core and place a bitcoin.conf there (my former Bitcoin-Qt.conf that I renamed), but bitcoin-core.qt ignores it.

the Bitcoin Core GUI is not available in Unity’s dashboard.

Unity has been deprecated by Ubuntu and it doesn't seem to work with our snap. See also

I see, thank you. Unity is still used by many.

from packaging.

maflcko avatar maflcko commented on June 5, 2024

Snap packages are supposed to be self-contained and don't allow arbitrary file-access. So my previous suggestion wouldn't work anyway. See:

$ cat ~/snap/bitcoin-core/common/.bitcoin/bitcoin.conf
regtest=1
datadir=/home/marco/Downloads/rt
uacomment=test_issue_21

$ bitcoin-core.qt 
/snap/bitcoin-core/37/bin/desktop-launch: line 29: /home/marco/.config/user-dirs.locale: No such file or directory
terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
  what():  boost::filesystem::create_directory: Permission denied: "/home/marco/Downloads/rt/regtest"
Aborted (core dumped)

from packaging.

maflcko avatar maflcko commented on June 5, 2024

Sorry, I can't help with the Unity issue, but I suggest to close this issue and track the Unity issues in (Snap install on Unity UI has qt menu bar missing #20)

from packaging.

wmpedersen avatar wmpedersen commented on June 5, 2024

This issue has been referenced as a bug in snapd and seems to affect multiple snaps
PX4/PX4-Autopilot#9409
https://bugs.launchpad.net/snapd/+bug/1757198

The proposed solutions suggest to edit your .bashrc
PX4/PX4-Autopilot#9409 (comment)

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
Make sure you have libgtk3-nocsd.so.0 in /usr/lib/x86_64-linux-gnu/
If you didn't have it, try sudo apt-get install gtk3-nocsd

This issue and #20 look to be related to the upgrade path through Ubuntu versions.

from packaging.

adriaanbd avatar adriaanbd commented on June 5, 2024

Installed bitcoin-core with:

$ snap install bitcoin-core
Setup snap "bitcoin-core" (54) security profiles                                                                            
    Setup snap "bitcoin-core" (54) security profiles 
    Setubitcoin-core 0.19.0.1 from Bitcoin Core installed

Then when I run it, nothing happens:

$ bitcoind -testnet -deamon
bitcoind: command not found

Running $ l snap does not even output a bitcoin directory.

Solved it by running (warning this might delete or make your system unrecognize previously installed snaps):

$ sudo apt purge snapd && sudo apt install snapd
$ sudo snap install bitcoin-core

Now it's here:

$ l snap | grep bitcoin-core
bitcoin-core/

However, I was still unable to run the commands. So, I decided to download the tar file from website and install it manually. Everything works now.

Hope this helps!

from packaging.

adriaanbd avatar adriaanbd commented on June 5, 2024

@MarcoFalke I didn't know that was the command for it. Hope others try it out and let us know.

from packaging.

mahalamobile avatar mahalamobile commented on June 5, 2024

i have installed, how or where do i get the bitcoin.conf file, need to add details for rcpuser and password

thanks

from packaging.

maflcko avatar maflcko commented on June 5, 2024

Does ~/snap/bitcoin-core/common/.bitcoin/bitcoin.conf work?

from packaging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.