自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(11)
  • 收藏
  • 关注

转载 Ubuntu 11.10 - 12.04 "Waiting for network configuration" on booting

原文在这里,总结一下就是修改/etc/network/interfaces只留两行:auto loiface lo inet loopback

2012-07-11 05:33:59 460

原创 Infiniband的OFED package安装及vasp编译

<br />基本上按照doc里面的指示就差不多了,这里记录一些细节:<br /> <br />1. 执行./install.sh之后不要急着开始, ctrl+C 取消之后编辑ofed.conf文件,把不需要的东西去掉(我安装的时候把mpitest全部取消了,因为它总说找不到某个lib文件,但这个文件是在lib目录里面的,而且这些mpitest也没啥大用,还是得编译测试vasp)<br /> <br />2. 第一次安装的时候因为要编译rpm包所以会很慢,后面的就可以编辑ofed.net文件在别的机器上较快的

2011-05-19 16:37:00 2080

转载 Comparison operator in shell

http://www.unix.com/shell-programming-scripting/120511-if-clause-problem-err-integer-expression-expected.html<br />A binary comparison operator compares two variables or quantities. Note that integer and string comparisonuse a different set of operator

2011-05-11 14:59:00 608

原创 脚本备份

#!/bin/bashid | grep root >/dev/nullif [ $? != 0 ]; then disk_spare=`df -h | grep export | awk -F'[ ]+|%' '{print $4}'` df=`df -h | grep export | awk -F'[ ]+|%' '{print $5}'` if [ $df -gt 95 ]; then echo -e "

2011-05-05 15:36:00 460

转载 sed和awk中使用shell变量

转载自 jrckkyy最终编辑 zengzhaonongsed和awk中使用shell变量----------------------------------------------x=MMsed 's/AB/'$x'/g' b.c或sed 's/AB/'"$x"'/g' b.csed 's/'"$val"'//' urfile最近做预料处理,使用bash脚本,需要在脚本的sed和awk使用shell变量以控制循环,出现一些问题后找到解决办法如下:1.sed使用she

2011-04-11 15:47:00 5411

转载 linux下用命令批量修改替换文件内容

在linux入侵之后,我们要清除留下的一些痕迹,比如apache留下的日志.但是对于ssh登陆日志比如/var/log/wtmp 和 lastlog这类二进制文件,sed命令就爱莫能助了.Linux下批量替换多个文件中的字符串的简单方法。用sed命令可以批量替换多个文件中的字符串。用sed命令可以批量替换多个文件中的字符串。sed -i "s/原字符串/新字符串/g" `grep 原字符串 -rl 所在目录`(千万注意这个符号,是最左上角那个符号不是单引号)例如:我要把/test下所有包含a

2011-04-11 15:42:00 4141 1

转载 Install libstdc++.so.5 on Ubuntu 10.10 or 10.04 or 9.10

If you try installing Intel Fortran Compiler on Ubuntu 10.10 Maverick Meerkat or 10.04 Lucid Lynx or Karmic Koala, it is going to throw the error:error while loading shared libraries: libstdc++.so.5The original libstdc++5 package is no longer availab

2011-01-12 19:38:00 958

原创 grep/sed 匹配变量

<br />一定要用 ‘ ’将命令与变量分离,嗯<br />grep -w ''${names[$i]}'$' filename

2010-12-08 18:53:00 4293

原创 编译vasp 5.2

买了新机器:联想万全520 G7,虽然是1U机架却上了两个Xeon E5520 CPU;想着跟之前也是Intel CPU的机器差不多就把vasp 4.6的makefile改改拿来编译FFLAGS = -I/export/intel/mkl/9.0/include/fftw -FR -lowercase -assume bytereclOFLAG=-O3 -xT -tpp7OFLAG_HIG

2010-07-05 23:09:00 1725

转载 Error EDDDAV: Call to ZHEGV failed

 在AMD平台上遇到了个问题,Intel的似乎没出现过(原文地址)Compilation of VASP on Opteron/Rocks cluster Ametistiwith Pathscale 2.2.1 Fortran compilerThese observations apply to the serial version of VASP.The parallel section dealing with VASP on Ametistiusing the MPI inte

2010-07-05 22:24:00 24708

转载 Curve fitting in Matlab

cftool is sufficient in most cases, though it can not fit data to more than two independent variables(R2009a):Technical Solutions Is it possible to fit data to more than two independent variables using Curve Fitting Toolbox 2.0 (R2009a)? Date Last Mo

2010-07-05 22:12:00 731

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除