{"id":3404,"date":"2016-07-09T23:52:50","date_gmt":"2016-07-09T22:52:50","guid":{"rendered":"https:\/\/stevepedwards.today\/DebianAdmin\/?p=3404"},"modified":"2023-10-28T21:51:07","modified_gmt":"2023-10-28T20:51:07","slug":"remote-server-gkrellm-monitors-via-ssh-and-x11","status":"publish","type":"post","link":"https:\/\/stevepedwards.today\/DebianAdmin\/remote-server-gkrellm-monitors-via-ssh-and-x11\/","title":{"rendered":"Remote Server gkrellm Monitors or Other GUI Apps via SSH and X11"},"content":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_3404\" class=\"pvc_stats all  \" data-element-id=\"3404\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p><a href=\"https:\/\/gkrellm.srcbox.net\/\">https:\/\/gkrellm.srcbox.net\/<\/a><\/p>\n<p>These are cool looking but very comprehensive status widgets that allow remote server monitoring via ssh and X11 once set up. This assumes you have generated local public RSA keys using:<\/p>\n<p><span style=\"color: #0000ff;\">ssh-keys<\/span><\/p>\n<p>that are stored in .ssh\/id_rsa.pub, and copied them across to any remote servers you wish to use passwordless logins with using:<\/p>\n<p><span style=\"color: #0000ff;\">ssh-copy-id -i ~\/.ssh\/id_rsa.pub servername<\/span><\/p>\n<p>If you need a graphical walk through of that process see:<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps\/\">https:\/\/www.tecmint.com\/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps\/<\/a><\/p>\n<p>or if you want a quick text copy\/paste method, scroll down to <span style=\"color: #ffffff;\"><span style=\"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;\"><span style=\"font-size: small;\"><b><strong>remote rsync\/ssh BUp with<\/strong><strong>out<\/strong> pword:<\/b><\/span><\/span><\/span> on my Notepad page.<\/p>\n<p><span style=\"color: #00ff00;\"><a style=\"color: #00ff00;\" href=\"https:\/\/stevepedwards.today\/DebianAdmin\/notepad\/\">https:\/\/stevepedwards.today\/DebianAdmin\/notepad\/<\/a><\/span><\/p>\n<p>SSH can forward X11 traffic, and on Mint it is on by default at line 64 in:<\/p>\n<p><span style=\"color: #0000ff;\">vi \/etc\/ssh\/sshd_config<\/span><\/p>\n<p><span style=\"color: #ff0000;\">X11Forwarding yes<\/span><\/p>\n<p><span style=\"color: #ff0000;\">X11DisplayOffset 10<\/span><\/p>\n<p><span style=\"color: #ffffff;\">First, install the package on the remote server via:<\/span><\/p>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #ffffff;\">stevee@AMD ~ $<\/span> ssh dellmint<\/span><\/p>\n<p><span style=\"color: #0000ff;\"><span style=\"color: #ffffff;\">stevee@dellmint ~ $<\/span> sudo apt-get install gkrellm<\/span><\/p>\n<p><span style=\"color: #ffffff;\">Log out again.<\/span><\/p>\n<p><span style=\"color: #ffffff;\">Now you just need to ssh to the remote server (dellmint) you wish to monitor locally, setting X forwarding for that server from your local terminal, which logs you in remotely again, then run gkrellm on the remote server. <\/span><\/p>\n<p><span style=\"color: #ffffff;\">stevee@AMD ~ $ <span style=\"color: #0000ff;\">ssh -X dellmint<\/span><\/span><\/p>\n<p><span style=\"color: #ffffff;\">stevee@dellmint ~ $<span style=\"color: #0000ff;\"> gkrellm<\/span><\/span><\/p>\n<p><span style=\"color: #ffffff;\">It's X11 output is then streamed across the ssh tunnel and the above widget appears on your display! Dead cool! Right click it for the many display options and features.<\/span><\/p>\n<p><center><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/nYn19udwI88?autoplay=1&amp;version=3&amp;loop=1&amp;playlist=nYn19udwI88\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/center><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/gkrellmopt.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-3412\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/gkrellmopt.png\" alt=\"gkrellmopt.png\" width=\"742\" height=\"688\" \/><\/a><\/p>\n<p>Obviously, you can use this idea to stream any X11 based GUI app from a remote server to your local screen without incurring it's local overhead; Wireshark or gparted (on dellmint!!!) for remote configuration\/destruction!, for example.<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/gparteddell.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3413\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/gparteddell.png\" alt=\"gparteddell.png\" width=\"777\" height=\"527\" \/><\/a><\/p>\n<p>A VERY handy use for -X is updating CAV anti-virus remotely before a scan as\u00a0the cmd line options are all GUI based except a file\/dir scan itself, e.g.:<\/p>\n<p><span style=\"color: #0000ff;\">exec \/opt\/COMODO\/cavupdater<\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/CAVupdate.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-3779\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/CAVupdate.png\" alt=\"CAVupdate.png\" width=\"915\" height=\"675\" \/><\/a><\/p>\n<p><span style=\"color: #0000ff;\">\/opt\/COMODO\/cmdscan -vs \/home\/stevee\/<\/span><\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2015\/06\/cavcmd.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-3777\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2015\/06\/cavcmd.png\" alt=\"cavcmd.png\" width=\"757\" height=\"405\" \/><\/a><\/p>\n<p>Update the software\/change mirrors remotely:<\/p>\n<p>stevee@DELLMINT ~ $ <span style=\"color: #0000ff;\">sudo software-sources<\/span><br \/>\n[sudo] password for stevee:<\/p>\n<p><a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/softsource.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-6522\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/uploads\/2016\/07\/softsource-1024x637.png\" alt=\"\" width=\"590\" height=\"367\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_3404\" class=\"pvc_stats all  \" data-element-id=\"3404\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/stevepedwards.today\/DebianAdmin\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p>https:\/\/gkrellm.srcbox.net\/ These are cool looking but very comprehensive status widgets that allow remote server monitoring via ssh and X11 once set up. This assumes you have generated local public RSA keys using: ssh-keys that are stored in .ssh\/id_rsa.pub, and copied them across to any remote servers you wish to use passwordless logins with using: ssh-copy-id <a href=\"https:\/\/stevepedwards.today\/DebianAdmin\/remote-server-gkrellm-monitors-via-ssh-and-x11\/\" class=\"more-link\">...<span class=\"screen-reader-text\">\u00a0 Remote Server gkrellm Monitors or Other GUI Apps via SSH and X11<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3404","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"a3_pvc":{"activated":true,"total_views":1,"today_views":0},"_links":{"self":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/3404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/comments?post=3404"}],"version-history":[{"count":2,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/3404\/revisions"}],"predecessor-version":[{"id":10043,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/posts\/3404\/revisions\/10043"}],"wp:attachment":[{"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/media?parent=3404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/categories?post=3404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepedwards.today\/DebianAdmin\/wp-json\/wp\/v2\/tags?post=3404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}