You can install the tor package as follows:

Edit this file /etc/tor/torrc so that the following lines are present and uncommented:

Testing setup

Real IP

$ curl ifconfig.me 67.253.170.83

anonymized IP

$ torify curl ifconfig.me 2>/dev/null 46.165.221.166

As you can see the ifconfig.me website thinks our IP address is now 46.165.221.166. You can tell tor to start a new session triggering a new IP address for us:

$ echo -e 'AUTHENTICATE ""\r

signal NEWNYM\r

QUIT' | nc 127.0.0.1 9051 250 OK 250 OK 250 closing connection $ torify curl ifconfig.me 2>/dev/null 37.252.121.31

Do it again to get another different IP