deluge忘记WebUI密码后的重置方法

首先需要停止WebUI

killall deluged
killall deluge-web

然后可以通过删除deluge配置目录下的web.conf文件来重置密码,该文件的默认位置:

~/.config/deluge/

注意:删除该文件后,WebUI上的设置也将初始化。

当然,你也可以通过下面的脚本来重设密码:

#!/usr/bin/env python
# Changes the password for Deluge's WebUI

from deluge.config import Config
import hashlib
import os.path
import sys

if len(sys.argv) == 2:
    deluge_dir = os.path.expanduser(sys.argv[1])

    if os.path.isdir(deluge_dir):
        try:
            config = Config("web.conf", config_dir=deluge_dir)
        except IOError, e:
            print "Can't open web ui config file: ", e
        else:
            password = raw_input("Enter new password: ")
            s = hashlib.sha1()
            s.update(config['pwd_salt'])
            s.update(password)
            config['pwd_sha1'] = s.hexdigest()
            try:
                config.save()
            except IOError, e:
                print "Couldn't save new password: ", e
            else:
                print "New password successfully set!"
    else:
        print "%s is not a directory!" % deluge_dir
else:
    print "Usage: %s <deluge config dir>" % (os.path.basename(sys.argv[0]))

现在启动deluge和webui

deluged
deluge-web --fork

重置后的密码为 deluge

修改rutorrent密码的方法

首先需要安装二个软件:

apt-get install apache2-utils mini-httpd

然后需要找到rutorrent密码管理的文件:

find / -name rutorrent_passwd

这是在整个系统中查找 rutorrent_passwd 文件。我这里查找到的路径是:

/etc/apache2/rutorrent_passwd

然后执行修改密码命令:

htpasswd /etc/apache2/rutorrent_passwd 2dan

上面的 2dan 就是你登录rutorrent的用户名
根据提示输入新密码并确认新密码,然后就可以了。

ruTorrent RSS订阅自动下载教程

首先登录PT站点,在右上角找到RSS图标,点击获取RSS链接,以CHD为例:
1.jpg
看上图,你可以只订阅部分内容,然后选择你感兴趣的内容打勾;也可以全站订阅,只需要保持默认的选项就可以了。然后点击生成RSS链接。见下图:
2.jpg

- 阅读剩余部分 -

为rutorrent 安装 filemanager 插件

进入 rutorrent 插件目录,默认位置 /var/rutorrent/rutorrent/plugins/

svn co http://svn.rutorrent.org/svn/filemanager/trunk/filemanager

这样就可以了,然后重启一下:

/etc/init.d/autodl_2dan restart

Wrong permissions on configuration file, should not be world writable!

今天在linux服务器上安装lnmp后,将wwwroot目录给了777权限,之后再次访问http://SERVER_IP_ADDRESS/phpmyadmin,出现这样的提示:

Wrong permissions on configuration file, should not be world writable!

原因是phpmyadmin要在755权限下才能正常访问。

读取-r 写入-w 执行-x
-rw------------- (600) — 只有所有者才有读取和写入的权限;
-rw--r------r--- (644) — 只有所有者才有读取和写入的权限;组群和其他人只有读取的权限;
-rwx------------ (700) — 只有所有者才有读取,写入,和执行的权限;
-rwx-rx----rx-- (755) — 所有者有读取,写入和执行的权限;组群和其他人只有读取和执行的权限;
-rwx-x-----x--- (711) — 所有者有读取,写入和执行权限,组群和其他人只有执行权限;
-rw--rw---rw-- (666) — 每个人都能够读取和写入文件;[请谨慎使用这些权限]
-rwx-rwx-rwx- (777) — 每个人都能够读取,写入和执行.[这种权限设置可能会很危险]