Linux Terminal
Install privoxy with apt(yum)
apt install privoxy (yum install privoxy)
Open file /etc/privoxy/config and replace its content with following
forward-socks5 / 127.0.0.1:1080 .
Run following commands in terminal to restart service privoxy
service privoxy restart
Run following commands in terminal to set proxy
export http_proxy=http://127.0.0.1:8118/
export https_proxy=http://127.0.0.1:8118/
Run following commands in terminal to check if proxy works
curl https://google.com/