Author

Topic: BitCoin DEAMON and OpenSuse problem (Read 2306 times)

legendary
Activity: 1792
Merit: 1008
/dev/null
October 18, 2012, 03:56:26 AM
#14
./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
newbie
Activity: 23
Merit: 0
February 07, 2012, 12:40:38 PM
#13
./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.
sr. member
Activity: 252
Merit: 250
December 20, 2011, 07:05:50 AM
#12
Also:

Code:
uname -a

I suspect your server is not 64 bits.
newbie
Activity: 23
Merit: 0
December 19, 2011, 05:24:52 PM
#11
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
sr. member
Activity: 252
Merit: 250
December 19, 2011, 11:56:44 AM
#10
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
newbie
Activity: 23
Merit: 0
December 19, 2011, 08:59:59 AM
#9
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.
newbie
Activity: 23
Merit: 0
December 19, 2011, 07:44:28 AM
#8
thx a lot again Smiley

i understand the api Smiley

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.

sr. member
Activity: 252
Merit: 250
December 18, 2011, 04:42:44 AM
#7
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 Smiley

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.
legendary
Activity: 1792
Merit: 1008
/dev/null
December 17, 2011, 07:59:22 PM
#6
for the API just look @ the wiki.
you have to set a rpcuser and rpcpassword in .bitcoin/*.conf
newbie
Activity: 23
Merit: 0
December 17, 2011, 05:43:26 PM
#5
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 Smiley

thx a  lot for help... running that daemon was a milestone for me Smiley

k.
sr. member
Activity: 252
Merit: 250
December 17, 2011, 07:53:54 AM
#4
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.
newbie
Activity: 23
Merit: 0
December 17, 2011, 06:16:17 AM
#3
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 Smiley (just normal configure and make install compands or something else?)

k.
newbie
Activity: 11
Merit: 0
December 16, 2011, 02:07:08 AM
#2
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...
newbie
Activity: 23
Merit: 0
December 14, 2011, 01:57:52 PM
#1
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?
Jump to: