Sensor Andrew Gateway Testbed Setup Notes

1) gumstix build r1161

2) Add the following files:

  • avrdude
  • avrdude.conf
  • dump.sh
  • eeprom-config
  • ff-set-fuses
  • prg-node.sh
  • slipstream_server

3) Add Sensor Andrew User:

  • login as root
    adduser sauser
    
  • add permission for serial port etc (this is a total hack)
    vi /etc/passwd
    change:
    sauser:x:1001:1001:Linux User,,,:/home/sauser:/bin/sh
    to
    sauser:x:1001:0:Linux User,,,:/home/sauser:/bin/sh
    

4) remove serial console

  • edit /etc/inittab
  • comment out
    ::respawn:/sbin/getty -L ttyS0 115200 vt100
    

5) setup ssh

  • make .ssh dir on gumstix node
  • On desktop server run (if key doesn't already exist)
    ssh-keygen -t dsa -f .ssh/id_dsa
    // generates id_dsa and id_dsa.pub
    scp id_dsa.pub user@remote:~/.ssh/id_dsa.pub
    // copy the file to the .ssh dir of the gumstix
    
  • Set it up on the gumstix
    local> ssh user@remote
    remote> cd .ssh
    remote> cat id_dsa.pub >> authorized_keys
    remote> chmod 640 authorized_keys
    remote> rm id_dsa.pub
    remote> exit