摘要: 由于Qt6.5源码默认的cmake,所以编译配置较之前的略有改动。 1、打开源码目录,找到CMakeLists.txt,选择使用Qt Creator打开 默认路径是:C:\Qt\6.5.0\Src\qtbase\src\plugins\sqldrivers 2、编辑CMake Modules目录下. 阅读全文
posted @ 2023-11-08 03:41 hiwjy 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1、所有成功登录/登出的历史记录 /var/log/wtmp last 2、查看登录失败记录 /var/log/wtmp lastb 3、用户最近登录记录 /var/log/lastlog lastlog 4、清除上述3个文件办法 ① 新建shell脚本 nano cl.sh ② 填入以下内容 #! 阅读全文
posted @ 2023-04-15 20:24 hiwjy 阅读(221) 评论(1) 推荐(0) 编辑
摘要: 首先需要明白中国在东8区,即UTC+8。以上海为例: timedatectl ls -l /etc/localtime timedatectl list-timezones unlink /etc/localtime sudo timedatectl set-timezone Asia/Shangh 阅读全文
posted @ 2023-04-15 20:11 hiwjy 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1、 修改ssh配置,找到#Port 22,将注释去掉,将22替换为自定义端口,比如16822 nano /etc/ssh/sshd_config 2、 开放端口,如果有安装iptables防火墙,添加端口放行规则: iptables -A INPUT -p tcp --dport 16822 -j 阅读全文
posted @ 2023-04-15 19:33 hiwjy 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 一、apt install python 默认安装的是python3.9 二、安装python3.10需要下载源码手动编译安装 sudo apt update && sudo apt upgrade sudo apt install build-essential zlib1g-dev libncu 阅读全文
posted @ 2023-04-10 22:10 hiwjy 阅读(920) 评论(0) 推荐(0) 编辑
摘要: root@Debian:~# cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more 阅读全文
posted @ 2023-04-10 05:16 hiwjy 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 一、下载Oracle 19c驱动,需要下载两个包,注意分x86和x64 x86下载地址:Instant Client for Windows 32-bit (oracle.com) ① instantclient-basic-nt-19.18.0.0.0dbru.zip ② instantclien 阅读全文
posted @ 2023-04-06 21:53 hiwjy 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 一、下载 https://curl.se/download/curl-8.0.1.zip 二、解压到桌面 C:\Users\WJY\Desktop\curl-8.0.1 三、配置 运行解压目录下buildconf.bat文件 四、编译 运行 x64 Native Tools Command Prom 阅读全文
posted @ 2023-03-30 01:54 hiwjy 阅读(478) 评论(5) 推荐(0) 编辑
摘要: 家里买了一堆小米的产品,无奈自己和老婆用的都是苹果,个人体验米家的APP用起来不怎么样。 于是乎想起来手里还有块闲置很多年的树莓派2B,可以安装Home Assistant把小米硬件桥接到IOS系统的家庭应用中。 系统用的是树莓派官方最精简的Raspbian 32位,也就是Debian啦。 ps:运 阅读全文
posted @ 2022-04-12 03:12 hiwjy 阅读(1041) 评论(0) 推荐(0) 编辑
摘要: 无聊画了个SFP转接串口板试了下刷机,很简单。 由于串口速度不高,需要大概20分钟左右才能刷完固件。 需要PCB的可以邮件我。 阅读全文
posted @ 2022-04-12 02:08 hiwjy 阅读(1747) 评论(1) 推荐(0) 编辑