Page 1 of 1

Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Sat Jul 17, 2010 12:17 pm
by iKeyXS
Hello,

I installed the new Twonky 6.0 on my DNS-323.
When I start Twonky it runs fine, but my Windows 7, hides the network entry "NAS" under Network in the Explorer and installs two Twonky Media Server drivers automatically.

Here is what I mean:
http://www.thisisliving.info/twonky/correct.jpg
Like this it looks without starting twonky on the NAS. And I should be like this when Twonky is started too, because I want to browse my NAS with the normal Explorer.

http://www.thisisliving.info/twonky/wrong.jpg
Like this it looks after starting Twonky at the moment.

Anyone knows what to do?

Thanks ;)
iKey

Re: Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Sat Jul 17, 2010 1:38 pm
by PeeBee
I have a Buffalo LS Pro with Twonky on it and I get both showing. My equivalent of your NAS entry is the NAS itself and shows all of the network shares set up on the LS Pro, and the other 2 are for the Media Server (Twonky) part of the NAS. I'm not sure why your NAS entry is disappearing, though. Have you got any network shares set up or just folders for Twonky to use?

PB

Re: Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Sat Jul 17, 2010 2:42 pm
by iKeyXS
No there are no other network shares set up.
But I discovered another funny behaviour of Windows... Now sometimes the NAS appears as Network Device, but when I open it and try to access the Volume_1 folder (HDD folder), Windows says the specified network name is not avaiable any more.
You can see the the message in the two other screenshots.
http://www.thisisliving.info/twonky/twonky3.jpg
http://www.thisisliving.info/twonky/twonky4.jpg

Have you installed any other Twonky Software like TwonkyManager on your PC? Because I haven't.

Re: Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Sun Jul 18, 2010 2:23 pm
by iKeyXS
Ok I found a solution.

Obviously Twonky shuts down the smb service on startup...
The solution is to start twonky with an extra user with no permission to stop samba service.
I put this in my Twonky startup script:

adduser -D -h /mnt/HD_a2/twonky/ twonky
chown -R /mnt/HD_a2/twonky/ twonky
su -c /mnt/HD_a2/twonky/twonkymedia twonky

And it works fine. You have to set for all files in the twonky folder the user twonky, because otherwise twonky can't write to the medialibrary.

Maybe this helps someone else too ;)

Re: Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Mon Jul 19, 2010 7:36 pm
by PeeBee
iKeyXS wrote:Ok I found a solution.

Obviously Twonky shuts down the smb service on startup...
Well it shouldn't be shutting down SMB as that would be turning your NAS into just a media server.

Is there something in your Twonky startup script that actively does this or is it just a side effect of a conflict?

PB

Re: Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Tue Jul 20, 2010 5:12 pm
by iKeyXS
I think it's just a conflict. I've installed twonky manually (not the NASSetup.exe), so there's no automatic startup script installed. The only start command I created can you see in the post above.
Twonky even shuts down samba if I start it manually (with root user) with ./twonkymedia from the twonky folder.

Re: Twonky 6.0 on DNS-323 - Windows 7 detection

Posted: Tue Jul 20, 2010 8:34 pm
by PeeBee
Reading through the installation files for the DNS323 which would be run as root gives this:

A file called /mnt/HD_a2/starttwonky.sh should be created that has the following entries:

Code: Select all

cd /mnt/HD_a2/twonky
/mnt/HD_a2/twonky/twonkymedia
The files twonkymedia, twonkymediaserver, and the folders plugins/* and cgi-bin/* need to be made executable for root (chmod +x).

A new entry is appended to a new line at the end of the /mnt/HD_a2/fun_plug file:

Code: Select all

/mnt/HD_a2/starttwonky.sh
and fun_plug is also made executable for root.

PB