{"id":777,"date":"2022-06-29T07:53:22","date_gmt":"2022-06-29T14:53:22","guid":{"rendered":"https:\/\/jasonsblog.access.ly\/?p=777"},"modified":"2022-06-29T08:02:43","modified_gmt":"2022-06-29T15:02:43","slug":"disabling-ubuntu-telemetry-services","status":"publish","type":"post","link":"https:\/\/jasonsblog.ddns.net\/index.php\/2022\/06\/29\/disabling-ubuntu-telemetry-services\/","title":{"rendered":"Disabling Ubuntu Telemetry Services"},"content":{"rendered":"\n<p>Ubuntu started to enable telemetry in recent versions on an opt out basis, so if you don&#8217;t want to send data to Ubuntu here is a script from <a href=\"https:\/\/github.com\/LamdaLamdaLamda\/disable-ubuntu-telemetry\/blob\/master\/disableUbuntuOptOut.sh\" target=\"_blank\" aria-label=\"Github (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">Github<\/a>. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n################ Description: ###################\n# This script will disable all opt-out under \n# Ubuntu 18.04.1 LTS (Codename: bionic).\n# At first the telemetry domains will be resolved \n# to the local host and second all malicious services\n# will be removed from the system.\n# The following work has a system-wide effect not just\n# for a single user.\n################ Parameter: #####################\n# None\n################ Implementation: ################\nclear\n\nif test `id -u` -ne 0\nthen\n  echo -e \"&#91;-] Missing privileges...\"\n  exit 1\nfi\n\n# resolving to localhost:\necho \"&#91;*] Resolving \\\"metrics.ubuntu.com\\\" to localhost\"\necho 127.0.0.1 www.metrics.ubuntu.com &gt;&gt;\/etc\/hosts\necho 127.0.0.1 metrics.ubuntu.com &gt;&gt;\/etc\/hosts\n\necho \"&#91;*] Resolving \\\"popcon.ubuntu.com\\\" to localhost\"\necho 127.0.0.1 www.popcon.ubuntu.com &gt;&gt;\/etc\/hosts\necho 127.0.0.1 popcon.ubuntu.com &gt;&gt;\/etc\/hosts\n\n# Removing telemetry services:\necho \"&#91;*] Removing telemetry services\"\napt purge -y ubuntu-report popularity-contest apport whoopsie &gt;\/dev\/null 2&gt;&amp;1\n\nif test $? -eq 0 \nthen\n    echo \"&#91;+] Telemtry services successfully removed.\"\n    exit 0\nelse\n    echo \"&#91;-] Removing of telemtry services failed.\"\n    exit 1\nfi\n\necho \"&#91;*] Decline telemetry\"\nubuntu-report -f send no\n\n<\/code><\/pre>\n\n\n\n<p>Instead of running the script you can manually add the domains to your Pi-Hole blacklist (or \/etc\/hosts file),  metrics.ubuntu.com and popcon.ubuntu.com. And then just remove the telemetry service programs manually and it looked like the script missed one and we&#8217;ve added a hold on them as well.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt purge ubuntu-report popularity-contest apport whoopsie apport-symptoms &amp;&amp; sudo apt-mark hold ubuntu-report popularity-contest apport whoopsie apport-symptoms<\/code><\/pre>\n\n\n\n<p>My Ubuntu KDE Plasma Virtual Machine is one of my favorites to use daily, and this gets rid of the poor decision that Ubuntu made with opt out telemetry tracking. But at least with Linux, you have control of your operating system and can remove what you don&#8217;t want or you can recompile with changes. But Ubuntu needs to do better or they&#8217;re going to lose even more users now that there are many good Linux distributions to choose from. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu started to enable telemetry in recent versions on an opt out basis, so if you don&#8217;t want to send data to Ubuntu here is a script from Github. Instead of running the script you can manually add the domains to your Pi-Hole blacklist (or \/etc\/hosts file), metrics.ubuntu.com and popcon.ubuntu.com. And then just remove the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-777","post","type-post","status-publish","format-standard","hentry","category-tech"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"featured_image_src":null,"author_info":{"display_name":"Jason","author_link":"https:\/\/jasonsblog.ddns.net\/index.php\/author\/jturning\/"},"_links":{"self":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=777"}],"version-history":[{"count":2,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":779,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/posts\/777\/revisions\/779"}],"wp:attachment":[{"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/categories?post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jasonsblog.ddns.net\/index.php\/wp-json\/wp\/v2\/tags?post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}