Eliminare l'invio di dati a Canonical da Ubuntu 1

Eliminare l’invio di dati a Canonical da Ubuntu

Da molto tempo si parla del fatto che Canonical, con il suo sistema operativo Ubuntu, riceva i dati delle ricerche degli utenti: Richard Stallman, guru e idealista di Linux e dell’Open Source, ha parlato molto dettagliatamente del problema, potete trovare il video qui. Cosa possiamo fare, noi utenti, per ripristinare la nostra privacy? Esiste un metodo, vediamo quale.

Il sito Fixubuntu.com ci viene in aiuto con un codice che nega l’invio dei nostri dati sensibili. La procedura è molto semplice, basta copiare ed incollare le righe che vedete qui sotto, una volta fatto, premete invio e digitate la password e voilà, il gioco è fatto!

#!/bin/bash

GS=“/usr/bin/gsettings”

CCUL=“com.canonical.Unity.lenses”

# Figure out the version of Ubuntu that you’re running

V=`/usr/bin/lsb_release -rs`

# The privacy problems started with 12.10, so earlier versions should do nothing

# Added check because 14.04.1 isn’t a number

if [ $V == “14.04.1” ]; then

$V=14.04

fi

# Minimum verision check

MIN=`echo $V‘>’12.10 | bc -l`

# Maximum version check

FIXED_VER=15.04

MAX=`echo $FIXED_VER‘>’$V | bc -l`

if [[ $MIN -eq 0 || $MAX -eq 0 ]]; then

echo “Good news! This version of Ubuntu is not known to invade your privacy.”

exit 0 #Script should exit if ubuntu version outside range

fi

# Check Canonical schema is present. Take first match, ignoring case.

SCHEMA=“`$GS list-schemas | grep -i $CCUL | head -1`”

if [[ -z $SCHEMA ]]

then

printf “Error: could not find Canonical schema %s.\n” $CCUL 1>&2

exit 1

else

CCUL=$SCHEMA

fi

# Turn off “Remote Search”, so search terms in Dash don’t get sent to the internet

$GS set $CCUL remote-content-search none

# If you’re using earlier than 13.10, uninstall unity-lens-shopping

if [[ $V < 13.10 ]]; then

sudo apt-get remove -y unity-lens-shopping

# If you’re using a later version, disable remote scopes

else

$GS set $CCUL 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’]”

fi;

# Block connections to Ubuntu’s ad server, just in case

#if ! grep -q “127.0.0.1 productsearch.ubuntu.com” /etc/hosts; then

# echo -e “\n127.0.0.1 productsearch.ubuntu.com” | sudo tee -a /etc/hosts >/dev/null

#fi

#Editing /etc/hosts is OK but adding a iptables rule seems to be a more elegant solution

sudo iptables -A OUTPUT -d 91.189.92.11 -j DROP

Massimo Uccelli
Fondatore e admin. Appassionato di comunicazione e brand reputation. Con Consulenze Leali mi occupo dei piccoli e grandi problemi quotidiani delle PMI.

Questo si chiuderà in 20 secondi

Translate »