V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xarrow
V2EX  ›  问与答

求 DNScrypt ubuntu 安装教程,搜了半天都是你抄我,我抄你的文章

  •  
  •   xarrow · 2014-11-20 14:38:30 +08:00 · 4976 次点击
    这是一个创建于 3663 天前的主题,其中的信息可能已经有所发展或是发生改变。
    22 条回复    2016-11-24 22:26:22 +08:00
    Blask
        1
    Blask  
       2014-11-20 16:39:02 +08:00   ❤️ 1
    "你抄我, 我抄你"的文章解决不了你的问题吗?
    lemontv
        2
    lemontv  
       2014-11-20 17:10:10 +08:00   ❤️ 1
    官方文档不好使么
    Showfom
        3
    Showfom  
       2014-11-20 17:18:40 +08:00   ❤️ 1
    http://ttt.tt/153/

    我自己写的,不好用吗?
    xarrow
        4
    xarrow  
    OP
       2014-11-20 17:19:11 +08:00
    @lemontv 官方文档,前提是网站显示完整
    thinker3
        5
    thinker3  
       2014-11-20 21:25:41 +08:00   ❤️ 1
    { install dnscrypt
    -------------------------------------------------------------------------------
    http://download.libsodium.org/libsodium/releases/libsodium-0.4.2.tar.gz
    ./configure && make
    sudo make install
    sudo ldconfig

    http://download.dnscrypt.org/dnscrypt-proxy/
    http://download.dnscrypt.org/dnscrypt-proxy/dnscrypt-proxy-1.3.3.tar.gz
    ./configure && make
    sudo make install
    dnscrypt-proxy --daemonize --pidfile=/run/dnscrypt-proxy.pid --edns-payload-size=4096

    On the IPv4 Settings tab, set Method to "Automatic (DHCP) addresses only" and set DNS servers to "127.0.0.1"
    sudo restart network-manager

    test:
    http://www.opendns.com/welcome/
    -------------------------------------------------------------------------------
    install dnscrypt }
    xarrow
        6
    xarrow  
    OP
       2014-11-22 20:12:53 +08:00
    @Showfom 请问 未发现nscrypt-proxy和sniproxy,是不是需要 update下?
    Showfom
        7
    Showfom  
       2014-11-22 20:14:47 +08:00   ❤️ 1
    @xarrow

    apt-get install python-software-properties
    add-apt-repository ppa:dlundquist/sniproxy
    apt-get update && apt-get install sniproxy

    apt-get install python-software-properties
    add-apt-repository ppa:shnatsel/dnscrypt
    apt-get update && apt-get install dnsmasq && apt-get install dnscrypt-proxy


    你需要先导入 ppa
    xarrow
        8
    xarrow  
    OP
       2014-11-22 21:44:20 +08:00
    @Showfom 求大牛科普下 ppa ^_^
    Showfom
        9
    Showfom  
       2014-11-22 21:50:35 +08:00   ❤️ 1
    @xarrow 就是帮你编译好的,不需要自己再去编译,所以增加 ppa 以后就可以直接 apt-get 装了
    xarrow
        10
    xarrow  
    OP
       2014-11-22 22:02:31 +08:00
    @Showfom 怎么增加?
    Showfom
        11
    Showfom  
       2014-11-22 22:03:04 +08:00   ❤️ 1
    @xarrow 。。。。。。。
    Showfom
        12
    Showfom  
       2014-11-22 22:03:23 +08:00   ❤️ 1
    @xarrow


    apt-get install python-software-properties
    add-apt-repository ppa:dlundquist/sniproxy
    xarrow
        13
    xarrow  
    OP
       2014-11-22 22:09:17 +08:00
    @Showfom 解压包./configure && make?
    xarrow
        14
    xarrow  
    OP
       2014-11-22 22:11:32 +08:00
    @xarrow You are about to add the following PPA to your system:

    More info: https://launchpad.net/~dlundquist/+archive/ubuntu/sniproxy
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 160, in <module>
    sp = SoftwareProperties(options=options)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
    self.reload_sourceslist()
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
    File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
    xarrow
        15
    xarrow  
    OP
       2014-11-22 22:13:54 +08:00
    @Showfom
    You are about to add the following PPA to your system:

    More info: https://launchpad.net/~dlundquist/+archive/ubuntu/sniproxy
    Press [ENTER] to continue or ctrl-c to cancel adding it

    Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 160, in <module>
    sp = SoftwareProperties(options=options)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
    self.reload_sourceslist()
    File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
    File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
    raise NoDistroTemplateException("Error: could not find a "
    aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template
    Showfom
        16
    Showfom  
       2014-11-22 22:15:53 +08:00   ❤️ 1
    @xarrow 忘了说,要 Ubuntu 12.04
    Showfom
        17
    Showfom  
       2014-11-22 22:16:12 +08:00   ❤️ 1
    @xarrow 然后直接按 回车!
    xarrow
        18
    xarrow  
    OP
       2014-11-22 22:18:59 +08:00
    @Showfom Ubuntu 12才行? 我再试试,谢谢!
    xarrow
        19
    xarrow  
    OP
       2014-11-25 17:53:29 +08:00
    @Showfom 那其他坂本的 linux 就不行了么?ubuntu 14好像也不行~
    thinker3
        21
    thinker3  
       2015-10-10 16:41:06 +08:00
    @holajamc 自从用了 ss ,就不需要这个东西了,好久都没用这个了
    mandymak
        22
    mandymak  
       2016-11-24 22:26:22 +08:00
    @Showfom 补充 1 个步骤: apt-get install software-properties-common
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2613 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 10:48 · PVG 18:48 · LAX 02:48 · JFK 05:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.