
ubuntu
文章平均质量分 51
源代码杀手
大厂算法工程师经验、高校教师。
互相学习,共同进步!想做项目,私聊需求。
展开
-
Ubuntu系统下NPU环境配置指南与深入了解CPU、GPU与NPU:各自特点与应用场景对比
以下是对和的详细介绍,通俗易懂地帮助你理解它们的特点和用途。原创 2025-01-13 03:36:40 · 1567 阅读 · 0 评论 -
开源的密码学工具库:openssl安装在docker容器环境Linux(ubuntu18.04)
OpenSSL(Open Secure Socket Layer)是一个开源的密码学工具库,它提供了一系列的加密、解密、认证和通信安全相关的功能。OpenSSL 最初是为了支持安全的网络通信而设计的,但后来它的功能逐渐扩展到了许多不同的领域,包括数字证书、密钥管理、安全协议的实现等。原创 2023-08-18 01:13:39 · 1306 阅读 · 0 评论 -
完美解决Ubuntu22.04安装 fcitx (sudo apt-get install fcitx)之后始终无法安装sogoupinyin的问题
【代码】完美解决Ubuntu22.04安装 fcitx (sudo apt-get install fcitx)之后始终无法安装sogoupinyin的问题。原创 2023-03-28 12:51:57 · 676 阅读 · 0 评论 -
Linux平台几十个非常实用的 Shell 脚本实例
可以使用df命令获取服务器磁盘空间使用情况,使用awk或sed等命令解析输出结果,然后使用mail或sendmail命令发送邮件警告。可以使用rsync或scp等命令,将需要备份的数据传输到云存储或外部硬盘,也可以编写脚本实现自动备份和定期清理备份数据。可以使用top、ps、free、ifconfig等命令,实时监测服务器资源使用情况,也可以编写脚本实现自动化监测和报警。可以使用rsync或scp等命令,备份配置文件和系统设置,并编写脚本实现自动化备份和恢复。原创 2023-03-22 23:06:20 · 620 阅读 · 0 评论 -
C++并行计算之OpenMP多线程
OpenMP 是一个用于在多个处理器上同时执行 C、C++ 和 Fortran 代码的库。如果它使用大量循环并利用 CPU 的全部功能,这会使您的代码更快。OpenMP 是一组编译器指令、库过程和环境变量,于 1997 年开发用于为具有共享内存的系统(SMP 计算机)创建多线程应用程序。该工具最初是为 Fortan 设计的,后来包括 C 和 C++也是。如今,最流行的 C/C++ 编译器都支持 OpenMP:gcc、icc、PGI 编译器。(请注意,OpenMP 不是该词典型意义上的任何类型的库。原创 2022-09-25 01:48:17 · 2062 阅读 · 0 评论 -
适用于 AM335X 的处理器 SDK Linux参考文档
参考链接转载 2022-09-24 14:53:10 · 308 阅读 · 0 评论 -
基于ubuntu18.04新版OpenCV+OpenVINO Toolkit构建
选择下载源码版,按照下面的编译方式安装,这里我已经安装了opencv5就不说了,请看之前的文章安装就行。原创 2022-09-21 23:59:58 · 784 阅读 · 0 评论 -
ubuntu18.04平台 QT5(C++)、OpenGL、DNN联合新版OpenCV5.x构建以及核心算法测试
具体构建安装OPENCV5方法参考之前的文章:1、2、3、4、原创 2022-09-16 01:53:26 · 879 阅读 · 0 评论 -
Docker-ubuntu18.04容器内部 install QT5 (C++)及启动界面编译demo:分形几何(曼德布罗集)实现
安装文档和示例 如果通过 Ubuntu 软件中心或 synaptic 包管理器安装了 Qt Creator,则不会安装 Qt Creator 的文档。按 F1 键将显示以下消息:“没有可用的文档”。原创 2022-09-15 16:52:43 · 2127 阅读 · 0 评论 -
OpenCV5(C++)版本docker容器服务器配置分享
服务器拉取地址:docker pull ckck2021/opencv5-cpu:v1-ubuntu18。链接:https://hub.docker.com/repositories。原创 2022-08-28 03:52:31 · 807 阅读 · 0 评论 -
完美解决ubuntu:签名无效 KEYEXPIRED、EXPKEYSIG更新出bug
问题描述:解决方法:再次更新:sudo apt-get update原创 2022-07-01 20:12:22 · 6836 阅读 · 0 评论 -
完美解决ubuntu报错:ppa.launchpad与404 Not Found [IP: 91.189.95.85 80]
报错描述:解决方法1:cd /etc/apt/sources.list.d lsbazel.list nvidia-ml.listbazel.list.save nvidia-ml.list.saveboost-latest-ubuntu-ppa-xenial.list ubuntu-toolchain-r-ubuntu-test-xenial.listboost-la原创 2022-04-03 13:37:53 · 4872 阅读 · 1 评论 -
完美解决linux编译动态库出现的问题:ERROR: ld.so: object LD_PRELOAD cannot be preloaded: ignored
报错记录: apt updateERROR: ld.so: object './libadd_c.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.ERROR: ld.so: object './libadd_c.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.ERROR:原创 2022-03-19 14:16:29 · 35374 阅读 · 6 评论 -
ubuntu20.04安装Android Studio
1、安装方式一:在线安装sudo add-apt-repository ppa:maarten-fonville/android-studiosudo apt updatesudo apt install android-studio启动:/opt/android-studio/bin …/studio.sh创建快捷方式sudo ln -s /opt/android-studio/bin/studio.sh /usr/bin/AndroidStudio下载 sdk-toolswget原创 2022-03-16 11:02:25 · 6142 阅读 · 0 评论 -
完美解决ubuntu系统的中文输入法无法写入VS Code的问题
卸载重装code:sudo apt remove codewget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpgsudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/sudo sh -c 'echo "deb [arch=amd64,arm6原创 2022-01-24 15:48:33 · 896 阅读 · 0 评论 -
终端一行命令更换ubuntu国内镜像源
sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.listsudo sed -i 's/cn.archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.listsudo sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list其他:sudo curl原创 2022-01-20 16:46:04 · 2273 阅读 · 0 评论 -
linux:bash和sh区别
简介Shell 中文意思贝壳,寓意类似内核的壳。Shell是指一种应用程序,这个应用程序提供了一个界面,用户通过这个界面访问操作系统内核的服务。Shell 是一个用 C 语言编写的程序,它是用户使用 Linux 的桥梁。Shell 既是一种命令语言,又是一种程序设计语言。Shell 脚本(shell script)是一种为 shell 编写的脚本程序。常说的shell通常都是指 shell 脚本,但shell和shell script是两个不同的概念。通常说“shell编程”都是指 shell 脚本编程原创 2022-01-07 10:51:26 · 863 阅读 · 0 评论 -
完美解决解决 ImportError: No module named _internal.cli.main
问题截图:pip list报错解决方法:wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate下载get-pip.py后,如下运行即可python get-pip.py更新安装pip再次测试pip list原创 2021-05-23 15:34:58 · 1521 阅读 · 0 评论 -
完美解决module ‘tensorflow‘ has no attribute ‘gfile‘
问题描述:module ‘tensorflow’ has no attribute ‘gfile’解决方法:在当前的版本中,gfile已经定义在io包的file_io.py中。解决方案1所以只要改为下面的即可:if not tf.io.gfile.exists(DATA_DIRECTORY): tf.io.gfile.makedirs(DATA_DIRECTORY)with tf.io.gfile.GFile(filepath) as f:测试结果:解决方案2上面代码其实就是判原创 2021-05-23 14:12:43 · 9469 阅读 · 2 评论 -
使用nvidia-nsight编译器开发C/C++以及cuda编程
安装nsightsudo apt install openjdk-8-jre-headless sudo apt install nvidia-nsight 启动进入后,先在左侧菜单栏右键单击创建项目,然后在项目的基础上创建你要编译的C/C++程序即可。原创 2021-05-23 11:54:38 · 1219 阅读 · 0 评论 -
完美解决异常问题UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 0-7: ordinal not in ra
出现编码问题UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-7: ordinal not in ra,解决方法如下,下面先展示存在的报错问题。顺序复习以下异常处理的流程:try: 可能产生异常的代码块except [ (Error1, Error2, ... ) [as e] ]: 处理异常的代码块1except [ (Error3, Error4, ... ) [as e] ]:原创 2021-05-23 00:24:04 · 4200 阅读 · 1 评论 -
完美解决 pycuda安装问题
pip安装报错:pip install ‘pycuda>=2017.1.1’问题截图:ERROR: Command errored out with exit status 1: command: /opt/conda/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-javl9ets/appdirs_b2fea7ea6a564fb2b44e5204690fc1f原创 2021-05-22 23:27:32 · 1856 阅读 · 0 评论 -
Docker容器界面显示方法
-v /tmp/.X11-unix:/tmp/.X11-unix-e DISPLAY=:0#例如:docker run -itd --name 容器名 -h 容器主机名 --privileged \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e DISPLAY=:0 镜像名或id /bin/bash参考原文:https://blog.csdn.net/a806689294...原创 2021-05-20 00:52:08 · 1312 阅读 · 0 评论 -
解决ubuntu删除文件空间无法释放的问题
有时候删除文件的时候,空间还是不足,解决方法如下:查看已经删除的文件正在使用的进程:lsof |grep delete删除对应进程号:sudo kill -9 PTD如果还有部分没有删除请进入垃圾箱清理:【谨慎使用】sudo rm -Rvf /home/账户名/.local/share/Trash...原创 2021-05-19 11:46:42 · 5376 阅读 · 0 评论 -
ubuntu系统性能分析工具
1、Python 实时监控CPU使用率https://blog.csdn.net/weixin_39856709/article/details/111344336Performance Co-Pilot,简称PCP,是一个系统性能和分析框架。它从多个主机整理数据并实时的分析,帮你识别不正常的表现模式。它也提供API让你设计自己的监控和报告解决方案。安装pcp相关工具。$sudo apt install pcp pcp-gui2、atopatop是一个监控系统资源和进程的工具。它通过CPU使原创 2021-05-15 00:41:25 · 1407 阅读 · 1 评论 -
完美解决docker问题:Failed to allocate directory watch: Too many open files
在ubuntu上运行service服务报错:Failed to allocate directory watch: Too many open files解决方法:vim /etc/sysctl.conffs.inotify.max_user_instances=512fs.inotify.max_user_watches=262144生效sysctl -p参考文献:https://blog.csdn.net/Bobsweetie/article/details/111688878原创 2021-04-16 15:30:27 · 4556 阅读 · 2 评论 -
完美解决动态库问题libstdc++.so.6: version `CXXABI_1.3.11‘ not found
1、查看当前Linux服务器gcc版本中包含哪些库strings /usr/lib64/libstdc++.so.6 | grep GLIBC或strings /usr/lib/libstdc++.so.6 | grep GLIBC如果缺少对应的版本,可通过安装对应缺失的libstdc++.so.6.0.13以上的版本,来解决缺失版本的问题。在自己的电脑上全局搜索高版本的libstdc++.so.6,只要安装此版本,其他低版本都有了。2.从网上下载所需要的libstdc++.so.6.0.24转载 2021-03-22 15:28:06 · 19708 阅读 · 3 评论 -
完美解决docker和宿主机ubuntu空间不足问题以及软连接到映射的目录的空间内存解决方法
一、Ubuntu / 根目录空间不足在 / 目录下用du --max-depth=1 -h命令查看最大占用的一级目录:sudo du --max-depth=1 -h继续进入该目录(/var)查看下一级目录空间占用:sudo du --max-depth=1 -h /var继续进入该目录(/var/log)查看下一级目录空间占用:sudo du --max-depth=1 -h /var/log查看占用最多文件清理该文件夹即可ubuntu系统根目录空间不足 – 扩展根原创 2021-03-07 01:16:36 · 2683 阅读 · 1 评论 -
一行命令实现在Docker镜像容器中安装JDK11
apt-get update apt-get upgrade apt install openjdk-11-jre-headless原创 2021-03-07 00:54:38 · 1478 阅读 · 0 评论 -
修改默认的Ubuntu16.04清华镜像源
参考网站:https://mirrors.tuna.tsinghua.edu.cn/#一、打开终端,进入/etc/apt/cd /etc/apt二、对sources.list 文件进行备份sudo cp sources.list sources.list.backup三、修改文件 sudo gedit sources.list四、删除掉source.list 里的所有内容,然后选择一种源的内容帖进去我选择的是清华源,把清华源粘出来deb http://mirrors.tuna转载 2021-03-04 14:27:04 · 688 阅读 · 1 评论 -
完美解决稀疏卷积报错spconv/box_iou.h:: boost/geometry.hpp
配置稀疏卷积python setup.py bdist_wheel报错:spconv/include/spconv/box_iou.h:21:10: fatal error: boost/geometry.hpp: No such file or director解决方法,安装libboost配置文件,终端执行如下命令:sudo apt-get install libboost-filesystem-devsudo apt-get install libboost-dev再次配置稀疏卷积:完原创 2021-03-01 00:11:13 · 3051 阅读 · 7 评论 -
ubuntu16.04下安装Typora与菜单栏消失解决方法
安装命令:sudo wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -sudo add-apt-repository 'deb https://typora.io/linux ./'sudo apt-get updatesudo apt-get install typora菜单栏消失一般情况可以在TYPORA左上角找到,如果找不到就按快捷键:Ctrl + Alt wa解决问题...原创 2021-02-24 11:14:22 · 1712 阅读 · 0 评论 -
完美解决在ubuntu16.04下安装QQ的问题
一、安装deepin-wine环境:在网页上下载zip包git clone https://github.com/wszqkzqk/deepin-wine-ubuntu其他链接:https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu在下载目录下解压。在文件夹中打开终端。sudo sh ./install.sh二、安装QQTX不再研发linux内核下面的QQ了,so,只能用wine安装了。安装wine的指令是:sudo apt-get instal原创 2021-02-24 09:58:55 · 825 阅读 · 0 评论 -
汇总py环境移植方法:将Anaconda3环境打包与导入
Ubuntu下将anaconda打包移植到另一个台Ubuntu下,使用ananconda的离线包库,安装包。第一种方法:操作过程:1,本地打包anaconda环境,(最好其它conda创建的虚拟环境,anaconda会太大)安装打包工具conda install -c conda-forge conda-packorpip install conda-pack打包环境conda pack -n anaconda32,另一台Ubuntu解包运行将包解压到用户根目录下cd /home/原创 2021-02-24 00:05:26 · 3416 阅读 · 2 评论 -
ubuntu16.04源码安装gcc5.4.0/5.5.0
官网下载源码http://ftp.gnu.org/gnu/gcc/解压文件tar -zxvf gcc-5.4.0.tar.bz2 //解压安装cd gcc-5.4.0 //进入解压后的gcc文件夹./contrib/download_prerequisites //下载依赖项cd ..mkdir gcc-build-5.4.0cd gcc-build-5.4.0../gcc-5.4.0/configure --enable-checking=release --enable-lan原创 2021-02-20 10:15:36 · 903 阅读 · 0 评论 -
ubuntu16.04完美测试yolo v3—darknet模型
yolo v3——darknet模型C源码:https://github.com/arnoldfychen/darknet本次测试只记录测试过程中的报错问题:单独用GPU编译darknet源码时出现如下错误:Makefile:92: recipe for target ‘obj/convolutional_kernels.o’ failed解决方法: 修改MakefileNVCC = /usr/local/cuda-9.0/bin/nvcc重新编译,错误解决make解决pjredd原创 2021-02-13 04:19:41 · 1415 阅读 · 1 评论 -
Ubuntu16.04安装目标检测图像标注工具LabelImg
1、下载LabelImg,链接:https://github.com/tzutalin/labelImg2、 解压下载的文件3、激活anaconda里tensorflow的安装环境(如果不在anaconda下安装,直接打开终端,并cd到解压路径下),并cd到解压的路径下,输入如下命令:1)sudo apt-get install pyqt5-dev-tools2)pip install lxmlcd到labllmg下载目录输入编译命令:3)make qt5py34)python3 labelI原创 2021-02-13 00:10:27 · 1002 阅读 · 1 评论 -
Ubuntu16.04安装搜狗输入法的正确姿势
https://pinyin.sogou.com/linux/?r=pinyin通过命令行安装搜狗输入法sudo dpkg -i sogoupinyin_版本号_amd64.deb注:如果安装过程中提示缺少相关依赖,则执行如下命令解决:sudo apt -f installErrors were encountered while processing 解决方法解决方法::cd /var/lib/dpkgsudo mv info info.baksudo mkdir infosudo原创 2021-02-10 23:57:48 · 2787 阅读 · 0 评论 -
在Ubuntu下压缩一个文件夹命令汇总
.gz解压1:gunzip FileName.gz解压2:gzip -d FileName.gz压缩:gzip FileName.tar.gz解压:tar zxvf FileName.tar.gz压缩:tar zcvf FileName.tar.gz DirName.bz2解压1:bzip2 -d FileName.bz2解压2:bunzip2 FileName.bz2压缩: bzip2 -z FileName.tar.bz2解压:tar jxvf FileName.tar.bz2原创 2021-02-08 18:29:14 · 3441 阅读 · 0 评论 -
Ubuntu终端常用的快捷键汇总
Ubuntu中的许多操作在终端(Terminal)中十分的快捷,记住一些快捷键的操作更得心应手。在Ubuntu中打开终端的快捷键是Ctrl+Alt+T。其他的一些常用的快捷键如下:快捷键 功能Tab 自动补全Ctrl+a 光标移动到开始位置Ctrl+e 光标移动到最末尾Ctrl+k 删除此处至末尾的所有内容Ctrl+u 删除此处至开始的所有内容Ctrl+d 删除当前字符Ctrl+h 删除当前字符前一个字符Ctrl+w 删除此处到左边的单词Ctrl+y 粘贴由Ctrl+u, Ctrl+d,转载 2021-02-08 09:52:07 · 1613 阅读 · 0 评论