2021年12月28日星期二

一个自动维护的 Onedrive(UWP 版)hosts 列表

前情

Onenote天下第一! 但是Onedrive` 的同步速度可太爆炸了. UWP 版要走代理要么设置 loopback,要么设置虚拟网卡,并不方便。
以下是自动维护的一个 hosts 列表。

地址

   https://onedrive-hosts.learningman.top

你可以在 https://onedrive-hosts.learningman.top/dns.cache 得到不含 <br> 的 hosts 列表,也许可以开发一个自动更新本机 hosts 的工具。

当前 Hosts

这个 hosts 每 60000 秒会更新一次

开源地址

GitHub:
Zxilly/OnedriveHostsGenerator


Microsoft 365 终结点


hosts示例文件:

127.0.0.1 cad.glodon.com

127.0.0.1 backup.lumion3d.net

127.0.0.1 license.lumion3d.net

127.0.0.1 backup.lumion3d.com

127.0.0.1 activate.lumion3d.com

127.0.0.1 license.lumiontech.net

127.0.0.1 upload.lumion3d.net

127.0.0.1 upload.lumion3d.com

23.76.235.216 contentstorage.osi.office.net

13.107.42.13 onedrive.live.com

20.190.144.164 login.live.com

131.253.14.229 skyapi.onedrive.live.com

13.107.42.12 d.docs.live.net

52.109.48.2 contentsync.onenote.com

52.109.48.27 hierarchyapi.onenote.com

52.109.56.48 ocws.officeapps.live.com

52.109.48.0 www.onenote.com

13.107.42.16 config.edge.skype.com

52.109.124.51 roaming.officeapps.live.com

52.109.48.29 pagecontentsync.onenote.com

23.76.235.212 api.onedrive.live.com

23.66.105.17 c1-onenote-15.cdn.office.net

13.107.42.12 docs.live.net

157.55.109.230 storage.live.com

20.198.162.76 skydrive.wns.windows.com

20.198.162.76 client.wns.windows.com

20.189.173.7 mobile.pipe.aria.microsoft.com

23.66.105.118 oneclient.sfx.ms

157.55.109.224 skydrivesync.policies.live.net

13.107.42.12 api.onedrive.com

13.107.42.12 public.bn.files.1drv.com

13.107.42.12 public.dm.files.1drv.com

23.76.227.99 cdn.onenote.net

31.13.75.14 ad.atdmt.com

117.18.232.200 officeimg.vo.msecnd.net

13.107.6.171 onenote.officeapps.live.com

52.98.85.194 substrate.office.com

    2021年12月27日星期一

    2021年12月26日星期日

    CHFS HTTP协议的文件共享服务器


    官方地址:http://iscute.cn/chfs

    命令行后台运行:
    nohup /usr/local/soft/chfs/chfs --file /usr/local/soft/chfs/chfs.ini &

    重新加载systemctl配置
    systemctl daemon-reload

    允许开机启动
    systemctl enable chfs.service

    systemctl方式启动
    systemctl start chfs.service

    systemctl方式重启
    systemctl restart  chfs.service

    systemctl方式停止
    systemctl stop chfs.service

    systemctl方式停止
    systemctl disable chfs.service

    查看状态
    systemctl status chfs.service

    chfs.service脚本:


    [Unit]
    Description=CHFS Service
    After=network.target

    [Service]
    Type=simple
    User=root
    Restart=on-failure
    RestartSec=5s
    ExecStart=/usr/local/soft/chfs/chfs --file=/usr/local/soft/chfs/chfs.ini
    ExecReload=
    ExecStop=

    [Install]
    WantedBy=multi-user.target

    Armbian 自编译固件

    原始作者:  https://www.right.com.cn/forum/thread-4053939-1-1.html

    编译作者:  https://www.right.com.cn/forum/thread-6628747-1-1.html

    初始:
    user:root
    password:1234

    Armbian_21.08.1_Arm-64_hirsute_current_5.10.77
    下载链接:https://cloud.189.cn/web/share?code=YZr6bamyeqEz
    Armbian_21.08.1_Arm-64_bullseye_current_5.10.70
    下载链接:https://cloud.189.cn/web/share?code=VFjMFfyYvyYj

    2021年12月19日星期日

    使用SoftEther搭建Server端


    系统更新:

    sudo apt-get update

    安装 make gcc g++ 编译软件,Ubuntu系统执行: 

    apt-get install make gcc g++  -y

    下载64 位执行文件:

    wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.38-9760-rtm/softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz

    解压缩:

    tar xvf softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz  tar xvf 
    切换到解压出来的目录中

    cd vpnserver  

    安装编译软件:

    apt install make
    apt install make-guile
    apt-get install make gcc g++  -y

    编译:

    make

    开启服务:

    ./vpnserver start

    将服务器加入到开机启动项中

    sudo vim /etc/rc.local
    在 exit 0 之前写入:
    /root/vpnserver/vpnserver start

    E: Sub-process /usr/bin/dpkg returned an error code (1)解决办法

     解决方法:

    现将info文件夹更名

    sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk

    新建一个新的info文件夹

    sudo mkdir /var/lib/dpkg/info

    安装修复

    sudo apt-get update

    sudo apt-get install -f 

    执行完上一步操作后,在info文件夹下生成一些文件,现将这些文件全部移到info.bk文件夹下

    sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info.bk

    把自己新建的info文件夹删掉

    sudo rm -rf /var/lib/dpkg/info

    恢复原有info文件夹,修改名字

    sudo mv /var/lib/dpkg/info.bk /var/lib/dpkg/info

    卸载不需要的软件

    sudo apt-get autoremove



    2021年12月8日星期三

    windows系统上安装.cab更新文件

    1.从Windows更新网站下载扩展名为.cab文件的wondows更新文件。

    https://www.catalog.update.microsoft.com/home.aspx

    打开网站在右侧搜索框输入更新补丁号搜索,选中相应系统架构的更新包进行下载。

    2.在任务栏的搜索框中输入“命令提示符”或cmd,然后单击“以管理员身份运行”,打开DOS窗口。

    3.由于下载的cab文件名称较长,为了便于浏览的使用,可以将它重命名一个较短的文件名,例如windows10-kb3154879-x86。

    4.在文件资源管理器中打开下载的cab文件所在的目录,按住Shift键右键单击cab文件,在弹出的菜单中选择“复制为路径”命令,并将其复制到命令提示符窗口中。现在,使用向左箭头键和Delete删除路径中出现的两个引号,这省去了手动输入整个路径的麻烦。

    5.最后在DOS窗口中看到的应该是这样的:

    DISM.exe /Online /Add-Package /PackagePath:"F:\网络下载\windows10.0-kb5007186-x64_fa3bf3175f56b9a8916793cffd054e0f65698610.cab"

    6.按Enter键,将开始安装cab更新文件。

    7.可以添加以下内容来对其进行优化:空格/NoRestart /quiet