philchillbill wrote: > Great to hear. Ill add pCP instructions to the website so that others > can benefit from your pioneering spirit [emoji41] Thanks again !
Thanks. There's a couple of details that I'd like to check in the script before it should be considered definitive. 1) There's a bit in the script to force ngrok to be run as user 'tc'. When called at startup the script is called by user 'root', and I found that it didn't work in that case, hence the workaround to force it to run as 'tc'. In hindsight I suspect it might just have been that 'root' didn't look in /home/tc/.ngrok2 for the yml file, so it may be enough to simply specify the full path to the yml file. Then it wouldn't matter which user executes ngrok. I'll test that later. 2) pCP runs entirely from ram, so the 'tc' user's home directory is also in ram. Any files included in the tc's home directory must be backed-up to an archive, so that they can be reinstated after a reboot. It's desirable to keep that archive file small - if nothing else the backup process takes an annoyingly long time if the home directory has a lot in it. I started off by copying the ngrok executable to /home/tc/.local/bin, but since it is quite big (~25MB), I was finding that backups were quite slow and were triggering a warning from pCP. So I moved it to somewhere else permanent (I used a third partition on the boot drive, which is stored on the drive itself, not in ram, so isn't part of the backup). I suspect it might be possible to put it somewhere else on the root drive so that it gets loaded into ram at boot time, and doesn't require another mount point - maybe the 'tce' folder on the root partition. But I've never played with that, and I don't really know how the 'optional' and 'on demand' folders work - how I should make a 'tcz' package and make sure it loads into the executable path in ram at boot. If any of the pCP folks, or anyone else who knows how this works, is watching, any advice would be welcomed. ------------------------------------------------------------------------ chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=111016
_______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins