Difference between revisions of "Chumby tricks"

From Chumby Wiki
Jump to: navigation, search
(Updated sshd instructions)
Line 33: Line 33:
  
 
=SSH=
 
=SSH=
 +
 +
(updated)
  
 
The Chumby comes with sshd, but it is not running by default (can you imagine chumby's running all over, usually behind NAT, but sometimes exposed, with sshd enabled and a default password?  It would be chaos I say as people rooted my alarm clock!  Enough fear mongering!)
 
The Chumby comes with sshd, but it is not running by default (can you imagine chumby's running all over, usually behind NAT, but sometimes exposed, with sshd enabled and a default password?  It would be chaos I say as people rooted my alarm clock!  Enough fear mongering!)
Line 38: Line 40:
 
You need to run sshd.  This should work-names and paths _might_ be slightly off, so please fix this if you get better information.
 
You need to run sshd.  This should work-names and paths _might_ be slightly off, so please fix this if you get better information.
  
1. Pull out the USB wireless dongle
+
1. Put a file on a USB thumbdrive called  "debugchumby"
 +
2. It must be at the root level of the file system on the USB device
 +
3. It must be marked executable
  
2. connect a USB hub
+
4. If it is a script (mostly likely), it should have the typical bang header:
  
3. connect your USB Wireless to one port of the hub
+
#!/bin/sh
 
+
4. Create a file called chumbydebug on a USB thumb drive (you can't format the drive with the Mac HFS (?) file system.)
+
 
+
The file should contain this line:
+
 
/bin/sshd
 
/bin/sshd
  
5. Connect the USB drive
+
This is not a feature you can count on - it may be removed or changed at any time.
  
6. Power up the Chumby
+
5. ssh to the IP address found in the bonjour browser (see above under HTTPD)
 
+
7. ssh to the IP address found in the bonjour browser (see above under HTTPD)
+
 
[[Image:Example.jpg]]
 
[[Image:Example.jpg]]
  
 
I don't know the default username, or default password...
 
I don't know the default username, or default password...
  
8. To See if sshd is running, from a terminal window:
+
6. To See if sshd is running, from a terminal window on another computer (at least, under OSX):
 
dns-sd -B _ssh._tcp
 
dns-sd -B _ssh._tcp
  
Line 65: Line 63:
  
 
== Not Working Yet ==
 
== Not Working Yet ==
 +
 +
(these not working notes applied to the previous version-I _think_ the differences are: not executable, and no shebang line)
  
 
I tried this, using the USB port on the back of chumby, and it did not work (ssh connections refused).  I tried filenames chumbydebug, debugchumby, chumby_debug, and debug_chumby; file contents "/bin/sshd", "/sbin/sshd", and "sshd"; and file formats FAT and FAT-32.  I tried both the USB port on the back of the chumby, and the one on the main board.
 
I tried this, using the USB port on the back of chumby, and it did not work (ssh connections refused).  I tried filenames chumbydebug, debugchumby, chumby_debug, and debug_chumby; file contents "/bin/sshd", "/sbin/sshd", and "sshd"; and file formats FAT and FAT-32.  I tried both the USB port on the back of the chumby, and the one on the main board.

Revision as of 22:48, 30 August 2006

Finding your Chumby

Browsing bonjour services from the command line

I downloaded the Bonjour Browser (under OSX) and run it.

[Screen shot of bonjour browser]


You can see the Chumby listed here in the Bonjour Browser, along with the IP Address.

Browsing

Hints: Browseatwork but no textentry unless you use the nifty little spot made for when you wanted to browse with your psp via the Wipeout hack... Or point it to a place where it has your bookmarks in html form

Just my two cents.

HTTPD/Built in Web Server

The Chumby advertises itself via Bonjour, Apple's system for advertising services.

You can use the Bonjour bookmark that supposedly exists in Safari, but I am unable to find that. So used the tools under Finding Your Chumby to get an IP address to use.

(Bonjour bookmarks in Safari can be enabled or disabled in the Safari preferences. From the Safari menu choose Preferences. Choose Bookmarks and check the Bonjour checkboxes.)

Use the IP address you got from above, for example: http://10.0.1.11

There are limited options on the web server right now, but you get a pretty picture and you can see wireless stats.

[Screen shot of output of Chumby's built in web server] The web page in the chumby as of 2006-08-28


SSH

(updated)

The Chumby comes with sshd, but it is not running by default (can you imagine chumby's running all over, usually behind NAT, but sometimes exposed, with sshd enabled and a default password? It would be chaos I say as people rooted my alarm clock! Enough fear mongering!)

You need to run sshd. This should work-names and paths _might_ be slightly off, so please fix this if you get better information.

1. Put a file on a USB thumbdrive called "debugchumby" 2. It must be at the root level of the file system on the USB device 3. It must be marked executable

4. If it is a script (mostly likely), it should have the typical bang header:

  1. !/bin/sh

/bin/sshd

This is not a feature you can count on - it may be removed or changed at any time.

5. ssh to the IP address found in the bonjour browser (see above under HTTPD) File:Example.jpg

I don't know the default username, or default password...

6. To See if sshd is running, from a terminal window on another computer (at least, under OSX): dns-sd -B _ssh._tcp

These instructions are untested. Please update them as appropriate.


Not Working Yet

(these not working notes applied to the previous version-I _think_ the differences are: not executable, and no shebang line)

I tried this, using the USB port on the back of chumby, and it did not work (ssh connections refused). I tried filenames chumbydebug, debugchumby, chumby_debug, and debug_chumby; file contents "/bin/sshd", "/sbin/sshd", and "sshd"; and file formats FAT and FAT-32. I tried both the USB port on the back of the chumby, and the one on the main board.

Chumby via Serial

There is a serial port somewhere. Getting to it involves a special cable and 'shims' and getting voltages right-if you attach a straight serial cable you will, apparantly, blow it up.

I believe you need a RS-32 to TTL voltage converter to use the serial port. Google it.

There is also a USB port