Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Running as root/administrator
Moderator: mcrossley
-
- Posts: 220
- Joined: Mon 03 Jan 2011 4:27 pm
- Weather Station: Davis Vantage Pro2
- Operating System: Win 7
- Location: Willand, mid Devon.
- Contact:
Running as root/administrator
Question for the FAQs
Running as Administrator/Root
I am going to guess that a number of people won't like running as Administrator or Root. It will make it a bit difficult to automate the start up of the program in Windows at least with people who have UAC turned on - and it wouldn't be good practice to turn it off.
The question is: Is this a permanent state of affairs or as the program progresses through beta, will this requirement be dropped?
Running as Administrator/Root
I am going to guess that a number of people won't like running as Administrator or Root. It will make it a bit difficult to automate the start up of the program in Windows at least with people who have UAC turned on - and it wouldn't be good practice to turn it off.
The question is: Is this a permanent state of affairs or as the program progresses through beta, will this requirement be dropped?
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Running as root/administrator
It's required to run as a web server. Apparently there are settings on each platform which can be made to remove the requirement, but I haven't fully investigated these yet. So it's possible that the requirement will be removed.
Steve
-
- Posts: 2434
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Running as root/administrator
On GNU/Linux it is done easily. As long as you aren't using a privileged port (1024 or less) and any files written by the application are in a location accessible to the user it is running as (usually done through the configuration file for the application) then there is no need to run as a privileged user.steve wrote:It's required to run as a web server. Apparently there are settings on each platform which can be made to remove the requirement, but I haven't fully investigated these yet. So it's possible that the requirement will be removed.
-
- Posts: 505
- Joined: Wed 17 Aug 2011 2:58 pm
- Weather Station: WeatherDuino Pro2
- Operating System: 2008
- Location: Canberra
Re: Running as root/administrator
Hi Adrian,Adrian Hudson wrote: It will make it a bit difficult to automate the start up of the program in Windows at least with people who have UAC turned on - and it wouldn't be good practice to turn it off.
You can get around this requirement by using Task Scheduler and while doing so can start a program on startup.
Check out this link for details:
http://www.7tutorials.com/use-task-sche ... ac-prompts
Cheers Bob
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Conder, Canberra Weather
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Running as root/administrator
I get an 'access denied' on my Pi when the websocket listener attempts to start (on port 8002).freddie wrote:On GNU/Linux it is done easily. As long as you aren't using a privileged port (1024 or less) and any files written by the application are in a location accessible to the user it is running as (usually done through the configuration file for the application) then there is no need to run as a privileged user.steve wrote:It's required to run as a web server. Apparently there are settings on each platform which can be made to remove the requirement, but I haven't fully investigated these yet. So it's possible that the requirement will be removed.
Steve
Re: Running as root/administrator
On a similar subject, I think some people may find the black dos window intimidating. Especially as an accidental tap of any key would terminate CumulusMX. Perhaps later a console like XAMPP uses could be created? I have several other programs that have a built in web server and still start / open in the 'usual' way.
Just my thoughts.
Just my thoughts.
- mcrossley
- Posts: 12695
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Running as root/administrator
Ideally I would like to see it run as a service under Windows, and daemon under Linux, I'm not sure if Steve is going to take it that far yet as it would probably require installers creating in addition to any program changes.
- steve
- Cumulus Author
- Posts: 26702
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Running as root/administrator
That's the intention, yes - eventually.mcrossley wrote:Ideally I would like to see it run as a service under Windows, and daemon under Linux
Steve
-
- Posts: 220
- Joined: Mon 03 Jan 2011 4:27 pm
- Weather Station: Davis Vantage Pro2
- Operating System: Win 7
- Location: Willand, mid Devon.
- Contact:
Re: Running as root/administrator
Oh yeah, of course you can. Durr. I forgot that!uncle_bob wrote:You can get around this requirement by using Task Scheduler
.
.
Cheers Bob
-
- Posts: 220
- Joined: Mon 03 Jan 2011 4:27 pm
- Weather Station: Davis Vantage Pro2
- Operating System: Win 7
- Location: Willand, mid Devon.
- Contact:
Re: Running as root/administrator
Been there, done that already. Perhaps it could be a command (like "quit") that you need to type? I hesitate to suggest this as am enhancement as Steve is busy fixing bugs...duke wrote:... an accidental tap of any key would terminate CumulusMX. ...