所有插件都为网上收集的开源仓库插件
含:
vim
、cfdisk
、rsync
、git
、git-http
、usbutils
、pciutils
、lsof
、coreutils-nohup
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/base.sh)"
含:
golang
、erlang
、rust
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/dev.sh)"
- 安装zsh
# R4S
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/R4S/zsh.sh)"
# 360v6
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/360v6/zsh.sh)"
- 安装oh-my-zsh、zsh插件
# oh-my-zsh
sh -c "$(curl -sSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# plugins
# R4S
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/R4S/zsh-plugins.sh)"
# 360v6
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/360v6/zsh-plugins.sh)"
# theme - powerlevel10k
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc
提示类似符号
)
、(
等报错,请删除plugins(git)
行
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/neofetch.sh)" -s "-i"
默认账号密码:
admin
web:http://ip:8080
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/filebrowser.sh)"
web:
http://ip:8989
sh -c "$(curl -sSL https://raw.githubusercontent.com/gngpp/openwrt-packages/main/speedtest-go.sh)"
- acme
curl https://get.acme.sh | sh
- DDNSTO
sh -c "$(curl -sSL http://fw.koolcenter.com/binary/ddnsto/openwrt/install_ddnsto.sh)"
- Linkease
sh -c "$(curl -sSL http://fw.koolcenter.com/binary/LinkEase/Openwrt/install_linkease.sh)"
- alist nginx config
server {
listen 8080 ssl http2;
listen [::]:8080 ssl http2;
server_name xxx.com;
set $base /var/www/xx.com;
root $base/public;
# SSL
ssl_certificate /etc/pve/nodes/pve/pveproxy-ssl.pem;
ssl_certificate_key /etc/pve/nodes/pve/pveproxy-ssl.key;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
proxy_redirect off;
proxy_pass http://127.0.0.1:5244;
# 上传的最大文件尺寸
client_max_body_size 20000m;
}
}
- filebrowser nginx config
server {
listen 8888 ssl http2;
listen [::]:8888 ssl http2;
server_name xx.com;
set $base /var/www/xx.com;
root $base/public;
# SSL
ssl_certificate /etc/pve/nodes/pve/pveproxy-ssl.pem;
ssl_certificate_key /etc/pve/nodes/pve/pveproxy-ssl.key;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off;
proxy_pass http://127.0.0.1:8080;
# 上传的最大文件尺寸
client_max_body_size 20000m;
}
}
- docker run jellyfin
docker run -d --name jellyfin --privileged=true \
-v /extend/disk/jellyfin/config:/config \
-v /extend/disk/jellyfin/cache:/cache \
-v /extend/mnt/:/media \
-p 8096:8096 \
--device=/dev/dri/renderD128 \
--device /dev/dri/card0:/dev/dri/card0 \
--restart unless-stopped \
jellyfin/jellyfin
- docker portainer
docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /$PWD/portainer/data:/data portainer/portainer
- qinglong
docker run -dit \
-v $PWD/ql:/ql/data \
-p 5700:5700 \
--name qinglong \
--hostname qinglong \
--restart unless-stopped \
whyour/qinglong:latest
- 如果你路由空间不算大,建议把包安装在外置磁盘空间
echo "dest usb /mnt/opkg" >> /etc/opkg.conf
# 重启shell会重置,把下面这条放在`/etc/profile` 就可以保存了
# 注意`$PATH`是原来的变量值
export PATH=$PATH:/mnt/opkg/usr/bin:/mnt/opkg/usr/sbin
# 安装package时指定安装目录
opkg install git -d usb
- 直接扩容根分区
/
,根目录准备,确保使用以下命令来复制根文件系统,其中/dev/sda1
是挂载分区,注意格式化为ext4,执行完上面操作好,去挂载点保存好分区挂载配置后重启
mkdir -p /tmp/introot
mkdir -p /tmp/extroot
mount --bind / /tmp/introot
mount /dev/sda1 /tmp/extroot
tar -C /tmp/introot -cvf - . | tar -C /tmp/extroot -xf -
umount /tmp/introot
umount /tmp/extroot
- zerotier hosts example
192.168.194.1 openv6.inner.cn
192.168.194.2 pve.inner.cn
192.168.194.5 n1.inner.cn