Wednesday, May 30, 2007

A trial Sip proxy server can run in different OS

http://www.brekeke.com/



Pls see that link,you can download a windows version installed in your laptop for 60 days trial.It's user-friendly and you can manage it through webserver(based on java,tomcat).





Powered by ScribeFire.

Sunday, May 27, 2007

Firefox something

You know firefox is my favourite open-source web browser and there are lots of add-ons drive me crazy,but which is the best valuebal,pls see these articles come from Computerworld.com:

20 must-have Firefox extensions

Top 10 Firefox extensions to avoid

and

15 Coolest Firefox Tricks Ever

come from lifehack.org

Thursday, May 24, 2007

PPPoE client configure for IP phone----Writen by welv

当Server配置成功后,剩下的工作就是配置client了,么什么复杂,就是路由!
Client拨进去以后,得到的默认网关是PPPoE-Server的地址,所以如果你的一些上层服务的Server与pppoe-server不在同一个网段里,就很麻烦了。

举个例子:

Sip-phone--------- >PPPoE-Server sip-server
10.74.52.51 10.74.52.50 10.74.51.200

此时电话是以10.74.52.50为默认网关的,而10.74.52.50又不具备转发能力,故电话注册不上

解决方案:
为PPPoE-Server加装网卡,一块连51网段,另一块连52网段,然后做路由,就变成这个样子


Sip-phone<------------------->PPPoE-Server<--------------------------->Sip-server
10.74.52.51 10.74.52.50 10.74.51.250 10.74.51.200

然后使能两块网卡的IP转发能力,此时的路由表是这样的:

Destination Gateway Genmask Flags Metric Ref Use Iface
10.74.52.0 10.74.52.1 255.255.255.192 UG 0 0 0 eth0
10.74.51.0 10.74.51.1 255.255.255.0 UG 0 0 0 eth2
link-local * 255.255.0.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo

现在,电话发往Sip-server的包目的地址可达了,但是Sip-server却不知道回去的地址,你必须给它也加一条到目的地址10.74.52.50的路由,下一跳指向10.74.51.250:

route add -host 10.74.52.50 gw 10.74.51.250

然后路由表变成这样:

Destination Gateway Genmask Flags Metric Ref Use Iface
10.74.52.51 10.74.51.250 255.255.255.255 UGH 0 0 0 eth0
10.74.51.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 10.74.51.1 0.0.0.0 UG 0 0 0 eth0

得,成了!!!

Monday, May 21, 2007

pppoe-server in linux install&configure----writen by welv

我的RS3么搞定,所以移到OpenSUSE上来搞。

网上有现成的rpm包,找来装上就成,不会有什么麻烦,装完后:

linux:~ # rpm -qa | grep ppp
ppp-2.4.4-24
rp-pppoe-3.8-5
smpppd-1.59-38
linux:~ #

然后就是配置了,主要是在/etc/ppp/目录下,
首先是认证方式:pppoe-server-options文件里,pap or chap,pap不好用,只能用chap;
其次是在相应的文件里指定用户名和密码,比如chap-secrets:

# client          server        secret         IP addresses
"21026A"           *           "cisco1"        10.74.52.51
"21026AA"         *           "cisco12"      10.74.52.52
"21026AAA"       *           "cisco123"    10.74.52.53

再后来就么什么了,启动程序吧:

linux:/etc/ppp # pppoe-server --help
pppoe-server: invalid option -- -
Usage: pppoe-server [options]
Options:
-I if_name -- Specify interface (default eth0.)
-T timeout -- Specify inactivity timeout in seconds.
-C name -- Set access concentrator name.
-m MSS -- Clamp incoming and outgoing MSS options.
-L ip -- Set local IP address.
-l -- Increment local IP address for each session.
-R ip -- Set start address of remote IP pool.
-S name -- Advertise specified service-name.
-O fname -- Use PPPD options from specified file
(default /etc/ppp/pppoe-server-options).
-p fname -- Optain IP address pool from specified file.
-N num -- Allow 'num' concurrent sessions.
-o offset -- Assign session numbers starting at offset+1.
-f disc:sess -- Set Ethernet frame types (hex).
-s -- Use synchronous PPP mode.
-u -- Pass 'unit' option to pppd.
-r -- Randomize session numbers.
-d -- Debug session creation.
-P -- Check pool file for correctness and exit.
-h -- Print usage information.

PPPoE-Server Version 3.8, Copyright (C) 2001-2006 Roaring Penguin
Software Inc.
PPPoE-Server comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2
or (at your option) any later version.
http://www.roaringpenguin.com
linux:/etc/ppp #

 

晕了吧,简单点的:
linux:/etc/ppp #pppoe-server -I eth0 -S sipurash -L 10.74.52.50 -R 10.74.52.51 -N 3

明白了吧,easy哈?

Friday, May 18, 2007

值得推荐的Firefox插件----Mouse Gestures

http://optimoz.mozdev.org/gestures/index.html

这是个好东西,鼠标在页面上划来划去,就可以控制浏览器前进、后退等等动作。

赞!!!

Tools for windows access linux volumes

http://www.fs-driver.org/index.html

“ It provides Windows NT4.0/2000/XP/2003 with full access to Linux Ext2 volumes (read access and write access)। This may be useful if you have installed both Windows and Linux as a dual boot environment on your computer.

The "Ext2 Installable File System for Windows" software is freeware.”

----copy from the website

Monday, May 14, 2007

Realplayer不能运行的原因

下面这个链接解释了为什么装完Realplayer不能用的原因--竟然是与输入法冲突

https://help.ubuntu.com/community/RealplayerInstallationMethods?action=show&redirect=RealPlayerInstallationMethods#head-952f28daf565230d2827780b6cf3f7d31e116299

"RealPlayer and SCIM

RealPlayer might not start if using SCIM as the default input method. When trying to launch from the terminal one gets the error message

Segmentation fault (core dumped)

This issue can be resolved by setting the environment variable GTK_IM_MODULE to the value xim (instead of scim).

export GTK_IM_MODULE=xim

After typing this in a terminal, RealPlayer can be started from this terminal. In order to make this setting the default, one can for example write a small shell script which first sets the above environment variable and then launches the RealPlayer."----copy from that website

Friday, May 11, 2007

Debian etch installation from windows guide----Writen by welv

From http://goodbye-microsoft.com/ website,you can download a debian.exe file,run it from your windows platform,it will instruct you install a debian system step by step.

Of course,you need keep internet connection.

When you finished base system installation,you will confused why it can't enter a Xwindows system,don't worry,just following http://www.debsir.org 's documents do:

1.apt-get install xorg

2.apt-get install kde-core

3.apt-get install kde-i18n-zhcn(chinese support)

4.apt-get install kmix(for audio)

5.apt-get install gtk2-engines-clearlooks gtk-qt-engine(some themes)

6.apt-get install kdm(login manager)

Then reboot,you can enter

Thursday, May 10, 2007

Debian和Ubuntu的故事:在冲突中共存

人们常常认为一个开源软件工程的优点之一就是不会彻底的消失的。一旦某个人开放了代码,其他人就可以获得和利用它。但是一个以存在的项目为基础的项目往往与其原始项目产生矛盾。而且随着项目名声扩大,冲突也越来越多,例如Debian和Ubuntu。

  Debian项目始与1993年。它有它自己的方针和政策来指导一套高质量的版本的发行。因为所有的开发者都是自愿人员,所以Debian没有固定的 发行时间表。有数个其他发行版是以Debian为基础开发的,但它们都显得默默无闻——除了Ubuntu。这个始于2004年的项目现在毫无疑问的成为在初学者和中等水平用户中最流行的版本。

  与Debian不同,Ubuntu开发人员的工作被支付以报酬。他们中的一些人是以前Debian的开发人员;也有一些人同时服务于两个项目。 Ubuntu项目的发起人是Mark Shuttleworth,一位前Debian开发人员。他创立Thawte公司提供数字认证和网络安全服务。1999年他把公司卖给了Verisign 而成亿万富翁。

  Ubuntu在Debian开发版基础上开发。它的优势之一是其全职的研发人员,这可以使Ubuntu可以许诺以六个月的周期发布新版本。 Shuttleworth已经公开表示虽然Ubuntu是免费的,但其创立的Canonical公司将会以成本价格提供技术服务支持。相反,Debian的发布时间表的观念是什么时候准备好,什么时候发布。其在2005年中代号Sarge的最新版的发布是在前一个版本发布的三年半以后。

  Debian的决策过程是所有开发者共同参与的,采取自愿原则。而在Ubuntu,一旦决策出现僵局,Shuttleworth就成为最后的决策者。而Debian的邮件列表上常常会爆发激烈的辩论——这些问题往往是无关紧要。而且这种辩论会持续很长时间。

  最近两个项目的不同之处由于Mark Garrett离开Debian项目而成为公众焦点。Garrett做了四年的开发工作,是去年离开项目领导人之一。(澳大利亚的Anthony Towns被选为新的领导人。)Garrett发布了一份辞职声明。在声明中,他非常赞赏Ubuntu的严格的组织结构。用他的话说:“有一个具有独裁的的领导权和话语权的人对很多事情都会有很大帮助。”

  (Garrett这段话实际上讽刺地表达了一个开源程序员对更多的属于“大教堂”开发模式中的特征的认同。“大教堂”这个词由开源领袖 Erics.Raymond用来概括私有软件的开发模式而得名。他用他称为“集市”模式来与之对比。后一种模式最好的例子就是Linux核心的开发。)

  此后Debian和Ubuntu之间的摩擦越来越大。关注到这一变化的Debian项目创始人Ian Murdock号召让Debian与Ubuntu有一个规律的发布周期。同时他希望所有的数量在不断增加的Debian派生版本能够具有共同的核心部分。

  最近,一些Debian的开发者开始认为Ubuntu贡献出来的远远小与它拿走的。于是在今年的在墨西哥举行的Debian年度会议上,一些愤怒的人衬衫上写着“F--- Ubuntu”。长期从事Debian开发工作的Martin Krafft在会议后在博客发表一个长长的贴子概括了Debian社区所共同感受到的不满。另一名开发者Joey Hess也公开对Ubuntu正在把Debian变成一个“组件超级市场”而感到忧虑。

  Hess详细的说道:“我致力于Debian的主要目的就是进我所能使Debian成最好的发行版。我并不介意其他人使用我的工作成果,特别是这种使 用能够获得更多的开源成果。但是很长时间才让我明白最重要的并不是为Debian增加某个软件包,而是找到一种新的方法整合我们的软件。”

  他接着说道:“...,向Debian贡献独立补丁完全不能使Debian共享Ubuntu的组件。这使得Debian浪费大量的时间来做一个追赶的角色,而不是解决怎样在不同的软件包种选择一套合适的软件来组和在一起从而得到完整的全面的提

  怎样解决分歧还有待于进一步观察。但是对于致力于任何一个阵营的人都希望能找到一种适当的方法来促进两个项目的共同进步。

  注:作者是一位有着六年历史的Debian用户。

我是转贴的哈,知道原文的告诉我链接,负不起法律责任哈!!!