Midori socks proxy, tor, tsocks, Raspberry Pi

I was struggling this for a while. By default Midori was not option to use socks5 proxy option. I needed this option so i can connect to the tor network which usually is at port 9050. This solution actually uses socks4.

This is tested on fresh 2016-02-26-raspbian-jessie.img.

Move to the super user:
sudo su
Update system:
apt-get update -y && apt-get upgrade -y
Install tsocks tunnel future:
apt-get install tsocks -y
Configure tsocks to use default tor port:
cat > /etc/tsocks.conf <<EOT
server = 127.0.0.1
server_port = 9050
local = 127.0.0.0/255.128.0.0
local = 127.128.0.0/255.192.0.0
EOT
Add user pi to tor group. This is required for unattended install:
sed -ri '$adebian-tor:x:111:pi' /etc/group
Install tor network:
apt-get install vidalia -y
Install Midori web browser:
apt-get install midori -y
To execute midori with tor network use:
tsocks midori -a https://catonrug.blogspot.com/
Related:
https://wiki.xfce.org/midori/faq

No comments: