随笔分类 - linux 配置&操作
1
openssl error: unrecognized command line option '-m64'
摘要:openssl编译参数选项 执行Configure是常见参数选项如下:安装参数:--openssldir=OPENSSLDIR安装目录,默认是 /usr/local/ssl 。--prefix=PREFIX设置 lib include bin 目录的前缀,默认为 OPENSSLDIR 目录。--in
阅读全文
VMware Workstation cannot connect to the virtual machine. Make sure you have rights to run the program, access all directories the program uses, and access all directories for temporary files.
摘要:如图 1、我的电脑->管理->服务和应用程序->服务->VMware Authorization Service 状态为空 2、右键单击VMware Authorization Service-> 属性->启动类型->自动 3、右键选择启动,转态变为正在运行后,重新代开虚拟机即可。
阅读全文
Ubuntu Server16.04 开机A start job is running for Raise network interface(5min 1s)
摘要:1、sudo vi /etc/systemd/system/network-online.target.wants/networking.service 2、修改TimeoutStartSec=5min 为TimeoutStartSec=2sec 3、重启即可
阅读全文
linux shell命令编写技巧
摘要:shell 将命令执行的结果作为另外一个命令的参数 cmd3 $(cmd2 $(cmd1)) 以上命令的作用是:将cmd1的执行结果作为cmd2的参数,将cmd2执行结果作为cmd3的参数 例如:md5sum $(find . -name *.pacp) shell 将命令执行的输出最为另外一个的输
阅读全文
交叉编译gdb和gdbserver
摘要:本文转自:https://www.cnblogs.com/lidabo/p/5645653.html 1、下载gdb:下载地址为:http://ftp.gnu.org/gnu/gdb/按照一般的想法,最新版本越好,因此下载7.2这个版本。当然,凡事无绝对。我们以gdb-7.2.tar.bz2 这个文
阅读全文
忽略SIGPIPE信号
摘要:1、编译并执行如上代码, gcc -o sigpipe sigpipe.c 通过另外的一个Linux终端执行killall -SIGPIPE sigpipe 可以看到sigpipe 程序不会退出 2、将main函数中SetupSignal();行注释掉编译 通过另外的一个Linux终端执行killa
阅读全文
tcpdump 交叉编译
摘要:1下载源码:http://www.tcpdump.org/release/ libpcap-1.4.0.tar.gz tcpdump-4.4.0.tar.gz export PATH=/opt_gccarm/WMS-102-toolchain/bin/:$PATH; export CC=arm-li
阅读全文
Ubuntu下useradd与adduser区别
摘要:Ubuntu下useradd与adduser有所不同 1、useradd在使用该命令创建用户是不会在/home下自动创建与用户名同名的用户目录,而且不会自动选择shell版本,也没有设置密码,那么这个用户是不能登录的,需要使用passwd命令修改密码。 2、adduser在使用该命令创建用户是会在/
阅读全文
rm: cannot remove ' xxx': Permission denied
摘要:一般出现这个问题的原因是权限被改变了,使用chown 修改即可 可参考:chmod、chgrp、chown详解 linux chmod命令和chown命令
阅读全文
Ubuntu 将其他盘挂载到/home的子目录下
摘要:Ubuntu 14.04 将其他盘挂载到/home的子目录下当安装完Ubuntu系统,由于当时没有注意,分配的分区空间太小。经过一段时间安装了各式各样的软件后,常常会遇到/home目录下空间不够的情况,这时除了卸载软件以及重装系统以外,还有一个选择就是将其他盘挂载到/home的子目录下来。 下面介绍
阅读全文
Ubuntu 的 bash和dash的区别
摘要:什么是bash ? Bash(GNU Bourne-Again Shell)是许多Linux平台的内定Shell,事实上,还有许多传统UNIX上用的Shell,像tcsh、csh、ash、bsh、ksh等等,Shell Script大致都类同,当您学会一种Shell以后,其它的Shell会很快就上手
阅读全文
ssh: connect to host gitlab.alpha.com port 22: Network is unreachable
摘要:在这里只说明我遇到的问题和解决方法,可能并不能解决你遇到的问题: git clone git@gitlab.alpha.com:ipcam/ambarella.gitCloning into 'ambarella'...ssh: connect to host gitlab.alpha.com po
阅读全文
Linux fdisk命令操作磁盘(添加、删除、转换分区等)
摘要:创建分区1->查看原始分区sudo fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectorsUnits = sectors
阅读全文
转 linux常用查看硬件设备信息命令
摘要:转载自:http://blog.chinaunix.net/uid-26782198-id-3242120.html 系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信
阅读全文
linux nfs配置
摘要:1、安装 nfs server sudo apt-get install nfs-kernel-server 2、配置/etc/exports 文件 sudo vi /etc/exports /home/xxx *(rw,sync,no_subtree_check,no_root_squash) x
阅读全文
busybox 安装问题解决
摘要:直接编译错误 1。loginutils/passwd.c:93:16: error: storage size of ‘rlimit_fsize’ isn’t known 解决方法:在busybox根目录下查找到文件:find -name libbb.h 在libbb.h中添加#include <s
阅读全文
ubuntu apt-get failed
摘要:Err http://mirrors.163.com/ubuntu/ trusty/main libtinfo-dev i386 5.9+20140118-1ubuntu1 Could not resolve 'mirrors.163.com'Err http://mirrors.163.com/u
阅读全文
Ubuntu创建新用户并设置权限
摘要:打开终端开启root账户 sudo passwd -u root 设置root密码,输入两次 sudo passwd root 切换root账号 su - 或 su root 退出root账户使用exit 或ctrl+d 在Ubuntu下 $是普通管员,#是系统管理员 2.创建新用户 root的用户
阅读全文
ubuntu ssh 与 Samba安装
摘要:ssh 安装:sudo apt-get install openssh-server 确认sshserver是否启动:ps -aux | grep ssh(/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了。) root 13597 0.0 0.1 61
阅读全文
1