duzhuo's-blog

学无止境

Hello guys,
We would like to inform you that we have decided to shut down our site.
The past 2 years have been very difficult for us - some of the people in our team died due to covid complications,
others still suffer the side effects of it - not being able to work at all.
Some are also fighting the war in Europe - ON BOTH SIDES.
Also, the power price increase in data centers in Europe hit us pretty hard.
Inflation makes our daily expenses impossible to bare.
Therefore we can no longer run this site without massive expenses that we can no longer cover out of pocket.
After an unanimous vote we’ve decided that we can no longer do it.
We are sorry :(
Bye

妈的 我用 AdBlock 把 RARBG 的广告屏蔽了 我真是个畜生 😭

Peace. 🥀

升级 wsl

  • 注意开启 windows update
  • wsl --update
  • wsl --version
    WSL version: 1.1.3.0
    Kernel version: 5.15.90.1
    WSLg version: 1.0.49
    MSRDC version: 1.2.3770
    Direct3D version: 1.608.2-61064218
    DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
    Windows version: 10.0.22621.525

开启 Systemd support

  • sudo nano /etc/wsl.conf

    [boot]
    systemd=true
  • ^O + ^X

  • wsl --shutdown

Enjoy !

环境

  • v2rayn version 5.39
  • wsl2 + Debian

v2rayN 设置局域网 socks5 / http proxy

  • core:基础设置中勾选允许来自局域网的连接和开启 Mux 多路复用 ( 推荐设置认证密码 )
  • 在选择节点窗口下方查看共享给局域网的端口

查看宿主机的 ip 和 wsl 的 ip

  • 获取宿主机 ip cat /etc/resolv.conf

  • 同时添加代理到 /etc/environment ~/.profile

    也可以添加到 ~/.bashrc ~/.zshrc

### http代理

export windows_host=`cat /etc/resolv.conf|grep nameserver|awk '{print $2}'`
export ALL_PROXY=socks5://{username}:{passwd}@$windows_host:{port}
export HTTP_PROXY=$ALL_PROXY
export http_proxy=$ALL_PROXY
export HTTPS_PROXY=$ALL_PROXY
export https_proxy=$ALL_PROXY
export no_proxy=127.0.0.1,.devops.com,localhost,local,.local,172.28.0.0/16

if [ "`git config --global --get proxy.https`" != "socks5://{username}:{passwd}@$windows_host:{port}" ]; then
            git config --global proxy.https socks5://{username}:{passwd}@$windows_host:{port}
fi
  • source /etc/environment&&source ~/.profile

测试连接

  • wget google.com

  • curl google.com

  • 有返回值说明正常

阅读全文 »

环境

更新环境

Debian11 + Docker

  • Linux duzhuo 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

  • Docker Compose version v2.17.2

  • Docker version 23.0.2, build 569dd73

  • apt-get update -y

  • apt-get install apt-transport-https software-properties-common ca-certificates curl gnupg lsb-release -y

  • sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

需要的 Docker 镜像

  • pengzhile/pandora

    docker pull pengzhile/pandora

  • nginx

    docker pull nginx

配置文件

tree

root@duzhuo:~/.pandora# tree
.
├── data
│   └── access_token.dat
├── docker-compose-pandora.yaml
├── docker-compose.yaml.bak
└── nginx
    ├── certs
    │   ├── cert.pem
    │   └── key.pem
    ├── htpasswd
    └── nginx.conf

3 directories, 7 files
root@duzhuo:~/.pandora# 

docker-compose.yaml

阅读全文 »

问题描述

  • 设备 : Swift SF314-512
  • 系统 : Windows11 22H2 22621.525

推送补丁 KB5023778 更新后出现进入桌面闪屏 无法加载桌面图标的问题

解决方法 卸载 KB5023778

  1. Win+Alt+Del 按住 Shift 点击重启
  2. 疑难解答 → 高级选项 → 卸载更新




准备

ClashX Pro 设置并添加规则

  • 开启 Enhanced mode

    • Enhanced mode Config → DNS mode → Mapping
  • 编辑 config.yaml

    proxies:
      - { name: NeteaseMusicUnlock, type: http, server: 192.168.1.2, port: 8080 }
    proxy-groups:
      - name: NeteaseMusic
    type: select
    proxies:
      - DIRECT
      - NeteaseMusicUnlock
    rules:
      - DOMAIN-SUFFIX,music.163.com,NeteaseMusic
      - DOMAIN-SUFFIX,music.126.net,NeteaseMusic
      - DOMAIN-SUFFIX,163yun.com,NeteaseMusic
      - DOMAIN-SUFFIX,api.iplay.163.com,NeteaseMusic
      - DOMAIN-SUFFIX,apm.music.163.com,NeteaseMusic
      - DOMAIN-SUFFIX,apm3.music.163.com,NeteaseMusic
      - DOMAIN-SUFFIX,interface.music.163.com,NeteaseMusic
      - DOMAIN-SUFFIX,interface3.music.163.com,NeteaseMusic
      - DOMAIN-SUFFIX,mam.netease.com,NeteaseMusic
      - DOMAIN-SUFFIX,hz.netease.com,NeteaseMusic
      - IP-CIDR,39.105.63.80/32,NeteaseMusic
      - IP-CIDR,45.254.48.1/32,NeteaseMusic
      - IP-CIDR,47.100.127.239/32,NeteaseMusic
      - IP-CIDR,59.111.21.14/31,NeteaseMusic
      - IP-CIDR,59.111.179.214/32,NeteaseMusic
      - IP-CIDR,59.111.181.38/32,NeteaseMusic
      - IP-CIDR,59.111.181.60/32,NeteaseMusic
      - IP-CIDR,59.111.160.195/32,NeteaseMusic
      - IP-CIDR,59.111.160.197/32,NeteaseMusic
      - IP-CIDR,59.111.181.35/32,NeteaseMusic
      - IP-CIDR,59.111.238.29/32,NeteaseMusic
      - IP-CIDR,101.71.154.241/32,NeteaseMusic
      - IP-CIDR,103.126.92.132/32,NeteaseMusic
      - IP-CIDR,103.126.92.133/32,NeteaseMusic
      - IP-CIDR,112.13.119.17/32,NeteaseMusic
      - IP-CIDR,112.13.122.1/32,NeteaseMusic
      - IP-CIDR,115.236.118.33/32,NeteaseMusic
      - IP-CIDR,115.236.121.1/32,NeteaseMusic
      - IP-CIDR,118.24.63.156/32,NeteaseMusic
      - IP-CIDR,193.112.159.225/32,NeteaseMusic
      - IP-CIDR,223.252.199.66/32,NeteaseMusic
      - IP-CIDR,223.252.199.67/32,NeteaseMusic

Reload Config And Enjoy !

问题描述

  • WMware版本 WMware Workstation PRO 16.2.3
  • 安装镜像版本:Windows7 x64
  • 自动安装的VMware Tools 版本为11.3.5
    出现提示Windows无法验证此驱动程序软件发布者
    导致出错无法安装

图示如下



解决办法

  • 安装 VMware Tools 11.0.0
  • 挂载iso镜像到虚拟机
  • 运行setup64.exe
  • 安装成功后重启

图示如下






相关下载链接与分流

VM-tools
VM-tools OneDrive分流

阅读全文 »

更新日志

  • update hexo-theme-next 7.8.0 → 8.12.3
  • add hexo-next-twikoo

hexo-tag-mmedia test

阅读全文 »

dota2反高台眼

常规的

直接插真眼

把鸡拉上高台

英雄技能的

VS

宙斯

阅读全文 »

Systemd 应用

搬运自:Systemd 入门教程:命令篇Systemd 入门教程:实战篇

Systemd 是 Linux 系统工具,用来启动守护进程,已成为大多数发行版的标准配置。

本文介绍它的基本用法,分为上下两篇。今天介绍它的主要命令,下一篇介绍如何用于实战。

1. 由来

历史上,Linux 的启动一直采用init进程。

下面的命令用来启动服务。

$ sudo /etc/init.d/apache2 start
# 或者
$ service apache2 start

这种方法有两个缺点。

一是启动时间长。init进程是串行启动,只有前一个进程启动完,才会启动下一个进程。

阅读全文 »
0%