I set up the global agent for Ubuntu because there are special reasons why an application doesn't work, but I don't see any eggs ...
Search, and finally decided to try Tsocks, so record the whole process to share, but also make notes
[Email protected]:~$ sudo apt-get install tsocks is reading the package list ... Completing the dependency tree that is analyzing the package is reading state information ... Complete The following packages are installed automatically and do not need it now: Python-colorama python-distlib python-requests python-wheel use ' Apt-get autoremove ' To uninstall it (them). The following "new" packages will be installed: tsocks upgraded 0 packages, installed 1 new packages, uninstalled 0 packages, and 3 packages were not upgraded. You need to download the 343 KB package. 882 KB of extra space is consumed after decompression. Get: 1 http://cn.archive.ubuntu.com/ubuntu/wily/universe tsocks amd64 1.8beta5-9.2 [343 kb] Download 343 KB, time consuming 3 seconds (86.4 kb/s) selecting not Select the package tsocks. (Reading Database ... The system currently has a total of 210,078 files and directories installed. is preparing to unpack .../tsocks_1.8beta5-9.2_amd64.deb ... Unpacking tsocks (1.8beta5-9.2) ... Processing triggers for man-db (2.7.4-1) ... Setting Tsocks (1.8beta5-9.2) ... Processing triggers for Libc-bin (2.21-0ubuntu4.1) ... [Email protected]:~$ sudo vi/etc/tsocks.conf
The/etc/tscoks.conf content is as follows (server is the proxy server address Server_type is the SOCKS version server_port the proxy server port)
Server = 192.168.1.1# server type defaults to 4 so we need to specify it as 5 for this oneserver_type = AA the Port defaul TS to, but I ' ve stated it's here for Clarityserver_port = 1080
Last input
Tsocks the name of the program to be proxied
[Email protected]:~$ lsexamples.desktop public template video picture document download music Desktop [email protected] : ~$ CD Desktop [email protected]:~/desktop $ lstelegram
Use Tsocks under Ubuntu