raspberry-pi - 在 Raspberry Pi 上启动时自动启动 deluge 守护进程 1.3.10

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

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

我还使用他的命令检查了我的 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 这样的文件,而是有一个 deluged 命名文件(可能是新版本中 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 守护程序在启动时不会加载。

最佳答案

我设法使用本指南解决了此问题: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. 重新启动

关于raspberry-pi - 在 Raspberry Pi 上启动时自动启动 deluge 守护进程 1.3.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33641153/

相关文章:

python - 使用 Python 和 Gmail 作为提供者发送电子邮件的安全方法是什么?

php - 在 Linux 机器上使用 PHP 上传文件

干净的系统重新启动后 mySQL InnoDB 表损坏

uwp - 在 Raspberry Pi 2 上的 Windows 10 IoT UWP 应用程序中使用 ARM 编译的 DLL

python - cv2.VideoCapture 不返回帧

python - 在一个循环中分配增量文件名

raspberry-pi - 为 Raspberry Pi 编译 Xuggler 的指南

python - Pi 上不同 URL 的 Web 服务器图像链接

linux - 如何在 Linux 中将文件移动到 cron.d?

c - 使用 Linux 通过 I2C 读写 EEPROM