11 2021 档案
摘要:ubuntu18.04配置linux0.12编译环境 1. 下载源码 git clone https://gitee.com/roverq/linux-0.12.git ~/ 2. 配置环境 cd ~/linux-0.12/src/code ./setup.sh 3. 配置英文键盘(默认为芬兰键盘,
阅读全文
摘要:安装与配置zsh 查看是否安装有zsh 安装zsh 切换shell为zsh 查看当前shell 配置zsh apt安装zsh 查看是否安装有zsh cat /etc/shells 安装zsh sudo apt install zsh 切换shell为zsh chsh -s %(which zsh)
阅读全文
摘要:samba服务 samba服务介绍 samba是一种能够使linux系统和windows系统实现文件共享的服务,Linux作为服务器 ,windows作为客户端访问linux中共享的文件目录。 在windows中可以直接修改linux中的文件 samba服务安装与配置 查看samba服务是否安装 s
阅读全文
摘要:ubuntu18.04服务器 配置静态ip 1. 查看网卡名 ifconfig 2. 配置静态ip ip配置文件:/etc/netplan/***.yaml sudo vim /etc/netplan/***.yaml 添加以下内容,(注意冒号后面的空格) network: ethernets: e
阅读全文
摘要:1. 添加系统环境变量:SSLKEYLOGFILE 2. 打开chrome访问一次目标https网站,访问过后目标网站的相关ssl信息会保存在系统变量设置的文件中 3. 设置wireshark,编辑->首选项->Protocols->TLS,选择,(Pre)-Master-Secret log fi
阅读全文
摘要:共享内存-进程间通信 基本流程 创建/打开 一块共享内存空间 将共享内存映射到用户进程空间 操作 解除映射 销毁共享内存 创建共享内存源码 #include <stdio.h> #include <sys/shm.h> #include <unistd.h> #include <string.h>
阅读全文
摘要:无名管道源码 #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> int main() { int fd[2]; char buf[1024]; memset(buf,'\0',sizeof(bu
阅读全文
摘要:linux多线程 1. 头文件 <pthread.h> 2. 编译 gcc -o test test.c -lpthread 3. 变量 pthread_t pthread_cond_t pthread_mutex_t 4. 函数 pthread_create pthread_join pthrea
阅读全文
摘要:交叉编译tcpdump 准备 确认目标平台:arm-linux, mips-linux 确认目标编译链:***-gcc 1. 下载tcpdump源码和libpcap源码 tcpdump libpcap 2. 解压 tar -zxvf tcpdump-4.99.1.tar.gz tar -zxvf l
阅读全文