2024年11月30日星期六

openwrt 6300V2 USB无法显示的问题

lsusb and fdisk -l

There's a method to turn USB power on which is probably not persistent. I hope this will help you.

echo 0 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio0/direction
echo 1 > /sys/class/gpio/gpio0/value
echo 0 > /sys/class/gpio/unexport

At this time, you can add these code to /etc/rc.local for your convenience, which should be executed once the system init finished. But pay attention to the system upgrade which could overwrite this file. I will contribute a kernel patch in order to make this change persistent soon. You can mark this topic as [Solved] when your problem is solved.


2024年4月27日星期六

windown10开机背景好图收藏

 %UserProfile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets

目录下的文件改成JPG格式即可
 

2023年11月27日星期一

VPS DD LINUX

# Debian 与 Ubuntu
apt-get install -y xz-utils openssl gawk file
# CentOS 与 RedHat
yum install -y xz openssl gawk file wget


wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh

# 安装 debian 11 64位  -p指定密码
bash InstallNET.sh -d 11 -v 64 -a -p 123456 --mirror 'http://mirrors.ustc.edu.cn/debian/'

# 安装 debian 12 64位  -p指定密码
bash InstallNET.sh -d 12 -v 64 -a -p 123456 --mirror 'http://mirrors.ustc.edu.cn/debian/'

2023年11月9日星期四

How to install WSL on Windows 10 Enterprise LTSC


 Then, open a Powershell console as Administrator and download the .appx of your preferred distro:



Invoke-WebRequest -Uri https://aka.ms/wsl-debian-gnulinux -OutFile Debian.appx -UseBasicParsing
 Add-AppxPackage .\Debian.appx 

2023年5月1日星期一

windows 创建存储池,不支持该请求 0x00000032


解决方法,用管理员身份运行 PowerShell 输入以下命令,先查看物理磁盘状态

PS C:\Windows\system32> Get-PhysicalDisk

DeviceId FriendlyName         SerialNumber         MediaType   CanPool OperationalStatus HealthStatus Usage        Size
-------- ------------         ------------         ---------   ------- ----------------- ------------ -----        ----
2        WDC WD400BB-00JHA0   WD-WMAMC1388003      Unspecified False   OK                Healthy      Auto-Select ...GB
0        ST3808110AS          5LRDLM2E             Unspecified False   OK                Healthy      Auto-Select ...GB
1        Colorful SL300 160GB AA000000000000002468 SSD         False   OK                Healthy      Auto-Select ...GB


PS C:\Windows\system32> Get-PhysicalDisk -SerialNumber WD-WMAMC1388003 | Reset-physicalDisk
PS C:\Windows\system32> Get-PhysicalDisk -SerialNumber 5LRDLM2E | Reset-physicalDisk
PS C:\Windows\system32> Get-PhysicalDisk

DeviceId FriendlyName         SerialNumber         MediaType   CanPool OperationalStatus HealthStatus Usage            Size
-------- ------------         ------------         ---------   ------- ----------------- ------------ -----            ----
2        WDC WD400BB-00JHA0   WD-WMAMC1388003      Unspecified True    OK                Healthy      Auto-Select  37.27 GB
0        ST3808110AS          5LRDLM2E             Unspecified True    OK                Healthy      Auto-Select  74.53 GB
1        Colorful SL300 160GB AA000000000000002468 SSD         False   OK                Healthy      Auto-Select 149.05 GB

2023年4月4日星期二

docker on debian 11

apt update
apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt update
apt install docker-ce

openwrt 6300V2 USB无法显示的问题

lsusb and fdisk -l There's a method to turn USB power on which is probably not persistent. I hope this will help you. echo 0 > /sys/c...