2009年2月20日星期五

conman for gentoo ebuild version 0.2.3

conman: A serial console management program, that support ipmi/ilo/Cycledes console, perfect oob solution for big site.
conman是一个面向大网站的OOB网络管理方案,支持ipmi ilo 传统串口交换机等,是一个非常有意义的console管理工具,适合面向大型机房的串口管理。
我做了一个ebuild,放在:
http://www.gitorious.org/projects/gserver/

有需要的同学可以参考。

openldap-2.4.15 RPM包发布

不知道多少人用openldap 2.4,网络上2.4的版本RPM包比较少,可能有人会需要2.4的包,因此将我的RPM包发布出来,给需要的同学一点方便。推荐目前使用最新的 2.4.16,2.4.13后的版本解决了不少BUG,尤其是同步中的比较大的问题。RPM包是我自己在前人2.4.11基础上,打出来的。目前我自己使用稳定。
有需要的同学可以在这里下载:

http://yum.ZYMLinux.net/repo/

这些包都是在CentOS 5.x 4.x最新版本上打包并验证使用,repo里有SRPM 和x86_64/i386的包,其他环境可以直接用rpmbuild --rebuild来搭建。所有RPM包,都用 47DA782A 的GPG KEY签名。关于此包的任何问题,可以联系我。

注意事项:
1,2.4同时支持2种配置文件方式,一个是-f /etc/openldap/slapd.conf文件方式,另一个是 -F /etc/openldap/slapd.d 目录方式,推荐使用目录方式,非常有利于高级管理。
2,安装中,会提示可能有些包缺失,建议采用增加repo的方式用yum安装。或者先根据提示安装上缺失的包。
3,一般应使用rpm -U安装,这是因为x86_64同时也装了i386兼容包,建议使用我提供的repo方式安装。



附最近的changelog
* 20090413:
o 升级openldap 到2.4.16,做了CentOS 4.x的包
o 老站无法更新,换到了北京的机器
o update openldap to version 2.4.16, with CentOS 4.x package
o old 61.156.7.131 is not updatable now, please retire it.
* 20090316:
o copy openldap compat-openldap i386 rpms to x86_64, that will make yum happy with x86_64 profile
o x86_64直接执行yum update将不再文件冲突报错。
* 20090305:
o 升级到2.4.15 v1.1,增加pw-sha2支持SHA-512, SHA-384 and SHA-256。
o 升级db 4.6.21的补丁到p4。
* 20090305:
o 升级到2.4.15,目前repo里支持2.4.14/15的CentOS 5 i386/x86_64版本

2009年2月11日星期三

我的PGP Public key

我的PGP Public key: id 47DA782A


-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.9 (GNU/Linux)

mQGiBEEuEE8RBADirYvGA29KDN6sdaSdNtCWNYhdRhp+UjjUKsyA19wbTQRopFAo
bdNdCSfcqpNmANQc0r6rjm5GoJZqag6EiiOUFL5phTZ6mBNaT0SQBB0Vn4MXrcu6
zSbcby5kAmNoL2Dt2dLG1MFgUbdZoq5qyAO+h9f3K2ZQDM6s7ljUXGxznwCguWXh
D37XwhDEMnRXDRvhMHopROUEAK0GeygLjdWTOiiYYV8dYCoH5TPVFpus+3FY0nDy
C6jO31mDZCLCzv99l7rAugwJ4arAq4otXA7/K9JT+8djRAEBuYUttN4m6FZWGmOt
yZTp8IrCBZ6952DZ2pxswLbf/pwQ8tE5cq37aZMwyo7/v0fVXbmf+r7MpQpgh63V
T9cbBACAnELDxxnx3LjcoszvZxGcT49vtSBAeFAdsiK9kDA8QR8oaT3dIy7XMEuU
g/tFtB6TXcF0URA0MNWZcSybbie+ME8m6qsH1wtks5SXxkArMlNVRzXal+lyFxEp
0LCHBtdoinJyY/DGJsEzr4TocNmL3YtFHHdMsOC7xtu2xeNbrrQlWW9uZ21pbmcg
WmhhbyA8bWluZ196eW1AeWFob28uY29tLmNuPohjBBMRAgAjAhsDBgsJCAcDAgQV
AggDBBYCAwECHgECF4AFAkZt+igCGQEACgkQOrJ2LUfaeCqTCACfZEzR9+p+rXSX
xAJMi7RsajvACHoAnRsQc6U9BXtQSTasVMFLwnx/JxoIiGAEExECACAFAkX6NTMC
GwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRA6snYtR9p4KnxiAJ4iqPbVh2cg
56knNl6m4NTjKtfuwACfc+4MlSZ1ehg2sl4yuPJqNpTTLIa0IVlvbmdtaW5nIFpo
YW8gPG1pbmdfenltQHNpbmEuY29tPohgBBMRAgAgBQJF+jNXAhsDBgsJCAcDAgQV
AggDBBYCAwECHgECF4AACgkQOrJ2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DDkwCgsWjMKz7vJC3jo9RM
BBNn3QHTXNs=
=qTQr
-----END PGP PUBLIC KEY BLOCK-----

如何使用socks代理服务器执行ssh以及其他类似命令

经常有人会希望有个方便的代理,有时是想测试网络啊,SA们多数有N多的Linux机器,socks代理可以采用tsocks的解决方案。

  • 使用tsocks解决方案:

    • 需要tsocks:
      [I] net-proxy/tsocks
      Available versions: 1.8_beta5-r2 1.8_beta5-r3 {tordns}
      Installed versions: 1.8_beta5-r3(23时11分28秒 2008年07月30日)(-tordns)
      Homepage: http://tsocks.sourceforge.net/
      Description: Transparent SOCKS v4 proxying library

    • 修改/etc/socks/tsocks.conf文件,根据需要增加reaches行:
      local = 127.0.0.1/255.255.255.255 #localhost
      path {
      reaches = 0.0.0.0/0.0.0.0 #default
      server = 127.0.0.1
      server_type = 5
      }

      #tordns_enable = yes
    • 使用tsocks ssh .... 来连接任何机器,走的命令ssh就会直接转到localhost 1080代理上了。其他任何需要用socks代理的命令,前面加上tsocks就可以了。

  • 优点:
    • 命令行可用,对任何程序,不论是否支持socks,如需要启用socks转发,直接前面加上tsocks即可。
    • 不影响系统运行,默认不会应用不会走socks代理。
    • 此配置为配好ssh -D选项,可以非常方便的把连接转发到任何机器上。

我常用的firefox扩展组件

我常用的firefox扩展组件

贴一下我自己的Firefox扩展组件,用了这么多年的Firefox,常用工具组件比较顺手的有好多,像yslow/firebug/livehttpheaders等等,每个在网站的日常工作中,都有着很强大的作用。值得仔细学习使用。下面是直接从firefox里文本导出来的,都是E文:


name="Modify Headers"
description="Add, modify and filter http request headers"
creator="Gareth Hunt"
homepageURL="http://www.garethhunt.com/"
--
name="ASnumber"
description="Fetches AS Number routing information on every visited Webserver"
creator="Internet Business Solutions AG"
homepageURL="http://www.asnumber.networx.ch/">
--
name="YSlow"
description="Make your pages faster with Yahoo!s page performance tool"
creator="Yahoo! Inc."
homepageURL="http://developer.yahoo.com/yslow">
--
name="Greasemonkey"
description="A User Script Manager for Firefox"
creator="Aaron Boodman; http://youngpup.net/"
homepageURL="http://www.greasespot.net/">
--
name="Forecastfox"
description="Get international weather forecasts and display it in any toolbar or statusbar with this highly customizable extension."
creator="Ensolis"
homepageURL="http://forecastfox.mozdev.org/"
--
name="Web Developer"
description="Adds a menu and a toolbar with various web developer tools."
creator="Chris Pederick"
homepageURL="http://chrispederick.com/work/web-developer/"
--
name="Fireflix"
description="Sidebar flickr management tool"
creator="Klever Group; http://www.klever.net/"
homepageURL="http://kin.klever.net/fireflix/">
--
name="InspectThis"
description="Inspect the current element with the DOM Inspector."
creator="Laurens Mackay"
homepageURL="http://www.mackay-it.com/firefox/extensions/inspectthis/">
--
name="Adblock Filterset.G Updater"
description="Synchronizes Adblock with Filterset.G"
creator="Reid Rankin, Michael McDonald"
homepageURL="http://www.pierceive.com/"
--
name="FlashGot"
description="Enables Firefox, Mozilla Suite, Netscape and Thunderbird to handle single and massive ("all" and "selection") downloads using the most popular external download managers for Windows, Mac OS X, Linux and FreeBSD (dozens currently supported, see Extension's Home Page for details). FlashGot offers also a Build Gallery functionality which helps to synthetize full media galleries in one page, from serial contents originally scattered on several pages, for easy and fast "download all"."
creator="Giorgio Maone"
homepageURL="http://flashgot.net">
--
name="Live HTTP Headers"
description="View HTTP headers of a page and while browsing."
creator="Daniel Savard"
homepageURL="http://livehttpheaders.mozdev.org/">
--
name="Adblock Plus: Element Hiding Helper"
description="Helps you create element hiding rules for Adblock Plus to fight the text ads."
creator="Wladimir Palant"
homepageURL="http://adblockplus.org/">
--
name="Sage"
description="A lightweight RSS and Atom feed reader."
creator="The Sage Team"
homepageURL="http://sage.mozdev.org">
--
name="Gmail Space"
description="Gspace"
creator="Rahul Jonna"
homepageURL="http://www.getgspace.com/"
--
name="Jiffy"
description="Displays Javascript timer measurements."
creator="Bill W Scott"
homepageURL="http://billwscott.com/jiffyext/index.html">
--
name="StumbleUpon"
description="StumbleUpon Toolbar"
creator="StumbleUpon"
homepageURL="http://www.stumbleupon.com/">
--
name="Tamper Data"
description="View and modify HTTP/HTTPS headers etc."
creator="Adam Judson"
homepageURL="http://tamperdata.mozdev.org">
--
name="Foxmarks Bookmark Synchronizer"
description="Synchronizes your bookmarks across machines."
creator="Todd Agulnick"
homepageURL="http://www.foxmarks.com/"
--
name="SQLite Manager"
description="Manage any SQLite database on your computer"
creator="Mrinal Kant"
homepageURL="http://sqlite-manager.googlecode.com/">
--
name="FlickrFox"
description="Browse your Flickr Photostreams in a sidebar."
creator="Phil McCluskey"
homepageURL="http://philmccluskey.com/projects/flickrfox/"
--
name="Autofill Forms"
description="Fill out web forms automatically"
creator="Sebastian Tschan"
homepageURL="https://blueimp.net/mozilla/">
--
name="FireFTP"
description="FTP client for Mozilla Firefox."
creator="Mime Čuvalo"
homepageURL="http://fireftp.mozdev.org">
--
name="User Agent Switcher"
description="Adds a menu and a toolbar button to switch the user agent of the browser."
creator="Chris Pederick"
homepageURL="http://chrispederick.com/work/user-agent-switcher/"
--
name="Adblock Plus"
description="Ads were yesterday!"
creator="Wladimir Palant"
homepageURL="http://adblockplus.org/">
--
name="Firebug"
description="Web Development Evolved."
creator="Joe Hewitt"
homepageURL="http://getfirebug.com/">
--
name="Delicious Bookmarks"
description="Access your bookmarks wherever you go and keep them organized no matter how many you have."
creator="Yahoo!"
homepageURL="http://delicious.com">
--
name="ScrapBook"
description="Helps you to save Web pages and organize the collection."
creator="Gomita"
homepageURL="http://amb.vis.ne.jp/mozilla/scrapbook/">
--
name="Leak Monitor"
description="This extension pops up an alert dialog to warn chrome and extension developers about one particular type of leak. It warns when windows close but leave other code pointing at their JavaScript objects."
creator="L. David Baron"
homepageURL="http://dbaron.org/mozilla/leak-monitor/"
--
name="Chickenfoot"
description="End-user programming tool for Firefox."
creator="UID Group, MIT"
homepageURL="http://groups.csail.mit.edu/uid/chickenfoot/">
--
name="Molybdenum"
description="Edit and run selenium web tests"
creator="Claas Thiele"
homepageURL="http://ct42.org">
--
name="Enigform"
description="Enhances HTTP with GnuPG based digitally signing capabilities."
creator="Arturo Buanzo Busleiman buanzo@buanzo.com.ar"
homepageURL="http://enigform.mozdev.org">