iStat Server on Apple TV

EXTRA NOTE: This assumes you have hacked your Apple TV with aTV Flash or some other Apple TV USB hack and have NitoTV installed. This also assumes you know how to connect to your Apple TV with a program like Fugu or CyberDuck as well as ssh via Terminal.

Hey all, this is just kind of a fun thing for those who want to try it out. You can install the iStat Server on the Apple TV and use the iPhone app ($1.99) to monitor the Apple TV’s memory, hard disk space, CPU usage, etc. See picture below:

  1. Download iStat server here and the iPhone app here.
  2. Install the server on your Mac.
  3. Open up Fugu or CyberDuck and connect to the Apple TV.
  4. Open up the root of you Mac’s hard drive and go to Applications.
  5. Copy iStat Server into the Applications folder found inside the frontrow folder on the Apple TV.
  6. Go back to the root of the Apple TV and your Mac and then to Library > Application Support on both.
  7. Drag the iStat Server folder into the Application Support folder on the Apple TV.
  8. Go to the LaunchDaemons folder in the Library folder on your Mac and move the com.bjango.istatserver.plist file to the frontrow folder on the Apple TV. You can not move it directly to the LaunchDaemons folder on the Apple TV due to permissions on that folder.
  9. Open up Terminal on the Mac and ssh into the Apple TV. Run the following commands:
sudo mv com.bjango.istatserver.plist /Library/LaunchDaemons/
sudo chown root:wheel /Library/LaunchDaemons/com.bjango.istatserver.plist
sudo reboot
  1. Once the AppleTV is rebooted, go to NitoTV in the Apple TV menu and then to Applications.
  2. Open up the iStat Server application and then open up the iStat application on the iPhone. You will see your Apple TV listed and then type in the code on the Apple TV.
  3. You are all set!

This is how I did it, but if you have a quicker way or better way, please feel free to post it.

Very neat!
Followed instructions and works just fine.
I just hope it doesn’t use to much CPU to actually run!

Thanks!

Batmac

I take credit for discovering this and posting it on the iStat Server page last week. :slight_smile:

How about shared credit? I twittered it to @bjango when I posted it. But I do appreciate everyone who let them know (and especially oceans777), I know @bjango is very happy about it. More eyes for him and more eyes for aTV Flash.

Whoa, I can’t believe I am just finding this. Do you know how many times I have wanted to better understand what’s going on inside the ATV while running a new program, or debugging an issue? This is huge!

Atvflash may want to consider this in the next release! Information like this could be great help when troubleshotting issues.

TPH

Welcome to the world of Apple TV with aTV Flash
–For support please visit aTVFlash.com–

susan2@appletv.local’s password:

what is the password that I use?

You logged in incorrectly to the Apple TV. You need to use this commend to SSH into the Apple TV:

ssh frontrow@AppleTV.local

Or some form of that. You are logging into the Apple TV using susan2 and there is no susan2 user on the Apple TV. The password for frontrow is frontrow.

Thanks for the quick reply. Fixed that issue.

Now I get a message on the AppleTV screen that says

Could not connect to daemon
.

Now what have I done wrong? :roll:

What step were you at when you got that message?

  1. Open up the iStat Server application on your Apple TV . This is as far as I got. Did not go to the second step below.

and then open up the iStat application on the iPhone. You will see your Apple TV listed and then type in the code on the Apple TV.

I had to

  1. move the “iStat Server” folder from /Users/frontrow/Library/Application Support to /Library/Application Support
    cd /Library/Application Support
    mv /Users/frontrow/Library/Application\ Support/iStat\ Server/ .

  2. Set the permissions
    sudo -R chown root:admin iStat\ Server/

  3. Reboot
    sudo reboot

After that it worked like a charm :-))

I do not see the istat folder within application support step(. Drag the iStat Server folder into the Application Support folder on the Apple TV) [attachment=0]applicationsupport.JPG[/attachment]

I also suggest the use of RRD + Geektool for monitoring. If someone knows if RRD runs correctly on the AppleTV, please tell us! (I think so, but I didn’t tested).

  1. Open up the iStat Server application on your Apple TV . This is as far as I got. Did not go to the second step below.

and then open up the iStat application on the iPhone. You will see your Apple TV listed and then type in the code on the Apple TV.[/quote]

Hi,

Same probleme for me anyone for a solution ???

Thx.
Ben

I get the following error when trying to move the com.bjango.istatserver.plist file -

xxxxxxxx-macbook-3:~ mhill$ ssh frontrow@192.168.1.101

Welcome to the world of Apple TV with aTV Flash
–For support please visit aTVFlash.com–

frontrow@192.168.1.101’s password:
-bash-2.05b$ ls
Applications Pictures
Documents Updates
Library Video Playlists
Movies atvflash
Music com.bjango.istatserver.plist
Music Playlists
-bash-2.05b$ sudo mv com.bjango.istatserver.plist /Library/LaunchDaemons/
mv: rename com.bjango.istatserver.plist to /Library/LaunchDaemons/com.bjango.istatserver.plist: Read-only file system
-bash-2.05b$

Mike

One thing we’ve already learned from SSH is that the root filesystem on the Apple TV (aka OSBoot) is apparently mounted as a read-only filesystem. That means it’s not initially possible to copy any files to the root mount point (/etc, /usr, /var, for example) while it is running. It has been pointed out elsewhere that you can remedy this with the “sudo mount -uw /” command.