I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

SSH Install

dashed-slug.net Forums General discussion SSH Install

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6611
    Anonymous
    Inactive

    Hi guys,

    Can anyone walk me through the SSH install for the full node install for bitcoin? I am getting the attached errors in my cPanel shell terminal

    Attachments:
    You must be logged in to view attached files.
    #6614
    Anonymous
    Inactive

    another screenshot

    Attachments:
    You must be logged in to view attached files.
    #6616
    Anonymous
    Inactive

    Figured part of it out. Needed to use
    wget https://bitcoin.org/bin/bitcoin-core-0.18.0/bitcoin-0.18.0-x86_64-linux-gnu.tar.gz

    It is downloading now, so I’ll update when I can

    #6617
    Anonymous
    Inactive

    Crap. Ok, here I am:

    Attempting to create directory /home/ryobsbpb/perl5
    [ryobsbpb@premium77 ~]$ cd
    [ryobsbpb@premium77 ~]$ cd
    [ryobsbpb@premium77 ~]$ sudo tar xzf bitcoin-0.18.0-x86_64-linux-gnu.tar.gz
    bash: sudo: command not found
    [ryobsbpb@premium77 ~]$ sudo apt-add-repository ppa:bitcoin/bitcoin
    bash: sudo: command not found
    [ryobsbpb@premium77 ~]$ su apt-add-repository ppa:bitcoin/bitcoin
    bash: su: command not found
    [ryobsbpb@premium77 ~]$ apt-add-repository ppa:bitcoin/bitcoin
    bash: apt-add-repository: command not found
    [ryobsbpb@premium77 ~]$ dir
    ./ .bashrc .cpanel/ .last.inodes .razor/ .ssh/ etc/ public_ftp/ ssl/
    ../ .cagefs/ .cphorde/ .lastlogin .softaculous/ .subaccounts/ logs/ public_html/ tmp/
    .bash_logout .cl.selector/ .gemrc .nc_plugin/ .spamassassin/ .zshrc mail/ ryobay.com/ www@
    .bash_profile .contactemail .htpasswds/ .pki/ .spamassassinenable access-logs@ perl5/ softaculous_backups/
    [ryobsbpb@premium77 ~]$ cat /etc/os-release
    cat: /etc/os-release: No such file or directory
    [ryobsbpb@premium77 ~]$ lsb_release -a
    bash: lsb_release: command not found
    [ryobsbpb@premium77 ~]$ hostnamectl
    bash: hostnamectl: command not found
    [ryobsbpb@premium77 ~]$ uname -r
    2.6.32-954.3.5.lve1.4.63.el6.x86_64
    [ryobsbpb@premium77 ~]$ uname
    Linux
    [ryobsbpb@premium77 ~]$ cd /usr/src
    bash: cd: /usr/src: No such file or directory
    [ryobsbpb@premium77 ~]$ wget https://bitcoin.org/bin/bitcoin-core-0.14.2/bitcoin-0.14.2-x86_64-linux-gnu.tar.gz
    –2019-07-16 19:27:51– https://bitcoin.org/bin/bitcoin-core-0.14.2/bitcoin-0.14.2-x86_64-linux-gnu.tar.gz
    Resolving bitcoin.org… 138.68.248.245
    Connecting to bitcoin.org|138.68.248.245|:443… connected.
    HTTP request sent, awaiting response… 404 Not Found
    2019-07-16 19:27:51 ERROR 404: Not Found.

    [ryobsbpb@premium77 ~]$ wget https://bitcoin.org/bin/bitcoin-core-0.18.0/bitcoin-0.18.0-x86_64-linux-gnu.tar.gz
    –2019-07-16 19:29:44– https://bitcoin.org/bin/bitcoin-core-0.18.0/bitcoin-0.18.0-x86_64-linux-gnu.tar.gz
    Resolving bitcoin.org… 138.68.248.245
    Connecting to bitcoin.org|138.68.248.245|:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 31868090 (30M) [application/octet-stream]
    Saving to: `bitcoin-0.18.0-x86_64-linux-gnu.tar.gz’

    100%[==================================================================================================>] 31,868,090 200K/s in 2m 36s

    2019-07-16 19:32:20 (200 KB/s) – `bitcoin-0.18.0-x86_64-linux-gnu.tar.gz’ saved [31868090/31868090]

    [ryobsbpb@premium77 ~]$ tar zxvf bitcoin-*
    bitcoin-0.18.0/
    bitcoin-0.18.0/bin/
    bitcoin-0.18.0/bin/bitcoin-cli
    bitcoin-0.18.0/bin/bitcoind
    bitcoin-0.18.0/bin/bitcoin-qt
    bitcoin-0.18.0/bin/bitcoin-tx
    bitcoin-0.18.0/bin/bitcoin-wallet
    bitcoin-0.18.0/bin/test_bitcoin
    bitcoin-0.18.0/include/
    bitcoin-0.18.0/include/bitcoinconsensus.h
    bitcoin-0.18.0/lib/
    bitcoin-0.18.0/lib/libbitcoinconsensus.so
    tar: bitcoin-0.18.0/lib/libbitcoinconsensus.so: Cannot create symlink to `libbitcoinconsensus.so.0.0.0′: No such file or directory
    bitcoin-0.18.0/lib/libbitcoinconsensus.so.0
    tar: bitcoin-0.18.0/lib/libbitcoinconsensus.so.0: Cannot create symlink to `libbitcoinconsensus.so.0.0.0′: No such file or directory
    bitcoin-0.18.0/lib/libbitcoinconsensus.so.0.0.0
    bitcoin-0.18.0/README.md
    bitcoin-0.18.0/share/
    bitcoin-0.18.0/share/man/
    bitcoin-0.18.0/share/man/man1/
    bitcoin-0.18.0/share/man/man1/bitcoin-cli.1
    bitcoin-0.18.0/share/man/man1/bitcoind.1
    bitcoin-0.18.0/share/man/man1/bitcoin-qt.1
    bitcoin-0.18.0/share/man/man1/bitcoin-tx.1
    tar: Exiting with failure status due to previous errors
    [ryobsbpb@premium77 ~]$ install -m 0755 -o root -g root -t /usr/local/bin bitcoin-*/bin/*
    install: cannot create regular file `/usr/local/bin/bitcoin-cli’: Permission denied
    install: cannot create regular file `/usr/local/bin/bitcoin-qt’: Permission denied
    install: cannot create regular file `/usr/local/bin/bitcoin-tx’: Permission denied
    install: cannot create regular file `/usr/local/bin/bitcoin-wallet’: Permission denied
    install: cannot create regular file `/usr/local/bin/bitcoind’: Permission denied
    install: cannot create regular file `/usr/local/bin/test_bitcoin’: Permission denied
    [ryobsbpb@premium77 ~]$

    I am following this walkthroughL
    https://ipxcore.com/clients/knowledgebase/13/Install-Bitcoin-Core-Wallet-on-Linux.html

    #6619
    alexg
    Keymaster

    Hello,

    It doesn’t look like you are following the right guide. The guide you have installs an outdated version of bitcoin by building from source. Even if you had run the code with the correct permissions, you would likely end up with library incompatibilities.

    You should first install Bitcoin with whatever way is recommended for your distribution. This is probably via some package manager. If you insist on building from source, follow this guide instead: https://bitcoin.org/en/full-node#linux-instructions

    Additionally, it does not look like you understand the commands you’re typing. (You should really have someone more experienced do this.) If you simply copy and paste commands without knowing what they do, you will

    1. make mistakes, as every system is different,
    2. not be able to maintain the system later, and
    3. have a hard time setting bitcoin as a service

    Also, you are getting errors when you type ‘sudo’ or ‘su’. Do you have root access or is this a managed platform? You need to be able to escalate to root in order to install programs.

    So, in conclusion, if you want to go forward:

    1. Determine the type of distro you’re using and follow the correct guide to install bitcoin via your package manager. This ensures that the linked libraries are the correct versions for your system and architecture.
    2. Set up bitcoin as a service. For example, on distros with systemd, you can create a file /etc/systemd/system/bitcoin.service, and enter something like the following (changing the username and the path as needed)

    [Unit]
    Description=Bitcoin wallet service
    After=network.target
    StartLimitBurst=5
    StartLimitIntervalSec=10
    
    [Service]
    Type=simple
    Restart=always
    RestartSec=1
    User=bitcoinuser
    ExecStart=/usr/local/bin/bitcoind
    
    [Install]
    WantedBy=multi-user.target

    Then, let systemd discover the new service with sudo systemctl enable bitcoin.

    And finally make sure the service is active with sudo service bitcoin start and sudo service bitcoin status.

    3. Setup bitcoin.conf as suggested by the notices in the WordPress admin screen.

    4. Check any firewalls running on your system (such as ufw) for incoming TCP connections to your RCP port (should be the same port as specified in the .conf file)

    5. If you are getting timeouts and/or connectivity issues, now is the time to talk to your hosting provider about firewalls.

    This is roughly the process. Let me know how far you’ve got and what errors you get if you attempt the above.

    with regards

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.