摘要: 方法1: pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 方法2: 创建配置目录(如果不存在) mkdir -p ~/.pip 编辑配置文件 cat > ~/.pip/pip.conf << EOF [ 阅读全文
posted @ 2026-05-13 13:33 slark_yuxj 阅读(3) 评论(0) 推荐(0)
摘要: ![image](https://img2024.cnblogs.com/blog/2939246/202604/2939246-20260417103702011-2110911318.png) ![image](https://img2024.cnblogs.com/blog/2939246/202604/2939246-20260417103717178-1629985860.png) ![ 阅读全文
posted @ 2026-04-17 10:37 slark_yuxj 阅读(7) 评论(0) 推荐(0)
摘要: 安全的禁用 glamor 方法 只禁用 glamoregl 模块,保留原有的显卡驱动和加速设置。 创建更简单的配置文件 sudo vim /etc/X11/xorg.conf.d/99-disable-glamor-safe.conf 内容只有: Section "Module" Disable " 阅读全文
posted @ 2026-04-15 16:41 slark_yuxj 阅读(14) 评论(0) 推荐(0)
摘要: Linux的KVM虚拟机虚拟网络‘default’NAT未激活 解决方法: //查看是否开启 sudo virsh net-list --all //开启网络 sudo virsh net-start --network default //网络default标记为自动启动 sudo virsh n 阅读全文
posted @ 2024-12-12 16:34 slark_yuxj 阅读(357) 评论(0) 推荐(0)
摘要: git 统计个人提交代码行数 git log --author="user" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 + $2 } END { printf "added lines: %s, rem 阅读全文
posted @ 2024-06-13 11:30 slark_yuxj 阅读(58) 评论(0) 推荐(0)
摘要: ![](https://img2024.cnblogs.com/blog/2939246/202405/2939246-20240511173035072-1695207173.png) 阅读全文
posted @ 2024-05-11 17:31 slark_yuxj 阅读(22) 评论(0) 推荐(0)
摘要: obj-m:=hds.o #根据make的自动推导原则,make会自动将源程序hds.c编译成目标程序hds.o。 #所有在配置文件中标记为-m的模块将被编译成可动态加载进内核的模块。即后缀为.ko的文件。 CURRENT_PATH:=$(shell pwd) #参数化,将模块源码路径保存在CURR 阅读全文
posted @ 2024-05-06 13:38 slark_yuxj 阅读(43) 评论(0) 推荐(0)
摘要: tasks.json { "version": "2.0.0", "tasks": [ { "taskName": "shell", // 任务名称,与launch.json的preLaunchTask相对应 "command": [ "export PKG_CONFIG_PATH=/usr/loc 阅读全文
posted @ 2024-04-28 17:08 slark_yuxj 阅读(57) 评论(0) 推荐(0)
摘要: Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006) https://zhuanlan.zhihu.com/p/424569389 阅读全文
posted @ 2024-04-28 17:08 slark_yuxj 阅读(310) 评论(0) 推荐(0)
摘要: 通常ls列出的文件,想直接管道通过rm -rf删除是无效的.这时就要配合命令xargs使用了: 例如: 按时间排序,删除最后的10个文件 ls -t | tail -10 | xargs rm -rf 当然,也可以用 ls -lt | tail -100 | awk '{ print $9 }' | 阅读全文
posted @ 2024-04-28 17:07 slark_yuxj 阅读(486) 评论(0) 推荐(0)