With systemd, running as a non-root user is very easy. See the wiki article on running WeeWX under systemd:
https://github.com/weewx/weewx/wiki/systemd On Wed, Aug 17, 2022 at 9:31 AM Stephen Rogers <[email protected]> wrote: > I now have WeeWx running on Pi4 / Raspbian, and for the first time am > using RSYNC to push the HTML report to cloud hosting instead of FTP, which > was my goal. > > The SSH key authentication required for RSYNC was tricky for me, partly > because I use Windows for development and Linux for both WeeWx and for the > cloud hosting. Subtleties lurk about. Here is a very nice video that > helped me get through it: https://www.youtube.com/watch?v=33dEcCKGBO4 > > Since WeeWx normally runs as root SSH keys have to be installed under the > root user on the WeeWx host. > On Tuesday, August 16, 2022 at 12:03:32 PM UTC-7 vince wrote: > >> You're overthinking. Pick a method (dpkg or setup.py) and stick with >> it. It's that easy. >> >> On Tuesday, August 16, 2022 at 11:53:50 AM UTC-7 [email protected] >> wrote: >> >>> OK, using the setup.py method, all seems well. I was using the other >>> method and it did not work per my first message. >>> >>> Regarding my attempt to use Ubuntu, in the other thread, the failure I >>> referred to was evidently Ubuntu crashing and corrupting ability to boot. >>> I simply re-used my Raspbian SD and started over with WeeWx using the same >>> Pi4. Now up and running. Whew. >>> >>> On Tuesday, August 16, 2022 at 11:15:50 AM UTC-7 Stephen Rogers wrote: >>> >>>> Hmmm. I just followed the directions on this page: >>>> https://weewx.com/docs/debian.htm, which says it is for installing on >>>> Debian systems. >>>> >>>> OK I need to go to Installation using setup.py it looks like. I found >>>> that page here: https://weewx.com/docs/setup.htm. What are these >>>> other instructions above? >>>> >>>> >>>> On Tuesday, August 16, 2022 at 10:40:51 AM UTC-7 vince wrote: >>>> >>>>> Did you perhaps install the second time using the dpkg (not setup.py) >>>>> method ? >>>>> >>>>> If you used setup.py, did you skip doing a 'sudo python3 setup.py >>>>> install' after the 'python3 setup.py build' step ? >>>>> >>>>> The locations of stuff differs depending on which way you installed >>>>> things. Where things are located is in the User's Guide (link) >>>>> <https://weewx.com/docs/usersguide.htm#Where_to_find_things> >>>>> >>>>> -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/e1b25aa7-82d3-495a-8841-a4d82da26b8cn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/e1b25aa7-82d3-495a-8841-a4d82da26b8cn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -tk -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEAjV4njdjom5Xw-yxbDQJeqeev9rxUwzFP4_z%2Bvwrvt0g%40mail.gmail.com.
