- 博客(9)
- 收藏
- 关注
原创 树莓派3B+烧录ubuntu16.04开机出现彩虹屏
树莓派3B+ 烧录ubuntu16.04开机出现彩虹屏解决办法如下:实测有效这是ubuntu16.04系统uboot出现了问题,把系统烧录到u盘之后,把我给的压缩包解压,将里面的四个文件直接覆盖保存即可,这样重新把TF卡插入板子上电就可以正常启动链接:https://pan.baidu.com/s/1Sfu68QEO7JboOACbkrcMQA提取码:d9n0复制这段内容后打开百度网盘手机App,操作更方便哦...
2021-03-26 16:46:20
1400
2
原创 linux中固定IP地址
方法一:(1)首先使用ifconfig查看网卡、网关、子网掩码、ip段等信息;(2)更改网络信息:sudo vi /etc/network/interfaces打开文件之后,增加一下信息:auto loiface lo inet loopbackauto eth0 (根据实际情况配置网卡名称)iface eth0 inet static (根据实际情况配置网卡名称)address 192.168.1.10 (根据实际情况配置IP)netmask 255.255.255.0(一般是这个)
2021-03-26 16:36:22
585
原创 linux中查看当前运行的进程并杀死
在控制台中查看进程ID号,并杀死进程:(1)ps -ef |grep 进程名(2)kill -9 ID号下面写一个实际开发中查看进行并结束的脚本实例:#!/bin/bash#第一步:查询是否存在语音播报的线程#第二步:如果存在就kill结束线程pidlist=`ps -ef |grep "/mnt/audio/test" |grep -v "grep"|awk '{print $2}'`echo "id list:$pidlist"if [ "$pidlist" = "" ]then
2021-03-25 10:34:00
500
原创 英伟达jetson nano中播放音频文件
英伟达jetson nano开发板中系统是ubuntu18.041、安装sox音频播放器:apt-get install soxapt-get install libsox-fmt-all2、播放音频文件:play test.mp33、音量调节的命令:sox -v 0.5 input.mp3 output.mp3
2021-03-25 10:25:23
2643
原创 Linux中常见打包文件夹,解压压缩包,复制等命令和一些常见操作
linux中常见命令:解压压缩包:.tar格式:tar -zxvf hello.tar.zip格式:unzip hello.zipunzip -o hello.zip(强制解压)打包文件夹:.tar格式:tar -zcvf hello.tar hello.zip格式:zip -r update.zip opt/ config.ini复制有链接属性的文件:cp -d so /usr/lib创建文件夹:mkdir hello创建文件:touch hello.cpp搜索文件:locate o
2021-03-25 10:20:28
835
1
原创 UTF-8数据转化为字符串格式
在linux中将utf8的数据转化为字符串格式并正常输出,示例如下:#include <iostream>#include <string>using namespace std;int main(int argc, char **argv){ char src[20] = {0}; src[11] = 0x36; src[10] = 0x36; src[9] = 0x2e; src[8] = 0x31; src[7] =
2021-03-25 10:09:56
1599
原创 Linux中获取时间间隔的例程
#include <stdio.h>#include <sys/time.h>const unsigned long Converter = 1000 * 1000;int main(int argc, char *argv[]){ struct timeval starttime,endtime; gettimeofday(&starttime,0); sleep(3); gettimeofday(&endtime,0); doubl
2021-03-25 10:01:30
194
原创 使用ping命令检测设备在线
使用ping命令实时检测局域网设备是否在线#include<stdio.h>#include <unistd.h>#include <stdlib.h>#include <sys/types.h> #include <sys/wait.h>int go_ping(char *svrip){ int i = 0; while(i < 2) { pid_t pid;
2021-03-25 09:54:26
980
原创 OpenCV学习笔记(一)、OpenCV基础教程学习
1、加载图像是什么:(1)Mat src = cv::imread(“D:2222.jpg”);(2)imread的功能是加载图像文件成为一个Mat对象,第一个参数表示图像的存储路径,第二个参数表示加载的图像是什么类型;(3)IMREAD_UNCHANGED(<0)表示加载原图,不做任何修改;IMREAD_GRAYSCALE(=0)表示把原图作为灰度图像加载进来;IMREAD_CO...
2020-04-19 21:55:14
1515
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅