This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
chumbyhackerboard:rootfs [2012/02/08 23:33] kaleberg /psp/network_config |
chumbyhackerboard:rootfs [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 7: | Line 7: | ||
For: /psp/network_config | For: /psp/network_config | ||
- | <configuration allocation="dhcp" key="password" encoding="ascii" | + | <configuration allocation="dhcp" key="password" encoding="ascii" |
- | encryption="WPA2" auth="WPAPSK" hwaddr="00:D0:4B:32:15:32" | + | encryption="WPA2" auth="WPAPSK" hwaddr="00:D0:4B:32:15:32" |
- | ssid="wifinetwork" type="wlan" /> | + | ssid="wifinetwork" type="wlan" /> |
| | ||
This sets up a WiFi connection using WPA2 authentication for the wifinetwork with the password password. | This sets up a WiFi connection using WPA2 authentication for the wifinetwork with the password password. | ||
Line 19: | Line 19: | ||
/etc/init.d/rcS.background starts the daemons - you might want to add /usr/bin/sshd and/or /usr/bin/inetd | /etc/init.d/rcS.background starts the daemons - you might want to add /usr/bin/sshd and/or /usr/bin/inetd | ||
- | |||
(sshd not started by default, clone the httpd line, note network must be up) | (sshd not started by default, clone the httpd line, note network must be up) | ||
+ | |||
+ | By default, the HTTP daemon is started fairly far down in this script, at: | ||
+ | # Now that the network is (presumably) up, run our simple webserver. | ||
+ | [ "x${IS_RECOVERY}" != "x1" ] && /usr/sbin/httpd -h /www | ||
+ | | ||
+ | This is a good place to start SSH and telnet: | ||
+ | [ "x${IS_RECOVERY}" != "x1" ] && /sbin/sshd | ||
+ | [ "x${IS_RECOVERY}" != "x1" ] && /usr/sbin/telnetd | ||
+ | |||
+ | The built in FTP server could be started by adding: | ||
+ | [ "x${IS_RECOVERY}" != "x1" ] && tcpsvd -vE 0.0.0.0 21 ftpd /files/to/serve & | ||
+ | |||
+ | But this FTP server does not support STOR, so you can get files from your CHB, but you cannot send them. | ||
+ | |||
+ | If you follow David Roberts' simple instructions, you can install the Pure FTP server which does work both ways. | ||
+ | His instructions are at: http://dave-r.posterous.com/chumby-ftp | ||
+ | He points you to the releases at: http://download.pureftpd.org/pub/pure-ftpd/releases/ | ||
+ | The installation took about 15-20 minutes, because it involves recompiling the server, but it works. | ||
+ | |||
+ | To run the Pure FTP server, add the line: | ||
+ | [ "x${IS_RECOVERY}" != "x1" ] && /mnt/storage/local/sbin/pure-ftpd & | ||
(add note about ntpdate after wifi is configured) | (add note about ntpdate after wifi is configured) |