LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-15-2013, 10:00 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 348

Rep: Reputation: 13
"Proper" Way to Share Files on a Network?


I've got various Linux computers on the network and 1 Windows computer (which is supplied by my work and to be honest is only on the network for internet access). Samba used to work, but then the wind changed and I'm being told that my household plumbing isn't good enough
Code:
mount error(32): Broken pipe
Anyway, previously I have used SSHFS, but it's a little bit resource hungry and it's actually a little too powerful for what I want, which is to be able to listen to my music from any computer in the house.

What's my simplest and easiest way of achieving this please, preferably so I can add a line to my fstab and have it mounted at boot.

Please bare in mind I am a complete computer newbie who often struggles to understand the most basic of tasks.
 
Old 08-15-2013, 09:16 PM   #2
Doug G
Member
 
Registered: Jul 2013
Posts: 595

Rep: Reputation: Disabled
I have my music library sitting on a linux machine. I generally use sshfs to get to it from other *nix computers, and I have it set up as a read-only share in samba for windows machines.

The music is on a Fedora 19 machine and samba has no problems in my setup.
 
1 members found this post helpful.
Old 08-16-2013, 08:41 PM   #3
Darth Maul
LQ Newbie
 
Registered: Aug 2013
Distribution: PClinuxOS 2013.7 KDE
Posts: 28

Rep: Reputation: Disabled
I usually use samba for sharing files, but you said it doesn't work on your side.

If you only want to stream your media files to the network, you can use VLC. Here is a guide if you want to give it a shot.

http://www.howtogeek.com/118075/how-...ork-using-vlc/

VLC is crossplatform so any OS can be used to play your media streams from the network.

Here's a tip not in the guide. After setting up VLC with http streaming, you can use mplayer to play the streams.

Code:
mplayer http://ip-address:8080

Last edited by Darth Maul; 08-16-2013 at 08:59 PM.
 
1 members found this post helpful.
Old 08-16-2013, 10:00 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,381

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
NFS is the simple way.
Export the music dir on the 'server'.
Mount the share on the clients (via fstab).
 
1 members found this post helpful.
Old 08-17-2013, 07:54 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Member Response

Hi,

Quote:
Originally Posted by NotAComputerGuy View Post
I've got various Linux computers on the network and 1 Windows computer (which is supplied by my work and to be honest is only on the network for internet access). Samba used to work, but then the wind changed and I'm being told that my household plumbing isn't good enough
Code:
mount error(32): Broken pipe
Anyway, previously I have used SSHFS, but it's a little bit resource hungry and it's actually a little too powerful for what I want, which is to be able to listen to my music from any computer in the house.

What's my simplest and easiest way of achieving this please, preferably so I can add a line to my fstab and have it mounted at boot.

Please bare in mind I am a complete computer newbie who often struggles to understand the most basic of tasks.
Samba would be the way to exchange data or share between MS Windows and Gnu/Linux;
Quote:
From Slackware®-Links Server section;

Slackware® Samba Setup <- 'File and printer sharing on the local network using Slackware®' + Alien_Bob's Wiki
Simple Slackware Setup <- 'Connect your Windows machine(s) to your Linux machine(s) over your network, then Samba is what you need. Essentially, Samba allows your Linux machine to communicate with your Windows network to share files, resources, and printers. This document will cover the steps of installing and configuring Samba on Slackware 11.0.0.' + Applicable
SMB-HOWTO <- 'Describes how to use the Server Message Block (SMB) protocol, also called the Session Message Block, NetBIOS or LanManager protocol, with Linux using Samba. Although this document is Linux-centric, Samba runs on most Unix-like operating systems.'
Quick and dirty Samba setup <- 'Samba is an open source project that allows Windows users to connect to a Linux server from which to share data.'
Getting Vista to work with Samba
Get Vista and Samba to work <- 'NTLMv2 authentication is supported in Samba 3.0'
Samba-3 by Example <- 'This book is your means to the straight path. It provides step-by-step, proven, working examples of Samba deployments. If you want to deploy Samba-3 with the least effort, or if you want to become an expert at deploying Samba-3 without having to search through lots of documentation, this book is the ticket to your destination.'
Hope this helps!
 
1 members found this post helpful.
Old 08-17-2013, 10:35 AM   #6
itlb
LQ Newbie
 
Registered: Aug 2013
Distribution: Debian
Posts: 29

Rep: Reputation: Disabled
I would use NFS considering there is only one Windows PC. Windows 7 has an in-built NFS client I believe...
 
1 members found this post helpful.
Old 08-17-2013, 01:32 PM   #7
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
Quote:
Originally Posted by NotAComputerGuy View Post
I've got various Linux computers on the network and 1 Windows computer (which is supplied by my work and to be honest is only on the network for internet access). Samba used to work, but then the wind changed and I'm being told that my household plumbing isn't good enough
Code:
mount error(32): Broken pipe
Anyway, previously I have used SSHFS, but it's a little bit resource hungry and it's actually a little too powerful for what I want, which is to be able to listen to my music from any computer in the house.

What's my simplest and easiest way of achieving this please, preferably so I can add a line to my fstab and have it mounted at boot.

Please bare in mind I am a complete computer newbie who often struggles to understand the most basic of tasks.
not a worry. Ideally you will stick with native languages to share. In the Linux world that would be NFS to share media/files/data/etc via your LAN. To connect the MS Windows box you would setup SAMBA.

As mentioned the VLC is an other great option for just streaming media via your LAN.

As for mounting. Ideally you would use NFSv4 on the storage box (your server for both NFS and SAMBA) and export that data out to your workstations. Instead of using fstab, as this can cause issues if not 100% configured correctly. like causing the workstation or the server to hang for minutes to hours or just flat out become unresponsive forcing a hard reset, never good for any OS.

the use of autofs when configured properly will allow you to connect on the fly and it will automatically disconnect when not in use for X amount of time. this is done basically at the speed of your LAN. so if you are still running old 10BaseT, then yeah its going to be painfully slow, but anything 10/100 or faster should be just fine. Although you can run into I/O issues with 10/100 if you are streaming to much data. If you can afford to upgrade to 10/100/1000 for the entire LAN (that includes switches/routers, NICs) you will be much better off, or at the least if you are running WiFi on some of the connections to use n band or dual n for best performance.

That is the setup I have at my place for my media server[NFS] (CentOS 6.4) streaming 1080p movies and music to up to 5 workstations all via 10/100/1000 and dual n WiFi with zero issues other then the hardware on my NFS server is about dead. Puffed capacitors. All but 1 of my Linux workstations connects via autofs. The one off is a Raspberry Pi running RaspBMC (a specific XMBC front end for the RPi) that I just hard mount via fstab as I dont want to fight getting autofs running on a system that is not running a FULL Linux release. Plus if it hangs, I just pull the power cord on it, not that big of a deal.

My Apple Mac connect via a script as they do not have anything like autofs for network shares that work with my NFS server.

this link has a good configuration for NFS for you.

https://www.linuxquestions.org/quest...rk-4175473392/

*edit* sorry had wrong link in there. this is the correct link.

as for the samba issues you are having, post your smb.conf and we can look at it to figure out what is going on.

Last edited by lleb; 08-17-2013 at 01:40 PM.
 
1 members found this post helpful.
Old 08-17-2013, 10:14 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
I learned something from here.
http://sagehacks.wordpress.com/2009/...der-windows-7/


Perhaps best of all, by right-clicking on the share’s drive icon and selecting ‘Add to library…’, your NFS shares can be rolled into a library (libraries were discussed in this previous post) for sharing across Windows 7 homegroups.
 
1 members found this post helpful.
Old 08-22-2013, 04:25 PM   #9
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 348

Original Poster
Rep: Reputation: 13
Sorry, I didn't work myself correctly. The Windows 7 machine isn't really trusted to access shares, so it's literally on my network for the same of the internet. I didn't know if that would make a different in the machines trying to access each other, like if it would send Microsoft packets round the network and break stuff. Some times after the Windows machine has printed something from the network printer, it stopped the other machines from printing, so that printer is now banned from printing.

I'll look into NFS, as Samba I have found to be either unreliable or difficult set up properly. Either way it's the same end result for me. Often I cannot access things.

Thanks for the VLC suggestions too
 
Old 08-22-2013, 06:41 PM   #10
PECONET009
Member
 
Registered: Sep 2006
Posts: 101

Rep: Reputation: 11
Lightbulb You have your Windows set up wrong..

Quote:
Originally Posted by NotAComputerGuy View Post
Sorry, I didn't work myself correctly. The Windows 7 machine isn't really trusted to access shares, so it's literally on my network for the same of the internet. I didn't know if that would make a different in the machines trying to access each other, like if it would send Microsoft packets round the network and break stuff. Some times after the Windows machine has printed something from the network printer, it stopped the other machines from printing, so that printer is now banned from printing.

I'll look into NFS, as Samba I have found to be either unreliable or difficult set up properly. Either way it's the same end result for me. Often I cannot access things.

Thanks for the VLC suggestions too
As said in another post Samba is the best way to go.
As for your Windows machine get it to trust and access your shares.
As for printing wise I have no trouble with my set up with Windows 7 Ultimate and Fedora, they access the printer and print just fine.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Samba "oplock break failed" error - cannot open files on SMB share from network rylan76 Linux - Software 3 04-10-2013 09:29 AM
"Permanently" mapping a drive in Vista Home to SAMBA Network Share Help Brewmaster619 Linux - Newbie 2 01-29-2011 11:56 AM
"cannot access files or folders of an NTFS Win XP share if their names contain space" ramanujank Linux - Newbie 2 09-03-2009 03:09 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
"ifcfg-ethx" and "network-functions" files peok Linux - Networking 12 08-13-2003 07:06 PM


All times are GMT -5. The time now is 04:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration