This launch agent will automatically start a glances web server
- Install Homebrew.
- Install
glances. Executebrew install glances. - Copy the
.plistfile in this gist into~/Library/LaunchAgents/. - EDIT the
.plist: change/Users/boneskull/to/Users/<you>/ - Execute
launchctl load ~/Library/LaunchAgents/com.boneskull.glances-web.plist. Do not run this command with superuser privileges.
- You can also just install
glancesviapip3if you have it. - This may be better installed as a global daemon instead of a user agent.
I solved it. For local installs using pip3, routing to the glances script is necessary. Using
which glanceslike you suggested showed the path. My error that I was getting was a result ofglances-webalready being loaded. I had to unload and reload to get it working again. I used an app called LaunchControl on macOS to aid.Thanks a lot for the right up. I finally have glances going, and have added it to my server dashboard -- gethomepage.dev