-
Notifications
You must be signed in to change notification settings - Fork 392
Tips | 一些技巧
Aniverse edited this page Jul 15, 2020
·
1 revision
本文中,deluged 缩写 de,deluge-web 缩写 dw,qbittorrent 缩写 qb,transmission 缩写 tr,rtorrent 缩写 rt,flexget 缩写 fg.
主用户是指第一次运行脚本时输入的用户。
如果你启用了 alias(基本默认启用,即 do some system tweaks),你可以直接使用脚本预设的 alias;如果你先前安装时没启用,你可以输入 . s-alias 1
在当前 SSH 环境中临时启用 alias(退出当前 SSH 即失效)。临时启用 alias 成功时会有Customed alias is enabled
的提示信息。
基本用法
a = 开某个程序
b = 关某个程序
c = 查看某个程序当前的状态
r = 重启某个程序 (r=restart)
l = 查看某个程序的日志(不是所有程序都有日志可以查看)(l=log)
s = 用 nano 编辑某个程序的配置文件(不是所有程序都支持)(s=settings)
具体举例如下
dea = 运行 Deluge
qbb = 关闭 qBittorrent
trc = 查看 Transmission 的运行状态
rtr = 重启 rTorrent
dwl = 查看 deluge-web 的日志
fgs = 编辑 FlexGet 的配置文件
每个软件的脚本的命名都是该软件缩写的叠词,如 FlexGet 缩写为 fg,脚本名就是 ffgg
目前已经开发了的脚本有:ddee
、ddww
、ttrr
、qqbb
、ffgg
这些脚本都是在使用 root 账号的情况下考虑的,非 root 用户没有权限操作其它用户
软件界面
root@MySeedbox:~# qqbb
Usage: qqbb [action] [username]
Actions:
a Start qBittorrent
b Stop qBittorrent
c Check qBittorrent status
l View qBittorrent's log
r Restart qBittorrent
s Edit qBittorrent's configuration file
x Enable qBittorrent's auto-start after reboot
y Disable qBittorrent's auto-start after reboot
qqbb r10006 (2020.07.15)
User aniverse
Version qBittorrent 4.2.5
Config /home/aniverse/.config/qBittorrent/qBittorrent.conf
Logfile /home/aniverse/.config/qBittorrent/qbittorrent.log
Torrents /home/aniverse/.local/share/data/qBittorrent/BT_backup
WebUI Port 2017
Web http://62.210.82.155:2017
root@MySeedbox:~# ffgg
Usage: ffgg [action] [username]
Action:
a Start FlexGet
b Stop FlexGet
c Check FlexGet status
l View FlexGet's log
r Restart FlexGet
s Edit FlexGet's configuration file
x Enable FlexGet's auto-start after reboot
y Disable FlexGet's auto-start after reboot
ffgg r10005 (2020.07.15)
User black
Version FlexGet 3.0.31
Config /home/aniverse/.config/flexget/config.yml
Logfile /home/aniverse/.config/flexget/flexget.log
Plugin /home/aniverse/.config/flexget/plugins
WebUI Port 6566
Web http://62.210.82.155:6566
详细说明
a = 开某个程序
b = 关某个程序
c = 查看某个程序当前的状态
l = 查看某个程序的日志
r = 重启某个程序
s = 用 nano 编辑某个程序的配置文件
x = 开启这个程序的开机自启
y = 关闭这个程序的开机自启
u = 查看这个脚本的使用说明,以及该软件的相关配置信息
User 当前脚本操作的用户名
Version 软件的版本号
Config 软件的配置文件路径
Logfile 软件的日志文件路径
Torrents BT 客户端默认的 torrent 文件保存路径(ddee/ttrr/qqbb 专属)
Plugin FlexGet 第三方插件的存放路径(ffgg 专属)
WebUI Port 软件的 WebUI 端口号
Web 软件的 WebUI 网址
各个软件的叠词脚本都可以自动识别脚本的主用户,如果你操作的是主用户则不需要输入用户名
ddee a = 开启主用户的 deluge
ffgg y = 关闭主用户的 FlexGet 的开机自启
qqbb l ghost = 查看用户 ghost 的 qBittorrent 的日志
ttrr b bruno = 关闭用户 bruno 的 Transmission
目前 hezi
脚本还很初级,更多功能还在添加中
hezi gengxin 更新 inexistence 脚本到最新版
hezi buchong 第一次运行 inexistence 脚本时某个软件没装,可以用这个命令来安装
如果你安装了 FileBrowser,你可以在用户目录的 inexistence 文件夹里找到 log 和 config 两个文件夹
log 文件夹里硬链了各个软件的日志,config 文件夹里硬链了各个软件的配置文件,你可以直接在 FileBrowser 中浏览/编辑这些文件