Author

Topic: Using GeekTool To Display Bitcoin Data On Desktop (Read 3092 times)

newbie
Activity: 21
Merit: 2
Ok. I'm using Colloquy right now with inertia186 in #bitcoin...still figuring it out.
legendary
Activity: 1288
Merit: 1080
I'm sorry I didn't see this until just now. I've never used IRC, but I can download Colloquy or use terminal if you tell me how. I sure don't want to waste your time with my lack of skill. I mean I can run bitcoin.app if I'm unable to get bitcoind. I appreciate the offer. If you don't have time by the time you read this, but want to do it later you can contact me at [email protected] (same for jabber, and aim as well).

You can get real time bitcoin support on IRC on irc.freenode.net, channel #bitcoin-dev for instance.

I advise you to learn about IRC.  Learn the basics commands and install a good IRC client :  irssi

You will run irssi inside a terminal.  Once you'll be comfortable on IRC, me or someone else will help you in real time.
newbie
Activity: 21
Merit: 2
I'm sorry I didn't see this until just now. I've never used IRC, but I can download Colloquy or use terminal if you tell me how. I sure don't want to waste your time with my lack of skill. I mean I can run bitcoin.app if I'm unable to get bitcoind. I appreciate the offer. If you don't have time by the time you read this, but want to do it later you can contact me at [email protected] (same for jabber, and aim as well).
legendary
Activity: 1288
Merit: 1080
I haven't tried anything to be honest. I've only ever built anything from scratch once before and it wasn't nearly this involved. I'm just now reading through the file listed above and it's fairly involved for me. I think I could pull it off assuming there are no hiccups, but again I don't need bitcoin.app because my end goal is to run sans GUI (which I'm told is running "headless").

Are you familiar with IRC ?  I have time right now I can help you with this if you want.
newbie
Activity: 21
Merit: 2
I haven't tried anything to be honest. I've only ever built anything from scratch once before and it wasn't nearly this involved. I'm just now reading through the file listed above and it's fairly involved for me. I think I could pull it off assuming there are no hiccups, but again I don't need bitcoin.app because my end goal is to run sans GUI (which I'm told is running "headless").
legendary
Activity: 1288
Merit: 1080
A friend of mine has tried several times with no success, but I'm willing to give it a go. Won't I just end up with bitcoin.app running with a GUI like I have now though? The last steps talk about putting it all in a bundle bitcoin.app.

Hum... yes indeed.  I don't know then.  I don't know much about OS X anyway.  But it's a Unix, right ?  I don't see why it should not be possible to run bitcoind.  Have you tried "make -f makefile.osx bitcoind" ?
newbie
Activity: 21
Merit: 2
A friend of mine has tried several times with no success, but I'm willing to give it a go. Won't I just end up with bitcoin.app running with a GUI like I have now though? The last steps talk about putting it all in a bundle bitcoin.app.
legendary
Activity: 1288
Merit: 1080
I'm assuming that running bitcoind would make that go away.

Yes it would.  Check out the file "build-osx.txt" on the bitcoin source code.
newbie
Activity: 21
Merit: 2
Yeah, sed got rid of the quotes alright....I'm still looking into grep -e to avoid the repeated grep statements, but the bottom line is that until someone has a headless version for Mac OS running it won't work. It looks great once you remove the unwanted data. Basically you end up with the following on your desktop:

balance : 0.0000000
blocks : 96055
connections : 8
generate : true
difficulty : 8078.19525793
hashespersec : 1405860

Again, the problem is that if you set it to update every "x" seconds it starts to load in the Mac Dock for a split second which of course resized the Dock causing it to "jump" over and over out of the corner of your eye. I'm assuming that running bitcoind would make that go away.

Of course I'm told that I'm probably not going to generate any BTC when the difficulty is 8000+ and my hashesperec is < 1500 so I guess it's kind of academic.
newbie
Activity: 21
Merit: 2
Heh, I'll keep the Mac, thanks all the same Smiley I had a Mac years ago (OS 9) and wasn't' impressed...it was on par with Win98 and that just about says it all. Then a couple years ago I bought a MacBook Pro (OS X) and I love it. It has all the eye candy when I want it and the terminal when I want/need that.

The power is there I just don't use it that much...not enough to have learned grep, sed and awk. Usually something like this gets me messing with it and I learn a little at a time. Of course I was using gpg from the terminal for the longest time and just started using a plugin for mail.app that does it all in a GUI...maybe I'm moving the wrong direction Smiley

Still, if I ever do buy another tower it will run linux for sure. A friend of mine and I have an HP server running in my basement that runs linux, but he does most of the setup and maintenance on it. We got if from biddingpond.com to use primarily for bitcoin although we have been less than successful thus far thanks to some network issues. Ok, rambling...thanks again!
legendary
Activity: 1288
Merit: 1080
Yeah, I'm out of my depth. All I know about grep is is what I used, and I can't use bitcoind because I can't compile it (lack of skill). The grep was messy, but it was actually working. I was displaying what I wanted, (except I couldn't get rid of the " characters and someone told me to us awk...which is also out of my depth).

Basically I would have to learn grep, awk and figure out how to compile bitcoin on my Mac. It's a lost cause for now. Disappointing, but maybe someone else will want to do it some day and do the heavy lifting. All I know is it would be really cool to not have bitcoin.app in my Dock and just see some data on my desktop. This is my current desktop: http://cl.ly/3Wz4

Thanks for the tips all the same!

You don't need awk for such basic tasks.  Use grep and sed.   They are vey useful basic Unix filters.  You should learn them.

And throw your Mac away.  Use a real operating system.  Not this marketting crap.

PS.  You don't want the <"> ?   Then just use sed 's/"//g'   
newbie
Activity: 21
Merit: 2
Yeah, I'm out of my depth. All I know about grep is is what I used, and I can't use bitcoind because I can't compile it (lack of skill). The grep was messy, but it was actually working. I was displaying what I wanted, (except I couldn't get rid of the " characters and someone told me to us awk...which is also out of my depth).

Basically I would have to learn grep, awk and figure out how to compile bitcoin on my Mac. It's a lost cause for now. Disappointing, but maybe someone else will want to do it some day and do the heavy lifting. All I know is it would be really cool to not have bitcoin.app in my Dock and just see some data on my desktop. This is my current desktop: http://cl.ly/3Wz4

Thanks for the tips all the same!
legendary
Activity: 1288
Merit: 1080
back to square one...this setup has a nasty side effect in the Mac dock as a bitcoin.app icon begins to appear for a microsecond every time the data for GeekTool is updated. So if you set the data to update every 10 second this icon will appear/disappear every 10 seconds and if you set it to update constantly the dock just kind of jitters.

Turns out I love the GUI and all this talk of running headless and using GeekTool is for fools. Smiley

Hum...  Are you using bitcoin instead of bitcoind Huh  If so, don't.

And don't chain "grep -v" instances.  Use -e option.  And read the grep manual page for your own sake.
newbie
Activity: 21
Merit: 2
back to square one...this setup has a nasty side effect in the Mac dock as a bitcoin.app icon begins to appear for a microsecond every time the data for GeekTool is updated. So if you set the data to update every 10 second this icon will appear/disappear every 10 seconds and if you set it to update constantly the dock just kind of jitters.

Turns out I love the GUI and all this talk of running headless and using GeekTool is for fools. Smiley
newbie
Activity: 21
Merit: 2
So with a lot of help from another user (inertia), I came up with the following solution. It isn't 100%, but it's 90% and it's really nice.

I run bitcoin.app from the terminal -server and created the necessary .conf file in the application support directory. Then I used the following command with GeekTool to display the information I want on the desktop.

/Applications/Bitcoin.app/Contents/MacOS/bitcoin getinfo | grep -v [{}] | grep -v errors | grep -v paytxfee | grep -v keypoololdest | grep -v testnet | grep -v genproclimit | grep -v proxy

Obviously you could grep out different information or leave information I have grepped out in, but this leaves me with the following on my desktop (screenshot) http://cl.ly/3WBo

I don't know how to use awk so I can't get rid of the " characters as I'd like to, but this is nice.

So bitcoin isn't running headless, but I can keep it hidden and check my status without having to view the app, and should I need to make a payment it's still there. Still, I think my preferred method would be to get it running headless some day and to get rid of those " characters in the data displayed on the desktop.

Thanks again to inertia for working through this for me!
newbie
Activity: 21
Merit: 2
Yeah, I took a look at grep and awk. It turns out these are over my head. If someone finally figures out how to build bitcoin.app to run sans GUI on the Mac I'll spend several hours to figure it out, but as it is I guess its just too much of an investment.

Thanks anyway. I'll be watching for a headless version for Mac. I'm running the newest version of bitcoin.app on my Mac and it's the first version that doesn't completely bring down my system resources wise...I hope it keeps working well.
legendary
Activity: 1288
Merit: 1080
A friend helped me set up Bitcoin to start from the terminal with -server. Then he gave me a command I could feed to GeekTool to display the information generated by Bitcoin.app on my desktop using GeekTool. I have two questions.

First, is there anyone here than is well versed in GeekTool and/or AWK that could help me figure out how to only display the data I'm interested on the desktop. As it is I get all kinds of data I don't want or need as seen in the screenshot: http://cl.ly/3VI9 (note that this data would be all one long line if GeekTool was not forcing a carriage return just to make it fit within the bounding box I set by dragging the sizing arrows).

Use grep.  Or use a language that reads JSON, and have this language print what you want.

newbie
Activity: 21
Merit: 2
A friend helped me set up Bitcoin to start from the terminal with -server. Then he gave me a command I could feed to GeekTool to display the information generated by Bitcoin.app on my desktop using GeekTool. I have two questions.

First, is there anyone here than is well versed in GeekTool and/or AWK that could help me figure out how to only display the data I'm interested on the desktop. As it is I get all kinds of data I don't want or need as seen in the screenshot: http://cl.ly/3VI9 (note that this data would be all one long line if GeekTool was not forcing a carriage return just to make it fit within the bounding box I set by dragging the sizing arrows).

Second, does anyone here know how to get bitcoin.app to run sans GUI or "headless" as I am told on a Mac? Obviously this would be the best situation. Bitcoin.app running in the background with no GUI and the data shown directly on the desktop via GeekTool.

Both of these things are over my head, but I'll do whatever I can. Thanks.
Jump to: