{"id":793,"date":"2025-05-05T07:31:41","date_gmt":"2025-05-05T12:31:41","guid":{"rendered":"https:\/\/wp.jkhayer.us\/?p=793"},"modified":"2025-05-05T07:31:41","modified_gmt":"2025-05-05T12:31:41","slug":"glances","status":"publish","type":"post","link":"https:\/\/wp.jkhayer.us\/?p=793","title":{"rendered":"Glances"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-derek-seaman-039-s-tech-blog wp-block-embed-derek-seaman-039-s-tech-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"8498bsm78A\"><a href=\"https:\/\/www.derekseaman.com\/2023\/04\/home-assistant-monitor-proxmox-with-glances.html\">Home Assistant: Monitor Proxmox with Glances<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Home Assistant: Monitor Proxmox with Glances&#8221; &#8212; Derek Seaman&#039;s Tech Blog\" src=\"https:\/\/www.derekseaman.com\/2023\/04\/home-assistant-monitor-proxmox-with-glances.html\/embed#?secret=2KLcEAqEnY#?secret=8498bsm78A\" data-secret=\"8498bsm78A\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>In the Proxmox web UI click on your physical server in the left pane, then click on Shell in the middle pane. Note: If you are using Proxmox VE 8.0 (based on Debian bookworm), you need to run the \u201crm\u201d command below or Glances will not install. This command will not affect the operation of Proxmox VE 8.0.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/usr\/lib\/python3.*\/EXTERNALLY-MANAGED\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code> apt install glances \ncurl -L https:\/\/bit.ly\/glances | \/bin\/bash\n\n<\/code><\/pre>\n\n\n\n<p>Web browser<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>glances -w\nglances -w --username --password\nhttps:&#47;&#47;localhost:61208\n<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">Installing Glances auto start<\/h1>\n\n\n\n<p><a href=\"https:\/\/github.com\/hayerj\/Glances#installing-glances-auto-start\"><\/a><\/p>\n\n\n\n<p>Run sudo if need<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> apt update\n\n apt install python3 -y\n<\/code><\/pre>\n\n\n\n<p><strong>After that completes, we&#8217;ll install pip3 with<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install python3-pip\n<\/code><\/pre>\n\n\n\n<p><strong>Install Glances and Bottle<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip3 install bottle\npip3 install glances\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>glances\nglances -w\nGlances Web User Interface started on http:\/\/0.0.0.0:61208\/\n<\/code><\/pre>\n\n\n\n<p><strong>Create the Glances Service<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/systemd\/system\/glances.service\n<\/code><\/pre>\n\n\n\n<p><strong>Add<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Unit]\nDescription = Glances in Web Server Mode\nAfter = network.target\n\n&#91;Service]\nExecStart = \/usr\/local\/bin\/glances  -w  -t  5\n\n&#91;Install]\nWantedBy = multi-user.target\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>which glances\n\/usr\/local\/bin\/glances or  \/home\/&lt;your usre&gt;\/.local\/bin\/glances \n<\/code><\/pre>\n\n\n\n<p><strong>We do the following commands to do this<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl enable glances.service\n\nsystemctl start glances.service\n\nsystemctl status glances\n<\/code><\/pre>\n\n\n\n<p><strong>Now that it&#8217;s running, you can again go to the ip address of<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/&lt;local ip&gt;:61208\n<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\">Adding Widgets to Dashy<\/h1>\n\n\n\n<p><a href=\"https:\/\/github.com\/hayerj\/Glances#adding-widgets-to-dashy\"><\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/docker\/dashy\/public\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>cp conf.yml conf.bak.yml\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>nano conf.yml\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sections:\n  - name: Server Info\n    widgets:\n      - type: gl-current-cpu\n        options:\n          hostname: http:192.168.10.209:61208\n      - type: gl-current-mem\n        options:\n          hostname: http:192.168.10.209:61208\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In the Proxmox web UI click on your physical server in the left pane, then click on Shell in the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-793","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts\/793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=793"}],"version-history":[{"count":1,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts\/793\/revisions"}],"predecessor-version":[{"id":794,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=\/wp\/v2\/posts\/793\/revisions\/794"}],"wp:attachment":[{"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jkhayer.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}