linux
xuyong7
总想清晨漫步田间,露水沾湿裤腿
那份宁静,那阵清风
展开
-
如何删除某个目录下(包含子目录下)的某个名字的文件
<br />应用场景是,我使用svn下载了代码,但是想将里面的.svn文件全部删除。<br /> <br />find . -name .svn | xargs rm -rf原创 2011-01-24 09:26:00 · 1292 阅读 · 0 评论 -
How to add a new user in linux and add it to a new group
Create a new user-m #为创建账号主目录,默认不创建-r #为创建系统管理员账号-s /bin/bash #使用bash作为默认的shell环境-G #Add to groupuseradd -mr -s /bin/bash -G dev accountpasswd account #添加密码If you want to set it原创 2017-04-10 16:17:29 · 714 阅读 · 0 评论 -
如何更新/替换ubuntu16.04内核
如何更新/替换ubuntu16.04内核1.配置编译工具#apt-get install libncurses5-dev build-essential kernel-package2.下载内核代码因为kernel.org的代码和ubuntu内核的代码并不完全一致,所以直接从kernel.org下载下来的代码无法确保编译后可以成功运行于老的ubuntu平台,所以应该使用ubuntu的最新的内核代码下原创 2017-01-23 22:27:45 · 15194 阅读 · 1 评论 -
vim cscope+ctags+taglist
Vim + cscope + ctags + taglist.vimrcsyntax enablesyntax on" config tab as 4 spaceset tabstop=4set softtabstop=4autocmd FileType c,cpp,java,h set shiftwidth=4 | set expandtab"autocmd FileType c,cpp原创 2017-01-22 14:40:08 · 566 阅读 · 0 评论 -
Fix apt-get update “the following signatures couldn’t be verified because the public key is not avai
for apt-get update “the following signatures couldn’t be verified because the public key is not available”just needsudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5翻译 2016-12-23 12:27:06 · 592 阅读 · 0 评论 -
.vimrc
" Configuration file for vimset modelines=0 " CVE-2007-2438" Normally we use vim-extensions. If you want true vi-compatibility" remove change the following statementsset nocompatib原创 2016-10-01 10:45:51 · 416 阅读 · 0 评论 -
kernel crypto hmac sha256 API call code
static int hmac_sha256(char *plaintext, unsigned int plain_text_size, char *key, unsigned int key_size, uint8_t *result){ struct scatterlist sg; struct crypto_hash *tfm; struct hash_desc desc; int ret原创 2015-05-05 16:09:10 · 2086 阅读 · 3 评论 -
gtk+directfb
export PREFIX=/opt/gtkexport PREFIX=/opt/gtk原创 2014-09-13 21:48:35 · 1172 阅读 · 0 评论 -
LFS 创建liinux系统命令记录
首先声明这些命令是摘抄自 孙海勇 编著的《手把手教你构建自己的Linux系统》,方便自己操作,做个记录。因为还没有照着做完,只做到部分,遇到了瓶颈,暂时做个记录。一.系统环境准备1.设置环境变量及目录 export SYSDIR=/o原创 2011-09-12 18:27:19 · 1604 阅读 · 2 评论 -
How to add user in gerrit
gerrit@xxxx:~/review_site$ htpasswd --helpUsage: htpasswd [-cimBdpsDv] [-C cost] passwordfile username htpasswd -b[cmBdpsDv] [-C cost] passwordfile username password htpasswd -n[imBdp原创 2017-04-10 16:25:55 · 628 阅读 · 0 评论