Can't edit config file

246 views
Skip to first unread message

Bob Breck

unread,
Sep 20, 2016, 10:09:25 PM9/20/16
to weewx-user
Doing a clean install on a new Raspberry Pi (v 3.5.0). The installer doesn't open the config tool, and I can't edit the config file manually; I'm logged in as user Pi and it tells me I don't have permission to edit this file. Can someone tell me how to edit this file using the graphical interface? I've tried numerous ways to change permissions, but am not too familiar at using the Terminal to do so.

Can I manually run to config program, permanently change the permissions for the weewx directory for user Pi?

Thanks!

Andrew Milner

unread,
Sep 20, 2016, 10:45:15 PM9/20/16
to weewx-user
You are probably better off getting familiar with the command line interface, and using a text editor such as nano to edit config files with. rather than using a graphical editor.

Permissions are changed and set in the standard Linux way.  If the files are owned by another user, such as root, a method to edit them is to use sudo before the command eg sudo nano weewx.conf 

Andy Harrold

unread,
Sep 21, 2016, 1:46:46 PM9/21/16
to weewx-user
Open a terminal window and type (change location if your Weewx.conf is located somewhere else.

sudo wee_config --reconfigure --driver=/home/weewx/weewx.conf

Andrew Milner

unread,
Sep 21, 2016, 1:55:42 PM9/21/16
to weewx-user
shouldn't that be:

sudo wee_config --reconfigure --config=/home/weewx/weewx.conf rather than --driver= ????

Bob Breck

unread,
Oct 1, 2016, 6:53:24 PM10/1/16
to weewx...@googlegroups.com
Thanks! Andrew’s worked. My error was trying to hand-edit in the text editor, rather than nano (which worked as well).


--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/X3dPzITnjEg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages