随笔分类 - Linux
linux and related...
摘要:CLion 是 JetBrains 推出的全新的 C/C++ 跨平台集成开发环境。正式版本已经发出,目前是1.0.1http://www.jetbrains.com/clion/http://blog.jetbrains.com/clion/http://www.oschina.net/p/clio...
阅读全文
摘要:一般C/C++写程序由于内存、指针等问题在后期的过程都一般会遇到内存等资源泄露、崩溃等问题,对于这些问题,一般从哪个角度解决呢?下面从几个角度进行总结:内存泄露首先需要注意一个问题是top或者htop显示的内存使用中cache的问题,这个和windows中的任务管理器看到的有差别。具体分析如下:在l...
阅读全文
摘要:了解了LFS的内容后,至于内核的更新就一目了然了http://www.cnblogs.com/2018/p/3979305.htmlhttp://www.cnblogs.com/2018/p/3981399.html不过有些资料LFS上也没有,如下是概要的汇总了相关的资料内核更新http://jin...
阅读全文
摘要:脚本共享在这 http://pan.baidu.com/s/1nt6yiH7version-check.sh : 这个是检查HOST机器的软件依赖情况host-dep.sh:针对ubuntu10_64的缺少的包的安装【开发环境已安装】comp.sh:LFS7.5的图书大量的编译代码的整理脚本 ,可参...
阅读全文
摘要:“LINUX就是这个范”有一章专门介绍了Linux的构建,过程详细,很有意思。结合这方面的资料简要汇集一下LFS这个站点提供了从源代码构建一个Linux的详细步骤书http://archive.linuxfromscratch.org/lfs-museum/stable/LFS-BOOK-7.5.p...
阅读全文
摘要:yum下载依赖rpm包先安装一个yum-downloadonly1 yum install yum-downloadonly完成安装后,yum –help在最后就提示两个命令参数,分别是:Plugin Options:--downloadonly don't update, just downloa...
阅读全文
摘要:安装rpmbuildsudoyuminstallrpm-build普通用户的配置/home/you/rpmbuild/假设是要构建rpm的目录先说说rpmbuild有什么用,给一个例子:echo"%_topdir/home/you/rpmbuild">~/.rpmmacrosmkdir-p/home...
阅读全文
摘要:现在Winxp停止了支持,那我们的windows程序是否可以再linux上执行呢,如下是一些参考的信息在您的 Linux/Mac 操作系统上运行 Windows 软件http://www.winehq.org/http://www.codeweavers.com/ubuntu桌面的测试方法dpkg --add-architecture i386http://stackoverflow.com/questions/19462579/ubuntu-dpkg-add-architecture-i386-throwing-error-add-architecture-unknownThere is n
阅读全文
摘要:在Linux下使用TFS自动构建,需要自动执行连接tfs服务器的操作,命令行文件包TEE-CLC-10.1.0.2011121402.zip,下载地址:http://www.microsoft.com/en-us/download/details.aspx?id=25125下文是定制TFS的工作流程的方法进行定制How to Build Linux Code with TFS 2010 Team Buildhttp://www.richard-banks.org/2010/11/how-to-build-linux-code-with-tfs-2010.html如上的这个有些麻烦,本文描述的是
阅读全文
摘要:http://blog.csdn.net/guowake/article/details/6615728Linux下高并发socket最大连接数所受的各种限制http://stackoverflow.com/questions/651665/how-many-socket-connections-possibleHow many socket connections possible?http://www.cppblog.com/Solstice/archive/2011/06/02/147985.htmlMuduo 网络编程示例之十:socks4a 代理服务器http://www.cnblo
阅读全文
摘要:在Ubuntu中有如下几个文件可以设置环境变量1、/etc/profile:在登录时,操作系统定制用户环境时使用的第一个文件,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。2、/etc/environment:在登录时操作系统使用的第二个文件,系统在读取你自己的profile前,设置环境文件的环境变量。3、~/.bash_profile:在登录时用到的第三个文件是.profile文件,每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该 文件仅仅执行一次!默认情况下,他设置一些环境变游戏量,执行用户的.bashrc文件。/etc/bashrc:为每
阅读全文
摘要:Linux下的应用程序性能分析,根据内核程序和应用程序的不同,下文分两类进行描述。我们侧重的是应用级别的程序,推荐google perf tool/kcachegrind组合一、和内核有关的工具既可以处理内核,又可以处理应用的程序,但安装需要对内核代码有处理,所以有些麻烦(一)Perf#1 必须在root下编译# perfpushd /usr/srcbzip2 -d linux-source-2.6.32.tar.bz2tar -xvf linux-source-2.6.32.tar -C .popdpushd /usr/src/linux-source-2.6.32/tools/perfma
阅读全文
摘要:ubuntu下涉及中文处理的程序时,需要正确设置,否则会出现问号或者乱码的情况具体的原因:http://wiki.ubuntu.org.cn/Localelocale的解释http://wiki.ubuntu.org.cn/%E4%BF%AE%E6%94%B9locale设置的步骤,这个和安装有关,如果安装时选择中文语言,很多语言包就已经安装了ubuntu设置locale方法http://www.cnblogs.com/lilongjiang/archive/2010/09/13/1824679.html
阅读全文
摘要:http://linux-ha.orghttp://linux-ha.org/wiki/PacemakerHeartbeat2http://blog.taggesell.de/index.php?/archives/83-How-To-Build-A-Heartbeat-Cluster.htmlapt-get install heartbeat-2 heartbeat-2-gui xauthHeartbeat3apt-get install heartbeat pacemakerHawkhttp://clusterlabs.org/wiki/Hawkapt-get install ruby-d
阅读全文
摘要:常用工具汇总http://www.ibm.com/developerworks/cn/linux/l-cn-memleak/常用的内存分析工具http://en.wikipedia.org/wiki/Category:Memory_management_softwarePurifyPlushttp://www-03.ibm.com/software/products/us/en/ratpurlinuxhttp://en.wikipedia.org/wiki/IBM_Rational_Purify不支持常用的Linux 64系统[Ubuntu redhat],悲剧Valgrind简介Memche
阅读全文
摘要:C++产品开发,上线集成时,都需要内存泄露、覆盖率等检测,这些在Windows下都有很好的工具,如Visual Studio: 这个内置了很多的工具Devpartner: VC6时BoundChecker非常棒,Devpartner集成了很多的功能集合 http://www.borland.com/products/devpartner/default.aspxInsure++: http://www.parasoft.com/jsp/products/insure.jsp?itemId=63而在Linux环境下,选择少了很多,下面把eclipse中的工具使用说明一下,好费劲。环境Ubuntu
阅读全文
摘要:First of all, it is worth mentioning that Linux is not the only option available; other freely available operating systems include the BSDs (FreeBSD, NetBSD, OpenBSD), Solaris Express, Nexenta, and others. However, there are many GNU/Linux distributions available, and these generally have su...
阅读全文
摘要:The Bourne Shell When Unix was first born, it had a very basic shell written by Ken Thompson, one of the creators of Unix. The Bourne shell was written by Steve Bourne in 1979 as a scriptable Unix shell. All other shells have a prefix to qualify which shell they are — ksh, csh, zsh, and so o...
阅读全文
摘要:简介Minimalist GNU for Windows (MinGW) is a native software port of the GNU tool chain for theMicrosoft Windows operating system. The base components of MinGW software are compiler,linker, and assembler. This minimal tool set is enough to start developing applications. ButMinGW contains some service u
阅读全文
摘要:下面是出错的现象# iptables -m RATEEST/lib/xtables/libxt_RATEEST.so: /lib/xtables/libxt_RATEEST.so: undefined symbol: logiptables v1.4.12: Couldn't load match `RATEEST':SuccessTry `iptables -h' or 'iptables --help' for more information.# iptables -m statistic/lib/xtables/libxt_statistic.s
阅读全文