Gumstix-setup

Version 5 (Anthony Rowe, 02/13/2008 04:33 pm)

1 1 Anthony Rowe
2 4 Anthony Rowe
== Sensor Andrew Gateway Testbed Setup Notes ==
3 1 Anthony Rowe
4 1 Anthony Rowe
1) gumstix build r1161
5 1 Anthony Rowe
 * svn co -r1161 http://svn.gumstix.com/gumstix-buildroot/trunk gumstix-buildroot
6 1 Anthony Rowe
7 1 Anthony Rowe
2) Add the following files:
8 1 Anthony Rowe
 * avrdude
9 1 Anthony Rowe
 * avrdude.conf
10 1 Anthony Rowe
 * dump.sh
11 1 Anthony Rowe
 * eeprom-config
12 1 Anthony Rowe
 * ff-set-fuses
13 1 Anthony Rowe
 * prg-node.sh
14 1 Anthony Rowe
 * slipstream_server
15 1 Anthony Rowe
16 1 Anthony Rowe
3) Add Sensor Andrew User:
17 1 Anthony Rowe
 * login as root
18 1 Anthony Rowe
{{{
19 1 Anthony Rowe
adduser sauser
20 1 Anthony Rowe
}}}
21 1 Anthony Rowe
 * add permission for serial port etc (this is a total hack)
22 1 Anthony Rowe
{{{
23 1 Anthony Rowe
vi /etc/passwd
24 1 Anthony Rowe
change:
25 1 Anthony Rowe
sauser:x:1001:1001:Linux User,,,:/home/sauser:/bin/sh
26 1 Anthony Rowe
to
27 1 Anthony Rowe
sauser:x:1001:0:Linux User,,,:/home/sauser:/bin/sh
28 1 Anthony Rowe
}}}
29 2 Anthony Rowe
30 2 Anthony Rowe
4) remove serial console
31 2 Anthony Rowe
 * edit /etc/inittab
32 2 Anthony Rowe
 * comment out
33 2 Anthony Rowe
{{{
34 2 Anthony Rowe
::respawn:/sbin/getty -L ttyS0 115200 vt100
35 2 Anthony Rowe
}}}
36 3 Anthony Rowe
37 3 Anthony Rowe
5) setup ssh
38 3 Anthony Rowe
 * make .ssh dir on gumstix node
39 3 Anthony Rowe
 * On desktop server run (if key doesn't already exist)
40 3 Anthony Rowe
{{{
41 3 Anthony Rowe
ssh-keygen -t dsa -f .ssh/id_dsa
42 3 Anthony Rowe
// generates id_dsa and id_dsa.pub
43 3 Anthony Rowe
scp id_dsa.pub user@remote:~/.ssh/id_dsa.pub
44 3 Anthony Rowe
// copy the file to the .ssh dir of the gumstix
45 3 Anthony Rowe
}}}
46 3 Anthony Rowe
 * Set it up on the gumstix
47 3 Anthony Rowe
{{{
48 3 Anthony Rowe
local> ssh user@remote
49 3 Anthony Rowe
remote> cd .ssh
50 5 Anthony Rowe
remote> cat id_dsa.pub >> authorized_keys
51 5 Anthony Rowe
remote> chmod 640 authorized_keys
52 3 Anthony Rowe
remote> rm id_dsa.pub
53 3 Anthony Rowe
remote> exit
54 3 Anthony Rowe
}}}