
Linux
Cedar
这个作者很懒,什么都没留下…
展开
-
linux 程序分析工具
ldd 查看可执行文件链接了哪些动态链接库nm 查看可执行文件里面有哪些符号strip 去除符号表可以给可执行文件瘦身如果我们想从可执行程序里面提取出来一点什么文本信息的话,还可以用strings命令strings原创 2014-07-03 17:21:34 · 180 阅读 · 0 评论 -
debian network update
linux about some config file for network config /etc/network/interfaces /etc/resolv.conf and gnome /etc/NetworkManager/NetworkManager.confin last one is update disktop like[main]plugins=ifupdow原创 2013-01-04 23:59:16 · 180 阅读 · 0 评论 -
configure mplayer install --enable-gui
sudo apt-get build-dep mplayersudo apt-get install libsctp-dev lksctp-tools./configure --enable-gui --enable-menusudo apt-get install libgtk2.0-devsudo apt-get install gtk+2.0这里会有ffmpeg的编译原创 2012-05-10 22:14:00 · 243 阅读 · 0 评论 -
.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)# for examples# If not running interactively, don't do anything原创 2012-12-30 10:49:49 · 124 阅读 · 0 评论 -
install disk manual partation
0简介学习分区基础知识时,可能会遇到Linux分区问题,这里将介绍Linux分区的知识和几个解决方法。如果需要手动进行分区,而不是由系统自己来安排,在进行安装之前,需要先学习一些基础知识:1 Linux分区基础知识Linux用hd和sd区分不同类型的硬盘的机制,现在一般用sda统一代表电脑中的第一块硬盘(hd和sd的去别有兴趣的可以查查资料)。在Linux下,/dev/sda#中的原创 2012-02-25 18:38:40 · 499 阅读 · 0 评论 -
vimdiff operator
手工做code merge的时候,经常会用到文件比较与同步的工具。vimdiff是比较好的工具。首先保证系统中的diff命令是可用的。Vim的diff模式是依赖于diff命令的。Vimdiff的基本用法就是:#vimdiff FILE_LEFT FILE_RIGHT或者# vim -d FILE_LEFT FILE_RIGHT使用者只要把注意力集中在两个文件转载 2012-11-13 14:18:03 · 201 阅读 · 0 评论 -
linux :mount disk
大致可分这么个步骤1 :先加挂一块硬盘2 :创建分区3 :格式化硬盘4 :设置卷标5 :创建挂载点6 :挂载 (自动,手动)挂硬盘就不说了,创建分区[root@localhost ~]# fdisk /dev/sdbsda是第一块SCSI硬盘,sdb第二块,以此类推...物理分区使用a、b编号,每个物理硬盘最多有四个主逻辑分区(或扩展分区),原创 2011-07-22 21:51:31 · 352 阅读 · 0 评论 -
lookup partation infomation in linux
查看磁盘分区的一些参数ls -l /dev/disk/by-idls -l /dev/disk/by-labells -l /dev/disk/by-pathls -l /dev/disk/by-uuid原创 2012-10-25 11:34:00 · 134 阅读 · 0 评论 -
auto makefile
作为Linux下的程序开发人员,大家一定都遇到过Makefile,用make命令来编译自己写的程序确实是很方便。一般情况下,大家都是手工写一个简单Makefile,如果要想写出一个符合自由软件惯例的Makefile就不那么容易了。在本文中,将给大家介绍如何使用autoconf和automake两个工具来帮助我们自动地生成符合自由软件惯例的Makefile,这样就可以象常见的GNU程序一样,只要转载 2012-10-22 21:46:24 · 192 阅读 · 0 评论 -
linux shell string operation
var=http://www.google.com.hk一 # 号截取,删除左边字符。echo ${var#*//}其中 var 是变量名,# 号是运算符,*// 表示从左边开始删除第一个 // 号及左边的所有字符二 ## 号截取,删除左边字符。echo ${var##*/}##*/ 表示从左边开始删除最后(最右边)一个 / 号及左边的所有字符三 %号截取,转载 2013-02-04 09:34:15 · 208 阅读 · 0 评论 -
vim & vi shortcut
介绍vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里只是简单地介绍一下它的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的。1vi的基本概念 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode),各模式的功原创 2011-10-11 11:05:40 · 379 阅读 · 0 评论 -
vim 使用
1. 介绍vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里只是简单地介绍一下它的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的。2. vi的基本概念 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode),原创 2014-07-02 15:32:31 · 223 阅读 · 0 评论 -
mplayer debug options
掌握一些Mplayer的常用选项-msglevel :=:...>用途:控制打印信息的级别,例子:-msglevel all=9可以打印所有模块的所有信息;-msglevel help可以查看所有可以控制的模块;-msglevel network=9可以打印在线播放时的HTTP请求和HTTP响应,这样可以较快分析出一些url无法播放的原因。-ao/vo/ac/vc/afm/转载 2014-02-27 16:23:13 · 353 阅读 · 0 评论 -
linux terminal shortcut
复制为ctrl-shift-c粘贴为ctrl-shift-v tab=补全ctrl+a=开始位置ctrl+e=最后位置ctrl+k=删除此处至末尾所有内容ctrl+u= 删除此处至开始所有内容 Ctrl-L -刷新屏幕Ctrl-C -杀死当前任务 较完整: 窗口操作: Shift+Ctrl+T:新建标签页 Shift+Ctrl+W: 关闭原创 2012-11-08 14:02:00 · 308 阅读 · 0 评论 -
CloudPan
CloudPan is a linux kingsoft pan client.原创 2013-09-11 10:56:34 · 209 阅读 · 0 评论 -
shell text color
使用 echo -e 选项用来开启echo中的转义 具体如下:1)\e 或 \033 来输出Esc符号2)设置颜色的格式: \e[背景色;前景色;高亮m3)恢复默认为 \e[0m其中背景色可以被以下数字替换 0 透明(使用终端颜色), 40 黑, 41 红, 42 绿, 43 黄, 44 蓝 45 紫, 46 青绿, 47白(灰)前景色(也就是文本的颜色)可以被以下数字替转载 2013-05-10 09:55:40 · 264 阅读 · 0 评论 -
linux mpeg4ip
download http://nchc.dl.sourceforge.net/project/mpeg4ip/mpeg4ip/1.5.0.1/mpeg4ip-1.5.0.1.tar.gztar -zxf mpeg4ip-1.5.0.1.tar.gzsudo apt-get install libtoolsudo apt-get install yumsudo apt-ge原创 2013-03-21 16:19:07 · 254 阅读 · 0 评论 -
Linux errno
当linux中的C api函数发生异常时,一般会将errno变量(需include errno.h)赋一个整数值,不同的值表示不同的含义,可以通过查看该值推测出错的原因,在实际编程中用这一招解决了不少原本看来莫名其妙的问题。但是errno是一个数字,代表的具体含义还要到errno.h中去阅读宏定义,而每次查阅是一件很繁琐的事情。有下面几种方法可以方便的得到错误信息 (1)void perro原创 2013-03-17 22:24:33 · 219 阅读 · 0 评论 -
Linux下system()函数返错,errno是ECHILD
今天,一个运行了近一年的程序突然挂掉了,问题定位到是system()函数出的问题,关于该函数的简单使用在我上篇文章做过介绍: http://my.oschina.net/renhc/blog/53580先看一下问题简单封装了一下system()函数:[cpp] view plaincopyint pox_s转载 2013-03-17 22:09:31 · 210 阅读 · 0 评论 -
vim configuration
"当文件在外部被修改,自动更新该文件set autoread"高亮显示当前行set cursorline "当前行显示指示"hi cursorline guibg=#222222hi CursorColumn guibg=#333333"开启折叠set nofenset fdl=0"设置tab键为4个空格set tabstop=4set smar原创 2011-08-09 22:40:14 · 161 阅读 · 0 评论 -
linux terminal open browser
/usr/bin/xdg-openxdg-open http://www.google.com.hkopen google.hk原创 2012-08-11 22:20:43 · 253 阅读 · 0 评论 -
vim +cscope read source code
under linux vim +cscope build and commandfirst you must download install cscope or install scope used any methodi used download cscope source like follow.download and install cscopea.download原创 2012-06-06 22:50:08 · 321 阅读 · 0 评论 -
complie myplayer on svn source code
一、complie Mplayer1.下载 mplayer 的最新源码svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayersvn checkout svn://svn.mplayerhq.hu/mplayer/trunk myplayer2.获取编译mplayer 的所有依赖包sudo apt-get build-dep m转载 2011-11-05 12:22:43 · 540 阅读 · 1 评论 -
mplayer flow
main函数流程分析,分本地和网络两种情况1.本地文件的播放,以mp3文件的播放为例,命令行输入:mplayer test.mp3 只给出关键步骤 2. open_stream, 打开文件流 open_stream_full 找到合适的打开文件的方式,对于本地文件选择转载 2011-11-18 15:08:37 · 297 阅读 · 0 评论 -
insight debug mplayer tools
install insight to debug mplayer cedar@ubuntu:~/workspace/mplayer$ ./configure --enable-debugcedar@ubuntu:~/workspace/mplayer$ makecedar@ubuntu:~/workspace/mplayer$ sudo make installcedar@原创 2011-11-17 16:49:11 · 204 阅读 · 0 评论 -
secureCRT connect ubuntu linux
ssh is like advance telnet. Ssh is encryption session but telnet is not.1. start ssh function on ubuntusetup openssh-server and star原创 2011-10-01 22:02:45 · 207 阅读 · 0 评论 -
Linux 平台上的软件包管理
RPM/DPKG 两大阵营简介在 GNU/Linux( 以下简称 Linux) 操作系统中,RPM 和 DPKG 为最常见的两类软件包管理工具,他们分别应用于基于 RPM 软件包的 Linux 发行版本和 DEB 软件包的 Linux 发行版本。软件包管理工具的作用是提供在操转载 2011-09-18 21:03:31 · 199 阅读 · 0 评论 -
ubuntu 9.10 update 10.4
一些升级Ubuntu 10.04后的常见问题,包括系统不能启动、驱动配置等。首先备份Ubuntu 9.10的软件源。$ cd /etc/apt/$ mv sources.list sources.list_bak$ mv sources.list.d/ sourc原创 2011-08-19 07:58:22 · 186 阅读 · 0 评论 -
ubuntu root user
cedar@ubuntu:~$ sudo passwd Password: enter install user password ; Enter new UNIX password:enter root password Retype new UNIX原创 2011-08-17 22:23:05 · 154 阅读 · 0 评论 -
linux configuration pppoeconf
开启一个终端(应用程序 - 附件 - 终端) 2. 在终端,输入 sudo pppoeconf 3. 一个基于文本呢的菜单程序将指导你通过下列步骤: 1. 确认您的以太网卡已被检测到。原创 2011-08-12 21:59:15 · 244 阅读 · 0 评论 -
mplayer Mplayer.c analysis
这几天在学习mplayer以下是在网上搜集到的关于mplayer的文章,主要是源码分析这块。首先感谢这些文章的作者,有些没有标明原文出处,实在表示抱歉。 从Mplayer.c的main开始 //处理参数 mconfig = m_config_new(); m_config_register_options(mconfig,mplayer_opts); // TODO : a转载 2011-11-10 14:20:13 · 418 阅读 · 0 评论 -
Mini2440 SD卡驱动程序分析
本文先介绍了一下MMC的基本框架结构,然后采用自底向上的方法来分析整个MMC层是如何共同作用的。阅读时请结合参考资料1和2.参考资料:1.SD Memory Card Specifications / Part 1. Physical Layer Specification; Version1.0 2.LDD3 CHAPTER-16 BLOCK DEVICEhttp://ww转载 2011-10-23 22:20:26 · 1064 阅读 · 0 评论 -
linux insight insight-6.8 make error
1.下载insight-6.8.tar.bz22.tar xjvf insight-6.8.tar.bz23.cd insight-6.84. ./configure5.#make6.linux-nat.c:2879:error:ignoring return value of 'fgets',declared with attribute warn_unused_result原创 2012-04-23 16:57:22 · 276 阅读 · 0 评论 -
linux environment config files(bashrc profile )
(1)/etc/profile全局(公有)配置,不管是哪个用户,登录时都会读取该文件。(2)/ect/bashrcUbuntu没有此文件,与之对应的是/ect/bash.bashrc它也是全局(公有)的bash执行时,不管是何种方式,都会读取此文件。(3)~/.profile若bash是以login方式执行时,读取~/.bash_profile,若它不存在,则读取~/.转载 2012-03-18 13:45:17 · 220 阅读 · 0 评论 -
linux and window CR and LF
最近在linux下安装一个工具是用python写的:1.保存脚本在window下,这是的换行回车是window下的,直接传输文件到linux下,结果是无论怎么样这个工具都没有办法运行起来。2.最后原因是linux下的换行和window下的换行不一样。在linux下有个命令可以转换unix2dos这个错误纠结了好长时间,在此纪念一下。原创 2012-03-11 16:17:21 · 273 阅读 · 0 评论 -
Install VMware Tools
Install VMware Tools in a Linux Guest Before you begin, make sure the virtual machine is powered on and the guest operating system is running.To install VMware Tools in a Linux guest1 On the hos原创 2011-09-18 12:14:31 · 252 阅读 · 0 评论 -
how to install tar.gz software in linux
tar.gz also known as tarball,an archive format for electronic data and software.Most Linux tarball contains a source code for software.If you are now to Linux recommended using apt-get,rpm and yum com转载 2012-02-29 16:57:32 · 906 阅读 · 0 评论 -
linux enviroment parameter
/etc/.profile和/etc/bash.bashrc设置环境变量和bash shell的设置,对所有用户生效,这样做可能有系统安全性问题~/.bashrc和~/.profile同上,只对当前用户生效在linux下做开发首先就是需要配置环境变量,下面以配置java环境变量为例介绍三种配置环境变量的方法。 1.修改/etc/.profile文件如果你的计算机仅仅作为开发使用原创 2011-08-17 22:25:38 · 208 阅读 · 0 评论 -
linux window shortcut
Alt + F4 -关闭窗口Alt + F5 -取消最大化窗口 (恢复窗口原来的大小)Alt + F7 -移动窗口 (注: 在窗口最大化的状态下无效)Alt + F8 -改变窗口大小 (注: 在窗口最大化的状态下无效)Alt + F9 -最小化窗口Alt + F10- 最大化窗口Alt + Space -打开控制菜单Alt + F1 -打开”应用程序”菜单Alt原创 2012-02-27 16:37:06 · 226 阅读 · 0 评论 -
install and configure Wine for linux Ubuntu 11.10
Introduce There are two more days left in the release of Ubuntu 11.10 Oneiric Ocelot and eagerness of users is increasing and i’m sure most of them would have installed its beta version.Wine i转载 2012-02-26 20:38:41 · 409 阅读 · 0 评论