自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(93)
  • 资源 (2)
  • 收藏
  • 关注

原创 ubuntu 22.04 install chrome

【代码】ubuntu 22.04 install chrome。

2023-10-20 15:29:18 217

原创 apt 阿里源

问题:无法安全地用该源进行更新,所以默认禁用该源。

2023-10-20 15:24:22 152

原创 qemu-system-x86_64 命令创建虚拟机,报gtk initialization failed的

因为是ssh命令行启动,增加--nographic# /opt/debug/bin/qemu-system-aarch64 -machine virt-6.2 -qmp tcp:localhost:1238,server,nowait --nographicconfigure accelerator virt-6.2 startmachine init startcpu init startadd rom file: virtio-net-pci.romload the kerneldevice init

2023-09-04 14:28:33 1815

原创 编译libvirt-6.2.0 configure: error: Build directory must be different from source directory

新建一个目录,进入新目录用绝对路径编译配置。

2023-08-25 10:40:59 143

原创 linux 扩展已有的分区

【代码】linux 扩展已有的分区。

2023-07-05 17:18:03 283

原创 linux sudo不输密码 pkexec

【代码】linux sudo不输密码。

2023-07-04 14:05:22 87

原创 linux kernel 提交patch checklist

`CONFIG_DEBUG_SLAB``, ``CONFIG_DEBUG_PAGEALLOC``, ``CONFIG_DEBUG_MUTEXES``, ``CONFIG_DEBUG_SPINLOCK``, ``CONFIG_DEBUG_ATOMIC_SLEEP``, ``CONFIG_PROVE_RCU`` and ``CONFIG_DEBUG_OBJECTS_RCU_HEAD`` 全部同时使用.b) 传递 ''allnoconfig'', 'allmodconfig''

2023-06-25 16:02:01 353

原创 git send-email 发送邮件

【代码】git send-email 发送邮件。

2023-06-25 15:23:00 1220

原创 git send-email BUG: The ‘Mail::Address‘ module is not here, but NO_PERL_CPAN_FALLBACKS was set!

安装libmailtools-perl。

2023-06-25 15:22:08 163

原创 PCIe x8 x16

一个x16 两个x8。

2023-06-21 16:14:42 55

原创 lstopo查看系统拓扑

lstopo<...>lstopo -slstopo -v。

2023-06-20 14:09:03 347

原创 [linux kernel] gcc __printf(a,b) __scanf(a,b) __cold __hot

a是格式化字符串的位置(index),b是要第一个要检查的参数的位置。__cold表示冷门,分支预测首先排除掉。__hot相反,用的多,优先。

2023-06-19 10:38:57 92

原创 TLB vs CPU cache

CPU Cache TLB 1. CPU cache stands for Central Processing Unit Cache TLB stands for Translation Lookaside Buffer 2. CPU cache is a hardware cache It is a memory cache that stores recent translations of virtual memory to physical me

2023-06-15 16:50:34 393

原创 cpu core thread socket

CPU 插槽(socket),也称为 CPU 插槽(slot),是计算机硬件中的一个组件,在微处理器和印刷电路板 (PCB) 之间提供机械和电气连接。它允许您放置和更换中央处理器,而无需焊接。此功能可以方便地升级或更换计算机系统中的 CPU。

2023-06-15 11:33:21 716

原创 virsh create Could not open ‘xxx-arm64.iso‘: Permission denied

重启libvirtd服务 systemctl restart libvirtd。

2023-06-14 10:59:01 154

原创 virt-manager 创建远程连接qemu/kvm失败

安装图形化ssh交互工具即可。问题原因:没有输入密码。

2023-06-09 18:00:00 406

原创 kvm系列:3、虚拟化架构kvm架构

这种模型中,物理资源是由宿主机操作系统管理,宿主机操作系统是传统的操作系统,如Linux,Windows等,宿主机操作系统不提供虚拟化能力,在这种模型中,VMM被看做是一个完备的操作系统,同时还具备虚拟化功能,VMM直接管理所有的物理资源,包括处理器,内存和I/O设备等。,包括:客户机的创建、虚拟内存的分配、CPU执行模式的切换、vCPU寄存器的访问、vCPU的执行。,实现处理器,内存和I/O设备的模拟,这种模型的虚拟化实现有KVM、Virtual Box等。Hypervisor模型。

2023-06-09 14:41:13 306

原创 qemu系列:其一 源码编译

会安装在/usr/local/bin /usr/local/share 目录下,原有的在/usr/bin /usr/share目录下不受影响。3、make install | tee make-install.log 安装替换到/usr/local目录。可以使用which qemu-io来查看当前生效的二进制。1、./configure 确保kvm选项yes。2、 make -j 32 编译。

2023-06-08 11:23:41 226

原创 kvm系列:1、如何编译

kvm编译过程步骤及常见问题解决方法

2023-06-08 08:55:22 710

原创 内核编译make bzImage 错误Unsupported relocation type: R_X86_64_PLT32 (4)

对于x86_64,不支持R_X86_64_32重定位,因为必须是 PIC。这表明 binutil 版本应该有问题,需要降级?

2023-06-07 17:27:57 434

原创 qemu/kvm virt-manager 连接到图形控制台出错:Error opening Spice console, SpiceClientGtk missing

重启virt-manager即可。

2023-06-07 16:51:40 805

原创 libvirt virt-install指令详解

您可以使用 virt-install 命令创建虚拟机,并从命令行在这些虚拟机上安装操作系统。virt-install可以交互方式使用,也可以作为脚本的一部分来自动创建虚拟机。如果您使用的是交互式图形安装,则必须在运行 virt-install 之前安装 virt-viewer。此外,您可以使用带有 kickstart 文件的 virt-install 启动虚拟机操作系统的无人值守安装。--memory 替换原有的--ram, 单位M。

2023-06-07 16:24:15 987

原创 kernel compile内核编译 -> cc1: error: code model kernel does not support PIC mode

kernel compile内核编译 cc1: error: code model kernel does not support PIC mode

2023-06-07 15:19:43 288

原创 virt-install 使用问题

1、镜像操作permission denied。添加内容如下,这样root就有操作的权限了。#vrish list查看虚拟机运行情况。2、需要安装virt-viewer。

2023-06-07 14:22:49 636

原创 sudo 不输入密码

添加一行,设置不输入密码,可以直接用用户名替换$USER。普通用户直接编辑sudoers文件。

2023-06-06 17:49:38 93

原创 Qemu vs virtualbox

QEMU Pros:QEMU Cons: VirtualBox Pros:VirtualBox Cons:

2023-05-31 17:58:20 665

原创 linux 设置查看环境变量

export ARCH=arm64printenv ARCH

2023-05-18 12:00:46 136

原创 [linux kernel]内核网络ptype_all

【代码】[linux kernel]内核网络ptype_all。

2023-05-12 17:59:36 100

原创 [Linux kernel][编译器]内核__read_mostly

读多写少,放在.data.read_mostly段。

2023-05-09 11:35:17 405

原创 sqlCipher编译记录

环境:centos7.9gcc 4.8准备工作:安装tcl编译:$ ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \ LDFLAGS="-lcrypto"$ make

2021-10-27 15:22:00 126

原创 busybox编译报错undefined reference to `stime‘ make: *** [Makefile:716: busybox_unstripped] Error 1

上库记录:https://git.busybox.net/busybox/patch/?id=d3539be8f27b8cbfdfee460fe08299158f08bcd9bug:https://bugs.gentoo.org/708350原因:glibc不再使用stimeAs stime has been removed from glibc-2.31 coreutils/date.c | 6 +++++- libbb/missing_syscalls.c

2021-01-31 22:55:11 4345 1

原创 ubuntu 虚拟机xrandr: Failed to get size of gamma for output default

ubuntu16.04 安装完显卡驱动后分辨率固定640x480 解决 :打开:sudo gedit /etc/default/grub 搜索:#GRUB_GFXMODE=640x480 编辑:640x480改成你想要的分辨率,并取消前面的# 例如:GRUB_GFXMODE=1024x768保存:点击右上角保存 更新:sudo update-grub 重启https://olinux.net/xrandr/https://technical-tips.com/blog/softw

2021-01-20 17:25:35 3020

原创 【shell】判断文件中是否存在特定字符串,根据结果做不同处理

grep -q "Hello World" test && echo "exist" || echo "not exist"如果test文件中存在"Hello World",则执行echo “exist”否则执行echo "not exist"

2020-12-08 15:51:47 2706

原创 2020-12-07 HowTo: Check If a String Exists

https://stackoverflow.com/questions/7522712/how-can-i-check-if-a-command-exists-in-a-shell-scripthttps://www.shellhacks.com/check-if-string-exists/https://www.unix.com/shell-programming-and-scripting/259572-check-if-string-exists-file.htmla="he..

2020-12-07 14:32:32 81

原创 【libcurl】调整CURL收包大小阈值

libcurl 默认可接受的报文大小限制多方查找,新版本中以下方式可以调整收包大小阈值:CURLOPT_BUFFERSIZE explainedNAMECURLOPT_BUFFERSIZE - set preferred receive buffer sizeSYNOPSIS#include <curl/curl.h>CURLcode curl_easy_setopt(CURL *handle, CURLOPT_BUFFERSIZE, long size);.

2020-11-12 17:24:54 3414

原创 libcurl 默认可接受的报文大小限制

默认最大为 CURL_MAX_WRITE_SIZE (16kB)

2020-11-12 15:27:34 1240

原创 【libcurl】using libcurl

using libcurlGeneral hints and suggestions to consider when using libcurl in your applications are gathered here.Language-specific docs are found on thelibcurl front page Check the full guide to theC API Learn from our collection ofsource code exa...

2020-10-30 11:12:41 88

原创 【libcurl】CURLOPT_CAPATH CURLOPT_CAINFO

CURLOPT_CAPATH: If you have a CA cert for the server stored someplace else than in the * default bundle, then the CURLOPT_CAPATH option might come handy for * you.https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.htmlCURLOPT_CAP...

2020-10-30 10:34:46 1712 1

原创 安全原则

默认安全原则,只把信任的 确保安全的放入白名单,其他的都是黑名单

2020-10-24 23:27:07 277

原创 【linux shell编程】”未找到命令“

自定义变量赋值语句两侧不能有空格不能这样:A = 1要这样:A=1

2020-06-17 21:41:56 1844

linux-1.0.0源码

Linux-1.0源码,Linux内核源码,linux-v1源码,Linux源码

2019-06-18

linux-0.11.7z

linux-0.11源代码,linux kernel 0.11源码,Linux源码

2019-06-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除