随笔分类 -  linux

摘要:$ snap list snap可以自己制作包,自己安装到其它电脑上: https://ubuntu.com/tutorials/create-your-first-snap#1-overview $ snapcraft build --target-arch=arm64 这样可以编译arm的程序。 阅读全文
posted @ 2020-09-18 16:58 微信公众号--共鸣圈 阅读(427) 评论(0) 推荐(0) 编辑
摘要:执行: dpkg -x eosio_2.0.7-1-ubuntu-18.04_amd64.deb dist-folder 或者用ar来打开: 先看看里面有什么文件: ar t eosio_2.0.7-1-ubuntu-18.04_amd64.deb 比如有: debian-binarycontrol 阅读全文
posted @ 2020-09-05 14:58 微信公众号--共鸣圈 阅读(745) 评论(0) 推荐(0) 编辑
摘要:1、qtcreator 若使用cmake作为编译工具,则cmake默认使用的是ninja作为其generator,若要将ninja改成unix makefile作为cmake的generator,则在这里改: Tools > Options > Kits > Kit kits可以翻译为构建套件。 2 阅读全文
posted @ 2020-07-18 10:23 微信公众号--共鸣圈 阅读(569) 评论(0) 推荐(0) 编辑
摘要:1、现实时区: timedatectl 也可: ls -l /etc/localtime 也可: cat /etc/timezone 2、现实可用时区:timedatectl list-timezones 3、设置时区: sudo timedatectl set-timezone ****/**** 阅读全文
posted @ 2020-02-09 14:43 微信公众号--共鸣圈 阅读(572) 评论(0) 推荐(0) 编辑
摘要:https://vitux.com/install-nfs-server-and-client-on-ubuntu/ https://help.ubuntu.com/community/SettingUpNFSHowTo quick start: nfs目录提供方即为nfs server,一下配置s 阅读全文
posted @ 2020-01-04 09:53 微信公众号--共鸣圈 阅读(1104) 评论(0) 推荐(0) 编辑
摘要:被删除的文件位于: .local/share/Trash, 恢复的话,需要自己去目录手动拷贝回原位置,如何得到原位置,查看 .local/share/Trash/info 目录下的信息文件。 For Ubuntu 18.04 and newer, use gio. For older version 阅读全文
posted @ 2019-12-23 17:25 微信公众号--共鸣圈 阅读(1214) 评论(0) 推荐(1) 编辑
摘要:转自 https://cloud.tencent.com/developer/article/1087417 一般生成随机数,可以用glibc提供的random()函数,不过这个是伪随机的函数,所以一般会在使用使用random函数之前初始化种子:srandom(time()),或者使用srandom 阅读全文
posted @ 2019-11-01 11:22 微信公众号--共鸣圈 阅读(378) 评论(0) 推荐(0) 编辑
摘要:https://linux-sunxi.org/SPIdev The SPI bus (or Serial Peripheral Interface bus) is a synchronous serial data link originally created by motorola.For m 阅读全文
posted @ 2019-10-12 15:08 微信公众号--共鸣圈 阅读(964) 评论(0) 推荐(0) 编辑
摘要:https://en.wikipedia.org/wiki/Netlink https://stackoverflow.com/questions/12899055/how-kernel-notify-a-user-space-program-an-interrupt-occurrs There i 阅读全文
posted @ 2019-09-05 00:25 微信公众号--共鸣圈 阅读(337) 评论(0) 推荐(0) 编辑
摘要:https://www.cmrr.umn.edu/~strupp/serial.html#CONTENTS Introduction Chapter 1, Basics of Serial Communications What Are Serial Communications? What Is 阅读全文
posted @ 2019-08-26 14:19 微信公众号--共鸣圈 阅读(699) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/185844/how-to-initialize-private-static-members-in-c https://stackoverflow.com/questions/1197106/static-constructo 阅读全文
posted @ 2019-08-24 10:31 微信公众号--共鸣圈 阅读(417) 评论(0) 推荐(0) 编辑
摘要:https://opensource.com/article/18/6/embedded-linux-build-tools https://github.com/luong-komorebi/Awesome-Linux-Software#development Anjuta: http://anj 阅读全文
posted @ 2019-08-23 13:11 微信公众号--共鸣圈 阅读(2121) 评论(0) 推荐(0) 编辑
摘要:https://www.zybuluo.com/khan-lau/note/254724 CMake 用法导览 Preface : 本文是CMake官方文档CMake Tutorial (http://www.cmake.org/cmake/help/cmake_tutorial.html) 的翻译 阅读全文
posted @ 2019-06-29 16:04 微信公众号--共鸣圈 阅读(2962) 评论(0) 推荐(0) 编辑
摘要:将循环依赖的所有包放到同一个命令行里一起安装,如: libnss3-nssdb_3.28.4-0ubuntu0.14.04.4_all.deb 和 libnss3_3.28.4-0ubuntu0.14.04.4_amd64.deb 之间就是相互循环依赖,单独安装其中一个始终报错(依赖另外一个),将他 阅读全文
posted @ 2019-02-19 11:27 微信公众号--共鸣圈 阅读(703) 评论(0) 推荐(0) 编辑
摘要:Write a service file and place it in /etc/systemd/system/beforeshuttingdown.service code: Your program or script must be executable. 脚本或者程序(mycommand) 阅读全文
posted @ 2018-09-10 22:56 微信公众号--共鸣圈 阅读(533) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2018-09-05 22:04 微信公众号--共鸣圈 阅读(34) 评论(0) 推荐(0) 编辑
摘要:一看名字就十分的明确“不复杂防火墙”没错,它就是 ufw,在 Ubuntu 操作系统当中已经内置,使用它可以简单快速的操作防火墙的功能,比如开关端口,访问 IP,限制连接等等等等。它与一系列 Linux 下防火墙都差不多,也是使用了 iptables 作为后台,所以,你同样可以在 iptables 阅读全文
posted @ 2018-07-18 14:08 微信公众号--共鸣圈 阅读(281) 评论(0) 推荐(0) 编辑
摘要:<< System语言详解 >> 关于 SystemTap 的书。 我们在分析各种系统异常和故障的时候,通常会用到 pstack(jstack) /pldd/ lsof/ tcpdump/ gdb(jdb)/ netstat/vmstat/ mpstat/truss(strace)/iostat/s 阅读全文
posted @ 2018-06-24 17:36 微信公众号--共鸣圈 阅读(11324) 评论(0) 推荐(3) 编辑
摘要:推荐第一个: https://github.com/spf13/spf13-vim https://github.com/Spacevim/Spacevim https://github.com/JBakamovic/yavide linux 下阅读代码还有个收费软件: scitools under 阅读全文
posted @ 2018-05-18 17:35 微信公众号--共鸣圈 阅读(1375) 评论(0) 推荐(0) 编辑
摘要:一、更新源的配置: 1)、自动方法: 在 终端 执行下面的命令从官方的源列表中对中国源进行测速和设置 2)、手动方法 自动方法(上面的方法1,自动测速)的源ping虽然低但是更新时不是很稳定,下载速度忽高忽低,所以也可以用下面的方法手动指定想要使用的源。 创建一个名为 /etc/pacman.d/m 阅读全文
posted @ 2018-05-09 22:03 微信公众号--共鸣圈 阅读(4995) 评论(0) 推荐(0) 编辑