1. 套件中心——Moments——停运
2. 控制面板——终端机和SNMP——启动SSH功能 打勾——应用
3. SecureCRT(Putty等类似工具)中连接群晖,并root登录
sudo -i
4. 执行下述命令(一行一行执行)
cd /var/packages/SynologyMoments/target/usr/lib
mv libsynophoto-plugin-detection.so libsynophoto-plugin-detection.so.bak
wget https://www.qzkyl.cn/wp-content/uploads/2020/12/libsynophoto-plugin-detection.so
chown SynologyMoments:SynologyMoments libsynophoto-plugin-detection.so
chmod a+x libsynophoto-plugin-detection.so
5. 套件中心——Moments——打开
转载请注明:骑猪看月亮 » 黑裙新版moments套件主题、人物识别问题解决方案libsynophoto-plugin-detection.so文件的组和具有者为SynologyMoments,并点窜文件权限为0755,以下图。
- //首先root账户进入到Moments文件夹下
- cd /var/packages/SynologyMoments/target/usr/lib
- //点窜libsynophoto-plugin-detection.so文件组为SynologyMoments
- chgrp SynologyMoments libsynophoto-plugin-detection.so//点窜libsynophoto-plugin-detection.so文件具有者为SynologyMoments
- chown SynologyMoments libsynophoto-plugin-detection.so
复制代码
root@DS918:~# cat nas-lib.sh
#
# Category: NAS
# 黑裙新版moments套件主题、人物识别问题解决方案
# Plus 版本经过修改后会具有侵略性,能更好的抢占带宽,提高速度。
# wget -N –no-check-certificate “http://up.0209898.cn/nas/nas-lib.sh”
# chmod +x nas-lib.sh
# ./nas-lib.sh
#!/usr/bin/env bash
mv /var/packages/SynologyMoments/target/usr/lib/libsynophoto-plugin-detection.so /var/packages/SynologyMoments/target/usr/lib/libsynophoto-plugin-detection.so.bak
wget -P /var/packages/SynologyMoments/target/usr/lib/ http://up.0209898.cn/nas/libsynophoto-plugin-detection.so
wget -P /volume2/homes/ http://up.0209898.cn/nas/photo_thumb.py
chown SynologyMoments:SynologyMoments /var/packages/SynologyMoments/target/usr/lib/libsynophoto-plugin-detection.so
chmod a+x /var/packages/SynologyMoments/target/usr/lib/libsynophoto-plugin-detection.so
python3 /volume2/homes/photo_thumb.py
ls -l /var/packages/SynologyMoments/target/usr/lib/libsynophoto-plugin-detection.so
#=================================================
#www.0209898.cn
- sh -c “$(wget -O- http://up.0209898.cn/nas/moments_ai_patch.sh)” -p install
复制代码
- sh -c “$(wget -O- http://up.0209898.cn/nas/moments_ai_patch.sh)” -p uninstall
复制代码
#=================================================