摘要: OpenWrt平台Samba报错 目录OpenWrt平台Samba报错Connection refusedinvalid argument Connection refused 具体报错如下: Unhandled error message: Failed to retrieve share lis 阅读全文
posted @ 2024-01-30 15:38 付时凡 阅读(393) 评论(0) 推荐(0)
摘要: Ubuntu安装tftp服务器 目录Ubuntu安装tftp服务器Ubuntu 14.04Ubuntu 16.04 Ubuntu 14.04 安装: sudo apt-get install tftpd-hpa tftp-hpa -y 安装成功后,修改其配置文件/etc/default/tftpd- 阅读全文
posted @ 2024-01-30 11:22 付时凡 阅读(278) 评论(0) 推荐(0)
摘要: 通过ping某个服务器,检测设备是否internet是连通的。 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include <fcntl.h> 阅读全文
posted @ 2024-01-29 16:21 付时凡 阅读(89) 评论(0) 推荐(0)
摘要: 分析一个基于C语言实现的IP冲突检测工具。 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <getopt.h> #include <arpa/inet.h> #defi 阅读全文
posted @ 2024-01-29 16:12 付时凡 阅读(174) 评论(0) 推荐(0)
摘要: OpenWrt之Samba使用 目录OpenWrt之Samba使用安装的packageblock设备操作添加Samba账号Luci页面配置参考 安装的package 这里支持fat32、exfat、ntfs等几种文件系统: luci-app-samba4 kmod-fs-ext4 kmod-fs-f 阅读全文
posted @ 2024-01-29 10:46 付时凡 阅读(1174) 评论(0) 推荐(0)
摘要: C语言基于面向对象的编程方法示例 原型声明: typedef struct _OBJECT_OPS { int (*get_name)(char *param); int (*set_name)(const char *param); int (*dump)(int level); } OBJECT 阅读全文
posted @ 2024-01-26 22:40 付时凡 阅读(30) 评论(0) 推荐(0)
摘要: tcpdump抓包指令 查看指令: tcpdump -h tcpdump version 4.9.1 libpcap version 1.9.1 (with TPACKET_V3) OpenSSL 1.1.1i 8 Dec 2020 Usage: tcpdump [-aAbdDefhHIJKlLnN 阅读全文
posted @ 2024-01-24 15:58 付时凡 阅读(227) 评论(0) 推荐(0)
摘要: Git如何提交空的文件夹 实测在仓库中,如果一个文件夹为空,即内部无文件,则无法正常被git add,而是被忽略。 为了正常添加这类空的文件夹,需要:在空文件夹下新建文件.gitkeep,这样Git便会添加它。 有个简单的脚本,可以批量添加空文件夹: #!/bin/bash main() { for 阅读全文
posted @ 2024-01-23 14:14 付时凡 阅读(1007) 评论(0) 推荐(0)
摘要: OpenWrt在WSL编译报错 目录OpenWrt在WSL编译报错1. 大小写不敏感2. Permission denied3. perl报错 根据大神的log:https://ryanchan.top/archives/compile-openwrt-with-wsl 记录编译的指令为: PATH 阅读全文
posted @ 2024-01-20 11:30 付时凡 阅读(852) 评论(0) 推荐(1)
摘要: 共享一份.vimrc配置文件。 set nocompatible " be iMproved, required set backspace=indent,eol,start filetype off " required " set the runtime path to include Vund 阅读全文
posted @ 2024-01-19 10:56 付时凡 阅读(21) 评论(0) 推荐(0)