duzhuo's-blog

学无止境

问题发现

使用 tabby 官方提供的 Debian repo 时 发现识别系统为 Kylin 导致无法使用脚本添加 repo

查看脚本信息发现检测的文件为 /etc/lsb-release

Screenshot_20231106_094050.png

解决办法

一番检索后找到了这个帖子 https://v2ex.com/t/906470 发现应该是优麒麟版微信在 /etc 里面拉屎 张小龙你吗死了

添加 repo 的脚本内容先检测是否存在 /etc/lsb-release 再查看二进制文件 lsb_release 所以识别到的系统是 Kylin

Screenshot_20231106_104227.png

查看原版 Debian 使用的的是 lsb_release 所以我们可以直接删除 /etc/lsb-release 这个文件 或者手动修改 /etc/lsb-release

DISTRIB_ID=Debian
DISTRIB_RELEASE=n/a
DISTRIB_CODENAME=trixie
DISTRIB_DESCRIPTION="Debian GNU/Linux trixie/sid"
阅读全文 »

查看当前无线网卡并启用

sudo iwconfig 查看得到我当前的无线网卡名称是 wlan0

Screenshot_20231030_170101.png

sudo ifconfig wlan0 up 启用无线网卡

Screenshot_20231030_171338_看图王1.png

扫描可用网络

sudo iwlist wlan0 scan 查找当前可用网络 结果过多的情况下使用 grep 找出 SSID

Screenshot_20231030_171426_看图王.png

使用 wpa_supplicant 连接网络

sudo wpa_passphrase {SSID} {PASSWD} > sudo /etc/wpa_supplicant/{SSID}.conf

阅读全文 »

version: '3'

networks:
  mysql-phpmyadmin:
    name: mysql-phpmyadmin
    driver: bridge

volumes:
  mysqldata:
    driver: local
    driver_opts:
      type: 'none'
      o: 'bind'
      device: '/home/duzhuo/docker/mysql/data'

services:
  mysql:
    image: mysql
    container_name: mysql
    environment:
      MYSQL_ROOT_PASSWORD: 123456
      MYSQL_DATABASE: database
      MYSQL_USER: duzhuo
      MYSQL_PASSWORD: 123456
    ports:
      - "33060:3306"
    volumes:
      - mysqldata:/var/lib/mysql
    networks:
      # Connect the mysql container to the mysql-phpmyadmin network and set the alias as mysql
      mysql-phpmyadmin:
        aliases:
          - mysql

  phpmyadmin:
    image: phpmyadmin
    container_name: phpmyadmin
    links:
      - mysql
    environment:
      PMA_HOST: mysql
      PMA_PORT: 3306
    ports:
      - 8081:80
    networks:
      # Connect the phpmyadmin container to the mysql-phpmyadmin network and set the alias as phpmyadmin
      mysql-phpmyadmin:
        aliases:
          - phpmyadmin

镜像与电脑型号

安装镜像 : debian-12.1.0-amd64-DVD-1.iso

目前更新为 testing

笔记本 : acer SF314-512-52TY

hw-probe : link

Screenshot_20230812_203700.png

问题

  1. 摄像头不工作
  2. 指纹不工作
  3. 无法查看风扇转速 ( Windows下一样 )

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 !

0%