Use Tsocks under Ubuntu

Source: Internet
Author: User
Tags server port

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.