Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Nas4free server that I was going to host my media files to my ubuntu htpc. I have a "movies" directory that contains each of my bluray rips in subdirectories. I can share the media folder using samba but have been seeing that NFS is the "Linux Way" of sharing. The problem I'm having is that I can't see any way to setup the share and have it apply to all subdirectories. Surely I'm not supposed to share/mount each individual movie folder, right?
1. what are you trying to share the media files to?
2. if MS world then stick 100% with SAMBA, do not bother with NFS
3. if Linux, then forget SAMBA and go 100% NFS
4. if a cross of Linus and OSx, then again go 100% NFS
4a. keeping in mind that when crossing Linux and OSx you will need to use both NFSv3 and NFSv4 and the insecure options.
Here is my /etc/exports on my CentOS6.x server for my Linux + OSx LAN
I'm sharing my movie rips with my htpc (Linux) and OSx devices. I don't plan on any MS users.
My movies are all in individual folders within the "movies" directory. How can I share the Movies directory and all subdirectories/folders using NFS without manually sharing each one, and separately mounting each folder? I haven't been able to locate a way.
trying to figure out how to query that from Nas4free. showmount command only lists:
/mnt/zpool1/HTPC_media
this is the media folder which has two subdirectories (Movies, and TV). After I mount this share on my ubuntu htpc box, I can see those two subdirectories but can't open them. The result is: " bash: cd: Movies: Permission denied".
I'm sharing my movie rips with my htpc (Linux) and OSx devices. I don't plan on any MS users.
My movies are all in individual folders within the "movies" directory. How can I share the Movies directory and all subdirectories/folders using NFS without manually sharing each one, and separately mounting each folder? I haven't been able to locate a way.
Thanks.
look at my exports, you will want to set your exports up similar to mine.
you will need both the NFSv3 and v4 due to having OSx in the mix.
Note for my NFSv4 I only have the single line for the share /exports. that is a directory that all of my other shares mount, but with NFSv4 this will allow for anyone in my LAN to connect to that specific share and not have to worry about the other 2 share locations.
my OSx computers/devices have to use the NFSv3 and have to mount both the /exports/centos/public and /exports/NFS_TV_Shows in order to gain access to all of my shares.
Schneidz, NFS will share subdirectories if it is v4, but not in v3. from what I understand.
The issues with sshfs is the slower access speeds for streaming media. for local file shares NFS is the best option for the OP.
lleb, can I ask what server OS you use? I'm trying to see how to determine my nfs version. nfsstat returns no version number. I'm not sure how easy it is to configure inside nas4free so I may need to consider just doing an ubuntu server or something like that. I like the zfs on nas4free and small os size.
Just for sake of clarity. You can share same directory (with all subdirectories) over CIFS, NFS, FTP, HTTP, AFP, whatnot, simultaneously.
yes, but you will require the appropriate service for each.
CIFS is NOT, i repeat, NOT a Linux share system, nor is AFP, those are proprietary file systems for their respective OSs, MS, OSx in that order.
Why would you bother setting up a Samba share to a MS Windows system to stream media when the OP has zero Windows systems in his network? That was discussed earlier in the thread.
Also Linux will not have a HFS file system native to its file system as that is what Apple uses, AFP is NOT a file system it is the "Apple Fileshare Protocol" and is NOT used by Linux.
FTP, HTTP are again services and NOT file systems that are shared. One is run by an FTP service the other, in most cases in Linux is run by Apache web server. None of those have anything to do with the OPs question.
Yes ssh encryption is heavier then Wep/Wpa encryption. While i have used sshfs from time to time, it is never ideal for streaming LOCAL media. For accessing files while you are away from the local source by all means if you have not configured a VPN to your system, using sshfs is ideal and a very good way to setup a cheap road-warrior VPN without the hassle.
Again, use the native tools for the job.
1. Linux to Linux (OSx) file sharing use NFS
2. Linux to MS file sharing use SAMBA
Its really that simple.
as for the question of my OS, please read carefully my posts from above:
Quote:
Here is my /etc/exports on my CentOS6.x server for my Linux + OSx LAN
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.