Bitcoin Forum
May 11, 2024, 01:38:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BitCoin DEAMON and OpenSuse problem  (Read 2294 times)
liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
December 14, 2011, 06: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?
1715391480
Hero Member
*
Offline Offline

Posts: 1715391480

View Profile Personal Message (Offline)

Ignore
1715391480
Reply with quote  #2

1715391480
Report to moderator
1715391480
Hero Member
*
Offline Offline

Posts: 1715391480

View Profile Personal Message (Offline)

Ignore
1715391480
Reply with quote  #2

1715391480
Report to moderator
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.
1715391480
Hero Member
*
Offline Offline

Posts: 1715391480

View Profile Personal Message (Offline)

Ignore
1715391480
Reply with quote  #2

1715391480
Report to moderator
1715391480
Hero Member
*
Offline Offline

Posts: 1715391480

View Profile Personal Message (Offline)

Ignore
1715391480
Reply with quote  #2

1715391480
Report to moderator
coreking
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
December 16, 2011, 07: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...
liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
December 17, 2011, 11: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.
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
December 17, 2011, 12:53:54 PM
 #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.
liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
December 17, 2011, 10: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.
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
December 18, 2011, 12:59:22 AM
 #6

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: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
December 18, 2011, 09: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.
liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
December 19, 2011, 12:44:28 PM
 #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.

liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
December 19, 2011, 01:59:59 PM
 #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.
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
December 19, 2011, 04:56:44 PM
 #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
liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
December 19, 2011, 10: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
ovidiusoft
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
December 20, 2011, 12:05:50 PM
 #12

Also:

Code:
uname -a

I suspect your server is not 64 bits.
liliontransfer (OP)
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
February 07, 2012, 05: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.
K1773R
Legendary
*
Offline Offline

Activity: 1792
Merit: 1008


/dev/null


View Profile
October 18, 2012, 08: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

[GPG Public Key]
BTC/DVC/TRC/FRC: 1K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM AK1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: NK1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: LKi773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: EK1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: bK1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!