ILD

controlling terminal
2024-8-8
每个进程可以有控制终端,通常从交互式shell启动的程序,它的标准输出和标准错误输出到控制终端,它的标准输入从控制终端读取输入。控制终端收到CTRL+C等按键时,会发送信号给控制终端前的端进程组(foreground process group)。注意是发给group,因为前端进程可能有多个,比如

win32 support drag file into app
2024-8-12
windows shell api封装好接口了。1 开启drag file支持调用 DragAcceptFiles(hwnd, TRUE),表示要支持drag file。这样系统才会给你发消息。2 拖拽文件到窗口,将收到 WM_DROPFILES 消息。3 获取文件路径在WM_DROPFILES中

debian has merge /bin /sbin/ /lib to counterparts below /usr/
2024-8-16
最近在阅读debian handbook的时候,发现debian系统,已经没有 /bin /sbin /lib目录,这3个目录是符号链接,指向/usr下面对应的目录。yuanjp@debian:~$ ls / -ltotal 68lrwxrwxrwx 1 root root 7 Aug

debian list all required package
2024-8-22
我们知道,required优先级的包,是构建minimal system必要的包,那么有哪些包属于required呢。搜索发现,貌似没有现成的命令可以查看,apt search只支持匹配package name和description。所有package的metadata信息,都放在一个文件了。在本

functionfs usb gadget communicate with usb host tx/rx size
2024-8-24
本文写了一个demo程序,来验证usb gadget和usb host通信时,收发数据包的情况。如何分包,buffer大小等。usb gadget,通过读写epX文件。usb host使用libusb异步通信。device -> hostusb gadget发送数据,host接收数据1 rx buf

install debian 12 to qemu aarch64 machine
2024-8-26
本文试着用qemu安装一个debian 12系统。windows上msys2安装mingw64 qemu包 $ pacman -S mingw-w64-x86_64-qemu下载debian 12 aarch64的安装iso 从任何一个debian-cd镜像站下载iso文件,比如

Build an debian rootfs for aarch64
2024-9-4
【1】debian from scratch. https://github.com/scottwilliambeasley/debian-from-scratch【2】How to setup the Debian Linux image from scratch. https://mvallim

linux special file permissions: setuid, setgid, sticky bits
2024-9-5
Normal file permissions 我们平常接触的文件权限是3个8进制数:分别表示,owner user、owner group、others的读、写、执行权限。比如7557是4+2+1,表示文件所有者,有读、写、执行权限。5是4+1,表示文件所在组,有读和执行权限。5是4+1,表

Logical Volume Manage (PV &VG)
2024-9-11
Logical Volume ManagerLVM是一个device mapper框架,用来支持在多个磁盘或分区上建立逻辑分区。当前的实现是LVM2logical volumes有下列好处Flexible capacityResizeable storage poolsdisk stripingmi

Logical volume manager (LV)
2024-9-11
Logical VolumesLVM支持3种LV。linear LVstriped LVmirrored LV线性就是没有RAID功能,直接扩容多个PV。striped相当于RAID0,数据分片存储到多个PV上,可以提升并发IO能力。mirrored相当于RAID1。create logical v

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