随笔分类 - LINUX/UNIX
摘要:禁用了检查 cmake .. -DCMAKE_C_COMPILER=x86_64-w64-mingw32-gcc -DCMAKE_C_COMPILER_WORKS=TRUE CMAKE_CXX_COMPILER_WORKS TRUE CMAKE_C_COMPILER_WORKS TRUE
阅读全文
摘要:lib.go package main import "C" func main() {} //export Hello func Hello() string { return "Hello" } //export Test func Test() { println("export Test")
阅读全文
摘要:cat json.txt | jq .subnode
阅读全文
摘要:nmcli conn show nmcli device wifi connect "SSID" password "PWD"
阅读全文
摘要:docker pull piaoyizy/openwrt-x86 sudo ip link set eth0 promisc on docker network create -d macvlan --subnet=10.0.2.0/24 --gateway=10.0.2.254 -o parent
阅读全文
摘要:安装 sudo apt-get install isc-dhcp-server nano /etc/default/isc-dhcp-server NTERFACES="DHCP用的网卡" 添加网段 /etc/dhcp/dhcpd.conf #subnet 10.152.187.0 netmask
阅读全文
摘要:进入CMakeLists.txt文件的目录 cmake . 生成makefile make
阅读全文
摘要:apt install qemu-user-static wget http://cdimage.ubuntu.com/ubuntu-base/releases/xenial/release/ubuntu-base-16.04.6-base-armhf.tar.gzmkdir rootfstar z
阅读全文
摘要:make ARCH=arm64 CONFIG_USB_NET_CDC_EEM=m drivers/net/usb/cdc_eem.ko make CROSS_COMPILE=/SDK/rk3588/Linux_SDK/rk3588/prebuilts/gcc/linux-x86/aarch64/gc
阅读全文
摘要:实例1:每1分钟执行一次command 命令: * * * * * command 实例2:每小时的第3和第15分钟执行 命令: 3,15 * * * * command 实例3:在上午8点到11点的第3和第15分钟执行 命令: 3,15 8-11 * * * command 实例4:每隔两天的上午
阅读全文
摘要:$sudo cp 证书路径.crt /usr/local/share/ca-certificates$sudo update-ca-certificates
阅读全文
摘要:https://files-cdn.cnblogs.com/files/ahuo/aliyun-ddns.sh
阅读全文
摘要:tty /dev/pts/0 setconsole /dev/pts/0 setconsole /dev/console
阅读全文
摘要:remount mount -o remount, rw / NFS sudo apt-get install nfs-kernel-server vi /etc/exports 追加 /mnt/nfsroot/rootfs *(rw,sync,no_root_squash,no_subtree_c
阅读全文
摘要:touch `ifconfig |grep inet|awk -F "[: ]+" '{print $3}'|head -n1`
阅读全文
摘要:root@localhost /# cat /proc/mtddev: size erasesize namemtd0: 00080000 00010000 "u-boot"mtd1: 00020000 00010000 "u-env"mtd2: 00060000 00010000 "logo"mt
阅读全文
摘要:#include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <syslog.h> #include <errno.h> void mai
阅读全文
摘要:yes >> /deb/watchdog 禁用代码 /* * Watchdog Driver Test Program */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include
阅读全文
摘要:配置文件保留的时间(1w为一周): journalctl --vacuum-time=1w
阅读全文
摘要:编译: 下载 ftp://ftp.gnu.org/gnu/gdb/gdb-7.11.1.tar.gz gdbserver编译 ./configure --target=arm-linux --host=arm-linux make arm设置 ulimit -c 1024echo /tmp/core
阅读全文