Wednesday, December 21, 2011

Fixing TeraStation Pro's Samba to Work with Lion

One of the biggest annoyances of upgrading my home iMac to Lion was the fact the smb and afp mounts to my TeraStation Pro stopped working. It appears that in Lion the smb and afp protocols are now using DHCAST128 authentication. This breaks the authentication mechanism on the TeraStation. Since my TeraStation is pretty old I had little hope that Buffalo would fix the issue. So it was up to me to get it fixed.

Luckily I already rooted my TeraStation and had the OpenTera packages installed. There are a few different options for rooting your TeraStation. I tried some of these methods but I was on firmware version 2.14. I found that the "/www/cgi-bin/ts.cgi" method to be effective but still slow and tedious. Luckily there is a utility named acp_commander. It is available here with instructions here and Readme here. Be warned that if you do not know what you are doing you could really mess up your TeraStation. Depending on your firmware version Your Milage May Vary.

Using acp_commander I was able to enable ssh access to my TeraStation. I edited the /etc/sshd/sshd-config files and the init scripts to start ssh on boot. Once that was done it is very easy to add packages to your TeraStation. The packages come with an install script. all you need to do is copy the package link down to a temp folder using wget (you may need to install the package first)

wget package_name


Unzip the package (you may need to install this as well)


unzip package_name.zip


Then make the install script executable


chmod 755 install_script.sh


After that you can run the install script to install the package.


sh install_script.sh


or


./install_script.sh


Looking at the OpenTera packages I noticed that there was a Samba 3 package available. This was exactly what I needed to fix the TeraStation issue I was having because Samba 3 has implemented DHCAST128 authentication. I used wget to pull the samba3 package down. Unzipped it. Then ran the install script. I used the Samba 3 without AD integration since I don't use AD on my home network.


Once the install script was done I restarted my TeraStation for good measure and was able to connect to my smb shares again! I did not need to mess around with the config files. You also might want to consider enabling nfs on the TeraStation but that tutorial will have to wait for another time.


As always if you have any questions let me know in the comments.

No comments: