Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Jul 25, 2014 5:00 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Wed Mar 04, 2009 8:32 pm 
Offline
Newbie

Joined: Wed Feb 25, 2009 5:45 pm
Posts: 15
At the beginning of this year, after a visit to Circuit City, I bought a Buffalo Linkstation EZ (320GB) for a greatly discounted price. After researching about it a bit I realized it was possible to use it to stream movies/music/pictures to the xbox 360 (and the PS3, but I haven't tried since I do not own one). This is the method I used to make this possible. All other guides I've read were either outdated or the information was incorrect for the LS-LGL (Linkstation EZ).

Downloads Needed

Notices
  • To edit files we will be using vi. (To learn more about vi and the commands used read here)
  • This was done on stock firmware version 2.1 I don't know if it works in others.

~~~ WARNING ~~~
Messing with your NAS could brick it. Continue at your own risk. I accept no responsibility for damages done to your equipment.

Procedure

1) Disable Windows Firewall

2) Open command window (with administrative rights is better)

3) Navigate to the folder where you downloaded acp_commander, for me its
Code:
cd C:/acp

4) Spawn telnet using acp_commander (replace xxx.xxx.xxx.xxx with your LS-LGL IP address) I recommend setting a static IP address in your router's settings for your LS-LGL.
Code:
java -jar acp_commander.jar -t xxx.xxx.xxx.xxx -o

5) Optional: Set a password for telnet access:
Code:
passwd

6) Optional: Modify your rcS file to allow telnet access by default. Otherwise you would have to run acp_commander every time you restart your LS-LGL.
Code:
cp /etc/init.d/rcS /etc/init.d/rcS_backup
vi /etc/init.d/rcS

Add these lines at the bottom of the file before the last line "exit 0".
Code:
# telnetd for debug
 /usr/sbin/telnetd

7) Navigate to /share and untar addons.tar
Code:
cd /mnt/disk1/share
tar -C / -xzvf addons.tar

Fix DNS issues
Code:
echo "hosts: files dns" >/etc/nsswitch.conf

8) Bootstrap
Code:
mkdir /mnt/disk1/tmp
cd /mnt/disk1/tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/lspro-bootstrap_1.2-5_arm.xsh
sh lspro-bootstrap_1.2-5_arm.xsh

9) Exit telnet and reaccess or reboot and re access
Code:
reboot
(wait for reboot)
telnet xxx.xxx.xxx.xxx

10) Run updates
Code:
ipkg update
ipkg upgrade

11) Install ushare
Code:
ipkg install ushare

12) Configure ushare
Code:
vi /opt/etc/ushare.conf

My conf file looks like this, for me eth0 is default. This might be different for other people. (Make sure you set you USHARE_DIR= to the directory your media files are in)
Code:
# /etc/ushare.conf
# Configuration file for uShare

# uShare UPnP Friendly Name (default is 'uShare').
USHARE_NAME=uShare

# Interface to listen to (default is eth0).
# Ex : USHARE_IFACE=eth1
USHARE_IFACE=eth0

# Port to listen to (default is random from IANA Dynamic Ports range)
# Ex : USHARE_PORT=49200
USHARE_PORT=49200

# Port to listen for Telnet connections
# Ex : USHARE_TELNET_PORT=1337
USHARE_TELNET_PORT=1337

# Directories to be shared (space or CSV list).
# Ex: USHARE_DIR=/dir1,/dir2
USHARE_DIR=/mnt/disk1/share

# Use to override what happens when iconv fails to parse a file name.
# The default uShare behaviour is to not add the entry in the media list
# This option overrides that behaviour and adds the non-iconv'ed string into
# the media list, with the assumption that the renderer will be able to
# handle it. Devices like Noxon 2 have no problem with strings being passed
# as is. (Umlauts for all!)
#
# Options are TRUE/YES/1 for override and anything else for default behaviour
USHARE_OVERRIDE_ICONV_ERR=yes

# Enable Web interface (yes/no)
ENABLE_WEB=no

# Enable Telnet control interface (yes/no)
ENABLE_TELNET=no

# Use XboX 360 compatibility mode (yes/no)
ENABLE_XBOX=yes

# Use DLNA profile (yes/no)
# This is needed for PlayStation3 to work (among other devices)
ENABLE_DLNA=no

13) Modify the startup script to enable xbox 360 compatibility
Code:
vi /opt/etc/init.d/S99ushare

Change line number 30 from
Code:
$DAEMON -D

Change to
Code:
$DAEMON -x -D

14) Start the script
Code:
/opt/etc/init.d/S99ushare start


Done. Doing this should enable media streaming to the xbox 360. (not as Media Center Extender, but in the regular videos section)

In the xbox 360 if you go to "My Xbox" -> "Videos" you should see a computer named uShare.

Special thanks to:


Last edited by Bernok on Tue Mar 24, 2009 5:54 pm, edited 3 times in total.

Top
 Profile  
 
PostPosted: Wed Mar 04, 2009 11:43 pm 
Offline
Total Newbie

Joined: Tue Mar 03, 2009 3:20 am
Posts: 4
Thank You Very Much!! This world need more people like you!

I haven't tried it yet - maybe this evening... I'll let you know how it goes...


Top
 Profile  
 
PostPosted: Thu Mar 05, 2009 4:20 am 
Offline
Total Newbie

Joined: Tue Mar 03, 2009 3:20 am
Posts: 4
Got it - Works Great! Thanks again - This will save me a lot on my power bill!! I don't have to have my desktop on for the kids to watch spongebob.


Top
 Profile  
 
PostPosted: Sat Mar 07, 2009 10:23 pm 
Offline
Newbie

Joined: Wed Feb 25, 2009 5:45 pm
Posts: 15
Fixed: I lost some steps (bootstrapping) when posting original thread.


Top
 Profile  
 
PostPosted: Fri Mar 13, 2009 3:16 am 
Offline
Newbie

Joined: Fri Nov 21, 2008 1:07 am
Posts: 8
Congrats Bernok,
and great, easy to use, well titled (and therefore easy to find!) guide.
I'm going to have to re-look into doing this.


Top
 Profile  
 
PostPosted: Sun Mar 15, 2009 1:24 am 
Offline
Newbie

Joined: Fri Nov 21, 2008 1:07 am
Posts: 8
Quote:
~ # /opt/etc/init.d/S99ushare start
/opt/etc/init.d/S99ushare: /opt/etc/init.d/S99ushare: 59: cho: not found
~ #


my uShare doesn't start...
everything else works in the install process. optware refuses to install uShare again because it's already there.

I also noted a typo..

Quote:
ipkg ugrade

should be ipkg upgrade


Top
 Profile  
 
PostPosted: Sun Mar 15, 2009 2:06 am 
Offline
Newbie

Joined: Fri Nov 21, 2008 1:07 am
Posts: 8
Found the problem... I (or something) had deleted an e from echo on line 29 of /opt/etc/init.d/S99ushare
ie the line above the one where I added -x to activate xbox compatibility.
About to test with the xbox. Hopefully you wont hear from me publicly again on this topic.


Another addition to the guide.
when you bootstrap, I think you need to follow the instructions inj the last few lines of the product of your first bootstrap.. (removes a few files) and then reboot.



For ultra beginners like me, tips for using vi are below..
Quote:
scroll to the place you want to edit using the arrow keys.

press the letter "i" to enter insertion mode

press escape to exit from insertion mode.

to save and quit vi, type ":wq" (I presume, write/quit)

to not save (ie if you made a big error) type ":q!"


Top
 Profile  
 
PostPosted: Sun Mar 15, 2009 10:35 am 
Offline
Newbie

Joined: Fri Nov 21, 2008 1:07 am
Posts: 8
OK, I'm reporting back...BUT it works. I had to change my default Ethernet Port Name from egiga0 to eth0 and then it was visible!
I can also play xvid encoded video in an avi container.
One problem... in my Music, it pulls up all my videos as music sources which is annoying.


Top
 Profile  
 
PostPosted: Mon Mar 16, 2009 3:40 pm 
Offline
Total Newbie

Joined: Sun Mar 15, 2009 4:32 pm
Posts: 3
Bernok wrote:
Code:
ipkg update
ipkg ugrade


spell miss.

It should be "ipkg upgrade" :ugeek:


Top
 Profile  
 
PostPosted: Fri Mar 27, 2009 7:39 pm 
Offline
Total Newbie

Joined: Thu Mar 12, 2009 5:24 pm
Posts: 1
Hi,

First i wan to thank you for the wonder full stuff.

There is some thing which stops me to proceed further.

Code:
root@BUFFALO:/mnt/disk1/tmp# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/Packages.gz
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -q -P /opt/ipkg-rOdDr1 http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/Packages.gz'


I cannot connect the internet from the NAS. My ISP has restricted me from connecting to net from different MAC (even though i am an DHCP client for my ISP).

I am able to download the Packages.gz file from the net but how to execute that?
The Packages file contains links for different website from where it points to some ipk file.

Please let me know what these ipk files are?
Please let me know how to download all these files and install? Does all these files are mandatory for the NAS to work as a media server (some think like that?)


Top
 Profile  
 
PostPosted: Sat Mar 28, 2009 3:35 am 
Offline
Newbie

Joined: Fri Nov 21, 2008 1:07 am
Posts: 8
I'm not sure why you can't connect to the net.
How are you communicating with your NAS?
Is it plugged into your PC or into your modem/router?
If it is plugged into the router, it should work. If plugged into your PC, that might be the problem.


Top
 Profile  
 
PostPosted: Sun Mar 29, 2009 5:31 pm 
Offline
Total Newbie

Joined: Tue Mar 03, 2009 3:20 am
Posts: 4
Just a quick update.... So far I've used this set up for about a month and it has works flawlessly! Thanks again for your hard work!

Note: I NAS to a Popcorn hour, Xbox 360 and multiple laptops. Mostly use .avi containers but mp4 and others work fine as well...


Top
 Profile  
 
PostPosted: Fri Oct 30, 2009 9:19 pm 
Offline
Newbie

Joined: Fri Oct 30, 2009 6:38 pm
Posts: 5
Ich komme nur bis zu Punkt 8

wget http://ipkg.nslu2-linux.org/feeds/optwa ... -5_arm.xsh

hier sagt er mir

Resolving ipkg.nslu2-linux.org... failed: Temporary failure in name resolution.

was mache ich falsch kann mir bitte jemand helfen


Top
 Profile  
 
PostPosted: Wed Dec 16, 2009 12:31 pm 
Offline
Total Newbie

Joined: Wed Dec 16, 2009 12:15 pm
Posts: 1
I've set up a cron job to re-index my media files every 5 minutes. Any media files added to the linkstation get automatically found by ushare.


To edit your crontab file, type the following command:
Code:
crontab -e


Add the following job (set your host name):
Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * wget http://linkstation:49200/web/ushare.cgi?action=refresh


Top
 Profile  
 
PostPosted: Wed Jan 27, 2010 8:51 am 
Offline
Newbie

Joined: Wed Jan 27, 2010 8:37 am
Posts: 5
This is great. Thank you. Just curious, why are you performing step 13?

Quote:
13) Modify the startup script to enable xbox 360 compatibility

You shouldn't need to since you are changing the config file the daemon already uses to enable xbox functionality. Unless there is something special that you've noticed requiring this? I just use it as a DLNA streaming server so I changed the DLNA profile section to ENABLE_DLNA=yes.

Didn't bother with step 13 and it works fine for me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group