<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.yepn.net/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>记事本</title>
        <description></description>
        <link>http://wiki.yepn.net/</link>
        <lastBuildDate>Mon, 06 Sep 2010 06:40:26 -0600</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://wiki.yepn.net/lib/images/favicon.ico</url>
            <title>记事本</title>
            <link>http://wiki.yepn.net/</link>
        </image>
        <item>
            <title>Apache</title>
            <link>http://wiki.yepn.net/apache?rev=1265101463&amp;do=diff</link>
            <description>安装


Apache安装比较简单 在Fedora Core服务器上安装可以通过yum方式，但我个人比较喜欢用源码包安装。 

Code

 
#yum -y install httpd 
对于新手建议yum包安装方式，安装简单，需要相关的依赖包系统会自动查找。 

编辑yum安装Apache配置文件路径 
vi /etc/httpd/conf/http.conf</description>
            <pubDate>Tue, 02 Feb 2010 02:04:23 -0600</pubDate>
        </item>
        <item>
            <title>Apple TV</title>
            <link>http://wiki.yepn.net/appletv?rev=1262268041&amp;do=diff</link>
            <description>mount -uw /  #挂载为可写分区 
mount -ur /  #挂载为只读分区</description>
            <pubDate>Thu, 31 Dec 2009 07:00:41 -0600</pubDate>
        </item>
        <item>
            <title>Awk</title>
            <link>http://wiki.yepn.net/awk?rev=1275530652&amp;do=diff</link>
            <description>学习用，未整理 &lt;http://www.lampchina.net/article/htmls/201004/Mjg0Mzky.html&gt;

command line

 
awk 'BEGIN{v_list=&quot;hello good well done&quot;;n=split(v_list,ch);i=1;while(i&lt;=n){print ch[i];i++}}' 


Tips

 
awk -F[分隔符集] '{print $1}' filename     #使用两个分隔符</description>
            <pubDate>Wed, 02 Jun 2010 20:04:12 -0600</pubDate>
        </item>
        <item>
            <title>BASH</title>
            <link>http://wiki.yepn.net/bash?rev=1265100823&amp;do=diff</link>
            <description>生成1000以内的500个随机数 

 
gawk 'BEGIN {srand(); for (i = 1; i &lt;= 500; i++) print int(1000*rand())}'  



#计算指定日期,查找指定路径文件的大小 

 
#!/bin/bash 

if [ $# -ne 1 ] 
then 
 echo &quot;Usage: total DATE&quot; 
 exit 
fi 

TERA=/tera02 
NAME1=(adlantis adlantis_mobile) 
NAME2=(ad click conv) 
DIR1=(&quot;lb05?&quot; &quot;lb06?&quot;)   #target dir 
DATA1=$1 

find_du () 
{ 
   find /$TERA/$1/$2/$3 -type f -regex &quot;.*&quot;$DATA1&quot;_.*&quot; -exec du -s {} \;|awk '{ 
sum+=$1}; END{print sum}' 
} 

for i in ${NAME1[@]} 
do 
   for j in ${NAME2[@]} 
  …</description>
            <pubDate>Tue, 02 Feb 2010 01:53:43 -0600</pubDate>
        </item>
        <item>
            <title>BASH Scripts</title>
            <link>http://wiki.yepn.net/bashscripts?rev=1266847985&amp;do=diff</link>
            <description>log_cal.sh

 
#!/bin/bash 
#ver 1.0 by gavin 
###指定文件夹大小计算,可以套用,但不能直接用,这个只适合我这边的生产环境 
usage_ver () { 
        echo &quot;# ver 0.1 2009-12-09 by gavin&quot; 
        exit 0 
} 

usage_help () {  
        echo &quot;Usage: $0 optstring parameters&quot; 
        echo &quot;       $0 [options] [--] optstring parameters&quot; 
        echo &quot;  -V, --version                Show Version info&quot; 
        echo &quot;  -r, --directory              Target-directory&quot; 
        echo &quot;  -i, --filename               Include-chars&quot; 
        echo &quot; …</description>
            <pubDate>Mon, 22 Feb 2010 07:13:05 -0600</pubDate>
        </item>
        <item>
            <title>BASH Tips</title>
            <link>http://wiki.yepn.net/bashtips?rev=1274171719&amp;do=diff</link>
            <description>代码学习

  
:() { :|:&amp; }; : 



为什么这个东西会让你的系统死掉？？？有人执行了然后问我 让我们来分析一下这段代码，我改一下格式，但内容是一样的 代码: :() # 定义一个叫“:”的过程 { # 标记过程内容的开始 : | : &amp; # 执行“:”这个过程，然后通过管道接到“:”再执行一次，而且每一次执行，都会在后台执行 }; # 标记过程内容的结束，因为是同一行来写，所以要加上“;”，这样才能接后面的内容 : # 执行:…</description>
            <pubDate>Tue, 18 May 2010 02:35:19 -0600</pubDate>
        </item>
        <item>
            <title>Bench</title>
            <link>http://wiki.yepn.net/bench?rev=1265951936&amp;do=diff</link>
            <description>httperf + autobench

 
yum -y install texinfo gd gnuplot gd-devel.x86_64 

wget http://httperf.googlecode.com/files/httperf-0.9.0.tar.gz 
wget http://www.xenoclast.org/autobench/downloads/autobench-2.1.2.tar.gz 

tar -zxvf httperf-0.9.0.tar.gz 
tar -zxvf autobench-2.1.2.tar.gz 

cd httperf-0.9.0 &amp;&amp; ./configure &amp;&amp; make &amp;&amp; make install 
cd autobench-2.1.2 &amp;&amp; ./configure &amp;&amp; make &amp;&amp; make install 

cp /usr/local/bin/bench2graph /usr/local/bin/bench2png 
sed -i 's/postscript color/png xffffff/g' /usr/…</description>
            <pubDate>Thu, 11 Feb 2010 22:18:56 -0600</pubDate>
        </item>
        <item>
            <title>Blueprint</title>
            <link>http://wiki.yepn.net/blueprint?rev=1214056261&amp;do=diff</link>
            <description>这个 CSS 框架将 html 标签设定为如下情况： 


	*  统一重置了 43 个 html 标签（html 4.0 标签一共 91 个）的属性，（html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td）。重置 html 标签的默认样式为：内外填充边框都为零，字体粗细、字体科族和字体样式继承，字体大小百分之百（在中文情况下使用这个还是改固定象素的好），高度以基线对齐； 
		*  设定 body 内的行高为 1.5 倍；字体大小百分之七十五（在中文情况下使用这个还是改固定象素的好）；字体颜色为 #222222 （接近于黑色） 
		*  设定 table 的边界…</description>
            <pubDate>Sat, 21 Jun 2008 07:51:01 -0600</pubDate>
        </item>
        <item>
            <title>Cacti</title>
            <link>http://wiki.yepn.net/cacti?rev=1269854258&amp;do=diff</link>
            <description>spine代替cmd.php提高运行效率 

 
yum -y install libtool.x86_64 libtool-ltdl-devel.x86_64 mysql-devel.x86_64 net-snmp-devel.x86_64 

wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7e.tar.gz 

tar -zxvf  cacti-spine-0.8.7e.tar.gz 

./configure &amp;&amp; make &amp;&amp; make install 

### TEST 
/usr/local/spine/bin/spine</description>
            <pubDate>Mon, 29 Mar 2010 03:17:38 -0600</pubDate>
        </item>
        <item>
            <title>Cobbler</title>
            <link>http://wiki.yepn.net/cobbler?rev=1275460816&amp;do=diff</link>
            <description>Install

 
yum -y install cobbler tftp-server dhcp httpd xinetd 


Setting

 
#vi /etc/cobbler/settings 
161: manage_dhcp: 1 
362: server: your_server_ip 


 
cobbler check 


dhcp.template

 
# more dhcp.template  
# ****************************************************************** 
# Cobbler managed dhcpd.conf file 
# 
# generated from cobbler dhcp.conf template ($date) 
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes 
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf w…</description>
            <pubDate>Wed, 02 Jun 2010 00:40:16 -0600</pubDate>
        </item>
        <item>
            <title>Debian</title>
            <link>http://wiki.yepn.net/debian?rev=1277557251&amp;do=diff</link>
            <description>bad super-block

从家里开始用debian就感觉这东西真是要命，今天super-block又出问题了，修复过程记录一下。 

 
# mke2fs -n /dev/sdb3   #bad super-blcik partition 
mke2fs 1.35 (28-Feb-2004) 
Filesystem label= 
OS type: Linux 
Block size=4096 (log=2) 
Fragment size=4096 (log=2) 
611648 inodes, 1222940 blocks 
61147 blocks (5.00%) reserved for the super user 
First data block=0 
38 block groups 
32768 blocks per group, 32768 fragments per group 
16096 inodes per group 
Superblock backups stored on blocks:  
        32768, 98304, 163840…</description>
            <pubDate>Sat, 26 Jun 2010 07:00:51 -0600</pubDate>
        </item>
        <item>
            <title>Delegate</title>
            <link>http://wiki.yepn.net/delegate?rev=1218782069&amp;do=diff</link>
            <description>Delegate添加新端口后报错

 
** NG, this executable is not signed: .../src/delegated 



解决方法 

 
    % src/delegated -Fesign -w /usr/local/bin/delegated 

or 
    % cp /usr/local/bin/delegated /tmp/delegated 
    % /tmp/delegated -Fesign -w /usr/local/bin/delegated</description>
            <pubDate>Fri, 15 Aug 2008 00:34:29 -0600</pubDate>
        </item>
        <item>
            <title>DHCP</title>
            <link>http://wiki.yepn.net/dhcp?rev=1216191389&amp;do=diff</link>
            <description>#yum -y install dhcp 
#yum安装比较方便版本差异不大 


#cd /etc 
#cat /usr/share/doc/dhcp*/dhcpd.conf.sample &gt;&gt; dhcpd.conf 

#cat dhcpd.conf |grep -v &quot;#&quot; 

ddns-update-style interim; 
ignore client-updates; 

#以下为全局配置 
option domain-name-servers      172.30.4.4,172.31.7.7; 
option nis-domain               &quot;cyberstep.dev&quot;; 
option domain-name              &quot;cyberstep.dev&quot;; 

#subnet hosts中没有设置的话以全局变量配置为主，有侧覆盖 
#Summit X450中划分了VLAN Subnet对应Summit中的VLAN 


subnet 172.16.0.0 netmask 255.255.0.0 { 
        option …</description>
            <pubDate>Wed, 16 Jul 2008 00:56:29 -0600</pubDate>
        </item>
        <item>
            <title>Django</title>
            <link>http://wiki.yepn.net/django?rev=1268922325&amp;do=diff</link>
            <description>gravatar

 
#制作特殊标签 app/templatetags 

from django import template 

import urllib, hashlib 

register = template.Library() 

def gravatar(email, size=80): 
    gravatar_url = &quot;http://www.gravatar.com/avatar.php?&quot; 
    gravatar_url += urllib.urlencode({ 
        'gravatar_id':hashlib.md5(email).hexdigest(), 
        'size':str(size)}) 
    return &quot;&quot;&quot;&lt;img src=&quot;%s&quot; alt=&quot;gravatar for %s&quot; /&gt;&quot;&quot;&quot; % (gravatar_url, email) 

register.simple_tag(gravatar)</description>
            <pubDate>Thu, 18 Mar 2010 08:25:25 -0600</pubDate>
        </item>
        <item>
            <title>DNS</title>
            <link>http://wiki.yepn.net/dns?rev=1264585754&amp;do=diff</link>
            <description>BIND 9.5 

 
#安装比较简单，按照BIND的提醒禁用openssl版本检查选项 

#./configure --disable-openssl-version-check 
#make &amp;&amp; make install 


#配置BIND，先复制一个标准配置文件到/etc目录下 
#cp bin/tests/named.conf /etc/named.conf 

#options修改如下，社内服务器解析用，所以配置的比较简单 
#cat named.conf 
options { 

        version &quot;Yepn BIND&quot;; 

        directory &quot;/var/named&quot;; 

        allow-query { 
                127.0.0.1; 
                172.16.0.0/12; 
                10.100.0.0/16; 
        }; 

        allow-transfer { 
                127.0.0.1; 
…</description>
            <pubDate>Wed, 27 Jan 2010 02:49:14 -0600</pubDate>
        </item>
        <item>
            <title>Expect</title>
            <link>http://wiki.yepn.net/expect?rev=1273726501&amp;do=diff</link>
            <description>确认crontab内容 

 
#!/usr/bin/expect 
#ver 0.2 by gavin 
set hostname [lindex $argv 0] 
send_user &quot;\n\n&lt;--------------  check $hostname START --------------&gt;\n\n&quot; 
spawn ssh $hostname 
expect &quot;*~]$&quot; 
send &quot;su -\r&quot; 
expect &quot;Password:&quot; 
send &quot;password\r&quot; 
expect &quot;*~]#&quot; 
send &quot;crontab -l\r&quot; 
expect &quot;*~]#&quot; 
send_user &quot;\n\n&lt;--------------  check $hostname END --------------&gt;\n\n&quot; 
expect eof 
close 
exit</description>
            <pubDate>Wed, 12 May 2010 22:55:01 -0600</pubDate>
        </item>
        <item>
            <title>ExtremeXOS</title>
            <link>http://wiki.yepn.net/extreme?rev=1213671800&amp;do=diff</link>
            <description>删除配置

 
unconfigure ...... 


基本命令

 
根据extreme官方资料,整理了一些常用的配置! 

1.用户名和密码配置 
create account [admin | user] &lt;username&gt; {encrypted} {&lt;password&gt;} 
configure account admin 
2.port配置 
config ports &lt;portlist&gt; auto off {speed [10 | 100 | 1000]} duplex [half | full] auto off 
3.Vlan配置 
无论是核心还是接入层，都要先创建三个Vlan，并且将所有归于Default Vlan的端口删除： 
config vlan default del port all 
create vlan Server 
create vlan User 
create vlan Manger 
定义802.1q标记 
config vlan Server tag 10 
config vlan User tag 20 
config vlan Ma…</description>
            <pubDate>Mon, 16 Jun 2008 21:03:20 -0600</pubDate>
        </item>
        <item>
            <title>FastCGI</title>
            <link>http://wiki.yepn.net/fastcgi?rev=1216782082&amp;do=diff</link>
            <description>Apache2.2 以上支持mod_fastCGI 

先要确认你的apache2.2是不是支持mod_so 

 
#apachectl -l 
Compiled in modules: 
  core.c 
  prefork.c 
  http_core.c 
  mod_so.c 


安装mod_fastCGI，源码包可以从官方网站上下载，因为我用yum安装的，所以需要修改Makefile文件</description>
            <pubDate>Tue, 22 Jul 2008 21:01:22 -0600</pubDate>
        </item>
        <item>
            <title>Freeradius</title>
            <link>http://wiki.yepn.net/freeradius?rev=1216111075&amp;do=diff</link>
            <description>Freeradius + OpenLDAP + PEAP 认证 

freeradius 2.0.6 install


Freereadius需要使用CA证书，所以在安装Freeradius之前先装好openssl-devel 

 
yum -y install openssl-devel 

源码包安装 
./configure --with-openssl --with-openssl-includes=/usr/include/openssl/ \ 
--with-openssl-libraries=/usr/lib/openssl/</description>
            <pubDate>Tue, 15 Jul 2008 02:37:55 -0600</pubDate>
        </item>
        <item>
            <title>Func</title>
            <link>http://wiki.yepn.net/func?rev=1274246665&amp;do=diff</link>
            <description>introduce


以下内容部分转自知道分子的BLOG

我们经常需要编写内容重复的脚本，使用大同小异的正则表达式，解析花样百出的各种命令输出。我们为了实现操作审计，建立了命令行监控系统，但实际上只能起到事后追查责任的作用。我们想要监控所有新增系统，但完全依靠人执行的制度流程，难免会出现疏漏。</description>
            <pubDate>Tue, 18 May 2010 23:24:25 -0600</pubDate>
        </item>
        <item>
            <title>Ganglia</title>
            <link>http://wiki.yepn.net/ganglia?rev=1269482997&amp;do=diff</link>
            <description>自定义模块加载

ambientTemp.conf 

 
modules { 
  module { 
    name = “ambientTemp”     #此处名称要与自定义模块名相同 
    language = &quot;python&quot; 
  } 
} 

collection_group { 
  collect_every = 10 
  time_threshold = 50 
  metric { 
    name = &quot;ambientTemp&quot; 
    title = &quot;Ambient Temperature&quot; 
    value_threshold = 70 
  } 
}</description>
            <pubDate>Wed, 24 Mar 2010 20:09:57 -0600</pubDate>
        </item>
        <item>
            <title>Gawk</title>
            <link>http://wiki.yepn.net/gawk?rev=1264586465&amp;do=diff</link>
            <description>&lt;http://www.cs.ucsb.edu/~sherwood/awk/&gt;


array2html script

 
#!/usr/bin/gawk -f 
# ___  _  _ ____ ___ ___ ____ ___  ____  
# |  \ |  | |     |   |  |__| |__] |___  
# |__/ |__| |___  |   |  |  | |    |___  
# 
# The scripts were written to be usefull in 
# a research enviornment, but anyone is welcome 
# to use them.  Happy awking.  -Tim Sherwood 

BEGIN { 
	FS =&quot;:&quot;; 
	printf  &quot;%s%s%s&quot;,  
		&quot;&lt;TABLE cellpadding=\&quot;1pt\&quot; BORDER=\&quot;2pt\&quot; &quot;, 
		&quot;CELLSPACING=\&quot;0pt\&quot; bgcolor=\&quot;\#ffffff\&quot; &quot;, 
		&quot;border…</description>
            <pubDate>Wed, 27 Jan 2010 03:01:05 -0600</pubDate>
        </item>
        <item>
            <title>Hadoop</title>
            <link>http://wiki.yepn.net/hadoop?rev=1265700280&amp;do=diff</link>
            <description>基本安装手顺

 
快速安装手顺,如果你刚接触hadoop请不要参考这篇文章,这是我工作中的命令手顺对新手没有任何帮助. 
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm 
rpm -Uvh http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm 
rm -rf /etc/munin/plugins/sendmail_mail* 
rm -rf /etc/munin/plugins/netstat 
rm -rf /etc/munin/plugins/interrupts 
rm -rf /etc/munin/plugins/irqstats 
rm -rf /etc/munin/plugins/entropy 
rm -rf /etc/munin/plugins/nfs_client 
rm -rf /etc/munin/plugin…</description>
            <pubDate>Tue, 09 Feb 2010 00:24:40 -0600</pubDate>
        </item>
        <item>
            <title>Haproxy</title>
            <link>http://wiki.yepn.net/haproxy?rev=1265272668&amp;do=diff</link>
            <description>HAProxy logs to a syslog facility local0, via a socket connection. By default, your syslog configuration probably doesn’t accept socket connections, and doesn’t have a local0 facility, so you have no HAProxy log. If you want it, configure syslog to accept TCP connections by adding -r to syslogd parameters.</description>
            <pubDate>Thu, 04 Feb 2010 01:37:48 -0600</pubDate>
        </item>
        <item>
            <title>inotify</title>
            <link>http://wiki.yepn.net/inotify?rev=1265096809&amp;do=diff</link>
            <description>#!/bin/bash 
#ver 1.2 by gavin 
#need inotify-tools.x86_64 &amp;&amp; inotify-tools-devel.x86_64 package  
#yum -y install inotify-tools.x86_64 inotify-tools-devel.x86_64 

usage_info () { 
    echo &quot;Usage: $0 optstring parameters&quot; 
    echo &quot;      --verbose       increase verbosity info&quot; 
} 

install_package () { 
    echo &quot;need inotify-tools.x86_64 &amp;&amp; inotify-tools-devel.x86_64 package&quot; 
    echo &quot;&quot; 
    echo &quot;rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt&quot; 
    echo &quot;rpm -Uvh htt…</description>
            <pubDate>Tue, 02 Feb 2010 00:46:49 -0600</pubDate>
        </item>
        <item>
            <title>ipmitools</title>
            <link>http://wiki.yepn.net/ipmi?rev=1273726196&amp;do=diff</link>
            <description>#安装ipmitool on centos 5.4 
#1 
yum -y install OpenIPMI-devel.x86_64 OpenIPMI-tools.x86_64 OpenIPMI-libs.x86_64 

#2 
yum install OpenIPMI OpenIPMI-tools 
chkconfig ipmi on 
service ipmi start 


 
Ipmitool –I open sensor list命令可以获取传感器中的各种监测值和该值的监测阈值，包括（CPU温度，电压，风扇转速，电源调制模块温度，电源电压等信息） 
Ipmitool –I open sensor get “CPU0Temp”可以获取ID为CPU0Temp监测值，CPU0Temp是sensor的ID，服务器不同，ID表示也不同。 
Ipmitool –I open sensor thresh 设置ID值等于id的监测项的各种限制值。 
Ipmitool –I open chassis status查看底盘状态，其中包括了底盘电源信息，底盘工作状态等 
Ipmitool –…</description>
            <pubDate>Wed, 12 May 2010 22:49:56 -0600</pubDate>
        </item>
        <item>
            <title>Samba+LDAP+LAM管理工具应用</title>
            <link>http://wiki.yepn.net/lam?rev=1259310552&amp;do=diff</link>
            <description>文档介绍

	*  作者：gavin	 
	*  电子邮箱：gavin.zhou@gmail.com     
	*  MSN：gavin_zhm@msn.com 
	*  博客地址：http://blog.yepn.net 
	*  Wiki地址：http://wiki.yepn.net 
	*  建立日期：2008年04月11日，最后修改日期：2008年07月15日 
	*  版本： 0.12 
	*  版权说明：本文基于创作共用约定，内容归作者版权所有，欢迎大家转载，但要请保留作者的完整信息和出处，谢谢！</description>
            <pubDate>Fri, 27 Nov 2009 01:29:12 -0600</pubDate>
        </item>
        <item>
            <title>Linux Tips</title>
            <link>http://wiki.yepn.net/linux?rev=1283507350&amp;do=diff</link>
            <description>SMTP认证sendMail命令

&lt;http://caspian.dotconf.net/menu/Software/SendEmail/&gt;

硬盘工作总时间

 
smartctl -A /dev/sdc 


10个有用的linux命令

 

sudo !! 

以 root 帐户执行上一条命令。 

python -m SimpleHTTPServer 

利用 Python 搭建一个简单的 Web 服务器，可通过 http://$HOSTNAME:8000 访问。 

:w !sudo tee % 

在 Vim 中无需权限保存编辑的文件。 

cd - 

更改到上一次访问的目录。 

^foo^bar 

将上一条命令中的 foo 替换为 bar，并执行。 

cp filename{,.bak} 

快速备份或复制文件。 

mtr google.com 

traceroute + ping。 

!whatever:p 

搜索命令历史，但不执行。 

$ssh-copy-id user@host 

将 ssh keys 复制到 user@host 以启用无密码…</description>
            <pubDate>Fri, 03 Sep 2010 03:49:10 -0600</pubDate>
        </item>
        <item>
            <title>Mac Tips</title>
            <link>http://wiki.yepn.net/mactips?rev=1274433688&amp;do=diff</link>
            <description>$chsh   #修改mac shell 

6: ## 
7: Shell: /opt/local/bin/zsh-4.3.4 
8: Full Name: 名前 


iTerm display profile

 
#!/bin/bash 

YEPN='&quot;Yepn&quot; =     { 
    &quot;Ansi 0 Color&quot; =         { 
        &quot;Blue Component&quot; = 0.3097887; 
        &quot;Green Component&quot; = 0.3097887; 
        &quot;Red Component&quot; = 0.3097887; 
    }; 
    &quot;Ansi 1 Color&quot; =         { 
        &quot;Blue Component&quot; = 0.3764706; 
        &quot;Green Component&quot; = 0.4235294; 
        &quot;Red Component&quot; = 1; 
    }; 
    &quot;Ansi 10 Color&quot; =         { 
        &quot;Blue …</description>
            <pubDate>Fri, 21 May 2010 03:21:28 -0600</pubDate>
        </item>
        <item>
            <title>Memcached</title>
            <link>http://wiki.yepn.net/memcached?rev=1261099885&amp;do=diff</link>
            <description>printf &quot;stats\r\n&quot; | nc 127.0.0.1 11211 

STAT pid 2529 
STAT uptime 1078133 
STAT time 1241415864 
STAT version 1.2.4 
STAT pointer_size 64 
STAT rusage_user 489.302614 
STAT rusage_system 6850.564555 
STAT curr_items 2537 
STAT total_items 872539 
STAT bytes 9939637 
STAT curr_connections 17 
STAT total_connections 6166911 
STAT connection_structures 110 
STAT cmd_get 68414905 
STAT cmd_set 872539 
STAT get_hits 67605437 
STAT get_misses 809468 
STAT evictions 0 
STAT bytes_read 921056148171 
…</description>
            <pubDate>Thu, 17 Dec 2009 18:31:25 -0600</pubDate>
        </item>
        <item>
            <title>minicom设定</title>
            <link>http://wiki.yepn.net/minicom?rev=1208403792&amp;do=diff</link>
            <description>CentOS下，minicom的默认设备是/dev/modem，所以需要做以下设置： 

# minicom -s #配置minicom的参数 

进入后 

选择Serial port setup -&gt; 修改Serial Device的设备为：/dev/ttyS0然后退出这一层菜单 -&gt; 
执行Save setup as dfl -&gt;然后执行Exit from Minicom。 

这样minicom的配置文件已经生成并配置好了。 

最后执行就很简单了： 

# minicom</description>
            <pubDate>Wed, 16 Apr 2008 21:43:12 -0600</pubDate>
        </item>
        <item>
            <title>Ruby case</title>
            <link>http://wiki.yepn.net/myruby?rev=1223646297&amp;do=diff</link>
            <description>生成随机字符串 0.1 

 
#!/usr/bin/ruby 

def apass(n) 
    chars=(0..9).to_a+(&quot;a&quot;..&quot;z&quot;).to_a+(&quot;A&quot;..&quot;Z&quot;).to_a 
    1.upto(n){print chars[rand(chars.size)]} 
end 

puts apass(10)</description>
            <pubDate>Fri, 10 Oct 2008 07:44:57 -0600</pubDate>
        </item>
        <item>
            <title>MYSQL</title>
            <link>http://wiki.yepn.net/mysql?rev=1282195048&amp;do=diff</link>
            <description>Mac osx mysql启动脚本

 
 sudo /Library/StartupItems/MySQLCOM/MySQLCOM start 


my.cnf 配置

源码安装后，复制support-file/my-*.cnf文件到/etc/my.cnf 

修改my.cnf文件添加，增加日志输出， 

 
#my.cnf 
log = /usr/local/mysql/log/query.log 

#启动参数修改 
/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/my.cnf --log &amp;</description>
            <pubDate>Wed, 18 Aug 2010 23:17:28 -0600</pubDate>
        </item>
        <item>
            <title>Nagios</title>
            <link>http://wiki.yepn.net/nagios?rev=1269911994&amp;do=diff</link>
            <description>交换机端口死活监视

 
#24口交换机 
cd /usr/lib64/nagios/plugins 
for i in {1..24}; do ./check_snmp -H IPADDRESS -C adlantis -o ifOperStatus.$i -r 1 -t 1 -m ALL;done 


yum 安装客户端

 
yum -y --enablerepo=epel,epel-testing install nagios-plugins-all 
yum -y install nagios-nrpe.x86_64 nagios-plugins-nrpe.x86_64 nrpe.x86_64 
vi /etc/nagios/nrpe.cfg 
#添加允许访问的服务器IP 
service nrpe start 

#服务器端 yum安装服务器端 
/usr/lib64/nagios/plugins/check_nrpe -H hd06 N…</description>
            <pubDate>Mon, 29 Mar 2010 19:19:54 -0600</pubDate>
        </item>
        <item>
            <title>网摘</title>
            <link>http://wiki.yepn.net/note?rev=1267429887&amp;do=diff</link>
            <description>2. 传送文件作为邮件附件. 

使用matt 客户端，一行即可完成: 

 
echo “Content” | mutt -s “Subject” -a file email@address.demo 



这个方法对及时传输一些小文件非常有效, 特别是传送源代码. 还能起到存档备份的效果, 反正Gmail 那么大不用也浪费. 懒人还可以进一步用一个脚本包装, 比如我机器上就包装出了一个 sendboss.sh, 里面是:</description>
            <pubDate>Mon, 01 Mar 2010 00:51:27 -0600</pubDate>
        </item>
        <item>
            <title>Objective-C</title>
            <link>http://wiki.yepn.net/objective-c?rev=1261130993&amp;do=diff</link>
            <description>Tips

 
JISキーボードでバックスラッシュ(?)がうまく入力できなくていままで悩んでいたのだが、ここのおかげで分かった。 

\　-&gt; option + ￥　でよかったのね。 


NSLog

 
%@     对象 
%d, %i 整数 
%u     无符整形 
%f     浮点/双字 
%x, %X 二进制整数 
%o     八进制整数 
%zu    size_t 
%p     指针 
%e     浮点/双字 （科学计算） 
%g     浮点/双字  
%s     C 字符串 
%.*s   Pascal字符串 
%c     字符 
%C     unichar 
%lld   64位长整数（long long） 
%llu   无符64位长整数 
%Lf    64位双字…</description>
            <pubDate>Fri, 18 Dec 2009 03:09:53 -0600</pubDate>
        </item>
        <item>
            <title>OpenLDAP</title>
            <link>http://wiki.yepn.net/openldap?rev=1259300914&amp;do=diff</link>
            <description>因为现在公司里的员工帐号分为邮件、上网、Samba、SNS、Desknets等帐号，管理起来非常的麻烦，特别是员工入社和退社时需要在每个服务器上做一次操作，加大了管理成本，主要是把我的复杂化了很多，所以想把帐号统一起来，因为以前也没有接触过Openldap，所以这次是从头学起，包括数据库部分。 特作此笔记方便以后自己记录和查找相关资料</description>
            <pubDate>Thu, 26 Nov 2009 22:48:34 -0600</pubDate>
        </item>
        <item>
            <title>OpenPNE</title>
            <link>http://wiki.yepn.net/openpne?rev=1265103489&amp;do=diff</link>
            <description>OpenPNE


OpenPNE是像mixi一样的SNS网络系统 

通过Web服务器+PHP、可能通过SSL方式访问，Mysql做为存储数据库、通过邮件服务器可实现手机发送邮件投稿。（此功能在日本非常流行，日本手机自带一个邮件地址）</description>
            <pubDate>Tue, 02 Feb 2010 02:38:09 -0600</pubDate>
        </item>
        <item>
            <title>OpenSolaris</title>
            <link>http://wiki.yepn.net/opensolaris?rev=1248141981&amp;do=diff</link>
            <description>切换图形界面

 
svcadm disbale gdm 
svcadm enable gdm 


添加静态路由

 
# cat /etc/gateways 
ripv2 
net 210.18.2.0/24  gateway 199.119.63.129 metric 1 passive 
net 40.20.3.0/24  gateway 199.119.63.129 metric 1 passive 

# in.routed -d 
... 
-- 2005/07/27 15:38:00.002789 -- 
no ifp for RTM_ADD    210.18.2.0      --&gt;199.119.63.129  metric=1 flags=0x2 
no ifp for RTM_ADD    40.20.3.0/24    --&gt;199.119.63.129  metric=1 flags=0x2 
-- 2005/07/27 15:38:30.802438 -- 

# netstat -rn 
Routing Table: IPv4 
  Destinati…</description>
            <pubDate>Mon, 20 Jul 2009 20:06:21 -0600</pubDate>
        </item>
        <item>
            <title>OpenSSH</title>
            <link>http://wiki.yepn.net/openssh?rev=1259828164&amp;do=diff</link>
            <description>编译openssh安装包

 
# yum install gcc 
# yum install openssl-devel 
# yum install pam-devel 
# yum install rpm-build 

It certainly doesn’t hurt to make the GPG check a habit: 

# wget http://ftp.yz.yamagata-u.ac.jp/pub/network/security/OpenSSH/portable/openssh-5.2p1.tar.gz 
# wget http://ftp.yz.yamagata-u.ac.jp/pub/network/security/OpenSSH/portable/openssh-5.2p1.tar.gz.asc 
# wget -O- http://ftp.yz.yamagata-u.ac.jp/pub/network/security/OpenSSH/portable/DJM-GPG-KEY.asc | gpg –-import 
# gpg openssh-…</description>
            <pubDate>Thu, 03 Dec 2009 01:16:04 -0600</pubDate>
        </item>
        <item>
            <title>OpenSSL</title>
            <link>http://wiki.yepn.net/openssl?rev=1275974431&amp;do=diff</link>
            <description>打印证书内容

 
 openssl req -noout -text -in csr.pem 


lighttpd SSL用证明书

 
openssl req -new -x509 \ 

  -keyout server.pem -out server.pem \ 

  -days 365 -nodes 


显示证书有效期

 
openssl x509 -noout -dates -in ca.pem 


生成证书

 
# openssl req -new -nodes -out req.pem -keyout cert.pem 
Generating a 1024 bit RSA private key 
................++++++ 
.......................................++++++ 
writing new private key to 'cert.pem' 
----- 
You are about to be asked to enter information that will be incorp…</description>
            <pubDate>Mon, 07 Jun 2010 23:20:31 -0600</pubDate>
        </item>
        <item>
            <title>Parted</title>
            <link>http://wiki.yepn.net/parted?rev=1260515898&amp;do=diff</link>
            <description>命令行方式 
parted /dev/sdb mkpart 0 2000G #新硬盘执行后报错 
Error: Unable to open /dev/sdb - unrecognised disk label 

解决办法 
parted /dev/sdb mklabel msdos  #一般linux或是windows分区用这个都OK 
再从新创建分区 
parted /dev/sdb mkpart 0 2000G</description>
            <pubDate>Fri, 11 Dec 2009 00:18:18 -0600</pubDate>
        </item>
        <item>
            <title>Freeradius + OpenLDAP + PEAP认证</title>
            <link>http://wiki.yepn.net/peap?rev=1238657203&amp;do=diff</link>
            <description>文档介绍：

	*  作者：gavin  
	*  电子邮箱：gavin.zhou@gmail.com  
	*  MSN：gavin_zhm@msn.com 
	*  博客地址：&lt;http://blog.yepn.net&gt; 
	*  Wiki地址：&lt;http://wiki.yepn.net&gt; 
	*  建立日期：2008年07月15日 
	*  版本： 0.2 
	*  版权说明：本文基于创作共用约定，内容归作者版权所有，欢迎大家转载，但要请保留作者的完整信息和出处，谢谢！</description>
            <pubDate>Thu, 02 Apr 2009 01:26:43 -0600</pubDate>
        </item>
        <item>
            <title>PHP</title>
            <link>http://wiki.yepn.net/php?rev=1235719031&amp;do=diff</link>
            <description>PHP Error


Warning: session_start()的解决方法 

修改php.ini中的session.auto_start = 0 为 session.auto_start = 1 

PHP学习笔记

 
字符串运算符. 
&lt;?php 
$a=my; 
$b=name; 
echo ($a.$b);    #把字符串$a与字符串$b连起来 
?&gt;</description>
            <pubDate>Fri, 27 Feb 2009 00:17:11 -0600</pubDate>
        </item>
        <item>
            <title>Postfix</title>
            <link>http://wiki.yepn.net/postfix?rev=1242791451&amp;do=diff</link>
            <description>Error Log 解决

 
auxpropfunc error invalid parameter 

vi /usr/lib/sasl/smtpd.conf 
pwcheck_method: saslauthd 
mech_list: login plain 
saslauthd_version: 2 



LDAP验证

 
 postmap -q 'd295380453' ldap:/misc/ldap/alias 
 postmap -q 'd295380453' ldap:/misc/ldap/alias; echo $?</description>
            <pubDate>Tue, 19 May 2009 21:50:51 -0600</pubDate>
        </item>
        <item>
            <title>Python</title>
            <link>http://wiki.yepn.net/python?rev=1274425235&amp;do=diff</link>
            <description>Pythonジェネレータ

 
Pythonにはリスト内包表記とよく似た表記のジェネレータ式がある。 

リスト内包表記はリストを返す。 

&gt;&gt;&gt; [ x ** 2 for x in range(4)] 
[0, 1, 4, 9] 
ジェネレータ式は反復処理可能なオブジェクト「ジェネレータオブジェクト」を返す。 

&gt;&gt;&gt; ( x ** 2 for x in range(4)) 
&lt;generator object at 0x00AB0648&gt; 
ジェネレータオブジェクトは、イテレータプロトコルをサポートしている。 

&gt;&gt;&gt; g = ( x ** 2 for x in range(4)) 
&gt;&gt;&gt; g.next() 
0 
&gt;&gt;&gt; g.next() 
1 
&gt;&gt;&gt; g.next() 
4 
&gt;&gt;&gt; g.next() 
9 
&gt;&gt;&gt; g.next() 
Traceback (most recent call last): 
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt; 
StopIteration…</description>
            <pubDate>Fri, 21 May 2010 01:00:35 -0600</pubDate>
        </item>
        <item>
            <title>Python tips</title>
            <link>http://wiki.yepn.net/pythontips?rev=1278057610&amp;do=diff</link>
            <description>set()

 

&gt;&gt;&gt;basket = ['apple','orange','apple','pear','apple','banana'] 

&gt;&gt;&gt;fruit=set(basket) 

&gt;&gt;&gt;fruit 
set(['orange', 'pear', 'apple', 'banana']) 

&gt;&gt;&gt;'orange' in fruit 
True 

&gt;&gt;&gt;a=set('abracadabew') 
&gt;&gt;&gt;a 
set(['a', 'c', 'b', 'e', 'd', 'r', 'w']) 

&gt;&gt;&gt;b=set('wajgwaoihwb') 
&gt;&gt;&gt;b 
set(['a', 'b', 'g', 'i', 'h', 'j', 'o', 'w']) 
  
&gt;&gt;&gt;a-b    #差 
set(['c', 'r', 'e', 'd']) 

&gt;&gt;&gt;a|b   #并 
set(['a', 'c', 'b', 'e', 'd', 'g', 'i', 'h', 'j', 'o', 'r', 'w']) 

&gt;&gt;&gt;a&amp;b   #交 
set(['a', 'b', 'w']) 

&gt;&gt;&gt;a…</description>
            <pubDate>Fri, 02 Jul 2010 02:00:10 -0600</pubDate>
        </item>
        <item>
            <title>Rails</title>
            <link>http://wiki.yepn.net/rails?rev=1265103425&amp;do=diff</link>
            <description>建立应用程序 

 
rails depot -d mysql   
#注rails 2.0之后采用sqlite做为默认数据库，使用mysql做为数据库需要加参数 


若是点击刚刚的静态页面中的About your application’s environment，我们会看到Rails已经对我们当前的配置进行了检测。</description>
            <pubDate>Tue, 02 Feb 2010 02:37:05 -0600</pubDate>
        </item>
        <item>
            <title>Ruby</title>
            <link>http://wiki.yepn.net/ruby?rev=1265103443&amp;do=diff</link>
            <description>没有什么特别的原因开学学习Ruby，只是从兴趣出发 

Programming Ruby 2nd Edition

特殊变量

 
$! 最近一次的错误信息 
$@ 错误产生的位置 
$_ gets最近读的字符串 
$. 解释器最近读的行数(line number) 
$&amp; 最近一次与正则表达式匹配的字符串 
$~ 作为子表达式组的最近一次匹配 
$n 最近匹配的第n个子表达式(和$~[n]一样) 
$= 是否区别大小写的标志 
$/ 输入记录分隔符 
$\ 输出记录分隔符 
$0 Ruby脚本的文件名 
$* 命令行参数 
$$ 解释器进程ID 
$? 最近一次执行的子进程退出状态…</description>
            <pubDate>Tue, 02 Feb 2010 02:37:23 -0600</pubDate>
        </item>
        <item>
            <title>Samba</title>
            <link>http://wiki.yepn.net/samba?rev=1259301886&amp;do=diff</link>
            <description>ERROR

 
Unable to connect to CUPS server localhost:631 - Connection refused 

解決方法：於smb.conf中加入以下設定 

load printers = no 
printing = bsd 
printcap name = /dev/null 
disable spoolss = yes 


实用例


LDAP组员变更后不生效重启nscd</description>
            <pubDate>Thu, 26 Nov 2009 23:04:46 -0600</pubDate>
        </item>
        <item>
            <title>Sed</title>
            <link>http://wiki.yepn.net/sed?rev=1282202952&amp;do=diff</link>
            <description>sed 's/Ma/MA/;s/PA/pa/' list 
sed -e 's/Ma/MA/' -e 's/PA/pa/' list 
sed ' 
   s/Ma/MA/ 
   s/PA/pa/' list 

#三种方式执行多重指令 


 
sed 's/.*/&amp;添加字符       #在每行末尾添加字符 


 
sed -i    #直接修改原文件 


 
sed s/[[:space:]]//g   #删除文件中的空格</description>
            <pubDate>Thu, 19 Aug 2010 01:29:12 -0600</pubDate>
        </item>
        <item>
            <title>SNMP</title>
            <link>http://wiki.yepn.net/snmp?rev=1221191028&amp;do=diff</link>
            <description>snmpd.conf配置文件

 
com2sec notConfigUser  default       public 
group   notConfigGroup v1           notConfigUser 
group   notConfigGroup v2c           notConfigUser 
access  notConfigGroup &quot;&quot;      any       noauth    exact  all none none 
view all    included  .1                               80 
view mib2   included  .iso.org.dod.internet.mgmt.mib-2 fc 
access MyROGroup &quot;&quot;      any       noauth    0      all    none   none 
access MyRWGroup &quot;&quot;      any       noauth    0      all    all    all 
…</description>
            <pubDate>Thu, 11 Sep 2008 21:43:48 -0600</pubDate>
        </item>
        <item>
            <title>Solaris</title>
            <link>http://wiki.yepn.net/solaris?rev=1246530807&amp;do=diff</link>
            <description>NTP设置

 
Solaris# cp /etc/inet/ntp.server /etc/inet/ntp.conf &lt;= サンプル設定ファイルをコピー 
Solaris# vi /etc/inet/ntp.conf &lt;= 設定ファイルの編集 
restrict default nomodify notrap noquery &lt;= 追加（デフォルトですべての問い合わせを拒否） 

restrict 127.0.0.1 &lt;= 追加（ローカルホストからの問い合わせには応答） 

server 133.100.9.2 &lt;= 追加（同期を取りたいサーバを記述） 
server 133.40.41.175 &lt;= 追加（同期を取りたいサーバを記述） 

server 127.127.XType.0 
↓ 
server 127.127.1.0 &lt;= CMOSクロックの指定 

fudge 127.127.XType.0 stratum 0 
↓ 
fudge 127.127.1.0 stratum 10 &lt;= ローカルでは自分自身を第10階層に指定 

broadcast 224.0.1.1 …</description>
            <pubDate>Thu, 02 Jul 2009 04:33:27 -0600</pubDate>
        </item>
        <item>
            <title>Sqlite3</title>
            <link>http://wiki.yepn.net/sqlite3?rev=1268233795&amp;do=diff</link>
            <description>数据导入导出 

 
file.db  
.output test.csv 
.dump 

mydb.db 
.read test.csv</description>
            <pubDate>Wed, 10 Mar 2010 08:09:55 -0600</pubDate>
        </item>
        <item>
            <title>记事本</title>
            <link>http://wiki.yepn.net/start?rev=1274423530&amp;do=diff</link>
            <description>Hi! 

这里是流浪五天的记事本! 

不知道你是搜索那个关键字找到的这里，因为这里的访问量非常少，呵呵，很感谢你的来访，如果在文中发现错误的话请跟我联系谢谢! 

Email: python -c 'print “Z2F2aW4uemhvdUBnbWFpbC5jb20=”.decode(“base64”)'</description>
            <pubDate>Fri, 21 May 2010 00:32:10 -0600</pubDate>
        </item>
        <item>
            <title>iPod touch</title>
            <link>http://wiki.yepn.net/touch?rev=1230298875&amp;do=diff</link>
            <description>iTunes 不能识别itouch恢复方法 

 
删除以下文件夹下的文件 
/User/Media/iTunes_Control/iTunes</description>
            <pubDate>Fri, 26 Dec 2008 06:41:15 -0600</pubDate>
        </item>
        <item>
            <title>Vi&amp;Vim应用</title>
            <link>http://wiki.yepn.net/vi?rev=1273831853&amp;do=diff</link>
            <description>知らなかったVimの使い方

お勧めサイト 

	*  Essential Vim &lt;&lt;http://www.pixelbeat.org/vim.tips.html&gt;&gt; 
		*  Vim Commands Cheat Sheet &lt;&lt;http://www.fprintf.net/vimCheatSheet.html&gt;&gt; 
		*  vi tutorial, tips, tricks and useful commands &lt;&lt;http://www.zinkwazi.com/unix/notes/tricks.vim.html&gt;&gt; 
		*  A Collection of Vim Tips | Ayman Hourieh's Blog &lt;&lt;http://aymanh.com/a-collection-of-vim-tips&gt;&gt; 
		*  Greenbear Laboratory - Vim覚え書き &lt;&lt;http://mono.kmc.gr.jp/~yhara/w/?VimMemo&gt;&gt;</description>
            <pubDate>Fri, 14 May 2010 04:10:53 -0600</pubDate>
        </item>
        <item>
            <title>Vim技巧翻译</title>
            <link>http://wiki.yepn.net/vim?rev=1218079490&amp;do=diff</link>
            <description>此文为网上转载,转自&lt;http://my.opera.com/yunt/blog/show.dml/221171&gt;
为方便自己学习使用 

 
2006-04-21：99.99%完成，总算是可以完全放心做别的事了 
特别要感谢Tocer(dm-info at 163.com)没有他的帮忙我根本不可能在这么快的时间里完成 
2006-04-19：少量更新 
2006-04-18：效验已翻译内容 
2006-04-17：少量更新 
2006-04-16： 计划翻译，少量更新 

__开始__ 
------------------------------------------------------------------------------ 
&quot; 搜索 
/joe/e : 设置光标到匹配&quot;joe&quot;的末尾 
/joe/e+1 : 设置光标到匹配&quot;joe&quot;的末尾再后移一位 
/joe/s-2 : 设置光标到匹配&quot;joe“的开头再前移两位 
/^joe.*fred.*bill/ : 匹配以'j'开头且&quot;joe&quot;到&quot;fred&quot;到&quot;bill&quot;之间至少有一个字符 
/^[A-J]\+/ : 搜…</description>
            <pubDate>Wed, 06 Aug 2008 21:24:50 -0600</pubDate>
        </item>
        <item>
            <title>vim高级使用</title>
            <link>http://wiki.yepn.net/vimad?rev=1265102145&amp;do=diff</link>
            <description>说明: 以下的例子中 xxx 表示在命令模式下输入 xxx 并回车 以下的例子中 :xxx 表示在扩展模式下输入 xxx 并回车 小括号中的命令表示相关命令. 在编辑模式或可视模式下输入的命令会另外注明.</description>
            <pubDate>Tue, 02 Feb 2010 02:15:45 -0600</pubDate>
        </item>
        <item>
            <title>Vimpress 0.9 plus</title>
            <link>http://wiki.yepn.net/vimpress?rev=1265103530&amp;do=diff</link>
            <description>增加功能： 

增加SLUG功能 :BlogList 默认列出前10条日志 :BlogList 0 列出全部日志 

增加&lt;!--more--&gt;截断后继续读取日志功能 

:BlogCate 列出Blog中的文章分类 

:BlogSave 直接把文章保存到草稿，修改发布后的日志用BlogSave保存后，日志状态变为草稿保存，文章修改后用BlogSend发布。</description>
            <pubDate>Tue, 02 Feb 2010 02:38:50 -0600</pubDate>
        </item>
        <item>
            <title>vsftpd</title>
            <link>http://wiki.yepn.net/vsftpd?rev=1231930715&amp;do=diff</link>
            <description>特定使用者peter、john 不得变更目录 
使用者的预设目录为/home/username，若是我们不希望使用者在ftp 时能够 
切换到上一层目录/home，则可参考以下步骤。 
Step1. 修改/etc/vsftpd/vsftpd.conf 
将底下三行 
#chroot_list_enable=YES 
# (default follows) 
#chroot_list_file=/etc/vsftpd.chroot_list 
改为 
chroot_list_enable=YES 
# (default follows) 
chroot_list_file=/etc/vsftpd/chroot_list 
Step2. 新增一个档案: /etc/vsftpd/chroot_list 
内容增加两行： 
peter 
john 
Step3. 重新启动vsftpd 
[root@home vsftpd]# /sbin/service vsftpd restart 
Shutting down vsftpd: OK ] 
Starting vsftpd for vsftpd:…</description>
            <pubDate>Wed, 14 Jan 2009 03:58:35 -0600</pubDate>
        </item>
        <item>
            <title>Webmin</title>
            <link>http://wiki.yepn.net/webmin?rev=1214287878&amp;do=diff</link>
            <description>Webmin文件管理器显示乱码解决办法


因为公司需要非IT人员管理一些服务器设置，像Samba服务器等，所以前一阵装了Webmin 原来用老版本的时候没出现过这种问题，但前几天下的新版本Webmin 1.400安装后在日文设定下在文件管理器中显示乱码。GOOGLE一下后找到答案</description>
            <pubDate>Tue, 24 Jun 2008 00:11:18 -0600</pubDate>
        </item>
        <item>
            <title>WP添加Flash代码</title>
            <link>http://wiki.yepn.net/wordpress?rev=1198167903&amp;do=diff</link>
            <description>&lt;embed height=&quot;500&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; src=&quot;FLASH'S URL&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;500&quot; quality=&quot;best&quot; play=&quot;true&quot; /&gt;</description>
            <pubDate>Thu, 20 Dec 2007 09:25:03 -0600</pubDate>
        </item>
        <item>
            <title>Xcode</title>
            <link>http://wiki.yepn.net/xcode?rev=1264759481&amp;do=diff</link>
            <description>//改变创建者名称 
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{FULLUSERNAME = &quot;George Warner&quot; ; }' 

//该变公司名称 
defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ORGANIZATIONNAME = &quot;Apple, Inc.&quot; ; }'</description>
            <pubDate>Fri, 29 Jan 2010 03:04:41 -0600</pubDate>
        </item>
        <item>
            <title>ZFS</title>
            <link>http://wiki.yepn.net/zfs?rev=1265009853&amp;do=diff</link>
            <description>Opensolaris ZFS 快照(snapshot)及還原簡單試作

 
設定可以看到 .zfs 的快照目錄 

#zfs set snapdir=visible kisspool 

会在目录下看到.zfs文件夹 


ZFS and Mysql


因为ZFS性能优越、管理方便、使用简单等特色，得到越来越多的喜爱。Opensolaris就结合了很多ZFS的特色。Sun公司新的存储ST7000系列更是集ope nsolairs和ZFS的优点于一体。很多MySQL的用户也开始尝试采用ZFS来增加MySQL的性能。由于ZFS的Solaris自带的功能，因此，在使用ZFS的 时候，需要使用Solaris。…</description>
            <pubDate>Mon, 01 Feb 2010 00:37:33 -0600</pubDate>
        </item>
        <item>
            <title>Zsh</title>
            <link>http://wiki.yepn.net/zsh?rev=1265102737&amp;do=diff</link>
            <description>OSX zsh .zshrc

 
 more .zshrc                                                                    /Users/gavin 
autoload -U compinit 
compinit 

zstyle ':completion:*' list-colors 'di=36' 'ln=35' 
zstyle ':completion:*:default' menu select=1 

autoload predict-on 
predict-on 

precmd () { 
      PROMPT=$'%{\e[0;33m%}%* ('$(sysctl -n vm.loadavg | perl -anpe '$_=$F[1]')$') %%%{\e[m%} ' 
  } 
  RPROMPT=$'%{\e[32m%}%/%{\e[m%}' 

  HISTFILE=~/.zsh_history 
  HISTSIZE=10000 
  SAVEHIST=10000 
  setopt…</description>
            <pubDate>Tue, 02 Feb 2010 02:25:37 -0600</pubDate>
        </item>
    </channel>
</rss>
