ILD

build custom kernel module on linux
2024-11-15
最近在fedora 41上开发fuse文件系统。需要编译fuse内核模块,加一些调试信息。编译方法如下:1 确定内核版本$ uname -r6.11.4-301.fc41.x86_642 从国内清华镜像站克隆内核源码$ git clone https://mirrors.tuna.tsinghua.

build custom kernel for fedora 41
2024-11-18
由于工作需要调试内核,加点打印,本文讲述如何编译了一个自己的内核,并且安装1 下载内核源码repository:https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git branch:linux-6.11.y2 打fedora的patchre

repack initramfs on fedora 41
2024-11-18
最近在调试fuse,需要在启动的时候不加载fuse。可是initramfs里面加载了,于是需要修改initramfs。把fuse模块删除。1 解压主img:$ cp /boot/initramfs-6.11.8.img .$ mkdir img$ cpio -i -D img -F initramf

fedora core dump
2024-12-2
fedora 41 上 core pattern配置:$ cat /proc/sys/kernel/core_pattern|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h产生的core dump文件在:/var/lib/systemd/

change shell prompt
2025-1-7
PS1='\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\$ '或者不带颜色:PS1='\u@\h \w\$ 'https://serverfault.com/questions/4889/what-are-some-informative-and-useful-shel

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.