Author

Topic: How-to for running Bitcoin on Linux sans GUI? (Read 12134 times)

full member
Activity: 132
Merit: 101
I've written a wiki article about bitcoind here: http://www.bitcoin.org/wiki/doku.php?id=headless_client.
I suggest you read through the getting started article here: http://www.bitcoin.org/wiki/doku.php?id=getting_started
member
Activity: 182
Merit: 10
Ah.  Got it.  Thank you, asdfman.

In case it's not obvious, it's been over ten years since I worked much with Unix.
newbie
Activity: 38
Merit: 0
it automatically "hides" any directory prefixed with "." so doing a ls wont show.. to make it show do a ls -a ~
then you will see .bitcoin

just do a ls -latr ~/.bitcoin to see the other files in the dir
member
Activity: 182
Merit: 10
Thanks again, theymos.

I found /home/[me]/.bitcoin/debug.log -- sort of, anyway (using find, I mean -- more below).

Code:
grep -i hashmeter /home/[me]/.bitcoin/debug.log

... tells me that I'm running at 2,470 khash/s.  I'm happy with that.

I'm still confused, however.  When I navigate to /home/[me], I see no /.bitcoin there via ls.  I've obviously forgotten what little I ever knew re bash scripting.  How do I find where debug.log (and wallet.dat !!!) are actually (hatever that means) located Huh
administrator
Activity: 5222
Merit: 13032
It's in your datadir -- the same location as wallet.dat. You can specify datadir as a parameter: "bitcoind -datadir=/whatever", but I think it's probably used some default location.
member
Activity: 182
Merit: 10
Thank you, theymos.

Unfortunately, I can't find debug.log  Embarrassed

Perhaps I haven't actually installed Bitcoin.  I'm just running bitcoind from /bitcoin-0.3.0/bin/64.

Perhaps bitcoind isn't writing debug.log  because /etc/bitcoin/ doesn't exist Huh

Should I make /etc/bitcoin/ and copy the contents of /bitcoin-0.3.0/ there Huh
administrator
Activity: 5222
Merit: 13032
Search debug.log for "hashmeter".
member
Activity: 182
Merit: 10
Thank you, sirius-m.

So far, I've mastered ...

Code:
./bitcoind
./bitcoind getinfo
./bitcoind setgenerate true

How do I get khash/s Huh  I didn't see that in the wiki.

Do I calculate it from difficulty?  I vaguely recall seeing that, but not where.
sr. member
Activity: 429
Merit: 1002
I've installed Bitcoin 0.3 on Ubuntu 10.04 Server x64.  Is there how-to for interacting with Bitcoin via tty?  Although I've found some info, it looks more like programming API than command line.

The API commands listed in the wiki can be used from the command line also, like this:
Code:
./bitcoind
./bitcoind getinfo

Bitcoind is the headless daemon binary supplied with the download packages.
member
Activity: 182
Merit: 10
I've installed Bitcoin 0.3 on Ubuntu 10.04 Server x64.  Is there how-to for interacting with Bitcoin via tty?  Although I've found some info, it looks more like programming API than command line.
Jump to: