Bitcoin Forum
September 25, 2016, 12:15:59 AM *
News: Latest stable version of Bitcoin Core: 0.13.0 (New!) [Torrent]. Make sure you verify it.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How-to for running Bitcoin on Linux sans GUI?  (Read 4600 times)
ichi
Member
**
Offline Offline

Activity: 70


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.
1474762559
Hero Member
*
Offline Offline

Posts: 1474762559

View Profile Personal Message (Offline)

Ignore
1474762559
Reply with quote  #2

1474762559
Report to moderator
1474762559
Hero Member
*
Offline Offline

Posts: 1474762559

View Profile Personal Message (Offline)

Ignore
1474762559
Reply with quote  #2

1474762559
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474762559
Hero Member
*
Offline Offline

Posts: 1474762559

View Profile Personal Message (Offline)

Ignore
1474762559
Reply with quote  #2

1474762559
Report to moderator
sirius
Bitcoiner
Staff
Sr. Member
****
Offline Offline

Activity: 429



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.

Identifi - Decentralized address book with trust ratings
I'm not a forum admin - please contact theymos instead.
ichi
Member
**
Offline Offline

Activity: 70


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: 2422


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

Search debug.log for "hashmeter".

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ichi
Member
**
Offline Offline

Activity: 70


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: 2422


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
Member
**
Offline Offline

Activity: 70


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: 17


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
Member
**
Offline Offline

Activity: 70


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



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

Thank me for this post here: 1PyNKEyqtDFB4HBG8ueDVxdPZfgwC6gAqw
Caffeinism -- a toxic condition caused by excessive ingestion of coffee and other caffeine-containing beverage.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!