Linux学习
xlsp
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
krb4/krb5 rsh 问题
问题: /etc/xinetd.d/rsh rlogin rexec都已经改成默认启动的.rhosts里面也加了hosts.equiv里面也写了,为啥用rsh登陆的时候都会说:refuse 两次,然后用normal rsh登陆成功呢?。。。???它的运行体如下:$ rsh localhost /bin/hostnameconnect to address 127.0.0.1 port 54原创 2008-09-24 15:14:00 · 2125 阅读 · 0 评论 -
Linux下静态编译Qt
Linux下静态编译Qt原创 2011-05-05 11:01:00 · 1686 阅读 · 0 评论 -
升级libc
升级libc原创 2011-05-05 10:50:00 · 2525 阅读 · 0 评论 -
误删libc.so.6
挽救误删libc.so.6原创 2011-05-05 10:32:00 · 1449 阅读 · 1 评论 -
Linux 添加用户服务
如果想要此程序在系统启动时自动运行,可以在/etc/rc.d/rc.local里面用su命令加上一行,比如:su - Jacky -c "/bin/a.out"这个命令将以Jacky用户身份运行/bin/a.out程序原创 2010-06-23 12:58:00 · 411 阅读 · 0 评论 -
Vbox3.1.0不能mount shared folder(64位系统)
Vbox3.1.0不能mount shared folder(64位系统)正常情况下如下步骤搞定:Step 1: Install host additions (usually you install them when you install virualbox).Step 2: If you have created a new machine, then crea原创 2009-12-15 13:22:00 · 695 阅读 · 0 评论 -
ssh无密码登录
1.修改/etc/hosts文,添加参与计算的机器名和ip地址,比如:127.0.0.1 localhost.localdomain localhost192.168.1.1 node0192.168.1.2 node1有两个节点node0和node1参加计算2.生成ssh密钥:#cd ~#ssh-keygen -t rsa在当前用户的home目录下生成了一个.ssh目录3.进入.ssh目转载 2009-05-15 17:46:00 · 606 阅读 · 0 评论 -
gfortran for MPICH
export FC="gfortran -O2 -ff2c -fno-underscoring "export F77_GETARGDECL=" "export CC="gcc -O2 "export CXX="g++ -O2 "export F90="gfortran -O2 -ff2c -fno-underscoring "./configure --prefix=/opt/mpich -rs转载 2009-05-15 17:29:00 · 1180 阅读 · 0 评论 -
静态编译wxGTK选项!
1:从http://www.wxWidgets.org下载wxWidgets或wxGTK,或者下载安装发行版自带的wxGTK开发包和运行环境,2:解压并进入展开的目录中,3:建立子目录,如buildgtk_static,进入子目录,输入命令../configure --disable-shared --enable-monolithic --with-gtk=2 --with-libpng=bui转载 2009-04-28 15:33:00 · 1483 阅读 · 0 评论 -
relocation truncated to fit: R_X86_64_PC32错误排除
relocation truncated to fit: R_X86_64_PC32:当程序开辟内存空间大于2G时,编译时会出现 relocation truncated to fit: R_X86_64_PC32的错误信息,排除办法如下:在编译选项中加入 -mcmodel=medium如果是MPI程序,则安装MPICH时需添加c和fortran的相关编译选项如下:./config原创 2009-04-10 12:17:00 · 17490 阅读 · 0 评论 -
64位移植问题
gcc 64位编译选项 -m64引自 http://www.51cto.com/art/200604/24942.htm原创 2008-10-29 15:34:00 · 384 阅读 · 0 评论 -
统计文本文件行数
总结了一下有五种方法:第一种:# awk '{print NR}' a|tail -n1第二种:# awk 'END{print NR}' a第三种:# grep -n "" a|awk -F: '{print '}|tail -n1第四种:# sed -n '$=' a第五种# wc -l a|awk '{print }'第六种转载 2013-04-16 10:04:37 · 961 阅读 · 0 评论
分享