{"id":2105,"date":"2025-01-18T14:24:09","date_gmt":"2025-01-18T14:24:09","guid":{"rendered":"https:\/\/www.thenaylors.co.uk\/wordpress\/?p=2105"},"modified":"2025-01-18T15:24:04","modified_gmt":"2025-01-18T15:24:04","slug":"misc-changes-to-the-omv-server-and-useful-commands","status":"publish","type":"post","link":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/","title":{"rendered":"Misc changes to the OMV server and useful commands"},"content":{"rendered":"<p>Made lots of minor changes to the &#8216;box&#8217; recently while recovering from hip replacement.<\/p>\n<h6><strong>Zigbee2mqtt<\/strong><\/h6>\n<ul>\n<li>Updated to version 2.0.0 which needed a fix to the configuration.yaml<\/li>\n<li>Still using usbip to contact the zigbee controller on the Pi running on 192.xxx.xxx.220<\/li>\n<li>can use this<br \/>\nls -l \/dev\/serial\/by-id<br \/>\nto discover the location of the controller on the OMV server pointing to the Pi. \u00a0Pi uses usbipd service and using<br \/>\nlsusb<br \/>\nuseful in location of the zigbee controller.<\/li>\n<\/ul>\n<h6>Find files of certain size<\/h6>\n<p>find .m4v -size +200M<\/p>\n<h6>find files by name and move them<\/h6>\n<p>sudo find -name *.m4v -exec mv &#8220;{}&#8221; \/media\/6f326f9f-b1a4-484c-b6d6-e8768b9eee3e \\;<\/p>\n<p>size can be added too&#8230;..<\/p>\n<p>sudo find -name *.m4v -size +200M -exec mv &#8220;{}&#8221; \/media\/6f326f9f-b1a4-484c-b6d6-e8768b9eee3e \\;<\/p>\n<h6>Ports in use<\/h6>\n<p>This command useful<br \/>\nsudo lsof -i:ppp<br \/>\nwhere ppp is the port e.g. sudo lsof -i:443<\/p>\n<h6>Stop mails in crontab<\/h6>\n<p>put MAILTO=&#8221;&#8221; infront to the the cron<\/p>\n<h6>Stop things writing to the syslog<\/h6>\n<ol>\n<li>\u00a0owlmqtt service &#8211; commented out the echo<\/li>\n<li>crontab as above of the Cron running every 5 mins from NextCloud<\/li>\n<li>removed checking of ssh from monit as this was causing an entry from 127.0.0.1 in the syslog every time it was checked.<\/li>\n<li><\/li>\n<\/ol>\n<h6>run command inside docker container<\/h6>\n<p>sudo docker exec -u root -it dashy \/bin\/bash -c &#8216;yarn validate-config&#8217;<\/p>\n<p>\/bin\/bash might be \/bin\/sh depending on the container<\/p>\n<h6>look for string in folder and lower files<\/h6>\n<p>grep -r . -e &#8220;string&#8221;<\/p>\n<h6>Added to Docker-Compose<\/h6>\n<ol>\n<li>New version of bitwarden<\/li>\n<li>portainer<\/li>\n<li>watchtower<\/li>\n<li>vaultwarden &#8211; to access old bitwarden database<\/li>\n<li>plex<\/li>\n<\/ol>\n<h6>Reinstalled<\/h6>\n<ol>\n<li>beets<\/li>\n<\/ol>\n<h5>OMV<\/h5>\n<h6>Salt<\/h6>\n<p>needed to move some salt python modules on the installed pyenv to the local python3 libraries used from sudo. \u00a0Tried to do this properly and gave up after 2 days \u00a0Needed to be able to run omv-salt command<\/p>\n<p>removed k3s service &#8211; Kubernet was a plug in installed and removed but left the service behind<\/p>\n<p>remove podman service &#8211; Podman was a plug in installed and removed but left the service behind<\/p>\n<h6>omv-extras<\/h6>\n<p>sudo -u root wget -O &#8211; https:\/\/github.com\/OpenMediaVault-Plugin-Developers\/packages\/raw\/master\/install | bash<\/p>\n<h6>OMV notifications<\/h6>\n<p>used one of the email addresses for zen after trying to use SMTP for both google mail and outlook and finding they no longer support simple SMTP authentication!!<\/p>\n<h6>OMV &#8211; run the update which is done after a change in the command line<\/h6>\n<p>useful when it fails and you want to &#8216;watch&#8217; the fail.<\/p>\n<p>sudo omv-rpc -u admin &#8220;Config&#8221; &#8220;applyChanges&#8221; &#8220;{\\&#8221;modules\\&#8221;: $(cat \/var\/lib\/openmediavault\/dirtymodules.json), \\&#8221;force\\&#8221;: true}&#8221;<\/p>\n<h6>php<\/h6>\n<p>Tidied up the various php services running. \u00a0Stupidly remove php-pam which mucked up the login for openmediavault and required an omv remove and install. \u00a0reinstall did not fix.<\/p>\n<h6>nginx and certbot<\/h6>\n<p>Updating certificates<\/p>\n<p>use command below (-v is verbose and useful)<\/p>\n<p>sudo certbot &#8211;nginx -v<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Made lots of minor changes to the &#8216;box&#8217; recently while recovering from hip replacement. Zigbee2mqtt Updated to version 2.0.0 which needed a fix to the configuration.yaml Still using usbip to contact the zigbee controller on the Pi running on 192.xxx.xxx.220 can use this ls -l \/dev\/serial\/by-id to discover the location of the controller on the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Misc changes to the OMV server and useful commands&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2105","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Misc changes to the OMV server and useful commands - Michael Naylor<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Misc changes to the OMV server and useful commands - Michael Naylor\" \/>\n<meta property=\"og:description\" content=\"Made lots of minor changes to the &#8216;box&#8217; recently while recovering from hip replacement. Zigbee2mqtt Updated to version 2.0.0 which needed a fix to the configuration.yaml Still using usbip to contact the zigbee controller on the Pi running on 192.xxx.xxx.220 can use this ls -l \/dev\/serial\/by-id to discover the location of the controller on the &hellip; Continue reading &quot;Misc changes to the OMV server and useful commands&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"Michael Naylor\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-18T14:24:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-18T15:24:04+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mjnaylor\" \/>\n<meta name=\"twitter:site\" content=\"@mjnaylor\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad\"},\"headline\":\"Misc changes to the OMV server and useful commands\",\"datePublished\":\"2025-01-18T14:24:09+00:00\",\"dateModified\":\"2025-01-18T15:24:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\"},\"wordCount\":491,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\",\"url\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\",\"name\":\"Misc changes to the OMV server and useful commands - Michael Naylor\",\"isPartOf\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#website\"},\"datePublished\":\"2025-01-18T14:24:09+00:00\",\"dateModified\":\"2025-01-18T15:24:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Misc changes to the OMV server and useful commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#website\",\"url\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/\",\"name\":\"Michael Naylor\",\"description\":\"Things which interest me.\",\"publisher\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5\",\"name\":\"Michael Naylor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g\",\"caption\":\"Michael Naylor\"},\"logo\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.thenaylors.co.uk\/wordpress\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Misc changes to the OMV server and useful commands - Michael Naylor","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/","og_locale":"en_GB","og_type":"article","og_title":"Misc changes to the OMV server and useful commands - Michael Naylor","og_description":"Made lots of minor changes to the &#8216;box&#8217; recently while recovering from hip replacement. Zigbee2mqtt Updated to version 2.0.0 which needed a fix to the configuration.yaml Still using usbip to contact the zigbee controller on the Pi running on 192.xxx.xxx.220 can use this ls -l \/dev\/serial\/by-id to discover the location of the controller on the &hellip; Continue reading \"Misc changes to the OMV server and useful commands\"","og_url":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/","og_site_name":"Michael Naylor","article_published_time":"2025-01-18T14:24:09+00:00","article_modified_time":"2025-01-18T15:24:04+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@mjnaylor","twitter_site":"@mjnaylor","twitter_misc":{"Written by":"admin","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#article","isPartOf":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/"},"author":{"name":"admin","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad"},"headline":"Misc changes to the OMV server and useful commands","datePublished":"2025-01-18T14:24:09+00:00","dateModified":"2025-01-18T15:24:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/"},"wordCount":491,"commentCount":0,"publisher":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5"},"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/","url":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/","name":"Misc changes to the OMV server and useful commands - Michael Naylor","isPartOf":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#website"},"datePublished":"2025-01-18T14:24:09+00:00","dateModified":"2025-01-18T15:24:04+00:00","breadcrumb":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/misc-changes-to-the-omv-server-and-useful-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thenaylors.co.uk\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Misc changes to the OMV server and useful commands"}]},{"@type":"WebSite","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#website","url":"https:\/\/www.thenaylors.co.uk\/wordpress\/","name":"Michael Naylor","description":"Things which interest me.","publisher":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thenaylors.co.uk\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5","name":"Michael Naylor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g","caption":"Michael Naylor"},"logo":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.thenaylors.co.uk\/wordpress"]},{"@type":"Person","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.thenaylors.co.uk\/wordpress\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/comments?post=2105"}],"version-history":[{"count":2,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2105\/revisions"}],"predecessor-version":[{"id":2107,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2105\/revisions\/2107"}],"wp:attachment":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/media?parent=2105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/categories?post=2105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/tags?post=2105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}