Bitcoin Forum

Other => Beginners & Help => Topic started by: liliontransfer on December 14, 2011, 06:57:52 PM



Title: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on 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?


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: coreking on 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...


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on 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.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: ovidiusoft on 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.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on 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.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: K1773R on 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


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: ovidiusoft on 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.

Quote
and second question... how to talk to this deamon from PHP?

https://en.bitcoin.it/wiki/PHP_developer_intro


Quote
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 :)

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.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on 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.



Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on 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.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: ovidiusoft on 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:

Code:
file ./bitcoind
ldd ./bitcoind


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on 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


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: ovidiusoft on December 20, 2011, 12:05:50 PM
Also:

Code:
uname -a

I suspect your server is not 64 bits.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: liliontransfer on February 07, 2012, 05:40:38 PM
./bitcoind
Naruszenie ochrony pamięci

this error is english it is: http://en.wikipedia.org/wiki/Segmentation_fault

anybody knows what to do now?

k.


Title: Re: BitCoin DEAMON and OpenSuse problem
Post by: K1773R on October 18, 2012, 08:56:26 AM
./bitcoind
Naruszenie ochrony pamięci

this error is english it is: http://en.wikipedia.org/wiki/Segmentation_fault

anybody knows what to do now?

k.

grep segfault /var/log/kern.log
and then use gdb