The Apple File Protocol (AFP) stopped working the day I upgraded to OS X Lion. Network shares on the NAS (DNS-320, ReadyNAS Duo) can no longer be browsed through AFP because none of them supports AFP 3.X calls and the authentication standards required by Lion.
I need a fix fast! Why? My iMac’s 1TB Seagate HDD got recalled and I needed Time Machine (TM) to work before the tech guy replace it on site.
(Re)setup my compiling environment, this time for the DNS-320. Did some compiling, wrote some shell scripts and Time Machine (on OS X Lion) is working with my D-Link DNS-320 once again. Well, it still throws some CNIB warning messages when accessing the share but at least it works now. The CNIB issue is fixed with help from Ben Archer.
Read the rest of this entry »

Time Machine
Enabling Time Machine support on the D-Link DNS-320 is, surprisingly, a straight-forward task. Yes, you can use your own NAS (Network Attached Storage) for Time Machine backups instead of Apple Time Capsule. However, Time Machine seems to use all the available space (on the NAS) for backup purposes. So I started to explore how can I limit the amount of disk space used for Time Machine.
Read the rest of this entry »
Some of you may have realized that USB mass storage devices attached to the PlayOn!HD are automatically mounted as read-only. In a read-only mount, you cannot write files to the drive.
The following script will remount all available USB mass storage devices (mounted in read-only mode) as read-write!
The down side is that you got to execute the script every time you plug in a new device. The script work best with View USB storage attached to A.C.Ryan PlayOn!HD over network.
#!/bin/sh
# author: shadowandy.sg[at]gmail[dot]com <http://www.shadowandy.net>
#
# Simple remounting script for A.C.Ryan PlayOn!HD Media Player
#
# Version 1.1
#
try_remount() {
echo “remounting $1 as read-write”
mount -o,remount,rw $1
}
if [$(mount | grep /tmp/usbmounts/ | grep ro | wc -l) -eq 0 ]; then
echo “no read-only usb drives found!”
else
echo “remounting read-only usb drives…”
for remount in $(mount | grep /tmp/usbmounts/ | grep ro | cut -d ” ” -f3); do
try_remount $remount
sleep 1
done
echo “all read-only usb drives mounted as read-write!”
fi
Creating the script
- Telnet and login to your A.C.Ryan PlayOn!HD
- In the command prompt window, enter “vi /tmp/hdd/root/script/remount.sh“
- In the vi window, press “i” to start edit mode
- Paste the content of the above script
- Press “<ESC>” to exit out of edit mode
- Enter “:wq” to save the script
- Enter “ls /tmp/hdd/root/script”
remount.sh should be listed as one of the files
Executing the script
- In the command window, enter “sh /tmp/hdd/root/script/remount.sh”
The script would remount existing read-only USB drives as read-write
Some of us might want to view the content of that USB hard disk or flash drive that is attached to the A.C.Ryan PlayOn!HD over the network (or samba).That is, viewing the contents of attached USB drives by access the network shares of A.C.Ryan PlayOn!HD.
In fact, this could be easily achieved if you have installed a hard disk. In this guide, I will be sharing how I managed to access my USB drives attached to the media player over network.
This guide only require you to edit the file once and newly attached storage devices should be automatically detected and shared over network. You need not meddle with the smb.conf and samba service every time you want a storage device to be seen on network.
Disclaimer: Follow at your own risk. By continuing, you know what you are doing and you don’t hold the author responsible.
Read the rest of this entry »
Getting the A.c. Ryan Playon!HD + Wireless USB Dongle
Total speed of 395kBps on the A.C.Ryan PlayOn!HD
Are you having slow speeds for the BitTorrent on the A.C.Ryan PlayOn!HD Media Player? Saw quite a handful of discussion regarding the slow speed and decided to tweak the settings a bit. I managed to find some time this evening to toy with the media player. After 15 minutes of digging and tweaking, I managed to clock 395kBps using the BitTorrent on the A.C.Ryan PlayOn!HD.
Some information I found:
- BitTorrent program is btpd
- btpd is commonly found in appliances that supports BitTorrent
- btpd on the A.C.Ryan PlayOn!HD doesn’t support encryption
- A.C.Ryan had implemented it to run off default port (6881)
- A.C.Ryan PlayOn!HD’s web interface doesn’t allow user to change the default BitTorrent port
Personally, I feel that running BitTorrent off default port is a bad idea as most Internet Service Provider (ISP) throttles BitTorrent traffic. Running off default port just makes it easier for ISP to identify and throttle the speed. Therefore, we would want to change this port number to allow BitTorrent to pick up some speed. Another important point to note is that the btpd on the media player doesn’t support encryption. So the BitTorrent traffic can easily be identified by the clever network devices our ISPs have and speed will drop again.
Another point – appliances have limited resources. These media players are not as powerful as our personal computer hence we might wish to optimize the available resources. One way to keep resource usage under control is to limit the number of peers the BitTorrent would connect to. More peers generally means higher speed but more peers definitely means more resources being consumed. Less available resources generally means lower speed. Go figure where is your balance.
In this guide, we will be changing the BitTorrent port to 12345. If you would like to use another port, just replace every instance of 12345 with your own port number. I would be limiting the number of peers to 48. Just change this number to your liking. If you have a router, do remember to do the necessary port-forwarding.
Read the rest of this entry »

Dreamweaver running on Linux
KompoZer is not doing a good job at rendering my web layouts. Decided to boot back to windows for Dreamweaver CS3. I remembered playing Diablo on wine a couple of years back in year 2000? Since I can wine my games, why not do it for Dreamweaver CS3 as well?
A lot of people has done this and searching guides is easy on Google! I used this guide “How to Run Dreamweaver CS3 on Linux using Wine“. Check it out! It’s really simple. More reasons to use Linux.