Outline for now. This is currently improcess, but I’ve made much more progress than shown below – I now have all but the data logging/graphing set up and everything autostarts with new systemd service files. Yay!
Reinstall latest Arch following instructions.
Modifications to that installation process:
- Create the system partition as ext3 instead using
mke2fs -j /dev/sda1and make sure the boot loader knows to use ext3:
/usr/sbin/fw_setenv usb_rootfstype ext3
- Perform the fw_setenv mods for rootdelay and an additional stop/start on usb drive/bus (figured this out the last time, required to ensure the usb drive will come ready before the DockStar tries to boot from it)
/usr/sbin/fw_setenv usb_rootdelay 10(should experiment to see if this can be reduced with the next item in place) and
/usr/sbin/fw_setenv bootcmd 'usb start; usb stop; usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'. Otherwise the DockStar may boot into the original PogoPlug OS instead.
Change root password. Update hostname and locale per instruction at Arch Beginner’s Guide (HW reboot required for hostname to take effect)
Install owfs, lighttpd, FastCGI and PHP:
pacman -S owfs lighttpd fcgi php php-cgi (digitemp not available as a package yet, see AUR)
Set up lighttpd (including PHP and fcgi support, but DO NOT make the first set of mods shown right under the FastCGI heading, this is to enable Ruby on Rails but is incomplete and will bork the server start-up)
Set up passwordless login via key:
On your local machine, copy over your local public key to the new server using
user@localmachine ~ $ ssh-copy-id root@remotemachine
Now try logging into the machine, with "ssh 'root@remotemachine'", and check in:
to make sure we haven't added extra keys that you weren't expecting.
Modify /etc/ssh/sshd_config to disable password authentication (without this, the passwordless authentication will work, but others could still try to log in with the root password):
and restart the sshd service:
systemctl restart sshd
- Get owfs suite working and create the proper config and daemon files to have it autostart and keep running [DONE, details to be added here – but all the magic happens via
- Create web page(s) to autodisplay the local 1-wire sensors data as well as interesting data from a chosen wunderground feed [DONE, using the json API for wunderground, details to be added here].
- Automate the data collection and graphing for sensors. [PENDING]