Apple TV Forums

Go Back   Apple TV Forums > Apple TV > Mods & Hacks
Register FAQ Calendar Search Today's Posts Mark Forums Read
                 
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-08-2007, 11:09 AM   #1 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 26
Default HOWTO Install BOINC for Distributed Computing on the Apple TV

So I have my Apple TV sitting here running Quartz Composer Screens 24/7 and it gets really warm. I checked the CPU usage and it's really not doing much. So I decided it was time to give it a reason to be warm, by running the CPU at 100%. Surprisingly it has been working nonstop for a while without any problems.

I wanted to make sure that the computer would be doing something useful so I decided to use BOINC. From their website:
Quote:
Use the idle time on your computer (Windows, Mac, or Linux) to cure diseases, study global warming, discover pulsars, and do many other types of scientific research. It's safe, secure, and easy
The BOINC client does a pretty good job at giving CPU time back to Finder to allow it to play movies and run screensavers without stuttering.

So without further adieu:

HOWTO Install BOINC for Distributed Computing on the Apple TV

Before you even start you will have some work to do to get SSH installed and working on your Apple TV. The best instructions can be found at AwkwardTV: http://wiki.awkwardtv.org/wiki/Install_SSH

Once you are logged in to the SSH terminal of the Apple TV follow the instructions below.

-Download the BOINC command line client for MAC OSX:
http://boinc.berkeley.edu/dl/boinc_5...ple-darwin.zip
or visit here for the latest:
http://boinc.berkeley.edu/download_all.php

-copy the zip to your apple tv, I used the command lines wget and unzip but your Apple TV may not have these installed:
Code:
wget http://boinc.berkeley.edu/dl/boinc_5.9.9_universal-apple-darwin.zip
unzip boinc_5.9.9_universal-apple-darwin.zip
-Below is the series of commands I run to create a new account on the rosetta project. There is a list of distributed computing projects on the BOINC homepage (http://boinc.berkeley.edu/projects.php) that you can also run, just replace the rosetta url below with the project you want to run.

Run these commands at the SSH terminal of your apple TV.

Code:
cd boinc_5.9.9_universal-apple-darwin
cd move_to_boinc_dir
./boinc -allow_remote_gui_rpc -insecure -redirectio &
If you suspect problems run it without the -redirectio & so you can see what's going on. Press CTRL-C to exit out.

Now that it is running lets create an account. You can skip this part if you already have an account ID from another machine running BOINC:

[[REPLACE the info below with your own email address and password, the syntax is: --create_account URL email password name ]]
Code:
./boinc_cmd --create_account http://boinc.bakerlab.org/rosetta [[your@emailaddress.com]] [password]] [[name]]
After this command you will get a response back from the server with an account key, use this key in the next command:

Code:
./boinc_cmd --project_attach http://boinc.bakerlab.org/rosetta [[account key]]
Now your ATV will connect to the server and get to work. To see the status and make sure there were no errors, you can run this command in the BOINC directory:
tail -n 100 stdoutdae.txt


Now that you have BOINC installed and running a project, you can also set this to launch on startup. Just edit the /etc/rc.local file (if it does not exist, create it). In the rc.local put this line:

Code:
/Users/frontrow/boinc_5.8.17_universal-apple-darwin/move_to_boinc_dir/boinc -allow_remote_gui_rpc -insecure -redirectio &
BTW, the easiest way to edit the rc.local file is to use a program called nano. It's similar to pico. There is a binary of it hosted on awkwardtv. Just place it in your /usr/bin/
Once nano is installed installed you can run: sudo nano /etc/rc.local
to edit startup commands on your ATV.

The next step for this would be to create a plugin that can talk to the BOINC RPC server and show status and visuals on the TV screen. Anyone want to take on this project? My XCode skills are not up to the task.

Last edited by LiquidIce_ATV : 05-12-2007 at 11:54 AM.
LiquidIce_ATV is offline  
Old 05-08-2007, 12:21 PM   #2 (permalink)
Senior Member
 
boske's Avatar
 
Join Date: Mar 2007
Posts: 112
Default

Looks good, I'm glad you found a useful tool to use while your Apple TV is idle. Why did you choose to run this program instead of others?
boske is offline  
Old 05-10-2007, 10:32 PM   #3 (permalink)
Junior Member
 
Join Date: Apr 2007
Posts: 26
Default

I choose Rosetta instead of the other projects because Rosetta has had recent developments and it sounds like a much better short term use of my CPU cycles.

There is also an Apple TV Distributed Computing Team. If you get this working on your ATV join up:
http://boinc.bakerlab.org/rosetta/te...hp?teamid=5724

Last edited by LiquidIce_ATV : 05-10-2007 at 11:19 PM.
LiquidIce_ATV is offline  
Old 08-01-2007, 01:07 PM   #4 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 1
Default Installing zip/unzip on AppleTV

Hey, I'm a noob to the world of Mac. But since getting my AppleTV I'm fast becomming a convert.

Anyhow, can you let me know how to setup my appleTV in order to unzip files directly on it as I don't have another Mac (as of yet ) and it's posing a few problems when trying to install ome plugins.

Many thanks in advance,
Rob.
rfsmason is offline  
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 06:39 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Apple logos are all trademarks of Apple Inc. and are used here for identification purposes o­nly.