Bitcoin Forum
May 10, 2024, 04:27:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How-to for running Bitcoin on Linux sans GUI?  (Read 12101 times)
ichi (OP)
Member
**
Offline Offline

Activity: 182
Merit: 10


View Profile
July 12, 2010, 02:19:36 AM
 #1

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 nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715358458
Hero Member
*
Offline Offline

Posts: 1715358458

View Profile Personal Message (Offline)

Ignore
1715358458
Reply with quote  #2

1715358458
Report to moderator
1715358458
Hero Member
*
Offline Offline

Posts: 1715358458

View Profile Personal Message (Offline)

Ignore
1715358458
Reply with quote  #2

1715358458
Report to moderator
sirius
Bitcoiner
Sr. Member
****
Offline Offline

Activity: 429
Merit: 974



View Profile
July 12, 2010, 02:34:11 AM
 #2

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.

Iris — for better social networks
I'm not a forum admin - please contact theymos instead.
ichi (OP)
Member
**
Offline Offline

Activity: 182
Merit: 10


View Profile
July 12, 2010, 03:42:26 AM
 #3

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.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
July 12, 2010, 03:44:41 AM
 #4

Search debug.log for "hashmeter".

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ichi (OP)
Member
**
Offline Offline

Activity: 182
Merit: 10


View Profile
July 12, 2010, 05:05:59 AM
 #5

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
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


View Profile
July 12, 2010, 05:36:43 AM
 #6

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.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ichi (OP)
Member
**
Offline Offline

Activity: 182
Merit: 10


View Profile
July 12, 2010, 08:29:11 AM
 #7

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
asdfman
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
July 12, 2010, 08:49:43 AM
 #8

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
ichi (OP)
Member
**
Offline Offline

Activity: 182
Merit: 10


View Profile
July 12, 2010, 11:09:54 AM
 #9

Ah.  Got it.  Thank you, asdfman.

In case it's not obvious, it's been over ten years since I worked much with Unix.
Xunie
Full Member
***
Offline Offline

Activity: 132
Merit: 101



View Profile
July 12, 2010, 11:12:53 AM
 #10

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

Ignore this: 734d417914faa443d74e8205f639dfb0f79fdc44988ecae44db31e5636525afe

Caffeinism -- a toxic condition caused by excessive ingestion of coffee and other caffeine-containing beverage.
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!