Chumby tips/tricks/HOWTOs

HOWTO: Start ssh/login to your Chumby

i.e. how to get a "shell".

  1. Start the Control Panel by hitting the button on the top of your Chumby.
  2. Select "Settings".
  3. Select "Chumby Info".
  4. Select the hidden π (pi) symbol in the top right of the screen.
  5. Note the IP address of the Chumby.
  6. Select "SSHD".
  7. From another computer, ssh into your Chumby as root:

    $ ssh -l root 192.168.2.4
    

More info

To start ssh at boot, ssh in to your Chumby as above, then

$ touch /psp/start_sshd

(Remove this file to disable this behaviour.)

You can also initiate sshd by connecting a USB flash drive with an empty file called start_sshd in the root directory (more info).

(A USB drive will appear at /mnt/usb.)

FAQ: What's the "fbcgi" option in the "hidden" preferences?

This apparently enables access to the fram buffer (/dev/fb content) via CGI.

(See above for how to enable the hidden preferences.)

HOWTO: Run CGI scripts on the Chumby's webserver

The Chumby starts a small webserver at startup which can be accessed at its IP address. (See Control Panel | Settings | Chumby Info for the IP address.)

CGI scripts that have been placed in /psp/cgi-bin are accessible at http://a.b.c.d/cgi-bin/custom/foo.cgi. For example,

$ cat /psp/cgi-bin/hello.cgi
#!/bin/sh

echo "Content-Type: text/plain"
echo
echo "Hello, World!"

$ ifconfig rausb0 | fgrep inet
inet addr:192.168.2.4  Bcast:192.168.2.255  Mask:255.255.255.0

Then, from your computer, go to http://192.168.2.4/cgi-bin/custom/hello.cgi.

HOWTO: Run arbitrary Flash files on your Chumby

ssh in to your Chumby (for more information, see elsewhere in this document) and then either wget the SWF, scp it from another computer, or copy it onto a USB flash drive. Then, run it with:

$ chumbyflashplayer.x -z -i foo.swf

FAQ: How can I use my chumby as a BitTorrent client?

ssh in, as above, then:

$ trap '' 1
$ chumbytorrent mytorrent.torrent

(More info.)