从源辞典

查阅生活点点滴滴

Ensim Setup

August 28th, 2005 by congyuan

在装好了服务器后,就考虑装Ensim这个软件。

选Ensim的一个原因是比较便宜。cPanel的功能比较多,但是贵的很。按年付费的话差不多USD450/year。Ensim只是一次性的USD150。

如果不用任何软件做hosting的话,管理起来比较麻烦。有个web界面总是比较容易写。不用到处找config files。

操作系统是Redhat EL ES版本。Ensim网上推荐的是操作系统要Minimal installation。其实这个不等于在安装linux时选择最后一个选项Minimal install。那样的话以后Ensim需要的一些rpm都没有安装到位。所以最好是按照安装Linux时的default选项,然后做适当的调整。装KDE也没有问题。

装好OS后,就要着手准备Ensim所要求的一些基本的packages。

然后就可以开始装Ensim了。特别注意server的DNS要设置对,不然在下载packages会很慢。也可以自己做个Local Installation FTP server。就是要把Ensim官方服务器上的rpm都下载下来,根据原来的folder path放好。

Posted in Webhosting | No Comments »

组装台式服务器

August 22nd, 2005 by congyuan

前些日子给公司做了个DNS服务器。服务器是Redhat Enterprise Linux ES 操作系统。在我的建议下,买了个hosting software: Ensim Pro。

先说一下这个服务器的配置吧。
Thermaltalk Kandalf VA9000 Tower Casing (S$300+)
Antec 550W PSU (S$200+)
Dual Xeon 3.0G 800M FSB
Supermicro X6DA8G2 MB
4 x 2G DDR RAM
2 x 36G Seagate 10K RPM SCSI HDD (S$700+)

全部是我自己组装的,呵呵。算是长经验吧。跟装一般的PC没什么区别,就是装主板有点麻烦。幸亏这个机箱支持双CPU,CPU散热器是直接固定在机箱上的。

电源也是适合服务器的,因为主板特别说明要单独的12V输出。

Posted in 电脑网络, Hardware | No Comments »

Slow FTP Upload

August 15th, 2005 by congyuan

The server pauses for every file uploaded.

Server software: Proftpd

Rosolved:

Edit proftpd.conf file:
vi /etc/proftpd.conf

Add the following lines after default server:
UseReverseDNS off
IdentLookups off

Restart proftpd:
service proftpd restart

Posted in 电脑网络, FTP Server, Linux | No Comments »

FTP connection problem

August 15th, 2005 by congyuan

http://forum.ensim.com/showthread.php?t=5082
By chinkshady

For FTP issues from behind NAT or broadband connections

If you are on a broadband connection, it is likely you have NAT/non-routable IP address settings either on your internal network or from your connection provider. If you see IP ranges in the 10.x.x.x or 192.168.x.x range when you run traceroutes from your computer to an outside domain like www.yahoo.com, you are effected by this. You may also be effected if your connection is on a software or hardware firewall.

The symptoms while FTPing appear as directories not listing out, slow FTP connections, and file transfer issues.

FTP uses 2 TCP connections, 1 for control and one for data.
The standard control connection is TCP port 21. The control part that is rarely seen is TCP port 20.

When an FTP connection is made but listing a directory or sending data fails, the cause is almost ALWAYS the data connection. This is the most common problem encountered in FTP connections.

FTP also runs in 2 modes, PORT (”regular” or “normal” mode) and pasv (”passive” mode for clients behind firewalls)

In PORT mode, the FTP Client is the server end of the data connection.
In pasv mode, the server is the Web Server end of the data connection.

Looking at the FTP logs you may see the following

FTP Client> PORT 12,34,56,78,65,49
Web Server> 200 PORT command successful.

In this example of PORT mode the client has said it will be listening on IP address 12.34.56.78 on TCP port 16683 for the data channel.
The port is the 65,49 pair at the end of the string: 65×256 + 49 = 16689.
The FTP Client is the server for the data connection so if that FTP Client is behind a NAT, port 16683 MUST be allowed.

FTP Client> pasv
Web Server> 227 Entering Passive Mode (123,45,67,89,158,25)

In this example of pasv mode the server has said it will be listening on IP address 123.45.67.89 on TCP port 40474 for the data channel.
The port is the 158,25 pair at the end of the string:: 158×256 + 25 = 40473.
The Web Server needs to allow this data connection on port 40473 as well as the control port 20.

To overcome this issue, try setting up the connection as PORT connection instead of pasv. You may also have to use a different FTP Client.

FTP Clients that can do PORT mode from behind a NAT or firewalled connection or bypass non-routable IPs are:
FlashFXP
BulletProof FTP

Posted in FTP Server | No Comments »

收拾衣服———想家

August 11th, 2005 by congyuan

今晚收拾衣服准备去新山。叠衣服的时候突然很想家。

或许是收拾衣服的动作让我想起回家的情景。想到在家的妈妈要去挑水,突然很想回家帮帮忙。。。

Posted in 心情闲聊 | No Comments »

客家擂茶饭

August 11th, 2005 by congyuan

今天在女朋友的带领下,吃了客家的传统美食,擂茶饭。在China Square里的。

就是一碗菜豆还有其他蔬菜,然后加上米饭拌在一起。还有一碗绿色的茶,要倒在盛菜的碗里搅拌。不知道的还以为茶是单独喝的。在现场的确见到不少这么吃的。被女朋友笑话:P

我没能吃完。感觉没有味道,如果加上辣椒就会比较容易下饭。嘿嘿

Posted in 心情闲聊 | 1 Comment »

新加坡的国庆节放假一天

August 9th, 2005 by congyuan

很快的就过去了。好像大多数的时候都是在睡觉。还是那句话,在家的日子过的快。。。

今天看了那个讲巧克力的电影。有点好笑,也觉得没什么。不是很推荐了。。。

Posted in 心情闲聊 | No Comments »

家里也是很多麻烦事

August 9th, 2005 by congyuan

无非是以前欠下的债务。要还到什么时候才是个头。。。

累。。。

Posted in 心情闲聊 | No Comments »

一点也不喜欢Javascript

August 9th, 2005 by congyuan

每次写点Javascript的小程序都头疼。今晚弄个onClick,然后把一个radio button set focus。做了半天都没成功。烦呀烦。。。

感觉Javascript很混乱,也可能是自己没有系统的学习吧。不过PHP就没这种感觉。想写什么总会有manual参考。Javascript就不同了,我每次都是找现成的例子copy过来。唉。。。

Posted in 心得交流 | No Comments »

Linksys WRT54G QoS Firmware Version : v4.20.6

August 6th, 2005 by congyuan

Linksys这款Router有很多第三方的Firmware。无非是为了更多的功能,如QoS, Wi-Fi Boost等功能。官方的Firmware也已经有了QoS的功能了,只是比较简单,现在我们来看一下这个QoS是否真的起作用。

我的是V2.2版本的,到linksys网站下载了最新的FW, V4.20.6

QoS的主要应用是给我的IP phone保障通话质量的。IP Phone 为Grandstream BT101,用的是FWD的服务。

先看一下QoS设置截图

QoS设置为Auto

顺便提一下我用的带宽是up/down=256k/2Mbps
IP phone 的codec(G7211.u/PCMU) 所需要的带宽约为80kbps

然后分别试了拨打613 echo test号码的效果。

1.未用IP电话

up/down=232k/1668kbps

2.用IP电话拨打613通话中

由此可见,Auto QoS是起作用的,保证了IP Phone的带宽

up/down=152k/1635kbps

Posted in 电脑网络, Linksys WRT54G, VOIP | No Comments »