2024年2月14日

【XV6】 system calls

摘要: 代码:https://github.com/JasenChao/xv6-labs.git 使用GDB调试 安装risc-v的GDB 先安装依赖: sudo apt-get install libncurses5-dev python2 python2-dev texinfo libreadline- 阅读全文
posted @ 2024-02-14 19:03 未连接到互联网 阅读(30) 评论(0) 推荐(0) 编辑

【XV6】 Xv6 and Unix utilities

摘要: 代码:https://github.com/JasenChao/xv6-labs.git 运行xv6 实验环境使用的是Ubuntu 20.04,需要安装一些工具: sudo apt-get install git build-essential gdb-multiarch qemu-system-m 阅读全文
posted @ 2024-02-14 19:03 未连接到互联网 阅读(21) 评论(0) 推荐(0) 编辑

Python 中 print 函数的用法

摘要: 在 Python 中,可以使用print函数来打印一个变量或者一个字符串: print("My name is Alice") print(i) 如果需要字符串格式化来打印一句话中包含变量的内容,有几种常用的方法: 使用格式化字符串(f-string):在字符串前面加上字母"f",然后在字符串中使用 阅读全文
posted @ 2024-02-14 19:00 未连接到互联网 阅读(17) 评论(0) 推荐(0) 编辑

SSH 到 Git 时 Connection timed out

摘要: 问题出现 git仓库是使用ssh链接clone下来的,在push和pull到github时突然失效了,显示Connection timed out,ssh -T git@github.com一样不行 解决方案 编辑文件~/.ssh/config,添加以下内容 Host github.com Host 阅读全文
posted @ 2024-02-14 18:58 未连接到互联网 阅读(29) 评论(0) 推荐(0) 编辑

bits/libc-header-start.h: No such file or directory

摘要: 问题出现 在编译一个工程的时候,出现了报错 In file included from /usr/lib/gcc/x86_64-linux-gnu/9/include/stdint.h:9, from main.c:1: /usr/include/stdint.h:26:10: fatal erro 阅读全文
posted @ 2024-02-14 18:57 未连接到互联网 阅读(200) 评论(0) 推荐(0) 编辑

使用msmtp发送邮件

摘要: 最近需要在服务器上运行一些时间很长的命令,想让服务器自动通知a56爆大奖在线娱乐什么时候命令完成,通过命令结束后发送邮件给a56爆大奖在线娱乐来提醒。 安装 msmtp 和 mail # RedHat 系 sudo dnf install msmtp mailx # Debian 系 sudo apt install msmtp ma 阅读全文
posted @ 2024-02-14 18:54 未连接到互联网 阅读(47) 评论(0) 推荐(0) 编辑

通过注册表交换Ctrl键和CapsLock键

摘要: 频繁地使用左下角的Ctrl键对a56爆大奖在线娱乐的小拇指产生了非常大的负担,想把它和不常用但很容易按的CapsLock键交换。 先打开注册表,导航到HKEY_LOCAL_MACHINE -> System -> CurrentControlSet -> Control -> KeyBoard Layout。 右键新 阅读全文
posted @ 2024-02-14 18:51 未连接到互联网 阅读(43) 评论(0) 推荐(0) 编辑