#!/bin/bash
## filname: fix_ubuntu_privacy.bash
## found @ https://fixubuntu.com/
## author: Micah Lee, Electronic Frontier Foundation (EFF),
## edited by Jörg Reinholz
## download from http://www.fastix.org/r/fix_ubuntu_privacy.bash
## licence: Use this! Now!

gsettings set com.canonical.Unity.Lenses remote-content-search none 2> /dev/null;
ubuntuVersion=`/usr/bin/lsb_release -rs | tr -d '.'`;
if test $ubuntuVersion -lt 1310; then
  sudo apt-get remove -y unity-lens-shopping 2> /dev/null;
else
  gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"  2> /dev/null;
fi;
echo "echo '0.0.0.0 productsearch.ubuntu.com' >> /etc/hosts;" | sudo sh 