为保证每一次系统重启后都能操作指定的USB设备,需要对USB端口进行映射绑定。 1.$lsusb 查看端口 ID 1a86:7523 表示usb设备的ID,ID由芯片制造商设置,可以唯一表示该设备。 1a86 usb_device_descriptor.idVendor 7523 usb_devic ...
分类:
系统相关 时间:
2020-05-26 20:40:51
阅读次数:
235
配置内核编译选项并编译内核 make defcon?g # Default con?guration is based on 'x86_64_defcon?g' make menucon?g # 打开debug相关选项 Kernel hacking > Compile-time checks and ...
分类:
其他好文 时间:
2020-05-26 18:33:02
阅读次数:
50
准备工作 配置和编译Linux内核 下载和解压Linux内核,此次实验使用的是5.4.34版本 使用make menuconfig来配置内核,主要配置以下几个选项来开启内核调试功能 Kernel hacking > Compile-time checks and compiler options > ...
分类:
其他好文 时间:
2020-05-26 15:34:28
阅读次数:
76
1.系统调用的概念 用户态与内核态: 32 位 Linux 进程地址空间: 系统调?概述: Linux的系统调?: 2.环境准备 编译选项: 编译内核并运行:由于还未挂载根文件系统,因此出现kernel panic。 制作根文件系统: 配置编译选项: 编写init脚本: 打包根文件系统镜像: fin ...
分类:
其他好文 时间:
2020-05-24 21:09:33
阅读次数:
78
https://blog.csdn.net/liigo/article/details/19249145 Rust运行时指南(官方文档翻译) A Guide to the Rust Runtime, by Alex Crichton and Brian Anderson 翻译:庄晓立(Liigo), ...
分类:
其他好文 时间:
2020-05-24 11:49:48
阅读次数:
173
第8章 Iptables与Firewalld防火墙。 1.在早期的Linux系统中,默认使用的是iptables防火墙管理服务来配置防火墙。 2.防火墙会从上至下的顺序来读取配置的策略规则,在找到匹配项后就立即结束匹配工作并去执行匹配项中定义的行为(即放行或阻止)。如果在读取完所有的策略规则之后没有 ...
分类:
系统相关 时间:
2020-05-24 00:30:05
阅读次数:
67
Ruby 提供了一整套 I/O 相关的方法,在内核(Kernel)模块中实现。所有的 I/O 方法派生自 IO 类。 类 IO 提供了所有基础的方法,比如 read、 write、 gets、 puts、 readline、 getc 和 printf。 本章节将讲解所有 Ruby 中可用的基础的 ...
分类:
其他好文 时间:
2020-05-23 18:10:31
阅读次数:
54
$sudo which iptables /usr/sbin/iptables说明有安装 如果没有安装,那么使用sudo apt-get install iptables 安装。 刚装机,是这个样子。 $sudo iptables -LChain INPUT (policy DROP)target ...
分类:
系统相关 时间:
2020-05-23 14:59:44
阅读次数:
101
第八章iptables和firewalld防火墙iptablesrhel5、rhel6、rhel7.0、7.1firewalld-------firewall-cmd--------命令行firewall-config------图形化tcp_wrappers网卡配置:编辑/etc/sysconfig/network-script/ifcfg-eno16777736(选择相关网卡)nmtui网络配
分类:
系统相关 时间:
2020-05-23 11:28:36
阅读次数:
59
一、linux服务端:
iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 873 -j ACCEPT
iptables -A INPUT -p tcp --dport 873 -j ACCEPT
vim /etc/rsyncd.paswd #少一个s
rsyncer:123
chmod ...
分类:
其他好文 时间:
2020-05-23 09:39:53
阅读次数:
93