2012年11月5日星期一

rtmpt的相关链接

http://red5.5842.n7.nabble.com/RTMFP-in-red5-legal-td3630.html#a32760305
http://code.google.com/p/blue5/wiki/RTMPFPSpecs
https://github.com/OpenRTMFP/Cumulus

2012年11月1日星期四

编译最新Kernel

http://blog.csdn.net/deansrk/article/details/6674025

http://hi.baidu.com/adomore/item/7580f5e6543539f92a09a4ad

http://hi.baidu.com/linuxtrip/item/5e8e6153dd63ce9c8c12ed9b

http://kerry.blog.51cto.com/172631/398554

http://hi.baidu.com/higkoo/item/f7fb0d0110325310cc34eac3

http://hi.baidu.com/uwtzubraqinrvxr/item/9527a9c7f86de220a1b50a56

http://www.idcrx.com/zhishiku/linux/2012/0601/163108.html

http://funky-dennis.livejournal.com/3290.html

http://blog.csdn.net/firedfish/article/details/4392556

http://en.linuxreviews.org/Kernel_Rebuild_Guide

--------------------------------------------------------
1. wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.6.5.tar.bz2; cp linux-3.6.5.tar.bz2 /usr/src/

2. cd /usr/src/;tar jxvf linux-3.6.5.tar.bz2

3. mv /usr/include/linux /usr/include/linux.old;ln -s /usr/src/linux-3.6.5/include/linux/ /usr/include/linux

4. cd linux-3.6.5;cp /boot/config-`uname -r` .config

5. yum install ncurses ncurses-devel;make menuconfig

    You can choose the features you want to enable, for example, I've chosen Controlled Delay AQM(CoDel) in "Networking support -> Networking options->QoS and fair queueing)

6. edit ".config", find CONFIG_SYSFS_DEPRECATED, and add:

CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y

7. make;make modules_install;make install

8. mkdir /tmp/mylinux;cp /boot/initrd-3.6.5.img /tmp/mylinux/initrd-3.6.5.img.gz;cd /tmp/mylinux/;

9. gunzip initrd-3.6.5.img.gz;cpio -id < initrd-3.6.5.img

10. edit init, and comment out the following two duplicate lines:

#echo "Loading dm-region-hash.ko module"
#insmod /lib/dm-region-hash.ko

11. find .|cpio -c -o|gzip  -9 > /boot/initrd-3.6.5.img

12. edit /boot/grub/grub.conf, change default to 0(use the new kernel as the default)

Done, reboot

--------------------------------------------------------
1. 去http://www.kernel.org/下载最新的稳定版本

cp /boot/config-`uname -r` .config
 
make menuconfig #choose enable deprecated sysfs features to support old userspace tools

执行完make menuconfig后,修改/usr/src/linux-2.6.35.4/.config
将#CONFIG_SYSFS_DEPRECATED is not set
默认被注释掉的,将其改为y。即修改为


CONFIG_SYSFS_DEPRECATED=y
CONFIG_SYSFS_DEPRECATED_V2=y

make

make modules_install

mkdir  /tmp/mylinux
         
cp  /boot/initrd-3.2.9.img  /tmp/mylinux/initrd-3.2.9.img.gz
         
cd  /tmp/mylinux
         
gunzip  initrd-3.2.9.img.gz
         
cpio  -id  < initrd-3.2.9.img

remove duplicate in "init",去掉后面的。

   echo "Loading dm-region-hash.ko module"
   insmod /lib/dm-region-hash.ko

find  .  |  cpio  -c -o |  gzip  -9 > /boot/initrd-3.2.9.img

2012年10月29日星期一

利用Xapian构建自己的 搜索

http://www.162cm.com/p/xapian-learning.html

linux磁盘空间查看利器

http://dev.yorhel.nl/ncdu

使用方法:

执行ncdu会提示选择目录,输入目标目录,回车,即可列出当前目录下的文件及目录的大小,默认按照大小进行排序

可以使用“?”调出帮助菜单

使用数字键,1、2、3进行切换,1为快捷键,2为显示格式说明,3为ncdu版权信息。

常用快捷键

n :按文件名进行排序
s :按文件大小进行排序
r :重新统计当前文件夹大小
g :用#或百分比显示各文件/目录的大小所占的百分比
i :显示当前文件/目录信息
d :删除
ncdu /
可以看整个硬盘的空间使用

推荐系统

Deconstructing Recommender Systems, http://spectrum.ieee.org/computing/software/deconstructing-recommender-systems 这是一篇推荐系统综述的文章,介绍了推荐系统的基本算法及其演化过程,推荐系统的现状和面临的问题。 Grouplens: 最早研究推荐系统的机构之一,http://www.grouplens.org/ MIT的推荐系统Ringo, http://www.sigchi.org/chi95/proceedings/papers/us_bdy.htm

2012年10月14日星期日

Linux traffic control - the basics

Linux traffic control的基本介绍,包括一些基本概念,命令参数的含义


http://www.docum.org/docum.org/faq/cache/1.html

2012年10月10日星期三

Wireshark包解析器扩展

可以通过Lua来写扩展,可以通过C。Lua更加方便点。先记录几个链接。

http://wiki.wireshark.org/Lua

http://wiki.wireshark.org/LuaAPI/

http://wiki.wireshark.org/Lua/Examples

http://www.codeproject.com/Articles/19426/Creating-Your-Own-Custom-Wireshark-Dissector

Lua教程:

http://www.lua.org/pil/

http://onlamp.com/pub/a/onlamp/2006/02/16/introducing-lua.html

http://lua-users.org/wiki/SampleCode