摘要:
一、目的 初始使用docker时,docker容器和镜像都很小,但是用容器装更多软件后,就开始占用大量系统空间。所以我们可以考虑移动docker镜像和容器的存储位置。 二、方法 假定我们已经将一块很大的硬盘挂载到了/home/chenjian/docker_data文件夹下,然后我们开始操作。 1、 阅读全文
摘要:
一、手动安装 卸载旧版本 Docker 的旧版本被称为 docker,docker.io 或 docker-engine 。如果已安装,请卸载它们: sudo apt remove docker docker-engine docker.io containerd runc 当前称为 Docker 阅读全文
摘要:
一、简介 Ubuntu18.04 和Ubuntu20.04自带proj4库,没有的话也可以通过apt的方式安装proj-bin库,指令如下 sudo apt-get install proj-bin ubunut18.04的proj4版本是4.9.3, ubuntu20.04的proj4的版本时候6 阅读全文
摘要:
c++11之前,标准库并无专门的休眠函数,c++11加入了这个功能 需要的头文件: #include <chrono> #include <thread> 使用: std::this_thread::sleep_for(std::chrono::milliseconds(20)); 阅读全文
摘要:
一、通过包管理器安装 #Debian: sudo apt install libspdlog-dev #Homebrew: brew install spdlog #MacPorts: sudo port install spdlog #FreeBSD: pkg install spdlog #Fe 阅读全文
摘要:
1、std::lock_guard 这个类是一个互斥量的包装类,用来提供自动为互斥量上锁和解锁的功能,简化了多线程编程,用法如下: #include <mutex> std::mutex kMutex; void function() { // 构造时自动加锁 std::lock_guard<std 阅读全文
摘要:
nohup ./frps &ps -aux | grep "frps" kill -9 PID 阅读全文
摘要:
一、插件安装 二、快捷键配置 extension.fileheader 是文件头的注释快捷键 extension.cursorTip 是函数注释的快捷键 三、json文件配置 "fileheader.customMade": { //文件头注释 "Date": "Do not edit", // 文 阅读全文
摘要:
一、下载到自己工作空间使用 sudo apt-get install libgps-dev cd catkin_ws/src git clone https://github.com/swri-robotics/gps_umd.git cd .. catkin_make 二、安装到系统目录 sudo 阅读全文
摘要:
一、安装 vnc viewer的安装很简单,去realvnc官网下载即可 vnc service的安装也一样,不过安装后需要先用图形界面启动一次,才能使用vnc service 远程监控。(原因未知) 二、问题及解决办法 1、有的Ubuntu 18.04 重启后,出现如下问题 This only h 阅读全文