随笔分类 -  linux

摘要:深入WSL与USB:教你如何编译 Linux 内核支持 USB 共享 https://cyrus-studio.github.io/blog/posts/深入wsl与usb教你如何编译-linux-内核支持-usb-共享/ 深入WSL与USB:教你如何编译 Linux 内核支持 USB 共享 阅读量 阅读全文
posted @ 2025-08-25 14:19 scott_h 阅读(293) 评论(0) 推荐(0)
摘要:Ubuntu Desktop 22.04 禁用自动更新 Ubuntu 的自动更新并不稳定,之前的一次推送更新了内核版本,稳定性影响比较大,禁用自动更新的方法如下: 1.在设置里禁用软件更新 2.关闭 unattended-upgrades 如果只禁用上面的更新,unattended-upgrades 阅读全文
posted @ 2025-07-31 12:02 scott_h 阅读(597) 评论(0) 推荐(0)
摘要:ubuntu apt install hwinfo hwinfo --h hwinfo --short start debug info libhd version 21.82 (x86-64) [7688] using /var/lib/hardware kernel version is 6.8 阅读全文
posted @ 2025-06-05 16:44 scott_h 阅读(40) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/aozhejin/p/16070187.html 一、.ko 文件介绍 .ko文件是kernel object文件(内核模块),该文件的意义就是把内核的一些功能移动到内核外边, 需要的时候插入内核,不需要时卸载。 二、优点 (1)这样可以缩小内核体积; 阅读全文
posted @ 2025-02-18 19:43 scott_h
摘要:https://blog.csdn.net/Wang20122013/article/details/116064435 1 前言 在调试Linux内核的时候经常会用到dmesg命令,常用的用法有: 1. 显示ring buffer内容 dmseg 2. 把ring buffer内容输出到文件 dm 阅读全文
posted @ 2025-02-18 19:37 scott_h 阅读(358) 评论(0) 推荐(0)
摘要:Linux x86-64 IOMMU详解(一)——IOMMU简介 原作者 C is My Best Friend 原文地址 https://blog.csdn.net/qq_34719392/article/details/114834467 全系列文章链接 Linux x86-64 IOMMU详解 阅读全文
posted @ 2025-02-18 19:13 scott_h
摘要:via https://www.cnblogs.com/love-DanDan/p/18401136 如何创建和管理自定义systemd服务 创建和管理自定义 systemd 服务是 Linux 系统管理中的一项重要技能。systemd 是一种初始化系统和服务管理器,广泛应用于现代 Linux 发行 阅读全文
posted @ 2025-02-17 19:28 scott_h 阅读(283) 评论(0) 推荐(0)
摘要:参考 linux 内核启动Initramfs与initrd 及其挂载 制作initramfs/initrd镜像 bing search linux how to decompress initrd.img file How to Extract initrd/initramfs to View Co 阅读全文
posted @ 2024-12-23 10:57 scott_h 阅读(753) 评论(0) 推荐(0)
摘要:查看 Linux 发行版名称和版本号的 8 种方法 via https://zhuanlan.zhihu.com/p/36253769 via: https://www.2daygeek.com/check-find-linux-distribution-name-and-version/ 作者:M 阅读全文
posted @ 2023-11-13 17:10 scott_h 阅读(94) 评论(0) 推荐(0)
摘要:0. 选用 VMWare 个人免费版player 配置网络 个人免费版player 网络连接 1.配置成=》【桥接模式】 2.勾选【复制网络连接状态】 ps. workstation 自带VMTools,可以拖拽,移动文件。 1. 安装samba 1.更新当前软件。 sudo apt-get upg 阅读全文
posted @ 2023-11-09 19:29 scott_h 阅读(71) 评论(0) 推荐(0)
摘要:在生产环境中测试 发现程序无法运行,所以要分析一下 ./mentester: /lib/libtinfo.so6: no uersion information available (required by ,/mentester) ./mentester' /lib/libncursesso.b: 阅读全文
posted @ 2023-11-08 22:02 scott_h 阅读(229) 评论(0) 推荐(0)
摘要://check gcc version, gcc already installed gcc -v g++ -v install g++ sudo apt-get install g++ install cmake and cmake-gui sudo apt-get install cmake s 阅读全文
posted @ 2023-11-04 17:54 scott_h
摘要:使用平台 linux 下载 http://valgrind.org/ 文档 http://valgrind.org/docs/manual/manual.html 博客 https://www.oschina.net/translate/valgrind memcheck https://blog. 阅读全文
posted @ 2019-05-24 10:17 scott_h 阅读(328) 评论(0) 推荐(0)
摘要:`df`命令查看挂在的U盘和硬盘,ssd 右边可以看到路径 阅读全文
posted @ 2018-10-07 14:39 scott_h 阅读(2093) 评论(0) 推荐(0)
摘要:"c++17 filesystem, regex 遍历目录" cpp include include include include include //linux 精确度s, us gettimeofday() include include include using namespace std 阅读全文
posted @ 2018-09-05 03:29 scott_h
摘要:"Linux(C/C++)下的文件操作open、fopen与freopen" open是linux下的底层系统调用函数,fopen与freopen c/c++下的标准I/O库函数,带输入/输出缓冲。 linxu下的fopen是open的封装函数,fopen最终还是要调用底层的系统调用open。 所以 阅读全文
posted @ 2018-09-04 19:32 scott_h 阅读(1982) 评论(0) 推荐(0)
摘要:"Linux时钟精度:毫秒?微妙?纳秒?" 阅读全文
posted @ 2018-09-04 18:07 scott_h 阅读(1267) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/lidp/archive/2010/03/02/1696447.html 一般下载一个网站目录 wget -c -nd -np -r [WebAddress] 如果想 断点续传(-c), 递归下载(-r) 只下载更新的内容(-N), wget -c -r 阅读全文
posted @ 2018-08-22 09:47 scott_h 阅读(2263) 评论(0) 推荐(0)
摘要:有下面几种常用选择: IBus拼音:sudo apt get install ibus pinyin IBUS五笔:sudo apt get install ibus table wubi 谷歌拼音输入法:sudo apt get install ibus googlepinyin Sun拼音输入法 阅读全文
posted @ 2018-07-31 14:15 scott_h 阅读(25424) 评论(0) 推荐(1)
摘要:sudo vim /etc/NetworkManager/NetworkManager.conf 将 修改成 可以通过ifconfig, ip address(推荐新版) 得到网卡名。 lo 本地loopback 回环地址名字 另外的是网卡名,我的是enp0s31f6 如果改成默认 dhcp ifa 阅读全文
posted @ 2017-10-19 15:08 scott_h 阅读(4801) 评论(0) 推荐(0)