黑威联重装后常用工具
开机自动执行脚本:https://avday.cn/post/14.html
crontab定时任务:https://blog.powersee.top/2023/05/qnap-crontab2/
vim /etc/config/crontab
crontab /etc/config/crontab && /etc/init.d/crond.sh restartentware安装:https://zhuanlan.zhihu.com/p/361025882
安装git:https://gist.github.com/mcandre/e5dfc4f1882d1925e8bee7b6586073d5
zsh安装(仅参考zsh安装部分,其Oh My Zsh没必要,过时了):https://blog.csdn.net/qq_37959246/article/details/121257861
在线安装oh-my-zsh:https://github.com/ohmyzsh/ohmyzsh
[可选]oh-my-zsh离线安装:https://github.com/CuSO4Gem/ohmyzsh-offline。
zsh推荐插件:plugins=(git zsh-completions zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting)
opkg install perl tmux coreutils-realpath
nginx加密
opkg install apache
htpasswd -c /share/Container/dockge_stacks/npm/apache2/.htpasswd czmdocker npm映射:- /share/Container/dockge_stacks/npm/apache2:/apache2
nginx配置里填写(npm的自定义配置里填):
auth_basic "Authorization required";
auth_basic_user_file /apache2/.htpasswd;vscode remote ssh
sudo setcfg LOGIN "SSH AllowTcpForwarding" TRUE
sudo setcfg LOGIN "SSH AllowAgentForwarding" TRUE
rm -rf ~/.vscode-server/vscode settings.json中
"remote.SSH.useFlock": falseopkg install gcc
opkg install procps-ng-ps
opkg install python3
opkg install coreutils-printenvln -s /share/CACHEDEV1_DATA/.qpkg/Entware/bin/ps /bin/ps
ln -s /share/CACHEDEV1_DATA/.qpkg/Entware/bin/printenv /bin/printenv
ln -s /share/CACHEDEV1_DATA/.qpkg/Entware/bin/zsh /bin/zsh使用xterm-256color
opkg install terminfovim .profile:
export TERMINFO=/share/CACHEDEV1_DATA/.qpkg/Entware/share/terminfo
export TERM=xterm-256color