2021年9月7日星期二

xray 基于nginx一键脚本,直接访问域名=emby套域名https tls

ubuntu 20下测试OK

准备好域名,用xray一键脚本基于nginx的

bash <(curl -Ss https://raw.githubusercontent.com/paniy/Xray_bash_onekey/main/install.sh)

选择3

搭建好后

编辑 /etc/idleleo/conf/nginx/xray-server.conf


 location / 改成如下就行


        location /

        {

        # Proxy main Jellyfin traffic

        proxy_pass http://127.0.0.1:8096;

        proxy_set_header Host $host;

        proxy_set_header X-Real-IP $remote_addr;

        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_set_header X-Forwarded-Proto $scheme;

        proxy_set_header X-Forwarded-Protocol $scheme;

        proxy_set_header X-Forwarded-Host $http_host;

        

        # Disable buffering when the nginx proxy gets very resource heavy upon streaming

        proxy_buffering off;

        }



参考:
https://www.262235.xyz/index.php/archives/141/

2021年8月28日星期六

华擎j3455 暴风二期 PVE开启 直通 解决网卡无法直通

来源:

https://koolshare.cn/thread-166076-1-1.html

概要:因为华擎j3455开PVE直通后有些问题,多网卡变为一组导致无法直通
解决方法
基于PVE6.2(6.0的有点问题,5.3有点老)
http://download.proxmox.wiki/iso/proxmox-ve_6.2-1.iso

母鸡pve ssh要做一些操作,以及安装补丁




nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT那一行ctrl+k删除一行

添加下面一行

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on pcie_acs_override=downstream"



nano /etc/modules

添加下面4行

vfio

vfio_iommu_type1

vfio_pci

vfio_virqfd



#ssh输入

update-initramfs -u -k all


下面是pve 6.2 j3455直通所需文件

https://wwx.lanzoui.com/iXVNBta68tc

解压本zip里面文件到pve下面文件夹

cd /root/dpkg

ssh输入

dpkg -i *.deb

reboot

-----------------完成--------------------------------------

提供一个pve直通好使的openwrt img
https://wwx.lanzoui.com/ii2ILta6c9g

新建KM虚拟机,编号100

qm importdisk 100 /var/lib/vz/template/iso/openwrt-x86-64-generic-squashfs-combined-efi.img local-lvm

脱离原本硬盘,挂载新硬盘,脱离cdrom,设置启动项

挂载pci设备直通,一般是第二个网卡
先不用勾选开机启动,出问题可以插拔电源线恢复

多重启几次KM和pve检测



2021年7月1日星期四

rclone mount 挂载命令收录

nano /etc/crontab

开机自启动

@reboot root rclone mount --allow-other --dir-cache-time 48h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 5G --buffer-size 256M --umask 002 --cache-dir=/tmp --vfs-cache-mode writes gdrive:video /mnt/gdrive --daemon 


rclone mount --allow-other --dir-cache-time 48h --vfs-read-chunk-size 64M --vfs-read-chunk-size-limit 10G --buffer-size 512M --umask 002 --bind 192.168.1.132 --cache-dir=/volume2/TestHd/vfs --vfs-cache-mode writes --log-level DEBUG --stats 1m crsjone:/  /volume2/TestHd/crsj5



2021年5月12日星期三

群晖挂载世纪互联

 1:群晖开启ssh

2:ssh用群晖账号密码登陆后,sudo -i再输入一次密码,进入root

3:安装rclone

curl https://rclone.org/install.sh | sudo bash

4:世纪互联开API

空全局,重定向输入

http://localhost:53682

复制客户端ID

新增密码,复制密码

设置文件权限,输入file 打钩6个,管理员打钩

准备好sp site-id

win rclone 1.52魔改

https://wwx.lanzoui.com/iYFGYp1ktuf

win xshell或CMD进入到rclone文件夹后输入以下获得字符串

rclone authorize onedrive "28fd7b63-bf19-4cf1-8a76-e2a7c262d3e0" "M0eML~8td_N31.nxp__an7a76LpMLZT" --onedrive-is-21vianet-version=true


 rclone config挂载世纪互联需要API客户端和密码,字符串,site-id 。这几样上面都准备了

挂载成功后

假如群晖有共享文件夹s1,里面新建了空文件夹123

可用下面字段挂载世纪互联到123

rclone mount share1: /volume1/s1/123 --allow-other --allow-non-empty --daemon

实测电视通过nplayer 流畅播放SMB群晖里的世纪互联30G蓝光原盘


TG@leonseason

2021年4月23日星期五

GCP Debian 9 DD成 Windows 10

 


来源https://sunpma.com/137.html


开一台Debian9 机器

Debian/Ubuntu

  1. apt-get install -y xz-utils openssl gawk file wget

一键脚本(先看完下面文字)

  1. wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh --ip-addr 10.168.0.7 --ip-mask 255.255.255.0 --ip-gate 10.168.0.1 -dd 'https://oss.sunpma.com/Windows/Whole/Win10_LTSC_64_Administrator_nat.ee.gz'



红字填你的下面 圈起来这个



橙字,复制你的内部IP,例如10.168.0.7

把最后两位改成0.1,变成10.168.0.1


GCP输入完回车,提示block 9万多后会停止。然后机器等待1-1.5小时,

就可以用win自带远程协助连接了

点开始-输入远程-输入GCP公网IP

账户:Administrator 密码:nat.ee

2021年3月21日星期日

通过sh脚本方式使用cloudflare DDNS动态域名

 原文https://blog.natcloud.net/cf-ddns.html


下面本人操作概要:

cf新建一条A记录域名,IP 1.2.3.4,黄色云点成灰

wget  -N --no-check-certificate https://raw.githubusercontent.com/yulewang/cloudflare-api-v4-ddns/master/cf-v4-ddns.sh


chmod +x cf-v4-ddns.sh

nano cf-v4-ddns.sh


这脚本要改的地方有下面4个,其余不用变


#你的【Global API Key】

CFKEY=975bca44534******65204f


# CFUSER=cf登陆名

CFUSER=leon@gmail.com


# CFZONE_NAME=你的域名(顶级域名,非二级域名)

CFZONE_NAME=super.com


# CFRECORD_NAME=你的cf需要ddns的二级域名

CFRECORD_NAME=s7.super.com


执行

./cf-v4-ddns.sh

网页F5刷新,检查1.2.3.4是否变成你的公网IP


都OK的话,crontab -e计划任务添加一条

1 * * * * /root/cf-v4-ddns.sh >/dev/null 2>&1

每小时运行一次






2021年3月16日星期二

Windows 创建软连接-onedrive同步

想让Windows Onedrive 本地文件夹内的一个文件夹是其他地方路径,来完善自动同步


环境:D:\onedrive\ 是onedrive同步文件夹,且里面无otherfile这个文件夹

C:\Users\Administrator\Documents\WXWork是想onedrive顺便同步的文件夹


操作:

管理员模式进入cmd

mklink /d "D:\onedrive\otherfile" "C:\Users\Administrator\Documents\WXWork\WeDrive\"

在VPS上,把onedrive/google team drive 网盘 映射出webdav:8080 ( rclone )

1:pc rclone 挂载上网盘后,复制配置文件到vps上 vps输入下面临时建立webdav rclone serve webdav od: \   --addr 0.0.0.0:8080 \   --user admin --pass 'admin' \  ...