Author

Topic: bitcoind debian setup (Read 1688 times)

legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
May 27, 2015, 04:36:03 PM
#8


Actually, you can just use a single term session.  Just kick off bitcoind in the background:

Code:
bitcoind &

(see http://unix.stackexchange.com/questions/103731/run-a-command-without-making-me-wait for a little more detail)
If you don't want the process to end when you shut down your terminal session, start it with nohup:

Code:
nohup bitcoind &

If you built from source, you can run:
Code:
sudo make install

This will copy the relevant executables into a systemwide accessible location that is already in a user's path by default.  Of course, you could certainly do as you mentioned and export $PATH to include the path to the binaries in the src directory from the build.

Indeed, make install definitely seems like the more normal thing to do.  OP didn't comment on why he didn't run make install and I just thought I'd follow up on the question about why the "./" (because what you're trying to run isn't on your $PATH).
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
May 27, 2015, 09:10:16 AM
#7


Actually, you can just use a single term session.  Just kick off bitcoind in the background:

Code:
bitcoind &

(see http://unix.stackexchange.com/questions/103731/run-a-command-without-making-me-wait for a little more detail)
If you don't want the process to end when you shut down your terminal session, start it with nohup:

Code:
nohup bitcoind &

If you built from source, you can run:
Code:
sudo make install

This will copy the relevant executables into a systemwide accessible location that is already in a user's path by default.  Of course, you could certainly do as you mentioned and export $PATH to include the path to the binaries in the src directory from the build.
legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
May 26, 2015, 11:27:03 PM
#6
You will need two different terminal sessions. Once everything is installed and set up, using the first terminal, run
Code:
bitcoind
In the second terminal, run
Code:
bitcoin-cli -whatever-command
To interact with your bitcoind.

Actually, you can just use a single term session.  Just kick off bitcoind in the background:

Code:
bitcoind &

(see http://unix.stackexchange.com/questions/103731/run-a-command-without-making-me-wait for a little more detail)


hello thanks you guys for fast and good reply's
i have some others questions ,
for bitcoin.conf what is this ?
For things regarding the config file, I recommend reading this article on the bitcoin wiki: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

Quote
there's a differences between
Code:
bitcoin-cli   ./bitcoin-cli
Code:
bitcoind     ./bitcoind
The ./ means that the program is in the directory you are currently in. It applies if you compiled bitcoin from source and did not install it.
Specifically, you have to specify the ./ (or some path indicator) if the command you want to execute isn't on you $PATH.  You can also just add whatever directory your bitcoind/bictoin-cli binaries are into your $PATH. 
Code:
export PATH=$PATH:/path/to/binaries/
Quote
Quote
everytime when i want to run bitcoid will be good with this codes ?
Code:
 ./bitcoind -daemon -datadir=folder/folder/folder/folder 
and for bitcoin-cli
Code:
./bitcoin-cli -datadir=............................ getinfo
Code:
./bitcoin-cli -datadir=............................ help
or it will be ok only
Code:
./bitcoin-cli getinfo 
?
I'm not sure, but if you change the data directory and running bitcoin-cli gives you an error about no bitcoin.conf file then you will need to specify the datadir with every command from bitcoin-cli.

Do you really have to add -datadir to bitcoin-cli call?  That seems surprising.  Anyway, if you do have to do this, you can also alias bitcoin-cli to "bitcoin-cli =datadir=.... ".   (see https://www.digitalocean.com/community/tutorials/an-introduction-to-useful-bash-aliases-and-functions).
sr. member
Activity: 268
Merit: 258
May 26, 2015, 05:24:52 PM
#5
hello thanks you guys for fast and good reply's
i have some others questions ,
for bitcoin.conf what is this ?
For things regarding the config file, I recommend reading this article on the bitcoin wiki: https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File

Quote
there's a differences between
Code:
bitcoin-cli   ./bitcoin-cli
Code:
bitcoind     ./bitcoind
The ./ means that the program is in the directory you are currently in. It applies if you compiled bitcoin from source and did not install it.
Quote
everytime when i want to run bitcoid will be good with this codes ?
Code:
 ./bitcoind -daemon -datadir=folder/folder/folder/folder 
and for bitcoin-cli
Code:
./bitcoin-cli -datadir=............................ getinfo
Code:
./bitcoin-cli -datadir=............................ help
or it will be ok only
Code:
./bitcoin-cli getinfo 
?
I'm not sure, but if you change the data directory and running bitcoin-cli gives you an error about no bitcoin.conf file then you will need to specify the datadir with every command from bitcoin-cli.
newbie
Activity: 54
Merit: 0
May 26, 2015, 01:21:12 PM
#4
hello thanks you guys for fast and good reply's
i have some others questions ,
for bitcoin.conf what is this ?

maxconnections=  i read this by default is 125 but ? What type of connections ? can someone explain wich this connections do can i upgrade this number it require a lot of hardware ?
rpcthreads=  i read this by default is 4  it mean the number threads of CPU who bitcoind will be allowed to use ?

if i have online website and in the same server of website i have the daemon with rpcallow=127.0.0.1 and in php file of website rpcip=127.0.0.1
on my online website domain will be able to do transactions without problems or i have to tell the ipv4 for rpcallow ?
there's a differences between
Code:
bitcoin-cli   ./bitcoin-cli
Code:
bitcoind     ./bitcoind

everytime when i want to run bitcoid will be good with this codes ?
Code:
 ./bitcoind -daemon -datadir=folder/folder/folder/folder 
and for bitcoin-cli
Code:
./bitcoin-cli -datadir=............................ getinfo
Code:
./bitcoin-cli -datadir=............................ help
or it will be ok only
Code:
./bitcoin-cli getinfo 
?
legendary
Activity: 4228
Merit: 1313
May 26, 2015, 07:59:15 AM
#3
One thing to also check is the version that is installed with apt-get.

E.g.
bitcoin-cli getinfo

sr. member
Activity: 268
Merit: 258
May 26, 2015, 06:09:24 AM
#2
You will need two different terminal sessions. Once everything is installed and set up, using the first terminal, run
Code:
bitcoind
In the second terminal, run
Code:
bitcoin-cli -whatever-command
To interact with your bitcoind.

If you change the datadir, you will need to specify that each time bitcoin-cli is run.
newbie
Activity: 54
Merit: 0
May 26, 2015, 05:55:33 AM
#1
Hello guys i have problem i want configure my personal bitcoind i want use debian Linux is this possible ? i follow this tutorial little
https://bitcoin.org/en/full-node debian its full command line so no GUI
i have to do this ?
Code:
sudo apt-get install bitcoind
and after ? 
if i want to save in different folder from default all data and bitcoin.conf how can i do this in this way will work ?
Code:
bitcoind -datadir=...../........../destinationfolder
i see here all this commands of bitcoindaemon i think ?
how can this be used from the command line of debian ?
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

lets say i want to encrypt wallet with passphrase i have to do this ?
Code:
bitcoind -encryptwallet=passphrase
or ?
if my wallet is encrypted it not be possible receive and send transactions if rpccall its active but if i do this ?
Code:
bitcoind -walletpassphrase= passphrase 38000
  this allow to use the wallet for 38.000 seconds ?

my principla questions is how can i use the functions of bitcoind from the command line of debian

Jump to: