bitcoin-core/README.server.redhat
Simone Caronni f7cd97c97d Update to 30.0
- Drop version for bundles, it contains snapshots for most libraries.
- Drop removed BDB bits, adjust docs and information.
- Add new metapackage with multiprocess bitcoin programs and new meta command
  "bitcoin".
- Package a standalone libbitcoinkernel, which is used by the new IPC programs.
- Set a shared object version on libbitcoinkernel that matches with the major
  release.
2025-10-17 11:51:11 +02:00

71 lines
2.6 KiB
Text

Using bitcoind on Fedora, CentOS and Red Hat Enterprise Linux
=============================================================
SELinux
-------
This build of bitcoind includes an SELinux policy which restricts access to the
system Bitcoin wallet and database files. The effect of this policy is twofold:
1. Confined system services and users cannot read the Bitcoin wallet or
database files.
2. The Bitcoin daemon itself cannot read any other file on the system.
Note well that unconfined users and services are subject only to discretionary
access controls, i.e. standard Unix permissions. Confining your users, and
running no unconfined services, is strongly recommended. See the Red Hat
Enterprise Linux SELinux Guide for further details on SELinux.
To repair incorrect SELinux contexts, run the command:
restorecon -r -v /etc/bitcoin /var/lib/bitcoin
Default Paths
-------------
This bulid of bitcoind is installed to FHS-compliant paths and reads its
configuration files, wallet and database from standard paths. These differ from
the upstream defaults:
* The configuration file is located at /etc/bitcoin/bitcoin.conf
* All other data, including the wallet, is stored in /var/lib/bitcoin
Configuration
-------------
There is no configuration file installed by default, and bitcoind runs fine
without one. However, in order to use the bitcoin-cli to communicate with
bitcoind, you must create a bitcoin.conf file and set an rpcpassword in it.
The bitcoin.conf file must be readable only by users who are authorized to
use the bitcoin-cli command; you must do this yourself by adding users to the
bitcoin group or creating other appropriate groups.
A sample configuration file is available in /usr/share/doc/bitcoin-server-*.
The bitcoin.conf file should be readable only by users authorized to
communicate with bitcoind; if you have added authorized users to the bitcoin
group, then these commands should be sufficient:
chown -R bitcoin.bitcoin /etc/bitcoin
chmod -R u+rw,g+r,o= /etc/bitcoin
Legeacy wallets
---------------
To dump or import a wallet from a Bitcoin daemon, you will need to use the
bitcoin-cli utility.
To dump your wallet on the old system, enter the command:
bitcoin-cli dumpwallet path/to/filename.txt
Copy filename.txt from the old system to the new system, being aware that it
is not encrypted and taking appropriate precautions.
To import your wallet on the new system, enter the command:
bitcoin-cli importwallet path/to/filename.txt
Bitcoin will automatically begin rescanning the block chain after the import is
complete. The rescan will take several minutes, depending on the speed of the
system's CPU and hard drives.