{"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"],"_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}]}}