pi-factory icon indicating copy to clipboard operation
pi-factory copied to clipboard

Bootstrapping .onions into image and upon boot

Open nolim1t opened this issue 5 years ago • 1 comments

Allow for detection of .onions into the image (should write out the tor config file).

  • [ ] Create a runlevels default init.d script which looks for onions in the FAT partition, this should copy them to /var/lib/tor (and set ownership to tor.nogroup) and add a config entry for them. Therefore should distinguish between V2 and V3 onions. This is used for getting in new vanity onions (or previously used onions) by SD card
  • [ ] Create something similar for updating the TOR file at boot time
  • [ ] Document how this process is supposed to work (ideally, a directory should be created called torconfig and it should be scanned for directories)

Implementation notes

nolim1t avatar Nov 18 '19 15:11 nolim1t

Potential idea for boot time bootstrapping

On the SD card have a directory called tor. Have it detect for ssh (defaults: forwards to 22), web (defaults: forwards to 80), or lnd (defaults: forwards to 9735) or bitcoind (defaults: forwards to 8333). Obviously defaults CAN be changed by editing /etc/tor/torrc

Expansion for the make_img.sh bootstrap

Maybe have this directory tor.automatic

nolim1t avatar Nov 20 '19 05:11 nolim1t