LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-20-2014, 10:17 PM   #1
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Rep: Reputation: 6
Debian Media Server


I have just set up a Debian media server to host my movie and TV shows through NFS, I used the following link to set it up -> http://ksearch.wordpress.com/2010/09/29/nfs-linux-mint/

Here is a copy of my /etc/exports file

/home/garrett/Videos * (ro,async,subtree_check)

When I try to play my movie files through my WD TV Live media box it sees the server and the directory but when I select the Videos directory the WD TV Live says 'There is no media available for playback'. This worked on my Mint desktop just fine but it's not working from my Debian server. Any ideas. I thought I might try to change the permissions to rw instead of ro just to see if that's the problem, if that's it then I'll have a new problem. I need to set up some kind of linked system that with rw permissions that point to my ro permissions movie directory.
 
Old 12-22-2014, 12:29 PM   #2
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
I'm not sure how exports works, perhaps try samba?

As for permissions, a few guesses:
Does exports have it's own user for interacting with network shares? Eg. apache uses www-data.
If it does, does it have the correct permissions? If you want to have full permissions over it but not give everyone full access, try changing the group of the dir and permitting it read only.

The files likely have correct permissions, do but the directories? Directories require at least read & execute to access.

Also, check the hierarchy. For example, your media dir at /media/userhdd/mymedia is set correctly but /media/userhdd does not permit at least access, it will fail since it was never actually permitted to access mymedia in the first place.
 
1 members found this post helpful.
Old 12-22-2014, 09:17 PM   #3
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
Any idea what user the WD TV Live is connecting as? Any errors in /var/log/messages? Are the files everyone readable, and the folders everyone rX? You may be able to increase the logging level of NFS, and see exactly what the WD is trying to do that is causing it to fail.
 
Old 12-23-2014, 12:37 AM   #4
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
The '*' in that line in the exports file means anyone is allowed to connect, my understanding is it's either that or a specific IP address. Below is the tail end of /var/log/messages

Dec 23 00:28:11 media-server kernel: [ 11.132508] Bluetooth: HCI socket layer initialized
Dec 23 00:28:11 media-server kernel: [ 11.132513] Bluetooth: L2CAP socket layer initialized
Dec 23 00:28:11 media-server kernel: [ 11.132824] Bluetooth: SCO socket layer initialized
Dec 23 00:28:11 media-server kernel: [ 11.138069] Bluetooth: RFCOMM TTY layer initialized
Dec 23 00:28:11 media-server kernel: [ 11.138080] Bluetooth: RFCOMM socket layer initialized
Dec 23 00:28:11 media-server kernel: [ 11.138086] Bluetooth: RFCOMM ver 1.11
Dec 23 00:28:11 media-server kernel: [ 11.172133] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Dec 23 00:28:11 media-server kernel: [ 11.172137] Bluetooth: BNEP filters: protocol multicast
Dec 23 00:28:11 media-server kernel: [ 11.245672] lp: driver loaded but no devices found
Dec 23 00:28:11 media-server kernel: [ 11.252127] ppdev: user-space parallel port driver

And yes, everyone can execute the directories that contain the movie files and all the file are readable.
How could I increase the logging level of NFS?

My problems increased. Now the WD TV Live just keeps searching for a Linux share but it never shows up, it's like my NFS server isn't even running anymore.
 
Old 12-23-2014, 12:27 PM   #5
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
Well I sorta solved the problem. I was keeping my movies in /home/garrett/Videos/Movies and I had my NFS server set to share /home/garrett/Videos/ I wanted to do it that way hoping that I could then add other libraries like 'Shows under the Videos directory. For whatever reason that doesn't work and I have to specify exactly what directory to share because it doesn't share sub directories.
 
Old 12-29-2014, 09:52 AM   #6
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Rep: Reputation: 3
Hi Garrett,

I have spent many hours (days, weeks, months) playing with my NFS setup and WDTVLive. When it didn't work it was the source of much of much frustration but now I have a working setup it is almost exactly what I wanted.

In short what you wanted, sharing a folder and the subdirectories to be shared too, is possible. A quote from my /etc/exports
Code:
/mnt/wdtvlive   wdtvlive(ro,sync,fsid=0)
/mnt/wdtvlive/Video     wdtvlive(ro)
/mnt/wdtvlive/Video_archived    wdtvlive(ro)
There is more to it but in essence that is what I have. You may or may not be aware, by making your share read only the WDTVLive will not fetch cover art etc

Last edited by mengoshmink; 12-29-2014 at 10:53 AM.
 
1 members found this post helpful.
Old 12-30-2014, 10:36 AM   #7
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
I mengoshmink I know it wont be able to fetch the meta data but I have an idea for that. I like to share on directory with the TV Live and make it RW and wrtie a script that auto fills that directory with links that point to all my .mkv file in my RO directory. That way as far as the TV Live is concerned it does have write access without actually having write access to my movie files, and I still get my cover art.

my etc/exports line loocks something like this -> /home/garrett/Videos/Movies *(ro,sync,subtree_check) I would like to know more about your /etc/exports file. When you write wdtvlive in you exports file is that an actualy Linux user that's built into the TV Live or is that just a directory you created to represent where you're keeping your files? Thanks.
 
Old 01-01-2015, 06:40 AM   #8
mengoshmink
Member
 
Registered: Nov 2003
Distribution: Fedora
Posts: 42

Rep: Reputation: 3
Happy new year Garrett85!

Sorry for the late reply but I have been busy with a few of my own (unsolved) problems.

I like the sound of what you're trying to do for the metadata, would you be willing to share what you do? eg you're script etc

I have no users specifically for my WDTV Live device but I have a folder called wdtvlive just for the wdtvlive exports and also the hostname of my WDTV Live device is wdtvlive. Confused?

Folder structure:
Quote:
/
/mnt/store/tmp/archive/video
/mnt/store/tmp/video
|
/mnt/wdtvlive/video_archive
/mnt/wdtvlive/video
/etc/fstab
Code:
/dev/sda3    /mnt/store/    ext4    defaults    1 2

/mnt/store/tmp/archive/video    /mnt/wdtvlive/video_archive    bind    0 0
/mnt/store/tmp/video    /mnt/wdtvlive/video    bind    0 0
/etc/exports
Code:
/mnt/wdtvlive    wdtvlive(ro,sync,fsid=0)
/mnt/wdtvlive/Video    wdtvlive(ro)
/mnt/wdtvlive/Video_archived    wdtvlive(ro)
I hope that helps but let me know if it doesn't. I'm pleased to meet a fellow WDTV Live user who is using NFS and not CIFS for their device.
 
1 members found this post helpful.
Old 01-10-2015, 08:50 PM   #9
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
mengoshmink I think I may have finished that script. If you think you might like to have it let me know.
 
  


Reply

Tags
debian-multimedia



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
flash media server 4.5 configuration for Debian Wheezy onirique Debian 0 02-14-2013 11:44 AM
Media Server like youtube on Red Hat Enterprise Linux Server noufal_pv Linux - Newbie 5 01-08-2013 05:14 PM
x264 Streaming media server & client decompressing on server-side? Pearlseattle Linux - General 2 12-12-2007 11:04 AM
Flash Media Server 2 on Debian Etch AMD64 - library hell Dunkelelf Debian 6 02-14-2007 06:17 PM
Debian(or other) Media Player With Library dj_dubbbz Linux - Software 1 03-29-2005 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration