我正在使用arch linux并从源代码构建tor。下面的命令用于从源代码构建。
mkdir -p ~/Download/Torbinary
# this used to manual copy the binary after make install.
./configure --prefix=~/Download/Torbinary
make
make install
在完成上述步骤后,我将入狱,并将〜/ Download / Torbinary中所有必需的二进制文件和库添加到文件夹和文件中。
我的监狱位于/ opt / torjail
当我使用运行tor程序时>
sudo chroot --userspec=tor:tor /opt/torjail /bin/tor
它正在〜/ Download / Torbinary / etc / tor / torrc中寻找torc文件
但是如果我手动指定-f选项,如下所示。这行得通。
sudo chroot --userspec=tor:tor /opt/torjail /bin/tor -f /etc/tor/torrc
附加我遇到的错误
Dec 31 22:15:21.556 [notice] Tor 0.4.2.5 running on Linux with Libevent 2.1.11-stable, OpenSSL 1.1.1d, Zlib 1.2.11, Liblzma 5.2.4, and Libzstd 1.4.4. Dec 31 22:15:21.556 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning Dec 31 22:15:21.556 [notice] Configuration file "/home/vipin/Download/Torbinary/etc/tor/torrc" not present, using reasonable defaults. Dec 31 22:15:21.557 [notice] Opening Socks listener on 127.0.0.1:9050 Dec 31 22:15:21.557 [notice] Opened Socks listener on 127.0.0.1:9050 Dec 31 22:15:21.557 [warn] Error creating directory /root/.tor: No such file or directory Dec 31 22:15:21.557 [warn] Failed to parse/validate config: Couldn't create private data directory "/root/.tor" Dec 31 22:15:21.557 [err] Reading config failed--see warnings above.
请告诉我我在想什么。
我正在使用arch linux并从源代码构建tor。下面的命令用于从源代码构建。 mkdir -p〜/ Download / Torbinary#用于在安装后手动复制二进制文件。 。/ ...
您可以将DataDirectory设置为/ etc / tor / torrc