01 2024 档案

摘要:OpenWrt平台Samba报错 目录OpenWrt平台Samba报错Connection refusedinvalid argument Connection refused 具体报错如下: Unhandled error message: Failed to retrieve share lis 阅读全文
posted @ 2024-01-30 15:38 付时凡 阅读(269) 评论(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 付时凡 阅读(185) 评论(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 付时凡 阅读(72) 评论(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 付时凡 阅读(126) 评论(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 付时凡 阅读(693) 评论(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 付时凡 阅读(15) 评论(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 付时凡 阅读(99) 评论(0) 推荐(0) 编辑
摘要:Git如何提交空的文件夹 实测在仓库中,如果一个文件夹为空,即内部无文件,则无法正常被git add,而是被忽略。 为了正常添加这类空的文件夹,需要:在空文件夹下新建文件.gitkeep,这样Git便会添加它。 有个简单的脚本,可以批量添加空文件夹: #!/bin/bash main() { for 阅读全文
posted @ 2024-01-23 14:14 付时凡 阅读(817) 评论(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 付时凡 阅读(587) 评论(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 付时凡 阅读(10) 评论(0) 推荐(0) 编辑
摘要:Git Clone报错 具体报错如下: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights a 阅读全文
posted @ 2024-01-18 14:37 付时凡 阅读(1150) 评论(0) 推荐(0) 编辑
摘要:Ubuntu右键添加“打开终端” 只需要安装一个包即可: sudo apt-get install nautilus-open-terminal 阅读全文
posted @ 2024-01-18 14:25 付时凡 阅读(35) 评论(0) 推荐(0) 编辑
摘要:Ubuntu更新sources.list 无需区分Ubuntu的版本,通用的。 备份原有的: sudo mv /etc/apt/sources.list /etc/apt/sources.list.default 替换新的(假设新的文件为~/sources.list): sudo cp ~/sour 阅读全文
posted @ 2024-01-18 10:28 付时凡 阅读(155) 评论(0) 推荐(0) 编辑
摘要:OpenWrt新机的固件编译/定制 目录OpenWrt新机的固件编译/定制背景硬件参数软件修改新增profile设备树内存Flash/分区表无线接口有线接口GPIO刷机问题修复 背景 手里有一台QCA的IPQ4019的路由器,为TP-Link的Deco M9 Plus 2.0。 查了下OpenWrt 阅读全文
posted @ 2024-01-16 22:46 付时凡 阅读(931) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示