随笔分类 -  Linux/UNIX

Terminate program hitting CTRl+C within GDB
摘要:Q:My program is determined to stop its execution by hitting CTRL+C in command window. By now, i have a critical error right in this stopping phase, so i want to debug with gdb.Problem is, gdb redefines CTRL+C as its own interrupt and pauses the execution whet hitted. How can i handle it that CTRL+C 阅读全文

posted @ 2014-01-04 14:39 androidme 阅读(357) 评论(0) 推荐(0) 编辑

uclibc,eglibc,glibc之间的区别和联系
摘要:http://bbs.chinaunix.net/thread-3762882-1-1.html1.Glibcglibc = GNU C Library是GNU项(GNU Project)目,所实现的 C语言标准库(C standard library)。目前,常见的桌面和服务器中的GNU/Linux类的系统中,都是用的这套C语言标准库。其实现了常见的C库的函数,支持很多种系统平台,功能很全,但是也相对比较臃肿和庞大。2.uClibc一个小型的C语言标准库,主要用于嵌入式。其最开始设计用于uClinux(注:uClinux不支持MMU),因此比较适用于微处理器中。对应的,此处的u意思是μ,Mi 阅读全文

posted @ 2013-08-15 10:30 androidme 阅读(575) 评论(0) 推荐(0) 编辑

Create a Bootable MicroSD Card
摘要:http://gumstix.org/create-a-bootable-microsd-card.html Create a Bootable MicroSD CardBeginnersNote: The following instructions are intended for experienced Gumstix users. Beginners are recommended to use Linaro or Sakoman's daily GNOME builds.Supported MMC/SD CardsGumstix DuoVero COMs and Overo 阅读全文

posted @ 2013-08-15 10:27 androidme 阅读(565) 评论(0) 推荐(0) 编辑

OpenSSL加解密
摘要:http://www.caole.net/diary/des.htmlTable of ContentsOpenSSL - DES Summary DES使用的例子 另一个带注释的例子 另一段Code: OpenSSL - DESSummaryThis library contains a fast implementation of the DES encryption algorithm.There are two phases to the use of DES encryption.The first is the generation of a DESkeyschedule from 阅读全文

posted @ 2013-08-13 12:56 androidme 阅读(603) 评论(0) 推荐(0) 编辑

Nginx+FastCGI+C
摘要:http://flandycheng.blog.51cto.com/855176/858946http://www.cnblogs.com/xiaouisme/archive/2012/08/01/2618398.htmlhttp://www.myhack58.com/Article/60/63/2010/28568.htm 阅读全文

posted @ 2013-08-11 00:32 androidme 阅读(161) 评论(0) 推荐(0) 编辑

Linux下RPM软件包的安装及卸载
摘要:http://os.51cto.com/art/201001/177866.htm在 Linux 操作系统下,几乎所有的软件均通过RPM 进行安装、卸载及管理等操作。RPM 的全称为Redhat Package Manager ,是由Redhat 公司提出的,用于管理Linux 下软件包的软件。Linux 安装时,除了几个核心模块以外,其余几乎所有的模块均通过RPM 完成安装。RPM 有五种操作模式,分别为:安装、卸载、升级、查询和验证。RPM 安装操作命令:rpm -i 需要安装的包文件名举例如下:rpm -i example.rpm 安装 example.rpm 包;rpm -iv exa 阅读全文

posted @ 2013-08-10 13:19 androidme 阅读(254) 评论(0) 推荐(0) 编辑

libevent
摘要:http://libevent.org/libevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,内部使用select、epoll、kqueue等系统调用管理事件机制。著名分布式缓存软件memcached也是libevent based,而且libevent在使用上可以做到跨平台,而且根据libevent官方网站上公布的数据统计,似乎也有着非凡的性能。 阅读全文

posted @ 2013-07-15 13:14 androidme 阅读(230) 评论(0) 推荐(0) 编辑

TinyOS
摘要:http://www.tinyos.net/TinyOS is an open source, BSD-licensed operating system designed for low-power wireless devices, such as those used in sensor networks, ubiquitous computing, personal area networks, smart buildings, and smart meters. A worldwide community from academia and industry use, develop 阅读全文

posted @ 2013-05-23 14:39 androidme 阅读(233) 评论(0) 推荐(0) 编辑

Synergy
摘要:http://synergy-foss.org/Synergy允许你轻松地在你办公桌上多台计算机之间共享你的鼠标和键盘,它免费并且开放源代码。你只要将鼠标(指针)从一台计算机的屏幕边缘移出到另 一个屏幕就行了。甚至可以共享你的剪贴板。你所需要的仅仅是一个网络连接。Synergy是跨平台的(可以运行于Windows,Mac OS X和Linux)。 阅读全文

posted @ 2013-04-28 12:32 androidme 阅读(252) 评论(0) 推荐(0) 编辑

软件包管理 rpm yum apt-get dpkg
摘要:http://blog.csdn.net/ljq1203/article/details/7401616在GNU/Linux(以下简称Linux)操作系统中,RPM和DPKG为最常见的两类软件包管理工具,他们分别应用于基于RPM软件包的Linux发行版本和DEB软件包的Linux发行版本。软件包管理工具的作用是提供在操作系统中安装,升级,卸载需要的软件的方法,并提供对系统中所有软件状态信息的查询。RPM全称为RedhatPackage Manager,最早由RedHat公司制定实施,随后被GNU开源操作系统接受并成为很多Linux系统(RHEL)的既定软件标准。DEB是基于Debian操作系统 阅读全文

posted @ 2013-04-28 11:16 androidme 阅读(472) 评论(0) 推荐(0) 编辑

Linux的自动执行程序cron和crontab
摘要:http://os.51cto.com/art/200805/75224.htm假如你有一些任务要定期执行,比如清理磁盘、删除过期文件、发送邮件和提醒,这个时候可以用cron来帮你。首先是安装,大多数发行版都预装了,Gentoo下的cron有许多种实现,可以用emerge --search cron来查看,这里用vixie-cron,因为功能比较完整,命令语法也比较通用。# emerge vixie-cron之后要启动cron服务:# /etc/init.d/vixie-cron start别忘了把cron加入到启动脚本中:# rc-update add vixie-cron default完 阅读全文

posted @ 2013-04-10 18:42 androidme 阅读(273) 评论(0) 推荐(0) 编辑

Tomcat start/stop script
摘要:http://blog.valotas.com/2011/05/tomcat-initd-script.htmlhttp://blog.botha.us/sarel/?p=101#!/bin/bash## tomcat7 This shell script takes care of starting and stopping Tomcat## chkconfig: - 80 20#### BEGIN INIT INFO# Provides: tomcat7# Required-Start: $network $syslog# Required-Stop: $network $sysl... 阅读全文

posted @ 2013-04-10 17:25 androidme 阅读(733) 评论(0) 推荐(0) 编辑

OpenWrt启动过程分析
摘要:http://www.cnblogs.com/miosec/archive/2013/02/27/2934508.htmlopenwrt是通过一系列shell脚本进行启动流程的组织,下面是启动流程的提纲。如果想详细了解启动的过程,则需要仔细走读脚本文件。1. 在make menuconfig 选择target平台 Broadcom BCM947xx/953xx [2.4]2. linux内核的配置文件由下面两个文件组成target/linux/generic-2.4/config-defaulttarget/linux/brcm-2.4/config-default3. 在配置文件中可以看到C 阅读全文

posted @ 2013-04-09 16:13 androidme 阅读(953) 评论(0) 推荐(0) 编辑

查看安装的glibc版本
摘要:http://blog.csdn.net/jcwkyl/article/details/5153334http://blog.chinaunix.net/uid-14966892-id-2780401.html方法一: 找到libc的DSO(dynamic shared object)并运行它,如下所示: [whb@jcwkyl ~]$ locate libc.so /lib/libc.so.6 /lib/i686/nosegneg/libc.so.6 /usr/lib/libc.so [whb@jcwkyl ~]$ /lib/libc.so.6 GNU C Library stab... 阅读全文

posted @ 2013-04-09 15:43 androidme 阅读(648) 评论(0) 推荐(0) 编辑

Linux程序调试--查看二进制文件
摘要:http://blog.sina.com.cn/s/blog_7a2fc53a0100y54h.html一,二进制文件的类型 Linux下的二进制文件是ELF格式的,主要有目标文件、静态链接库文件、动态链接库文件、可执行文件和core dump文件。可以使用如下命令查看其类型: file 文件名。 我们还是以之前的例子test.c举例,test.c的源代码和之前的文章一样: int sub(int a,int b,int c){ *(int *)a=16; return 0; } int main() { int a=0; int b=1; int c=... 阅读全文

posted @ 2013-04-08 18:24 androidme 阅读(6984) 评论(1) 推荐(0) 编辑

Complete password field scp command on linux
摘要:http://stackoverflow.com/questions/3457719/complete-password-field-scp-command-on-linuxhttp://www.uini.net/?p=356You can generate a pair of RSA/DSA keys (public and private). In your terminal:$ ssh-keygenIt will generate a pair of files:Private key: .ssh/id_dsaPublic key: .ssh/id_dsa.pubThen, if you 阅读全文

posted @ 2013-04-07 13:13 androidme 阅读(190) 评论(0) 推荐(0) 编辑

Linux Process Memory Usage
摘要:http://www.linuxforums.org/forum/red-hat-fedora-linux/49630-how-programmatically-monitor-process-memory-usage.htmlhttp://opentips.blogspot.com/2008/01/linux-process-memory-usage.htmlThe following shell script is used to monitor the memory usage of a process.Save the following script in a file (for e 阅读全文

posted @ 2013-04-05 20:47 androidme 阅读(675) 评论(1) 推荐(0) 编辑

Build tcpdump for ARM
摘要:http://wiki.neurostechnology.com/index.php/Cross_Compiling_on_Linuxhttp://androidap.blogspot.com/2010/11/tcpdump-for-android.htmlhttp://hi.baidu.com/shangyefeng/item/576ae12c4670c30842634a87http://blog.csdn.net/jgf_ntu/article/details/8607575 阅读全文

posted @ 2013-04-03 14:39 androidme 阅读(193) 评论(0) 推荐(0) 编辑

ezwinports
摘要:http://sourceforge.net/projects/ezwinports/This project is a collection of ports to MS-Windows of GNU and Unix software packages, which either don't have precompiled Windows binaries available, or whose existing ports are buggy or broken.All the ports are built using the MinGW development enviro 阅读全文

posted @ 2013-03-26 10:37 androidme 阅读(214) 评论(0) 推荐(0) 编辑

Dos2Unix / Unix2Dos
摘要:http://dos2unix.sourceforge.net/ 阅读全文

posted @ 2013-03-26 10:24 androidme 阅读(117) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示