You are not logged in.

#1 2009-04-07 06:15:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Simple media server [Solved]

I want to share music, video, photos over a home network

Which is the simplest way to do this over local network?


Mr Green

Offline

#2 2009-04-07 06:20:29

3nd3r
Member
From: /dev/null
Registered: 2002-12-08
Posts: 301
Website

Re: Simple media server [Solved]

personally, I use samba. My roomate has 3 other machines networked and it is the simplest way to share files with them.
[edit]his 3 machines are windows, then I have my arch i686, a arch x86_64, and arch on my iMac G5  [/edit]

Last edited by 3nd3r (2009-04-07 06:23:08)

Offline

#3 2009-04-07 06:30:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Simple media server [Solved]

NFS for me - no windows here.

Offline

#4 2009-04-07 06:32:44

3nd3r
Member
From: /dev/null
Registered: 2002-12-08
Posts: 301
Website

Re: Simple media server [Solved]

tomk wrote:

NFS for me - no windows here.

yea, but he just "LOVES" his AOL /puke...

If I could get him off of that BS id go NFS

Offline

#5 2009-04-07 06:50:45

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

Got Samba running here, but will take a look at MS free NFS..........

/me off to wiki

Thanks

MrG


Mr Green

Offline

#6 2009-04-07 07:24:34

mikesd
Member
From: Australia
Registered: 2008-02-01
Posts: 788
Website

Re: Simple media server [Solved]

I use NFS. It supposedly works well with Mac's as well though I haven't got around to trying it with my Macbook.

Offline

#7 2009-04-07 07:40:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

Just wondering how simple it is to set up.... only running linux boxes here so no fancy set up required... local network only


Mr Green

Offline

#8 2009-04-07 07:42:24

3nd3r
Member
From: /dev/null
Registered: 2002-12-08
Posts: 301
Website

Re: Simple media server [Solved]

Mr. Green: I sent you an email via the site.

Offline

#9 2009-04-07 08:55:02

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

Ok NFS is running streaming music now via local network.........it does keep stopping to load is that normal? or do I need to load track to local machine?

Is there a way to name my client and server so I do not have to use ip address?

Thanks

MrG


Mr Green

Offline

#10 2009-04-07 11:08:45

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Simple media server [Solved]

Mr Green wrote:

Is there a way to name my client and server so I do not have to use ip address?
MrG

'/etc/hosts' ?


English is not my native language .

Offline

#11 2009-04-07 11:47:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

well yeah hosts .... running dhcp you do not get a fixed address as I understand it, can I do a range of addresses ?

An example might help


Mr Green

Offline

#12 2009-04-07 23:02:28

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: Simple media server [Solved]

If you're running DHCP, you'll need to configure static entries for each host. Depending on what your DHCP server is, it may or may not support that.

Then you can add entries to /etc/hosts

Regarding the buffering, it shouldn't do that unless you have a really slow network, or the server is under load. You might benefit from playing with the send and receive buffer options in the mount options.

Offline

#13 2009-04-08 05:44:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

thanks :-)


Mr Green

Offline

#14 2009-04-08 18:37:41

flammenwurfer
Member
Registered: 2009-02-04
Posts: 118

Re: Simple media server [Solved]

I tried NFS and found the performance and reliability to be horrible.  It kept disconnecting and traffic moved really slow.  Now I use sshfs and it works great.  I crash dolphin every so often when I hover my mouse over a very large file and it tries to get all the information from it, but other than that it works great.  Very reliable, now disconnects, and speeds are pretty decent.

I did have to setup the ssh between my server and my desktop with no password for it to not be a pain in the ass, asking me for password all the time. 

Also, if you're not setting it up as a share that you access all the time, KDE4 has a very nice easy to use way to connect to an ssh file system built into it.  Works great if you just connect and grab files every once in a while and don't want to hassle with setting up nfs or sshfs.

Offline

#15 2009-04-08 19:04:16

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

I will use ssh to remote control server.... access is the problem I did notice when playing music it kept pausing

nfs is running at the moment gave samba the boot as there are no MS machines here... will give sshfs a go

http://www.mccambridge.org/blog/2007/05 … nd-autofs/

just came across autofs

MrG


Mr Green

Offline

#16 2009-04-08 20:25:43

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Simple media server [Solved]

Bear in mind that sshfs' encryption will have an impact on performance - may not be significant, but it will be there. NFS is the best choice IME, once it's configured correctly.

Offline

#17 2009-04-09 05:15:20

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

Are there any good guides to setting up nfs correctly?

Had no problems with sshfs mounted remote folders with ease

But streaming media may need a different approach


Mr Green

Offline

#18 2009-04-09 07:12:14

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: Simple media server [Solved]

I've never had issues streaming music, or even hd video over nfs or sshfs. Are you running wireless?

Last edited by Zeist (2009-04-09 07:12:37)


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#19 2009-04-09 13:21:18

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

yeah I am running wifi for home network


Mr Green

Offline

#20 2009-04-10 11:04:09

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

NFS is giving me grief.... not quite grasped it

mount: only root can do that
mrgreen@mrgreen-laptop:~$ sudo mount 192.168.0.100:/files /files
[sudo] password for mrgreen: 
mount.nfs: access denied by server while mounting 192.168.0.100:/files
mrgreen@mrgreen-laptop:~$ sudo mount mrgreen@192.168.0.100:/files /files
mount.nfs: DNS resolution failed for mrgreen@192.168.0.100: No address associated with hostname
mrgreen@mrgreen-laptop:~$ sudo mount viken@192.168.0.100:/files /files
mount.nfs: DNS resolution failed for viken@192.168.0.100: No address associated with hostname
mrgreen@mrgreen-laptop:~$

The server name is viken on 192.168.0.100
username on server is mrgreen

hosts

127.0.0.1    localhost.localdomain    localhost
192.168.0.100    viken.example.com    viken

I can ssh in .... not a problem have server [/files] loaded in nautilus via sftp

Can anyone help me or point me in the right direction

/me confused

MrG


Mr Green

Offline

#21 2009-04-10 11:29:25

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Simple media server [Solved]

NFS doesn't use user/password. It is setup on the server side using the /etc/exports file.

"sudo mount 192.168.0.100:/files /files" is correct, but your setup on the server side probably was wrong.

The wiki is pretty informative.

http://wiki.archlinux.org/index.php/Nfs

Last edited by stryder (2009-04-10 11:36:22)

Offline

#22 2009-04-10 11:29:32

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Simple media server [Solved]

Did you try removing 'viken.example.com' ?
I'm not an expert but It looks like It's trying to connect remotely .

Hint :
Use '/etc/exports' and '/etc/fstab' to mount NFS shares easily .


English is not my native language .

Offline

#23 2009-04-10 12:14:13

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

I wish connect locally only... got example.com from a howto online /etc/exports emmmm

Yeah most of the howtos I have read are connect via web, I am not interested in doing that purely media

Thanks for your help....

@Nezmer what do I need to have in hosts to give my server a machine name?


Mr Green

Offline

#24 2009-04-10 14:47:05

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Simple media server [Solved]

Mr Green wrote:

@Nezmer what do I need to have in hosts to give my server a machine name?

On the server side :

'/etc/hosts' :

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain   localhost <dydnsName>.homelinux.org serverName
# End of file

'/etc/exports' :

# /etc/exports
#
# See exports(5) for a description.

# use exportfs -arv to reread
/var/cache/pacman/pkg    192.168.1.0/255.255.255.0(sync,rw,no_root_squash)
/var/lib/pacman/sync    192.168.1.0/255.255.255.0(sync,rw,no_root_squash)
/home/<serverUsername>/pkgs    192.168.1.0/255.255.255.0(sync,rw,no_root_squash)

* Make sure you allow clients in '/etc/hosts.allow' for nfsd,mountd & portmap .

On the client side :
'/etc/hosts'

#
# /etc/hosts: static lookup table for host names
#

#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1               localhost.localdomain   localhost clientName
192.168.1.105           serverName.local      serverName
# 192.168.1.105 is the LAN ip of the server
# End of file

'/etc/fstab' :

# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0
UUID=10498b2e-ade0-46c0-a6ec-88843a6db821 swap swap defaults 0 0
UUID=bba816f4-0614-42c0-9876-8130b3d37fe7 / ext3 defaults 0 1
serverName:/var/cache/pacman/pkg /var/cache/pacman/pkg/ nfs defaults 0 0
serverName:/var/lib/pacman/sync /var/lib/pacman/sync nfs defaults 0 0
serverName:/home/<serverUsername>/pkgs /home/<clientUsername/pkgs nfs defaults 0 0

Last edited by Nezmer (2009-04-10 14:57:59)


English is not my native language .

Offline

#25 2009-04-10 15:02:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: Simple media server [Solved]

Thank you ;-)


Mr Green

Offline

Board footer

Powered by FluxBB