Difference between revisions of "Chumby tricks"

From Chumby Wiki
Jump to: navigation, search
(SSH)
Line 33: Line 33:
  
 
=SSH=
 
=SSH=
 
''(updated, but still no successes reported)''
 
  
 
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!)
  
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.
  
 +
* The USB thumbdrive should be formatted with fat, vfat, or fat32 (this is the default for any thumbdrive you purchase I believe)
 
* Put a file on a USB thumbdrive called  "debugchumby"
 
* Put a file on a USB thumbdrive called  "debugchumby"
 
* It must be at the root level of the file system on the USB  device
 
* It must be at the root level of the file system on the USB  device
Line 47: Line 46:
 
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh
/bin/sshd
+
/sbin/sshd
 
</pre>
 
</pre>
  
Line 54: Line 53:
 
* ssh to the IP address found in the bonjour browser (see above under HTTPD).  [[Image:Example.jpg]]
 
* ssh to the IP address found in the bonjour browser (see above under HTTPD).  [[Image:Example.jpg]]
  
I don't know the default username, or default password...
+
* You probably want to try connecting with the root account.
  
 
* To See if sshd is running, from a terminal window on another computer (at least, under OSX):
 
* To See if sshd is running, from a terminal window on another computer (at least, under OSX):
 
<pre>
 
<pre>
 
dns-sd -B _ssh._tcp
 
dns-sd -B _ssh._tcp
 +
</pre>
 +
* from linux you can do:
 +
<pre>
 +
nmap ip-address
 
</pre>
 
</pre>
  
These instructions are untested.  Please update them as appropriate.
+
'''this has been tested and verified on a foo camp chumby '''
 
+
== Not Working Yet ==
+
  
I tried this, using the USB port on the back of chumby, and it did not work (ssh connections refused).  My USB flash drive was formatted with FAT, if that makes a difference.
 
  
 
=Chumby via Serial=
 
=Chumby via Serial=

Revision as of 07:12, 5 September 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

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.

  • The USB thumbdrive should be formatted with fat, vfat, or fat32 (this is the default for any thumbdrive you purchase I believe)
  • Put a file on a USB thumbdrive called "debugchumby"
  • It must be at the root level of the file system on the USB device
  • It must be marked executable
  • If it is a script (mostly likely), it should have the typical bang header:
#!/bin/sh
/sbin/sshd
  • This is not a feature you can count on - it may be removed or changed at any time.
  • ssh to the IP address found in the bonjour browser (see above under HTTPD). File:Example.jpg
  • You probably want to try connecting with the root account.
  • To See if sshd is running, from a terminal window on another computer (at least, under OSX):
dns-sd -B _ssh._tcp
  • from linux you can do:
nmap ip-address

this has been tested and verified on a foo camp chumby


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