Can't edit weewx.conf file

70 views
Skip to first unread message

Bob Borzelleri

unread,
Aug 29, 2019, 11:27:17 PM8/29/19
to weewx-user
I am thinking that the setup.py install I did locked me out of permission to edit the file.

When I open the file in the folder, I have tried to edit and get the cannot open file for saving error.

Similar limitation on the command line.

If I try to change permissions, it gives me an error that it cannot save to edit.

This is all on a Raspberry Pi 4, Davis Vantage Pro Plus with both a Console and an Envoy which is hooked up to the Pi.  Everything works if I run the ISS for all inputs, but I need to relocate my wind setup and run it through a wireless transmitter as Station 2 and, so far, the Config file only lists the ISS as Station 1 and nothing for Station 2; hence my need to edit the Config file.

Any advice would be appreciated.

First time with any Linux stuff.  

  

Andrew Milner

unread,
Aug 30, 2019, 1:07:09 AM8/30/19
to weewx-user
try using sudo 

Bob Borzelleri

unread,
Aug 30, 2019, 2:39:36 AM8/30/19
to weewx-user
Tried that.  got all the parameters changed that I wanted, but it wouldn't write over the file.  Still a permission thing I guess.

Bob Borzelleri

unread,
Aug 30, 2019, 10:19:23 AM8/30/19
to weewx-user
OK, I got it.  It took a "SUDO nano" opener to allow me to save the modified file.  Thanks for directing me back to basics.

 

On Thursday, August 29, 2019 at 8:27:17 PM UTC-7, Bob Borzelleri wrote:

vince

unread,
Aug 30, 2019, 12:35:23 PM8/30/19
to weewx-user
On Friday, August 30, 2019 at 7:19:23 AM UTC-7, Bob Borzelleri wrote:
OK, I got it.  It took a "SUDO nano" opener to allow me to save the modified file.  Thanks for directing me back to basics.

I think we need a FAQ along the lines of:
  - Q. I'm a new linux user and I'm getting permission denied...
  - A. did you forget to preface your command with sudo ?

If this is really your first Linux adventure, it would be worth your time to get yourself a little training before you get too frustrated.  There are a lot of good free self-paced things out there that you might think about nibbling away at.  I usually point folks at the edx.org Linux course from the Linux Foundation, but there are lots of 'free' courses out there to help you get your feet wet.   Well worth a little time if you can spare it.

Reply all
Reply to author
Forward
0 new messages