Follow Steps Below:-
1. Installing all required pakages
sudo apt install tor proxychains4 curl python3 python3-pip python3-dev git -y
2. Open proxychains configuration file
nano /etc/proxychains4.conf
3. Comment out strict_chain by using (#)
4. Uncomment dynamic_chain by removing (#)
5. Add this in your proxychains configuration file
socks5 127.0.0.1 9050
6. Save the file by clicking ctrl + o + enter + x
7. Activate Tor by typing - tor in your terminal
8. Check the connection is stablished or Not by typing - proxychains curl ifconfig.me
Automatic way to setup it
1. Clone a git repository
git clone https://github.com/ashishyadav58/tor_proxychains_setup
2. Give executable permission to setup.py file
chmod +x setup.py
3. Run command to execute setup.py
python3 setup.py




If you have any doubts, please let me know