First of all, i would like to clarify that i’m not responsable for any damage you can cause to your equipment “playing” with the shell access to your O!Play. Try this at your own risk….
Ok, so Asus had released had released FW 1.27 at its FTP and removed and appearead again and now… it’s not there.

In fact some users have download it, and put it over internet in servers like MegaUpload. In order to get some links just visit Asus support forum.

Okay, in this the main goal was NAS support announced before in the forums by someone from Asus. Until now only one person in the forums talked about this. That’s a MAc user which sees Venus in their network.

After testing this new firmware some differences may arise, specially support for RSS, TVS and Radios more organized. A DVD option appear, but not explored by me until now.

OK, stop the talk, and the goods.

Venus is acessible from Telnet with a Telnet client like the usual in Windows. In Windows Vista and Windows 7 telnet is not installed by default so you can install it, or use a telnet cliente like Putty. Just find your O!play Ip and that’s all you need.

After that just telnet into the box. Username root, no password.

We can see some ports open, but no NAS running by default. To enable it i just launched Samba by running the following commands:

cd /tmp/package/script
./configsamba
./samba start

(the /usr/local/bin/package/samba/sbin/smbd was used before, but thanks to @FarVoice now all should be using the commands above)

After this doing a “netstat -a” we can find it listen 🙂

After this just open it in Windows from network by simpling open it as a share, just like this : \\192.168.1.67 (this is my internal IP in my O!Play) and put some files in it. If you user another Operating System like linux or mac i assume you know how to do this.

Since the nmbd service is running you should also acess your O!Play with \\venus

I will try to figure how to get this running if  you reset it/power it down…. but for now we know that’s possible to use it as NAS… well… nor a real NAS, but it’s a share acessible in the network. No security but, what can you expect from a simple device that root user don’t have a password ?


27 Comments

Goyo415 · June 2, 2010 at 4:15 am

Thanks for sharing

FarVoice · June 2, 2010 at 5:09 am

Hi!
What you did is nice, but not too correct.
Correct usage is:

cd /tmp/package/script
./configsamba
./samba start
./unicgi start
./bt.script start

At the same time get the functionality torrent (go to the player from your browser at http: / / address_of_the_player>)

Luck!

    Edgar Durão · June 2, 2010 at 10:35 am

    @FarVoice : the ./configsamba is missing in my instructions, but it’s not necessary (in my tests was not).
    I’ve separated the NAS from the Torrents because, found it in separated, and some people would not need it running both. In my case BT is useless, and discovered it and make it running juts for proof of concept.

    But speeking in bt.script you’ve to pass some arguments which are neeeded in order for the script running. In my tests without those parameters bt would not start.

    I’ll investigate further this because it was tested very quickly late night.

    What i would like is that Asus made this “new stuff” available through the web interface in the TV and not running these commands in the box… Maybe next firmware they will appear

Jens0815 · June 2, 2010 at 10:24 am

@FarVoice
Will this trick survive a reboot? If not: how to automate this?

    Edgar Durão · June 2, 2010 at 10:29 am

    This commands will not survive a reboot. Simply putting the device in standby shuts down the services.
    Althought this, i think this is a good start in proving that in fact the nas function is in there.
    Only have to figure how to keep it running. Guess i’ll try it later because it’s a very good function.

xupamki · June 2, 2010 at 11:15 am

I think, that asus may be putting those features in the GUI. Meybe they have put the firmware in the FTP for just another department (maybe responsible for the GUI) to get it and finish it.

Let’s hope that they implement those features in the GUI.
Other thing that I’m thinking off, is that meybe those features are there because asus use a generic Busybox release, and customize it. Since Busybox is also used in NAS drives tieh BT support they have left it there, but not activate it.

There are so many possibilities. Putting those command in some kind of startup script would be nice tough!

Tesla · June 2, 2010 at 4:21 pm

Hey Edgar !

Thx for your tipps. I would really love to buy the O!play but only if they make the NAS thing work properly. Can you tell me how fast the network connection (file transfer) is in average ?

Edgar Durão · June 2, 2010 at 9:40 pm

@FarVoice
After tryed this a little bit with your commands i’ve managed to acess the samba share via name, since the nmbd process is now running. Amazing this
Visiting your site i’ve seen that you’re working on a customized module for O!Play? It’s in russian i think but translated and like what i saw. Do you plan to release anything?

Edgar Durão · June 3, 2010 at 4:46 pm

@Tesla
Hello!
I’ve managed to copy from the OPlay over my network at about 6/7/8 MB/s. Since network speed where device is atached is 100Mbps i think it’s pretty good.

Writing to the device is being a mistery. Although i’ve already putted some files in the device with my notebook (Windows 7 x86), i’ve not been able to upload anything to O!play through my desktop (Windows 7 x64)… This is very weird but i think it’s not related to the OS. I’ve spotted some spanish users in a forum talking about the same thing…. Explorer just stops responding.

It’s in my plans today to install Fedora 13 in my Desktop… i’ll give it a try to see if OS related, but i don’t think it is.

ant30 · June 5, 2010 at 5:55 pm

Hi all, I just get set put this command in Asus boot system. You can see this on my blog
http://www.ant30.es/blog/blog/asus-oplay-hdp-r1-como-servidor-nas

I put a rcS example file with samba start,

If you follow my spanish guide, the file survive after reboots but not in firmware install.

Edgar Durão · June 6, 2010 at 3:32 pm

A copy of the messages exchanged with ant30 @ his blog. Basically in my humble oppinion the NAS function is not enough mature. I can startit, keep it alive when booting (thanks to the instructions in ant30 to add to rcS file) but when transfering big files from windows to oplay it crashes the transfer. Small files copy ok, without problems, but for 1080p bigger sizes are the usual.

“Startup Script
by Edgar Duṛo (not verified) Р06/05/2010 Р20:35

I’d check this and updated rcS and works fine. I was in fact convinced that the rcS was the one in /etc/init.d/rcS and not this one but your script is in fact correct.

In my case i’ve putted a sleep of 120seg since i have a usb hard drive, and just in case give it lot’s of time to be detected.

It simply works, and the NAS is ON.

But after this i’d check a little bit more, and concluded that as in my previous experiences i was unable to copy large files…. It seems to crash and do not copy anything. Small files ok, but large files kaput.

Have you having sucess in you NAS copies?

* responder

¿Have you a System with Windows as OS?

by ant30 – 06/05/2010 – 22:50

Thanks for visit and comment my blog to.

I’ve used a 699MB file in my tests from Asus to PC and vice versa and all transfers get finish perfectly and md5sum showed me the same hash. I have Linux Debian Squeeze (testing) as OS in PC with some specials samba params for socket options like that:

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

I could watch how speed can’t get a constant transfer rate, and in some moments it can down to 0 until the io buffers get needed free cache blocks on Asus to handle new packets o read/write new blocks on hard disk.

I think that my gigabit lan is faster to HDP-R1 and this hardware can’t get a new big tcp windows packets size to hand many tcp packets.

The full 699MB file take to get transfered about two minutes.

Aggg!!, sorry, my english sucks!

* responder

copy problem to the HDP-R1
by neil (not verified) – 06/06/2010 – 11:25

hola,

First, many thanks for your work Pirlas and Ant30. As Pirlas, I can’t get a good transfer speed while copying files to a storage on the Asus (drops tp some kB/s), on the contrary, while copying from the Asus to a pc, I get a correct ~8 MB/s on a 100 kb lan. I’m on W7. Any hints?

best wishes,
n.

swordfish · June 6, 2010 at 4:03 pm

Thanks a lot! Samba works very fine! My transfer is ~1 Mb/s , so i’m very happy to access,finally, my Oplay. I have Windows 7(32).

bradpito · June 7, 2010 at 9:07 pm

Hi,

Your post helped me to get venus on network but i can´t transfer any files to hard disk with windows 7.

With mac no problems at all.

DarkBane · June 8, 2010 at 1:15 pm

Hi,

I’m writing a little python script for automating the process. I use the telnetlib module. The script send the right telnet command as describe early in this article and wait response to send another. So it’s just an example, if someone have some ideas or features to implement…

To activate NAS support and Torrent client :

python EnableSamba.py (don’t forget to change your Oplay IP in the script)

import telnetlib

HOST = “192.168.0.13”
USER=”root”
PASSWORD=””

class OplayControl :

def __init__(self, host):
self.telnet_obj = telnetlib.Telnet(host)
#self.telnet_obj.set_debuglevel(9)
self.prompt = “#”
self.Connect()

def Connect(self):
# Find login query
self.telnet_obj.read_until(“Venus login: “)
self.telnet_obj.write(USER + “\n”)
self.telnet_obj.read_until(“#”)

def DisconnectOplay(self):
self.telnet_obj.write(“exit\n”)

def ExecuteCommand(self, command):
self.telnet_obj.write(command + “\n”)
response = self.telnet_obj.read_until(“#”)
print self.__strip_output(command, response)

def EnableSamba(self):
self.ExecuteCommand(“cd /tmp/package/script”)
self.ExecuteCommand(“./configsamba”)
self.ExecuteCommand(“./samba start”)

def DisableSamba(self):
self.ExecuteCommand(“./samba stop”)

def EnableBittorrent(self):
self.ExecuteCommand(“cd /tmp/package/script”)
self.ExecuteCommand(“./unicgi start”)
self.ExecuteCommand(“./bt.script start ../btpd /tmp/usbmounts/sda1″)

def __strip_output(self, command, response):
lines = response.splitlines()
# if our command was echoed back, remove it from the output
if command in lines[0]:
lines.pop(0)
# remove the last element, which is the prompt being displayed again
lines.pop()
# append a newline to each line of output
lines = [item + ‘\n’ for item in lines]
# join the list back into a string and return it
return ”.join(lines)

if __name__ == “__main__”:
oplay = OplayControl(HOST)
oplay.EnableSamba()
oplay.EnableBittorrent()
oplay.DisconnectOplay()

Xenon-777 · June 10, 2010 at 7:25 am

Äm … it go sipler

install netcat and make a text-file:

root
cd /tmp/package/script
./configsamba
./samba start
./unicgi start
./bt.script start

and dann start nc :
nc -i 1 O!Player-IP <Text-File

    DarkBane · June 10, 2010 at 9:28 am

    You are right, it’s more simpler for a few command, but i plan to add more command, like file transfer to do some test (i see there are wget, tftp. I want to crosscompile some app and transfer on it. So python is more flexible for developing.

    But in your command line you set 1s sleep between each command. I think it’s not secure. Some command may take more than 1s to return.
    In my example (the indentation was break), i wait the prompt char to execute another.

    bye

Xenon-777 · June 10, 2010 at 6:12 pm

then make 2 😉 … for a short solution it’s enouth 😉

But i look forward of you komplit Solution 🙂

Xenon-777 · June 10, 2010 at 6:17 pm

oh … 1 i forgot … the samba is not automatik recognize a change of Media. it ist needet to make:

cd /tmp/package/script
./configsamba
./samba restart

after every change

André · February 15, 2011 at 7:15 pm

Caro Edgar,
Tenho um O!Play e uso sempre o samba para acesso via net (\\venus) e funciona muito bem. mas eu nao posso desligar o Asus, se nao, tenho que digitar tudo de novo. Há alguma forma de inserir isto num tipo de autoexec??? Obrigado

Radu · October 27, 2011 at 9:41 pm

Does the Asus HDP-R1 supports wake on lan?
Will be nice to wake the device remote to activate samba, copy the new files and put it back to sleep.

I’ve tried etherwake and it doesn’t work.

Please help

san felipe real estate · July 9, 2012 at 4:31 am

you are truly a good webmaster. The web site loading speed is incredible. It seems that you are doing any unique trick. Moreover, The contents are masterwork. you’ve performed a fantastic job on this subject!

emvipi · August 26, 2012 at 4:50 pm

Hello,

I got samba working but it is just one way:I can copy files from Asus to PC, but not viceversa. When I want to copy files from PC to internal HDD I receive the “Access denied” message.
I have searched through options but I couldn’t find any credentials to enter… Could you, please, help ? The unit is quite useless without this feature…

Than you!
Kind regards!

Jun Yan · October 12, 2012 at 2:56 am

I don’t understand why your commands “won’t survive a reboot”. Can’t you add them to the start up script? People were doing that in this link:

http://vip.asus.com/forum/view.aspx?board_id=19&model=O!Play+HDP-R1&id=20091101235827937&page=1&SLanguage=en-us

Jacquline Benedict · February 24, 2014 at 5:09 am

I’m clesrly beginning to realize that Tumblr gives you a considerably
more advantages than whatever I assumed. Though I haven’t always been an
ardent member up to now I really have now observed that tumblr has really
become a really acceptable website for others to successfully become familiar with a good
deal as a result of mingling with other people, impart considerations,
and even generate potential customers towards organizations that identify its use.

It is wonderful that i’m barely exploring tumblr now

My webpage; Jacquline Benedict

Tweets that mention O Cantinho do Edgar » O!Play HDP-R1 – Nas With Firmware 1.27 -- Topsy.com · June 2, 2010 at 12:44 am

[…] This post was mentioned on Twitter by planetgeek, Edgar Durão. Edgar Durão said: New blog post: O!Play HDP-R1 – Nas With Firmware 1.27 http://durao.net/2010/06/01/oplay-hdp-r1-nas-with-firmware-1-27/ […]

Anonymous · June 9, 2010 at 6:18 pm

[…] 1.27 tiene capacidad para NAS.. y aparece en la red como 'venus'. Has podido comprobar esto? mira http://durao.net/2010/06/01/oplay-hd…firmware-1-27/ y http://www.ant30.es/blog/blog/asus-o…o-servidor-nas __________________ A la venta: – WD TV […]

Asus o!play hdp-r1 como servidor NAS | Notas de ant30 · December 28, 2011 at 10:20 am

[…] el servidor samba compartiendo lo que haya conectado vía USB/eSATA. Pirlas, publicó en su blog los comandos a ejecutar pero no indicó una forma para que se iniciase este sistema durante el […]

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *