Tag: hardware

  • FreePBX working with an unstable router

    办公室里的 FreePBX 经过多次调试,初步可以稳定运行。无奈物业管理公司配送的 ZyXEL AMG1302-T10A ADSL router 是个家用系列产品,用起来非常糟糕:设置了一批端口转发至 FreePBX,但会莫名其妙地失效。这种失效是个别端口转发失效,最要紧的是 Asterisk bind port 失效,这样外网的 SIP 分机就注册不了,运行若干天定会发生这样的事故。联想到外网分机通话时经常出现的单向语音或干脆无语音,估计也是路由器无法稳定地转发 RTP port 造成的。

    物业管理公司外包 IT support 给一个外地的公司,虽然离得不远,但英国公司本身就效率低下,又不是在同一个城市,根本就指望不上。本来我也不指望别人来做 IT support,但物业管理公司和 IT support 公司不愿告诉我 ADSL 上网密码,我就无法换掉它的路由器;它也不愿告诉我路由器管理密码,搞得我在路由器端口转发失效的情况下,也无法远程重启路由器。

    我已经跟物业管理公司要求独立装宽带,并自己管理。在没有得到答复前,怎么解决外网分机无法在特定端口注册的问题?我想了个办法,就是开启多个 Asterisk bind ports。严格地说,Asterisk只能有一个 bind port,而多个 bind ports 的效果,其实是在 FreePBX OS 层面的防火墙上达到。

    iptables -t nat -A PREROUTING -i eth0 -p udp --dport (another port number) -j REDIRECT --to-ports (original port number)
    

    这条规则把 (another port number) request 转给 (original port number)。我一口气添了 10 条同样的规则,这下有 11 个 SIP 注册端口可用,希望 ZyXEL ADSL router 不会一夜全坏掉吧?!

    /etc/init.d/iptables save
    

    保存路由规则,让重启后不丢失。

    顺便说一下,我对 ZyXEL 的质量没有信心,它的家用系列产品不稳定不是个别现象,它的商用系列我也不敢去尝试。

  • FreePBX formatted all my disks

    灰暗的一天——我在试着安装 FreePBX 时,Full Install 竟然不问我要装在哪个硬盘直接把所有硬盘格式化了。

    备份在哪里啊?现在才深刻体会到备份的重要。我本有个 WD My Book World Edition network drive,但是嫌它慢,最近没怎么用,现在吃苦头了。看来要买三个跟上时代的网络硬盘了,家里一个,公司里两个。

  • Why does screen scroll for no reason?

    近段时间用电脑上网,网页自动滚屏。我以为是无意中打开了 Firefox 自动滚屏的选项,找了一圈,发现 Firefox 确实有此类选项,不过我的 autoscrolling 并未选中,smooth scrolling 倒是选中的。我不清楚它们的区别,不过即使把两个 scrolling 都去除,网页仍在滚屏。后来发现,不光 Firefox 在滚屏,Chrome 也滚屏;LibreOffice 是来回跳屏,PDF Document Viewer 却是正常;打开地址栏下拉列表,立马自动关闭;打开菜单,却是正常。

    Firefox preference for autoscrolling
    Firefox preference for autoscrolling

    我转而搜索电脑无故滚屏或跳动的原因。网上有微弱的线索指向“鼠标滚轮出问题了”。我握在手中的是 Microsoft Wireless Mobile Mouse 3500,我以为是电力不足了。关闭了鼠标电源,问题依旧。

    我再仔细一看,这个电脑上还插着一个 PS2 鼠标,只不过搁置着,把它拔了,一切正常了。

  • AnTuTu Benchmark on my devices

    I am looking for a suitable hardware for Hotel TV project, so I am keen to know the candidate devices performance. Raspberry Pi Model B has been already ruled out. At moment the first choice is FX5. As comparison, I benchmark all android devices I got.

    Samsung Galaxy S3: AnTuTu Benchmark 15912
    Samsung Galaxy S3: AnTuTu Benchmark 15912
    Samsung Galaxy S2: AnTuTu Benchmark 7513
    Samsung Galaxy S2: AnTuTu Benchmark 7513

    KuYouLe FX5: AnTuTu Benchmark 5215. It is very disappointing as it does not meet what manufacturer claimed benchmarch.

    Geniatech ATV1000 (A80KW): AnTuTu Benchmark 2005.

    Motorola MB200: AnTuTu Benchmark 605
    Motorola MB200: AnTuTu Benchmark 605
  • Computer Memory Solutions ruined Rakuten.com’s reputation

    I was excited when I saw 4x8GB server memory was selling at a total of USD110.00. It will fit my HP ML110 G7 server very well – ECC, unbuffered. I quickly asked my sister to order and post it to me after she gets it.

    After two days my sister told me her order had been cancelled for no reason. I think it is simply because the dealer Computer Memory Solutions does not want to fulfill the order after they realised they had wrongly priced it.

     Computer Memory Solutions ruined Rakuten.com's reputation

    Computer Memory Solutions ruined Rakuten.com’s reputation

    Now it is selling at USD280.00.

    Computer Memory Solutions ruined Rakuten.com’s reputation, at least in my memory.

  • Raspberry Pi development kit arrived

    关注 Raspberry Pi 有段时间了,最近碰到一位教授,在 University of Lincoln 教书,说他就是教学生们玩 Raspberry Pi;而我也在想,Hotel TV project 是不是也可以在 Raspberry Pi 上实现。兴趣加需求,就买了一套 Raspberry Pi development kit 测试。今天货到了。

    Raspberry Pi Development Kit
    Raspberry Pi Development Kit

    我虽事先知道 Raspberry Pi 只有信用卡大小,见到实物还是再次震惊她的小巧玲珑——鄙视一下其他 PC 厂商。

    开机进入 LXDE 桌面 31 秒,稍有失望,我希望是 15 秒。得看看能否再精简一下启动,或用 PXE boot 提高启动速度。

    Raspberry Pi 一开始没有占到全屏 1920 x 1080,我开始研究 /boot/config.txt。有前人说要在里面增加

    
    hdmi_mode=16
    hdmi_drive=2
    disable_overscan=1
    
    

    而我看到 /boot/config.txt 里就有一句注释

    
    # uncomment this if your display has a black border of unused pixels visible
    # and your display can output without overscan
    #disable_overscan=1
    
    

    我就把 disable_overscan=1 给 uncomment 了,重启后完美全屏!

    用了 Raspberry Pi 才知道,她没有 Firefox,但可以装 iceweasel(没听说过,大概是 Firefox 在 Raspberry Pi 上的另一种称呼?)。她不支持 flash player(或者说 flash player 不支持她),但可以装 browser-plugin-gnash。

    网页版 Youtube 慢得像蜗牛,看来要用好 Raspberry Pi 还挺周折,我才刚刚开始。