linux
zhnd
这个作者很懒,什么都没留下…
展开
-
linux相关命令
查看内核版本: $ uname -r 4.10.0-42-generic查看cpu位数: $ getconf LONG_BIT 64查看硬盘和分区: $ df -h原创 2018-01-10 18:19:46 · 162 阅读 · 0 评论 -
Linux下安装opencv
官方文档sudo apt install git cmake libavcodec-dev libavformat-dev libswscale-devgit clone -b 3.4 https://github.com/opencv/opencv.gitcd opencvmkdir buildcd buildcmake -D CMAKE_BUILD_TYPE=RELEA...原创 2018-04-23 12:20:06 · 510 阅读 · 0 评论 -
交叉编译bluez-5.47
编译zlib-1.2.11# CC=arm-none-linux-gnueabi-gcc ./configure --prefix=/usr/local/bluez-5.47# make# make install编译expat-2.1.0# ./configure --prefix=/usr/local/bluez-5.47 --host=arm-none-linux-g...原创 2018-01-12 12:46:04 · 1530 阅读 · 0 评论 -
ubuntu分区方案
total: 50GB/: 20GB swap: 2GB /boot: 200MB /home: 30GB原创 2018-03-08 21:06:32 · 843 阅读 · 0 评论 -
ubuntu全屏
sudo apt-get install open-vm*原创 2018-03-08 21:09:48 · 346 阅读 · 0 评论 -
g++: internal compiler error: Killed (program cc1plus)
g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate.内存不足,增加交换分区。$ sudo dd if=/dev/zero of=/home/swap bs=64M count=16...原创 2018-03-10 12:29:30 · 773 阅读 · 0 评论 -
vim配置
$ sudo apt-get install vim-gtk$ vi ~/.vimrcset nuset tabstop=4set autoindentset ignorecasesyntax on原创 2018-03-09 19:12:26 · 190 阅读 · 0 评论 -
linux根据进程名杀掉进程
kill -9 `ps aux | grep xxx | awk {'print $1'}`原创 2018-01-27 14:58:21 · 287 阅读 · 0 评论 -
Linux下创建守护进程
引自:Creating a daemon in Linux - Pascal Werkl/* * daemonize.c * This example daemonizes a process, writes a few log messages, * sleeps 20 seconds and terminates afterwards. */#include <stdlib.h>#in原创 2018-05-02 18:40:43 · 247 阅读 · 0 评论