- 博客(7)
- 收藏
- 关注
原创 Qt编程应用
查看官方第一个示例test_proj_empty_nix.pro# The following define makes your compiler emit warnings if you use# any Qt feature that has been marked deprecated (the exact warnings# depend on your compiler). Refer to the documentation for the# deprecated API to kn
2022-05-03 12:42:43
429
原创 i2c驱动app
查看i2c源代码24cXX.c/*************************************************************************** copyright : (C) by 2003-2004 Stefano Barbato email : stefano@codesink.org $Id: 24cXX.h,v 1.6 2004/02/29 11:05:28 tat Exp $
2022-04-26 11:04:07
193
原创 TCP UDP IP 网络编程
查看while源代码服务器代码#include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <netdb.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <un
2022-04-19 09:30:45
1896
原创 线程与进程
查看源代码线程的创建与终止pthread_create()可以创建线程,其代码如下:void *thread_function(void *index)e = pthread_create( pthread_t *thread_id, const pthread_attr_t *attr, thread_function, void *index);thread_id 为所创建线程的idattr为线程的属性thread_function给所创建的线程附加内容index给thre
2022-04-11 18:21:21
783
原创 linux下的SCP、NFS、TFTP服务器配置及客户端使用
SCP安装SCP、NFS、TFTPsudo apt install -y openssh-server nfs-kernel-server nfs-common tftpd-hpa tftp-hpassh配置首先需要两台配置过linux系统的电脑查看其中一台电脑(以下称为从电脑)的ip地址ifconfig在另一台电脑(以下称为主电脑)中配置sshssh-keygen -b 2048 -t rsassh-copy-id -i .ssh/id_rsa.pubssh ubuntu@172
2022-03-27 23:43:35
1444
原创 Linux下的C编程调试
vim 编辑hello.c输入如下代码创建hello.c文件并编写内容vi hello.c编写内容如下分别查看如下指令编译的结果gcc -E hello.c -o hello.igcc -S hello.i -o hello.sgcc -c hello.s -o hello.ogcc hello.o -o hello分别输入上述代码后有如下结果查看运行结果输入如下代码./hello结果如下使用gdb调试函数调用编译生成可执行文件gcc -g hello.c
2022-03-25 22:15:27
455
原创 一加手机安装linux以及vnc服务端
本文根据Gitee项目Tmoe-linux编写,具体可参考如下网址:Tmoe-linux: 在 GNU/Linux 和Android-Termux上一键安装 GNU/Linux容器,并自动配置中文环境。 (gitee.com)1、安装前首先安装所需要的app:版本号为0.118.0的termux和版本号为3.7.1.44443的vnc viewer2、安装中打开termux,在显示界面输入代码如下bash -c "$(curl -Lv gitee.com/mo2/linux/raw
2022-03-13 22:29:16
3800
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人