SSH access to Buffalo Linkstation LS-VL Pro

I have all my media in Buffalo Linkstation LS-VL pro NAS. This is a marvellous piece of machine which is fast and compact as well. I just thought it would be great to have complete control of this machine and for this I obviously need root access.

Following are the steps for Mac OS and Linux through which I gained full access.

1. Download acp_commander.jar file from buffalo to your desktop.

2. Now open Terminal and type the following command


Above command will ask you to enter the file name. I prefer to save it to desktop for example in my case it was.


The command will ask for passphrase but you can keep that blank if you want.Now it will generate two files authorized_keys and These two files are the public and private key for SSH login.

3. Now generate a TXT file named open-ls.txt on your desktop with the following lines.

# open-ls.txt -- This script will be executed on the LS

# DIR is where we are
DIR=$( cd $(dirname $0) ; pwd)

# Create the directory for the ssh keys and copy the pubkey there
mkdir /root/.ssh
chmod 700 /root/.ssh
cp $DIR/authorized_keys /root/.ssh/
chmod 600 /root/.ssh/authorized_keys
# Required if 'authorized_keys' have een written on a Windows PC
dos2unix /root/.ssh/authorized_keys

### Enable root login for SSH
# Backup sshd_config
cp -p /etc/sshd_config /etc/sshd_config.orig
# Replace all "PermitRootLogin no" by "PermitRootLogin yes"
sed -i '/PermitRootLogin/s/no/yes/' /etc/sshd_config
chmod 600 /etc/sshd_config
# Verify
grep PermitRootLogin /etc/sshd_config

# Last we restart the sshd.
/etc/init.d/ restart

4. Now by default Linkstation has a folder named share with all you media inside. In this folder upload open-ls.txt and but rename it to authorized_keys.

5. You must be now left with acp_commander.jar and authorized_keys private key on Desktop. Using terminal go to your desktop directory and type the following command.

mv authorized_keys ~/.ssh/id_rsa

Your private ssh key should be renamed in id_rsa and kept inside hidden .ssh folder.

Now type the following command.

java -jar acp_commander.jar -t LINKSTATION_IP -ip LINKSTATION_IP -pw LINKSTATION_WEB_ADMIN_PASSWORD -c 'ls /mnt/disk1/share/'

After the above command gets executed type the following command.

java -jar acp_commander.jar -t LINKSTATION_IP -ip LINKSTATION_IP -pw LINKSTATION_WEB_ADMIN_PASSWORD -c 'sh -x /mnt/disk1/share/open-ls.txt'

If the above command gets executed successfully then you would be able to login as root using ssh to your link station.

If you have tried to login prior to this guide then you may need to delete know_hosts inside your .ssh folder.

You can now enjoy the full control on your linkstation.

For reference please visit buffalo wiki.


Fix “This device isn’t eligible for the requested build”

I have iPad 2(GSM) version. It was on iOS v 5.1.1 firmware, yesterday I finally made up my mind to upgrade it to iOS 6.1. iTunes downloaded some 800 MB firmware and when it begin to load into iPad it gave the following error.

“The iPad could not be restored. This device isn’t eligible for the requested build”. Its pretty annoying when it takes nearly 1.5 hours for just firmware download. I looked up in google for solution but found only one working solution.

Here is the solution

Advanced: Manually Editing Hosts

Quit out of iTunes
Go to the hosts file. For Mac OS X this is located at: /etc/hosts or /private/etc/hosts and in Windows it is located at: c:\windows\system32\drivers\etc\hosts
Open the hosts file with Administrative privileges so that changes can be made and saved (eg: sudo nano /etc/hosts)
Look for a line that resembles something like this:

Put a # in front of that to comment it out, making it now look like this:

Save the hosts file
Flush DNS cache using terminal

dscacheutil -flushcache

and restart iTunes

Thank to oxdaily website’s tutorial on this fix.

As soon as I again tried it perfectly restored, now finally I am on ios 6.1.

Macbook Pro USB – No bootable device found

Recently I have encountered a strange problem in my MBP. I am trying to install windows 7 through usb media but strangely it goes undetected. I also tried rEfit and rEfind boot managers but it threw an error of no bootable device found.

I tried win7 DVDs as well, the problem with them is stuck up at “Expanding windows files”. Apple surely needs a check on bootcamp.

I now found my own way to deal with this. Following is the solution.

Boot into your mac os partition and clear up all files in windows partition. Then copy all the content of window 7 iso or DVD into win partition. Boot with this windows partition and then start installation on the same partition.

Problem solved.


Macbook pro Keyboard Backlight won’t turn on.

A light intensity sensor near FaceTime HD camera is the answer to this problem. Apple has done some intelligent work to associate Keyboard Backlight and Screen brightness with environment light intensity. It sure has to be this way in order to give marvalous 7 hr battery backup.
If in bright day light you press F6 you get no response, but as soon as you keep hand near to camera you’ll see F5 and F6 functioning.
Hope this helps!

MKV playback on Samsung LED TV.

I have a 32 inch series 5 LED smart TV UA32D5900VR. Before buying I did complete research about the playback capabilities and Samsung came out to be winner but, when now during its actual usage I found the following missing capability.
It does not play MKV files through network.
I found solution for all the samsung LED TV’s and its just a simple trick of renaming mkv to avi file.
Thats it!

Nokia Software Update – Refreshing Failed.

I check out my colleague’s E5 today and fortunately I also saw its default HTML email app. After a long time I had appreciated Nokia again to give this functionality back. My previous phone E51 was a small but a powerful fully loaded device.Now to get Nokia Email app 3.9 on my devices I just tried out Software update over air from my E72 itself but it started giving out Refreshing failed. I googled it and found

Obviously formatting your phone that too Helios hacked E72 is a big and time-consuming deal. So I just popped out memory card, started my phone back, switched off my device and again pushed and started my phone and that’s it! my software updated is working again with Email app update.

Hope it helps some of the Nokia E72 victims.

Youtube Video Download – Safari

If you’re using Safari, there’s an easy way to download YouTube or any flash videos. Open the page with the movie and press Command-Option-A, which shows the Activity window. If you’re also loading other sites, you’ll see a list of them: scroll until you find the YouTube page and click on the arrow to show details about what is being loaded.

You will certainly notice an element whose size is over 0.5MB (most of the time, over 5MB). Double-click on it (even if it is still loading), and Safari will download it.  Now you can play it with VLC or with QuickTime (only if you have Perian installed).