【问题标题】:Autostart deluge daemon 1.3.10 on boot on Raspberry Pi在 Raspberry Pi 上启动时自动启动 deluge 守护程序 1.3.10
【发布时间】:2015-11-10 22:49:45
【问题描述】:

我已经阅读过有关如何将树莓派设置为种子盒的不同教程,但我认为大多数操作教程都已过时。

我还使用他的命令检查了我的 deluge 守护程序版本:

deluge -v

它返回这个:

deluged: 1.3.10
libtorrent: 0.16.18.0

到目前为止,我一直遵循 How-To Geek 教程。

链接:http://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/

在我看到错误后,我已经完全卸载并删除了 deluge 的所有文件。

本教程建议使用此命令:

sudo wget -O /etc/default/deluge-daemon http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt

但是没有像/etc/default/deluge-daemon这样的文件,而是有一个名为deluge的文件(可能是新版本中deluge-daemon的缩写)

该命令的基本作用是将文件http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt 的内容复制到位于/etc/default/deluge-daemon 的文件中。

由于我找不到 deluged-daemon,我选择使用 /etc/default/deluged 来执行此操作

/etc/default/deluged 的​​原始内容:

# Defaults for deluged initscript
# sourced by /etc/init.d/deluged

# change to 1 to enable daemon
ENABLE_DELUGED=0

文件http://cdn5.howtogeek.com/wp-content/uploads/gg/up/sshot5151a8c86fb85.txt上提供的内容:

# Configuration for /etc/init.d/deluge-daemon

# The init.d script will only run if this variable non-empty.
DELUGED_USER="pi"             # !!!CHANGE THIS!!!!

# Should we run at startup?
RUN_AT_STARTUP="YES"

但是两个文件看起来不同,并且 deluge 守护程序在启动时没有加载。

【问题讨论】:

    标签: raspberry-pi raspbian raspberry-pi2 init.d


    【解决方案1】:

    我设法使用本指南解决了这个问题:http://dev.deluge-torrent.org/wiki/UserGuide/Service/systemd

    1. 按照本指南中的说明进行操作(您可以跳过 deluge-web 说明)。
    2. 请注意,deluge 用户是使用 --home /var/lib/deluge 创建的。
    3. 更新deluge用户的主目录中的auth(设置一个帐户)和core.conf(设置allow_remote标志)文件(与其他教程中通常提到的pi用户的主目录相反)。
    4. 重启

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-10
      • 2014-04-02
      • 1970-01-01
      • 1970-01-01
      • 2022-11-10
      • 2017-02-27
      • 2015-08-11
      相关资源
      最近更新 更多