liliontransfer (OP)
Newbie
Offline
Activity: 23
Merit: 0
|
|
December 14, 2011, 06:57:52 PM |
|
Hi!
I have downloaded the software but i cannot run it. In console I get the error:
If 'bitcoind' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf bitcoind
where can I find help?
|
|
|
|
|
|
|
|
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
coreking
Newbie
Offline
Activity: 11
Merit: 0
|
|
December 16, 2011, 07:07:08 AM |
|
What did you download exactly? The linux .tar.gz from bitcoin.org contains the bitcoin source and a binary, if you go into the bin/32/ or /bin/64/ folder and run ./bitcoind then it might just work...
|
|
|
|
liliontransfer (OP)
Newbie
Offline
Activity: 23
Merit: 0
|
|
December 17, 2011, 11:16:17 AM |
|
yes tar.gz and i go to 32 catalogue and next when I run bitcoin-qt it just works... but bitcoind doesn't. I get error as I wrote above... maybe i do have to do something else than just type bitcoind in my console? I read somwehre that I got source as well as binary file... where can I find the source and how to compile it (just normal configure and make install compands or something else?) k.
|
|
|
|
ovidiusoft
|
|
December 17, 2011, 12:53:54 PM |
|
maybe i do have to do something else than just type bitcoind in my console?
Did you type 'bitcoind' or './bitcoind' ? If the binary's location is not in your path, the first will not work, not even if you're in the correct directory. Make sure you do this: * open a console, then: $ cd /path/where/bitcoind/is/located $ ./bitcoind You can also copy the bitcoind binary in a standard path directory, I recommend /usr/local/bin, you will need to do it as root, so: $ sudo cp ./bitcoind /usr/local/bin After that, running 'bitcoind' from any path should work ok.
|
|
|
|
liliontransfer (OP)
Newbie
Offline
Activity: 23
Merit: 0
|
|
December 17, 2011, 10:43:26 PM |
|
ok thx a lot it helped daemon is working... i can talk to it... but is has asked me to make rpcpassword in configuration file... i set it, but what is it? when i will need it? how secure it has to be? and second question... how to talk to this deamon from PHP? and 3rd (probably it is somewhere already)... how to protect btc files on server (which file - which user - which permission)... i know that i have to keep all the btc out of server and i am going to do it... but i need some BTC ready to spend... and i do not want to loose them until i spend it thx a lot for help... running that daemon was a milestone for me k.
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
December 18, 2011, 12:59:22 AM |
|
for the API just look @ the wiki. you have to set a rpcuser and rpcpassword in .bitcoin/*.conf
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
ovidiusoft
|
|
December 18, 2011, 09:42:44 AM |
|
daemon is working... i can talk to it... but is has asked me to make rpcpassword in configuration file... i set it, but what is it? when i will need it? how secure it has to be? Moderately secure if you only access the rpc ports from local. and second question... how to talk to this deamon from PHP? https://en.bitcoin.it/wiki/PHP_developer_introand 3rd (probably it is somewhere already)... how to protect btc files on server (which file - which user - which permission)... i know that i have to keep all the btc out of server and i am going to do it... but i need some BTC ready to spend... and i do not want to loose them until i spend it Run a different container (like LXC, vserver..., NOT process based, like chroot). Firewall it well. Only allow rpc connections from the php machine. Run the bitcoind daemon as user bitcoin. This will protect you against vulnerabilities in bitcoind which could compromise your server and against vulnerabilities in your other applications which might compromise your wallet. If will NOT protect you against vulnerabilities in your bitcoin webapp! If you don't need to do payments immediately as they are generated on the webapp, I would suggest you keep the bitcoin wallet and the app separate. The webapp should send an email to a human, who will review the transaction and manually approve it.
|
|
|
|
liliontransfer (OP)
Newbie
Offline
Activity: 23
Merit: 0
|
|
December 19, 2011, 12:44:28 PM |
|
thx a lot again i understand the api but i have further questions about security: please tell me if i do it right: 1. i make bitcoin user and in his home dir i copy bitcoin 2. i run bitcoind from bitcoin user 3. i change user to "mywww" and i run api and they talk questions appeared: 1. what permissions to this dir and files should i do? 2. which port is used for communication? 3. how to block external connections to bitcoin? 4. is it secure to install bitcoin on the same user as my webservice? or it is recommended on other user? thx for your help K.
|
|
|
|
liliontransfer (OP)
Newbie
Offline
Activity: 23
Merit: 0
|
|
December 19, 2011, 01:59:59 PM |
|
after moving bitcoin to my server, i get:
bash: ./bitcoind: cannot execute binary file
-rwxr-xr-x 1 btc btc 3356222 12-19 14:52 bitcoind
anybody knows what is the problem?
k.
|
|
|
|
ovidiusoft
|
|
December 19, 2011, 04:56:44 PM |
|
after moving bitcoin to my server, i get:
bash: ./bitcoind: cannot execute binary file
-rwxr-xr-x 1 btc btc 3356222 12-19 14:52 bitcoind
anybody knows what is the problem?
k.
The binary is not executable in your setup. Run these and paste here the results: file ./bitcoind ldd ./bitcoind
|
|
|
|
liliontransfer (OP)
Newbie
Offline
Activity: 23
Merit: 0
|
|
December 19, 2011, 10:24:52 PM |
|
bitcoin@vz5048:~/bitcoin/bin/64$ file ./bitcoind ./bitcoind: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped bitcoin@vz5048:~/bitcoin/bin/64$ ldd ./bitcoind (translation) it is not a dynamic executable file
|
|
|
|
ovidiusoft
|
|
December 20, 2011, 12:05:50 PM |
|
Also: I suspect your server is not 64 bits.
|
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
October 18, 2012, 08:56:26 AM |
|
grep segfault /var/log/kern.log and then use gdb
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
|