自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (1)
  • 收藏
  • 关注

原创 Windows 10/11【家庭版】设置本地账户密码永不过期的方法

Windows 10/11【家庭版】设置本地账户密码永不过期的方法wmic useraccount where "Name='你要设置的账户名'" set PasswordExpires=false

2022-02-08 10:29:59 16925

原创 基于Strongswan的IPSec部署

IPSec VPN部署1. 简介​ IPSec全称Internet Protocol Security,是通过对IP协议的分组进行加密和认证来保护IP协议的网络传输协议集,IPSec的主要用途之一就是VPN。要想了解IPSec VPN原理可以参考IPSecVPN.ppt。2. strongswan​ strongswan是基于IPSec的VPN解决方案,它是一款开源软件,支持Linux 2

2020-07-30 16:48:13 12940 1

转载 Linux平台查看、格式化、(开机自动)挂载未使用的磁盘空间

1. 引言下述命令与操作转自以下文章,在 Centos7 x64 上测试通过:centos 硬盘中未使用空间进行逻辑分区 挂载使用Centos7挂载新硬盘CentOS7设置开机自动挂载硬盘在此处收集整理并记录,方便日后查询,侵权立删!2. fdisk 部分命令说明命令:fdisk <disk>[root@ecs-centos7 ~]# fdisk /dev/vdaW...

2020-03-20 15:04:15 1446

原创 网页加载缓慢、卡顿,但PING正常的问题记录

问题描述

2020-02-27 10:10:34 9904 4

原创 使用OpenSSL库函数测试AES-CCM加密算法

使用OpenSSL库函数测试RFC 3610的AES-CCM加密算法CCM(Counter with CBC-MAC)OpenSSL的AES-CCM加密算法库函数测试RFC 3610的AES-CCM加密算法CCM(Counter with CBC-MAC)CCM(Counter with CBC-MAC) 定义在 RFC 3610 中,是一个在AES算法基础上发展出的算法,主要应用在无线安全领...

2019-08-09 09:40:17 4183 1

原创 Linux平台Core Dump分析段错误

Linux平台通过core dump分析段错误当Linux平台碰到段错误(Segmentation fault)的时候,可以通过开启core dump,让其产生core dump文件。下面是在ubuntu 18.08使用core dump文件快速定位段错误的例子1. 开启core dump$ echo &amp;amp;amp;quot;/tmp/core-%e-%t&amp;amp;amp;quot; &amp;amp;amp;amp;gt; /proc/sys/kerne

2019-03-11 20:22:49 997

原创 Git 常用命令 -- 持续更新中

添加某个目录下的所有改动,包括新增/修改/删除git add --all dir查看两个提交之间的文件改动git diff --stat commit1 commit2推送本地分支到远程仓库git push remote branch获取远程仓库的改动git fetch remote同步远程仓库的改动到本地分支git merge remote_commit...

2018-11-29 13:41:04 197

原创 C语言IP地址比较(IPv4/IPv6)

C语言IP地址“大小/范围”比较(IPv4/IPv6)IP地址转换函数字符串IPv4地址转换实例字符串IPv6地址转换实例IP地址比较原理比较两个IPv4地址大小比较两个IPv6地址大小IP地址转换函数在比较IP地址之前需要将其转换为网络字节序的二进制整数,常用的转换函数是 inet_pton()int inet_pton(int af, const char *src, void *ds...

2018-11-23 14:02:07 6973 3

原创 Python: code for hash %s was not found.

在 ubuntu 18 上编译 OpenWRT 15.05(Chaos Calmer)的samba模块的时候,碰到了以下的错误信息:code for hash %s was not found.code for hash %s was not found.code for hash %s was not found.code for hash %s was not found.code...

2018-09-16 15:34:34 483

原创 WARNING: ‘automake-1.14‘ is missing on your system.

在 Ubuntu 18 上面编译的时候碰到了下面的错误信息:WARNING: 'automake-1.14' is missing on your system. You should only need it if you modified 'Makefile.am' or 'configure.ac' or m4 files included by ...

2018-09-16 14:52:55 11984 2

转载 Makefile:33: *** mixed implicit and normal rules: deprecated syntax

转载/参考自:https://blog.csdn.net/sinat_24088685/article/details/51009472在Ubuntu 18.04上编译一个以前的模块,发现会报错误信息Makefile:33: *** mixed implicit and normal rules: deprecated syntaxmake[4]: *** No rule to make...

2018-09-16 14:07:27 1801

原创 error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}'

编译OpenWRT 15.05(Chaos Calmer)的模块 tools/mkimage(u-boot-2014.10) 的时候碰到了下面的错误信息:u-boot-2014.10/lib/rsa/rsa-sign.c:279:21: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if ...

2018-09-16 12:27:28 10857 5

转载 Unescaped left brace in regex is illegal here in regex; marked by HERE in

Unescaped left brace in regex is illegal here in regex; marked by &amp;lt;– HERE in m/${ &amp;lt;– HERE ([^ \t=:+{}]+)}/ at xxx line xxx转载自https://www.cnblogs.com/zengjfgit/p/9178523.html原因原因是Perl不支持以...

2018-09-16 12:08:24 11362 1

转载 Ubuntu编译OpenWRT 15.05提示"Build dependency:Please install the xxx"

在Ubuntu 18.04.1上编译OpenWrt Chaos Calmer的时候碰到了以下问题,记录一下。Build dependency: Please install the GNU C Compiler (gcc)Build dependency: Please reinstall the GNU C Compiler - it appears to be brokenBuil...

2018-09-16 11:42:02 19892 1

原创 Linux平台开发 64位与32位问题

1. 类型长度问题长度(单位bit) C TYPE 32位 64位 char 8 8 short 16 16 int 32 32 long 32 64 long long 64 64 float 32 32 double 64 64 指针 (*) 3...

2018-02-11 18:38:19 1074

转载 Linux Kernel Coding Style --- Linux内核代码规范

本文主要参考和搬运于: * Linux kernel coding style * Linux 内核Coding Style整理侵删致歉。1. 缩进缩进采用8个字符宽度的tabswitch和case对齐switch (suffix) {case 'G':case 'g': mem <<= 30; break;case 'M':case 'm': mem <<

2017-05-05 16:07:14 1656 3

原创 ubuntu 搭建 IPv6 DHCP server

环境 ubuntu 16.04 工具 dhcp-4.3.5.tar.gz安装isc-dhcp点击下载dhcp-4.3.5.tar.gz,或到从官网下载https://www.isc.org/downloads/编译安装解压:tar -xvf dhcp-4.3.5.tar.gz安装:cd dhcp-4.3.5./configuremakesudo make install配置文件创

2017-05-04 17:31:29 17068 3

原创 shell笔记---变量扩展

在shell中要使用一个变量var,通常是采用表达式${var},其实在左括号‘{‘到右括号‘}’之间有一些特定的语法可以实现变量扩展功能。

2017-04-14 16:02:03 838 1

原创 ubuntu安装UCI

以下安装教程在ubuntu 10.04 和 ubuntu 16.04 上测试通过。

2017-04-12 15:12:09 4696

原创 OpenWrt UCI 学习笔记

UCI (Unified Configuration Interface, 统一配置接口) 是OpenWrt的集中配置管理工具,关于UCI的具体介绍可以查看官方文档—The UCI System

2017-04-12 10:29:41 12634 1

dhcp-4.3.5.tar.gz

dhcp-4.3.5.tar.gz

2017-05-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除