<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>走出Windows &#187; 软件</title>
	<atom:link href="http://www.killwin.com/articles/category/linux/software/feed" rel="self" type="application/rss+xml" />
	<link>http://www.killwin.com</link>
	<description>抛弃Windows就是走向高效率</description>
	<lastBuildDate>Fri, 23 Sep 2011 12:50:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>关于qmail发邮件故障的一些小问题</title>
		<link>http://www.killwin.com/articles/403.html</link>
		<comments>http://www.killwin.com/articles/403.html#comments</comments>
		<pubDate>Sat, 27 Aug 2011 19:09:03 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=403</guid>
		<description><![CDATA[说这是小问题，其实也不小，折腾了我将近半年时间，那就是，服务器发送邮件到yahoo的邮箱，客户总是收不到邮件，所以一直建议客户不要使用yahoo的邮箱，今天坐下来，立志解决这个问题，一坐就坐到了凌晨三点钟。。。下面就来记录下我的解决过程 公司服务器给很多邮箱发邮件都正常，唯独yahoo的不正常，怀疑是yahoo把ip加入黑名单了，于是用telnet模拟了一下SMTP发信过程（网上教程很多，搜一下一大把，记得把消息全部写在记事本里面，然后只要复制粘贴就行了，不然手工输入很容易超时退出了），发现yahoo竟然能收到邮件，只不过是在垃圾箱里面，但是至少比收不到邮件强一点吧。这样的话，说明不是被yahoo加入黑名单。 然后我又在服务器上面tcpdump了一下 tcpdump -i eth0 -s 65535 -w /some/file 网上资料说，tcpdump默认dunp出来的数据只有200多个字节还是bit，所以要-s 65535一下，-w是写入结果到某文件，这样的话，可以用wireshark直接分析导出的数据，不然的话，分析数据累死你不偿命的。 tcpdump运行起来立即发送一封邮件到yahoo，然后重新运行tcpdump，再发一封到google邮箱，这样就得到了两个文件供分析。 分析结果令我大吃一惊，发送到google的邮件正常与服务器通讯，监控yahoo的那个文件，竟然没有发现任何一个smtp会话，于是乎，在网上找了一整天的资料，终于找到了qmail的日志，用下面的命令监控日志 tail -f /var/log/qmail/qmail-send/current 然后发信，发现了错误 @400000004e5933e615fe4984 delivery 2: deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/ 继续上网查资料，然后发现，这个错误产生的原因是qmail没打bigdns的补丁，补丁在这里下载 http://www.ckdhr.com/ckd/qmail-103.patch，虽然是1.03的补丁，可是到了1.06，这个问题依旧没有解决，真的要怀疑一下qmail的开发人员了，虽然是开源软件，但是也不要这样绝情吧，哎，还算不错的是，虽然是1.03的补丁，但是经过我测试，1.06版本依然适用 把这个文件下载到 /usr/portage/mail-mta/netqmail/files里面，然后编辑这个文件 /usr/portage/mail-mta/netqmail/netqmail-1.06.ebuild 在大约84行的地方找到 epatch "${FILESDIR}"/${PV}-exit.patch epatch "${FILESDIR}"/${PV}-readwrite.patch 在下面加一行 epatch "${FILESDIR}"/qmail-103.patch 然后执行 ebuild /usr/portage/mail-mta/netqmail/netqmail-1.06.ebuild manifest 重新编译安装qmail，重启一些服务，/etc/init.d/svscan restart 再次测试，发送到yahoo成功！]]></description>
			<content:encoded><![CDATA[<p>说这是小问题，其实也不小，折腾了我将近半年时间，那就是，服务器发送邮件到yahoo的邮箱，客户总是收不到邮件，所以一直建议客户不要使用yahoo的邮箱，今天坐下来，立志解决这个问题，一坐就坐到了凌晨三点钟。。。下面就来记录下我的解决过程</p>
<p>公司服务器给很多邮箱发邮件都正常，唯独yahoo的不正常，怀疑是yahoo把ip加入黑名单了，于是用telnet模拟了一下SMTP发信过程（网上教程很多，搜一下一大把，记得把消息全部写在记事本里面，然后只要复制粘贴就行了，不然手工输入很容易超时退出了），发现yahoo竟然能收到邮件，只不过是在垃圾箱里面，但是至少比收不到邮件强一点吧。这样的话，说明不是被yahoo加入黑名单。</p>
<p>然后我又在服务器上面tcpdump了一下</p>
<p>tcpdump -i eth0 -s 65535 -w /some/file</p>
<p>网上资料说，tcpdump默认dunp出来的数据只有200多个字节还是bit，所以要-s 65535一下，-w是写入结果到某文件，这样的话，可以用wireshark直接分析导出的数据，不然的话，分析数据累死你不偿命的。</p>
<p>tcpdump运行起来立即发送一封邮件到yahoo，然后重新运行tcpdump，再发一封到google邮箱，这样就得到了两个文件供分析。</p>
<p>分析结果令我大吃一惊，发送到google的邮件正常与服务器通讯，监控yahoo的那个文件，竟然没有发现任何一个smtp会话，于是乎，在网上找了一整天的资料，终于找到了qmail的日志，用下面的命令监控日志</p>
<p>tail -f /var/log/qmail/qmail-send/current</p>
<p>然后发信，发现了错误</p>
<p>@400000004e5933e615fe4984 delivery 2: deferral: CNAME_lookup_failed_temporarily._(#4.4.3)/</p>
<p>继续上网查资料，然后发现，这个错误产生的原因是qmail没打bigdns的补丁，补丁在这里下载 <a href="http://www.ckdhr.com/ckd/qmail-103.patch" target="_blank">http://www.ckdhr.com/ckd/qmail-103.patch</a>，虽然是1.03的补丁，可是到了1.06，这个问题依旧没有解决，真的要怀疑一下qmail的开发人员了，虽然是开源软件，但是也不要这样绝情吧，哎，还算不错的是，虽然是1.03的补丁，但是经过我测试，1.06版本依然适用</p>
<p>把这个文件下载到 /usr/portage/mail-mta/netqmail/files里面，然后编辑这个文件</p>
<p>/usr/portage/mail-mta/netqmail/netqmail-1.06.ebuild</p>
<p>在大约84行的地方找到</p>
<blockquote><p>    epatch "${FILESDIR}"/${PV}-exit.patch<br />
    epatch "${FILESDIR}"/${PV}-readwrite.patch</p></blockquote>
<p>在下面加一行</p>
<p>epatch "${FILESDIR}"/qmail-103.patch</p>
<p>然后执行 </p>
<p>ebuild /usr/portage/mail-mta/netqmail/netqmail-1.06.ebuild manifest</p>
<p>重新编译安装qmail，重启一些服务，/etc/init.d/svscan restart</p>
<p>再次测试，发送到yahoo成功！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/403.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于PPTP 和L2TP VPN的端口 以及linux下面查看占用端口进程的方法</title>
		<link>http://www.killwin.com/articles/400.html</link>
		<comments>http://www.killwin.com/articles/400.html#comments</comments>
		<pubDate>Fri, 26 Aug 2011 08:01:01 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=400</guid>
		<description><![CDATA[l2tp 1701/udp pptp 1723/tcp 懒得说明了，真正懂的一眼就看懂了，下面说说怎么查占用端口的进程 server ~ # netstat -anp &#124;grep 1701 udp 0 0 0.0.0.0:1701 0.0.0.0:* 5986/xl2tpd 说明进程号为5986的进程占用了1701端口，可能是进程挂了，成了僵尸，所以常规的方法无法停止进程了，只能kill -9 5986 这样强制干掉了，下面启动xl2tpd就很顺利了 server ~ # /etc/runlevels/default/xl2tpd start * Starting xl2tpd ... [ ok ]]]></description>
			<content:encoded><![CDATA[<p>l2tp 1701/udp<br />
pptp 1723/tcp</p>
<p>懒得说明了，真正懂的一眼就看懂了，下面说说怎么查占用端口的进程</p>
<p>server ~ # netstat -anp |grep 1701<br />
udp        0      0 0.0.0.0:1701            0.0.0.0:*                           5986/xl2tpd</p>
<p>说明进程号为5986的进程占用了1701端口，可能是进程挂了，成了僵尸，所以常规的方法无法停止进程了，只能kill -9 5986 这样强制干掉了，下面启动xl2tpd就很顺利了</p>
<p>server ~ # /etc/runlevels/default/xl2tpd start<br />
 * Starting xl2tpd ...                                                    [ ok ]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/400.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下面小巧的端口转发工具</title>
		<link>http://www.killwin.com/articles/382.html</link>
		<comments>http://www.killwin.com/articles/382.html#comments</comments>
		<pubDate>Wed, 15 Jun 2011 09:26:05 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=382</guid>
		<description><![CDATA[今天要介绍的软件名字叫 rinetd ，是linux下面一个端口转发软件。使用这个软件的原因是，公司有很多在外面的部门，每个部门都有指纹打卡机，每个月需要导出一次数据, 如果每个月去每个部门跑一趟来取数据，有点不现实，况且现在天气这么热，咱们又没四轮的。。。 本来可以通过路由器上端口映射加上花生壳来实现这个功能，可是软件 上面限制了考勤机的地址只能是IP，不能用域名，如图 这可麻烦了，每次先要获取IP，然后才能传输，如果能有一个软件，我连接局域网内某个固定IP的电脑，这个软件会去自己连接考勤机的域名，然后把考勤机的数据转发到这个电脑的端口上，我只要连接这台电脑的IP，不就解决了，于是上网找到这个软件，ubuntu下面的安装方法就是直接apt-get了，然后编辑  /etc/rinetd.conf allow *.*.*.* 之后，下面会有转发配置的提示 bindadress    bindport  connectaddress  connectport bindaddress 意思是bind本机上某个端口 bindport意思是bind的端口 connectaddress  connectport就是远程服务器的地址和端口了，这里是可以填域名的，比如我的配置就是 192.168.3.254 4370 kaoqin.domain.com 4370 执行下面命令 /etc/init.d/rinetd restart 重启一下服务，连接192.168.3.254就可以实现连接远程考勤机了，就这么简单]]></description>
			<content:encoded><![CDATA[<p>今天要介绍的软件名字叫 rinetd ，是linux下面一个端口转发软件。使用这个软件的原因是，公司有很多在外面的部门，每个部门都有指纹打卡机，每个月需要导出一次数据, 如果每个月去每个部门跑一趟来取数据，有点不现实，况且现在天气这么热，咱们又没四轮的。。。</p>
<p>本来可以通过路由器上端口映射加上花生壳来实现这个功能，可是软件 上面限制了考勤机的地址只能是IP，不能用域名，如图</p>
<p><a href="/wp-content/uploads/2011/06/QQ截图20110615171810.png"><img class="alignnone size-full wp-image-383" title="QQ截图20110615171810" src="/wp-content/uploads/2011/06/QQ截图20110615171810.png" alt="" width="505" height="153" /></a></p>
<p>这可麻烦了，每次先要获取IP，然后才能传输，如果能有一个软件，我连接局域网内某个固定IP的电脑，这个软件会去自己连接考勤机的域名，然后把考勤机的数据转发到这个电脑的端口上，我只要连接这台电脑的IP，不就解决了，于是上网找到这个软件，ubuntu下面的安装方法就是直接apt-get了，然后编辑  /etc/rinetd.conf</p>
<p>allow *.*.*.*</p>
<p>之后，下面会有转发配置的提示</p>
<p>bindadress    bindport  connectaddress  connectport</p>
<p>bindaddress 意思是bind本机上某个端口 bindport意思是bind的端口</p>
<p>connectaddress  connectport就是远程服务器的地址和端口了，这里是可以填域名的，比如我的配置就是</p>
<p>192.168.3.254 4370 kaoqin.domain.com 4370</p>
<p>执行下面命令</p>
<p>/etc/init.d/rinetd restart</p>
<p>重启一下服务，连接192.168.3.254就可以实现连接远程考勤机了，就这么简单</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/382.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Gnome 下文件、目录对比软件</title>
		<link>http://www.killwin.com/articles/272.html</link>
		<comments>http://www.killwin.com/articles/272.html#comments</comments>
		<pubDate>Sun, 09 May 2010 06:35:38 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[软件]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MELD]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=272</guid>
		<description><![CDATA[软件名字叫MELD，ubuntu下面可以用 apt-get install meld 来安装，非常强大，并且很易用，需要的童鞋可以下载来装一下]]></description>
			<content:encoded><![CDATA[<p>软件名字叫MELD，ubuntu下面可以用 apt-get install meld 来安装，非常强大，并且很易用，需要的童鞋可以下载来装一下</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/272.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL修改数据目录后无法启动</title>
		<link>http://www.killwin.com/articles/219.html</link>
		<comments>http://www.killwin.com/articles/219.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 17:59:51 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[使用]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=219</guid>
		<description><![CDATA[Ubuntu 9.10 有个apparmor. my.cnf里面有段注释 [mysqld] # # * Basic Settings # # # * IMPORTANT # If you make changes to these settings and your system uses apparmor, you may # also need to also adjust /etc/apparmor.d/usr.sbin.mysqld. # 查看/etc/apparmor.d/usr.sbin.mysqld, 的确是一些目录的权限设置. 把/var/lib/mysql 改成 /data/mysql. # /etc/init.d/apparmor restart 在启动mysql就可以成功了]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 9.10 有个apparmor.<br />
my.cnf里面有段注释</p>
<blockquote><p>[mysqld]<br />
#<br />
# * Basic Settings<br />
#<br />
#<br />
# * IMPORTANT<br />
# If you make changes to these settings and your system uses apparmor, you may<br />
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.<br />
#</p></blockquote>
<p>查看/etc/apparmor.d/usr.sbin.mysqld, 的确是一些目录的权限设置. 把/var/lib/mysql 改成 /data/mysql.</p>
<blockquote><p># /etc/init.d/apparmor restart</p></blockquote>
<p>在启动mysql就可以成功了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/219.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH通道代理翻墙</title>
		<link>http://www.killwin.com/articles/174.html</link>
		<comments>http://www.killwin.com/articles/174.html#comments</comments>
		<pubDate>Sun, 14 Feb 2010 12:23:58 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">https://www.killwin.com/articels/174.html</guid>
		<description><![CDATA[plink -N -D 127.0.0.1:1080 -pw PASSWORD root@xxx.xxx.xxx.xxx]]></description>
			<content:encoded><![CDATA[<p>plink -N -D 127.0.0.1:1080 -pw PASSWORD root@xxx.xxx.xxx.xxx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/174.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下转换视频格式的方法</title>
		<link>http://www.killwin.com/articles/169.html</link>
		<comments>http://www.killwin.com/articles/169.html#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:00:27 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[使用]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=169</guid>
		<description><![CDATA[将avi格式视频转换成mpg的可以刻录vcd格式的命令 ffmpeg -i 11.avi -target vcd 11.mpg 将rmvb转换为avi格式 mencoder 11.rmvb -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o 11.avi]]></description>
			<content:encoded><![CDATA[<p>将avi格式视频转换成mpg的可以刻录vcd格式的命令</p>
<blockquote><p>ffmpeg -i 11.avi -target vcd 11.mpg</p></blockquote>
<p>将rmvb转换为avi格式</p>
<blockquote><p>mencoder 11.rmvb -oac mp3lame -lameopts preset=64 -ovc xvid -xvidencopts bitrate=600 -of avi -o 11.avi</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/169.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu命令行下连接 Windows 2003 PPTP VPN服务器--译文</title>
		<link>http://www.killwin.com/articles/127.html</link>
		<comments>http://www.killwin.com/articles/127.html#comments</comments>
		<pubDate>Mon, 04 Jan 2010 13:05:43 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[使用]]></category>
		<category><![CDATA[网络相关]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PPTP]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[命令行]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=127</guid>
		<description><![CDATA[引言:前段时间一直没空翻译，所以直接贴了英文版的在上面，可能难为了那些英文比我还烂的童鞋（本人至今公共英语四级未通过），今天拿来翻译下，上面一行是英文，下面一行是中文，翻译的不好的地方请大家指教 Installing the Client Program 安装客户端程序 Install PPTP Client from the Ubuntu Project: 从Ubuntu Project安装PPTP客户端 apt-get install pptp-linux 上面那行是命令，在终端输入的，不翻译了 Installing the Configuration Program 安装配置程序 Note: you may wish to skip the configuration program and configure the client by hand. 注意：你可能想要跳过安装配置程序，并且手工配置客户端 1. add the following lines to the sources list file, /etc/apt/sources.list : 1.添加下面几行到源列表，/etc/apt/sources.list # James [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>引言:前段时间一直没空翻译，所以直接贴了英文版的在上面，可能难为了那些英文比我还烂的童鞋（本人至今公共英语四级未通过），今天拿来翻译下，上面一行是英文，下面一行是中文，翻译的不好的地方请大家指教</p></blockquote>
<p>Installing the Client Program<br />
安装客户端程序<br />
Install PPTP Client from the Ubuntu Project:<br />
从Ubuntu Project安装PPTP客户端<br />
apt-get install pptp-linux<br />
上面那行是命令，在终端输入的，不翻译了<br />
Installing the Configuration Program<br />
安装配置程序<br />
Note: you may wish to skip the configuration program and configure the client by hand.<br />
注意：你可能想要跳过安装配置程序，并且手工配置客户端<br />
1. add the following lines to the sources list file, /etc/apt/sources.list :<br />
1.添加下面几行到源列表，/etc/apt/sources.list</p>
<blockquote><p># James Cameron's PPTP GUI packaging<br />
deb http://quozl.netrek.org/pptp/pptpconfig ./</p></blockquote>
<p>Note: can use a text editor, or simply cat the lines on to the end of the file using &gt;&gt;, but if you make a mistake in formatting you will likely be told by the apt-get update step.<br />
注意：你可以使用文本编辑器，或者使用  >>  cat这几行到文件末端,但是如果你的格式出错了，在apt-get update时可能会出问题</p>
<p>2. update the list of packages:<br />
2.更新包列表</p>
<p>apt-get update<br />
上面是命令</p>
<p>3. install the PPTP Client GUI:<br />
3.安装PPTP客户端GUI程序</p>
<p>apt-get install pptpconfig<br />
上面是命令</p>
<p>Note: you may be told that the packages could not be authenticated. For the moment, tell your system to install them anyway. We'll take patches to our release process if anyone can explain simply how to provide authentication.<br />
这句太麻烦，不翻译了，大概意思是如果系统提示无法验证包，请选择无论如何都安装</p>
<p>Configuration, by hand<br />
手工配置</p>
<p>1. obtain from your PPTP Server administrator:<br />
1.从你的PPTP服务器管理员处获取：</p>
<p>* the IP address or host name of the server ($SERVER),<br />
* 服务器的IP地址或名称(下面用$SERVER代替)<br />
* the name you wish to use to refer to the tunnel ($TUNNEL),<br />
* VPN连接的通道名称(下面用$TUNNEL代替)(译者注:一般情况下，通道名称可以自己起，比如我就是用vpn这三个字母做通道名称的)<br />
* the authentication domain name ($DOMAIN),<br />
* 验证域的名称(下面用$DOMAIN代替)(译者注:一般是没有这个东西，留空就好)<br />
* the username you are to use ($USERNAME),<br />
* 拨号用的用户名(下面用$USERNAME代替)<br />
* the password you are to use ($PASSWORD),<br />
* 拨号用的密码(下面用$PASSWORD代替)<br />
* whether encryption is required.<br />
* 是否要求加密</p>
<p>In the steps below, substitute these values manually. For example, where we write $PASSWORD we expect you to replace this with your password.<br />
这句话的内容都在上面的注释里了，不翻译了</p>
<p>2. create or edit the /etc/ppp/options.pptp file, which sets options common to all tunnels:<br />
2.创建或者编辑 /etc/ppp/options.pptp文件，这个是所有通道的共同设置</p>
<p>下面这个是文件的内容</p>
<blockquote><p>lock noauth nobsdcomp nodeflate</p></blockquote>
<p>3. create or add lines to the /etc/ppp/chap-secrets file, which holds usernames and passwords:<br />
3. 创建或者添加下面这些行到  /etc/ppp/chap-secrets 文件，这个文件存储用户名和密码</p>
<blockquote><p>$DOMAIN\\$USERNAME PPTP $PASSWORD * #备注:$DOMAIN可以不要</p></blockquote>
<p>Note: if you are using a PPTP Server that does not require an authentication domain name, omit the slashes as well as the domain name.<br />
这句是我上面的备注内容，不翻译了</p>
<p>Note: if the passwords contain any special characters, quote them. See man pppd for more details.<br />
注意：如果密码中有特殊字符，用双引号引起来</p>
<p>4. create a /etc/ppp/peers/$TUNNEL file:<br />
4. 创建 /etc/ppp/peers/$TUNNEL 文件内容如下</p>
<blockquote><p>pty "pptp $SERVER --nolaunchpppd"<br />
name $DOMAIN\\$USERNAME<br />
remotename PPTP<br />
require-mppe-128<br />
file /etc/ppp/options.pptp<br />
ipparam $TUNNEL</p></blockquote>
<p>Note: if you do not need MPPE support, then remove the require-mppe-128 option from this file and /etc/ppp/options.pptp.<br />
注意：如果你不需要MPPE支持，从这个文件和/etc/ppp/options.pptp删除 require-mppe-128<br />
5. start the tunnel using the pon command:<br />
5. 用pon命令连接VPN</p>
<blockquote><p>pon $TUNNEL</p></blockquote>
<p>to further diagnose a failure, add options to the command:</p>
<p>pon $TUNNEL debug dump logfd 2 nodetach</p>
<p>Note: we have further information on enabling debug mode, and on diagnosing problems.</p>
<p>6. stop the tunnel using the poff command:<br />
6. 用poff命令断开连接</p>
<blockquote><p>poff $TUNNEL</p></blockquote>
<p>注：上面的翻译已经足够连接上VPN服务器了，下面是讲创建启动脚本的，这里就不翻译了，有空继续下面的翻译</p>
<p>7. to script the tunnel connection so that something is done as soon as the tunnel is up, use either ip-up.d scripts or the updetach keyword.</p>
<p>1. see the Routing HOWTO for examples of ip-up.d scripting that adds routes or iptables rules.</p>
<p>2. using updetach will cause pppd to fork, detach, and exit with success once the network link is up. This example connects a provider link, then the tunnel, then runs fetchmail to get new e-mail:</p>
<p>pon provider updetach &amp;&amp; pon $TUNNEL updetach &amp;&amp; fetchmail</p>
<p>Note: the double ampersand &amp;&amp; means that the commands following it will only be executed if the command to the left of it was successful. If the tunnel fails to connect, the fetchmail will not happen.</p>
<p>8. to have the tunnel automatically restarted if it fails, add the option persist to either the command line or the /etc/ppp/peers/$TUNNEL file.</p>
<p>9. to have the tunnel started on system boot:</p>
<p>* for Debian Sarge and later, edit the /etc/network/interfaces file, and add this section:</p>
<p>auto tunnel<br />
iface tunnel inet ppp<br />
provider $TUNNEL</p>
<p>* for Debian Woody, edit the /etc/ppp/no_ppp_on_boot file, remove the first line comment, and change the word provider to the name of your tunnel, so that it looks like this:</p>
<p>#!/bin/sh<br />
...<br />
$PPPD call $TUNNEL</p>
<p>(The line ... means the other lines in the file, it doesn't mean a line with three dots.)</p>
<p>Then rename the no_ppp_on_boot file and make it executable:</p>
<p># mv /etc/ppp/no_ppp_on_boot /etc/ppp/ppp_on_boot<br />
# chmod +x /etc/ppp/ppp_on_boot</p>
<p>Every time your computer starts, the tunnel will be started automatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/127.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gentoo 下给 Nginx 安装 NginxHttpAccessKeyModule 的方法</title>
		<link>http://www.killwin.com/articles/125.html</link>
		<comments>http://www.killwin.com/articles/125.html#comments</comments>
		<pubDate>Sat, 02 Jan 2010 06:34:43 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[Nginx]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Http]]></category>
		<category><![CDATA[Key]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Module]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=125</guid>
		<description><![CDATA[因为我要安装0.7.64版本，所以执行 # vim /usr/portage/www-servers/nginx/nginx-0.7.64.ebuild 因为我的 nginx-accesskey 放在 /root/nginx-accesskey 所以在 ./configure \ 下面加一句 --add-module=/root/nginx-accesskey \ # ebuild /usr/portage/www-servers/nginx/nginx-0.7.64.ebuild manifest 修改一下 /root/nginx-accesskey/config #vim /root/nginx-accesskey/config 将 "$HTTP_ACCESSKEY_MODULE" 替换成 "ngx_http_accesskey_module" 然后执行 # vim /etc/portage/package.keywords 添加一行 =www-servers/nginx-0.7.64 ~x86 最后 # emerge =nginx-0.7.64 安装成功，配置参考 http://wiki.nginx.org/NginxChsHttpAccessKeyModule]]></description>
			<content:encoded><![CDATA[<p>因为我要安装0.7.64版本，所以执行</p>
<blockquote><p>
# vim /usr/portage/www-servers/nginx/nginx-0.7.64.ebuild
</p></blockquote>
<p>因为我的 nginx-accesskey 放在 /root/nginx-accesskey 所以在 ./configure \ 下面加一句</p>
<blockquote><p>
--add-module=/root/nginx-accesskey \
</p></blockquote>
<blockquote><p>
# ebuild /usr/portage/www-servers/nginx/nginx-0.7.64.ebuild manifest
</p></blockquote>
<p>修改一下 /root/nginx-accesskey/config</p>
<blockquote><p>
#vim /root/nginx-accesskey/config
</p></blockquote>
<p>将 "$HTTP_ACCESSKEY_MODULE" 替换成 "ngx_http_accesskey_module" </p>
<p>然后执行</p>
<blockquote><p>
# vim /etc/portage/package.keywords
</p></blockquote>
<p>添加一行</p>
<blockquote><p>
=www-servers/nginx-0.7.64 ~x86
</p></blockquote>
<p>最后</p>
<blockquote><p>
# emerge =nginx-0.7.64
</p></blockquote>
<p>安装成功，配置参考<br />
<a href="http://wiki.nginx.org/NginxChsHttpAccessKeyModule" target="_blank">http://wiki.nginx.org/NginxChsHttpAccessKeyModule</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/125.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决Firefox下iBus输入法无效的问题</title>
		<link>http://www.killwin.com/articles/103.html</link>
		<comments>http://www.killwin.com/articles/103.html#comments</comments>
		<pubDate>Fri, 04 Dec 2009 09:27:10 +0000</pubDate>
		<dc:creator>LuckyBoy</dc:creator>
				<category><![CDATA[使用]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[iBus]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.killwin.com/?p=103</guid>
		<description><![CDATA[就在刚刚，我快崩溃了，因为Firefox下面不能输入中文了，iBus切换不出来了，原因未知，Google许久，非常艰难的，找到一个应急方法 $ sudo vim /usr/bin/firefox 在开头加入 ########### XMODIFIERS=@im=ibus GTK_IM_MODULE=ibus export XMODIFIERS GTK_IM_MODULE ########### 重启firefox，问题解决]]></description>
			<content:encoded><![CDATA[<p>就在刚刚，我快崩溃了，因为Firefox下面不能输入中文了，iBus切换不出来了，原因未知，Google许久，非常艰难的，找到一个应急方法</p>
<blockquote><p>$ sudo vim /usr/bin/firefox</p></blockquote>
<p>在开头加入</p>
<blockquote><p>
###########<br />
XMODIFIERS=@im=ibus<br />
GTK_IM_MODULE=ibus<br />
export XMODIFIERS GTK_IM_MODULE<br />
###########
</p></blockquote>
<p>重启firefox，问题解决</p>
]]></content:encoded>
			<wfw:commentRss>http://www.killwin.com/articles/103.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

