Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
added instructions for setting up bitcoind on OS X #1046
Conversation
harding
and 2 others
commented on an outdated diff
Sep 4, 2015
| @@ -1107,10 +1107,47 @@ automatically started minimized in the task bar. | ||
| #### Bitcoin Core Daemon {#osx-daemon} | ||
| {:.no_toc} | ||
| -If you can provide instructions and screenshots for running the latest | ||
| -version of Bitcoin Core daemon on OS X Yosemite, please [open an | ||
| -issue](https://github.com/bitcoin-dot-org/bitcoin.org/issues/new) and we'll tell | ||
| -you what we need. | ||
| +The Bitcoin Core daemon (bitcoind) is not included in the .dmg file you may have downloaded to install Bitcoin-QT. Bitcoind, along with its support binaries, is instead included in the OS X .tar.gz file listed on the official Bitcoin Core download page. To download this file using Terminal, execute the following command: | ||
| + | ||
| + curl -O https://bitcoin.org/bin/bitcoin-core-0.11.0/bitcoin-0.11.0-osx64.tar.gz | ||
| + | ||
| +{{verifyReleaseSignatures}} | ||
| + | ||
| +Extract bitcoind and its support binaries from the archive we just downloaded by running this command in Terminal: | ||
| + | ||
| + tar -zxvf bitcoin-0.11.0-osx64.tar.gz |
harding
Contributor
|
harding
and 1 other
commented on an outdated diff
Sep 4, 2015
| -issue](https://github.com/bitcoin-dot-org/bitcoin.org/issues/new) and we'll tell | ||
| -you what we need. | ||
| +The Bitcoin Core daemon (bitcoind) is not included in the .dmg file you may have downloaded to install Bitcoin-QT. Bitcoind, along with its support binaries, is instead included in the OS X .tar.gz file listed on the official Bitcoin Core download page. To download this file using Terminal, execute the following command: | ||
| + | ||
| + curl -O https://bitcoin.org/bin/bitcoin-core-0.11.0/bitcoin-0.11.0-osx64.tar.gz | ||
| + | ||
| +{{verifyReleaseSignatures}} | ||
| + | ||
| +Extract bitcoind and its support binaries from the archive we just downloaded by running this command in Terminal: | ||
| + | ||
| + tar -zxvf bitcoin-0.11.0-osx64.tar.gz | ||
| + | ||
| +Now we'll move the executables into your default path to make running and stopping bitcoind easier. To move the executables, run these commands (note that we have to use `sudo` to perform these commands since we are modifying directories owned by root): | ||
| + | ||
| + sudo mkdir -p /usr/local/bin | ||
| + sudo cp bitcoin-0.11.0/bin/bitcoin* /usr/local/bin/. |
harding
Contributor
|
harding
and 1 other
commented on an outdated diff
Sep 4, 2015
| +Extract bitcoind and its support binaries from the archive we just downloaded by running this command in Terminal: | ||
| + | ||
| + tar -zxvf bitcoin-0.11.0-osx64.tar.gz | ||
| + | ||
| +Now we'll move the executables into your default path to make running and stopping bitcoind easier. To move the executables, run these commands (note that we have to use `sudo` to perform these commands since we are modifying directories owned by root): | ||
| + | ||
| + sudo mkdir -p /usr/local/bin | ||
| + sudo cp bitcoin-0.11.0/bin/bitcoin* /usr/local/bin/. | ||
| + | ||
| +To clean up the directory we've been working in, run: | ||
| + | ||
| + rm -rf bitcoin-0.11.0* | ||
| + | ||
| +Before we can run bitcoind, we need to make sure that it has a place to store the blockchain and a config file that contains a username and password for the daemon. The commands below will set up your bitcoin directory and give bitcoind a default username and a random password (you do not need to remember the password for standard operation). | ||
| + | ||
| + mkdir ~/Library/Application\ Support/Bitcoin |
harding
Contributor
|
|
Left a few comments, but otherwise looks good to me. Thanks! |
carnesen
commented on the diff
Sep 4, 2015
| + sudo mkdir -p /usr/local/bin | ||
| + sudo cp bitcoin-0.11.0/bin/bitcoin* /usr/local/bin/. | ||
| + | ||
| +To clean up the directory we've been working in, run: | ||
| + | ||
| + rm -rf bitcoin-0.11.0* | ||
| + | ||
| +Before we can run bitcoind, we need to make sure that it has a place to store the blockchain and a config file that contains a username and password for the daemon. The commands below will set up your bitcoin directory and give bitcoind a default username and a random password (you do not need to remember the password for standard operation). | ||
| + | ||
| + mkdir ~/Library/Application\ Support/Bitcoin | ||
| + touch ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + chmod 600 ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + echo "rpcuser=bitcoinrpc" >> ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + echo "rpcpassword=$(cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c45)" >> ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + | ||
| +You should now be able to start up your full node by running `bitcoind -daemon` in any Terminal window. If you need to stop bitcoind for any reason, the command is `bitcoin-cli stop` |
harding
Contributor
|
carnesen
commented on the diff
Sep 4, 2015
| +To clean up the directory we've been working in, run: | ||
| + | ||
| + rm -rf bitcoin-0.11.0* | ||
| + | ||
| +Before we can run bitcoind, we need to make sure that it has a place to store the blockchain and a config file that contains a username and password for the daemon. The commands below will set up your bitcoin directory and give bitcoind a default username and a random password (you do not need to remember the password for standard operation). | ||
| + | ||
| + mkdir ~/Library/Application\ Support/Bitcoin | ||
| + touch ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + chmod 600 ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + echo "rpcuser=bitcoinrpc" >> ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + echo "rpcpassword=$(cat /dev/urandom | env LC_CTYPE=C tr -dc a-zA-Z0-9 | head -c45)" >> ~/Library/Application\ Support/Bitcoin/bitcoin.conf | ||
| + | ||
| +You should now be able to start up your full node by running `bitcoind -daemon` in any Terminal window. If you need to stop bitcoind for any reason, the command is `bitcoin-cli stop` | ||
| + | ||
| +<div class="box" markdown="1"> | ||
| +*Optional: Start Your Node At Login* |
carnesen
Contributor
|
|
From Apple's developer library:
I believe it will work for now, but if apple decides to fully remove cron in the future we would have to add launchd instructions anyways. On the two systems I've tested (both OS X 10.10.5), if the |
|
Yea I saw that article. Similar could be said about cron vs init on Linux On Fri, Sep 4, 2015 at 17:30 Kevin Cooper notifications@github.com wrote:
|
harding
commented on the diff
Sep 6, 2015
| +Extract bitcoind and its support binaries from the archive we just downloaded by running this command in Terminal: | ||
| + | ||
| + tar -zxf bitcoin-{{site.DOWNLOAD_VERSION}}-osx64.tar.gz | ||
| + | ||
| +Now we'll move the executables into your default path to make running and stopping bitcoind easier. To move the executables, run these commands (note that we have to use `sudo` to perform these commands since we are modifying directories owned by root): | ||
| + | ||
| + sudo mkdir -p /usr/local/bin | ||
| + sudo cp bitcoin-{{site.DOWNLOAD_VERSION}}/bin/bitcoin* /usr/local/bin/. | ||
| + | ||
| +To clean up the directory we've been working in, run: | ||
| + | ||
| + rm -rf bitcoin-{{site.DOWNLOAD_VERSION}}* | ||
| + | ||
| +Before we can run bitcoind, we need to make sure that it has a place to store the blockchain and a config file that contains a username and password for the daemon. The commands below will set up your bitcoin directory and give bitcoind a default username and a random password (you do not need to remember the password for standard operation). | ||
| + | ||
| + mkdir ~/Library/Application\ Support/Bitcoin |
harding
Contributor
|
|
Preview of this PR rendered: http://dg4.dtrt.org/en/full-node#osx-daemon I have no opinion on cron versus launchd on Mac. I suggest we go with @kevcooper's text on that and let @carnesen open a separate PR later with the macro (although I would suggest continuing to provide more specific advice in each section than just visiting the Bitcoin Core contrib directory). I'm going to tag this as Need More Info for now so it doesn't show up in the active pull requests. I'll untag it as soon as bitcoin/bitcoin#6621 gets merged. Thanks again! |
harding
added
the
Need more info
label
Sep 6, 2015
|
bitcoin/bitcoin#6621 has been merged! |
harding
removed
the
Need more info
label
Oct 30, 2015
|
@kevcooper thanks for seeing that through! The command |
kevcooper commentedSep 3, 2015
The launch agent part of this guide is still waiting on this PR