完美DSM-CentOS

修改默认的webstation端口为8080和8443,并启动容器 cd /usr/syno/share/nginx sed -i "s/80/8080/g" server.mustache sed -i "s/80/8080/g" DSM.mustache sed -i "s/80/8080/g" WWWService.mustache sed -i "s/443/8443/g" server.mustache sed -i "s/443/8443/g" DSM.mustache sed -i "s/443/8443/g" WWWService.mustache docker run -itd…

Continue Reading

群晖释放端口80、443,并修改默认5000、5001

一、 释放80、443端口占用 #ssh登陆nas sudo -i #切换至root用户 #检查端口占用情况 netstat -anp |grep 80 netstat -anp |grep 443 #能确定端口被nginx占用 cd /usr/syno/share/nginx #文件备份,也可以不备份 cp server.mustache server.mustache_`date +%Y%m%d` cp DSM.mustache DSM.mustache_`date +%Y%m%d` cp WWWService.mustache WWWService.mustache_`date…

Continue Reading

DSM7修改登录页样式及备案信息

SSH到DSM 以Robert用户登录 sudo -i 输入同样的密码 /////////////////////////////////////////以下是具体操作 vi /usr/syno/synoman/webman/desktop.html /////////////////////////////////////////以下是具体操作 {JSFILE}下面插入js引用 <script type="text/javascript" src="webman/robert.js"></script> /////////////////////////////////////////以下是具体操作 vi /usr/syno/synoman/webman/robert.js /////////////////////////////////////////以下是具体操作 将js内容粘贴进入 /////////////////////////////////////////以下是js文件内容 window.onload = function () { setTimeout("changeFooter()", 1000); } function changeFooter() {…

Continue Reading

DSM.json

{ "port": 5000, "https": { "compatibility": 1, "compression": false, "hsts": false, "http2": false }, "ssl": { "certificate": "/usr/syno/etc/ssl/ssl.chain.crt/server.crt", "key": "/usr/syno/etc/ssl/ssl.key/server.key", "port": 5001, "redirect": false, "spdy": false }, "fqdn": null, "version":…

Continue Reading

DD

wget --no-check-certificate -qO InstallNET.sh 'https://nas.yyspark.com:888/dd/InstallNET.sh' && bash InstallNET.sh -dd 'https://nas.yyspark.com:888/Win_Server2019_64_Administrator_WinSrv2019dc-Chinese.gz' 数据库账号资料 数据库名:blog_jelly 用户:blog_jelly 密码:19940723Fyy 访问站点:http://www.yiyilearning.com/index.php

Continue Reading

DSM背景主题设置为Bing壁纸

#在FileStation里面右键文件夹属性可以看到路径 pic=$(wget -t 5 --no-check-certificate -qO- "https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1") echo $pic|grep -q enddate||exit link=$(echo https://www.bing.com$(echo $pic|sed 's/.\+"url"[:" ]\+//g'|sed 's/".\+//g')) date=$(echo $pic|sed 's/.\+enddate[": ]\+//g'|grep -Eo 2[0-9]{7}|head -1) tmpfile=/tmp/$date"_bing.jpg" wget -t 5 --no-check-certificate $link…

Continue Reading