[Linux-disciples] MP3s on one machine, Apache on another
Adam Kessel
adam at rosi-kessel.org
Mon Apr 19 11:18:21 EDT 2004
Don't use Samba if you're not using Windows. The point of Samba is to
act as a Windows file server for a Windows network.
I would recommend keeping your MP3s wherever it makes sense for storage
space reasons, and then mounting that directory as an NFS share from the
other system. I don't think the processor/etc. load will make any
difference regardless of which machine the files are on.
Let's say Machine 1 is 192.168.1.2. And let's say that machine has a
200G drive, so you want to keep your MP3s there. And let's say further
that that machine is your web server, because it has a shoddy graphics
card or something. And let's assume that the mp3s are in /mp3s, although
there are probably better places in the filesystem to keeep your mp3s.
Machine 2 is 192.168.1.3 and is your desktop.
You need to install nfs-kernel-server on Machine 1 an nfs-common on
Machine 2. (assuming you are using a stock kernel with nfs support).
Then, on Machine 1, create /etc/exports
/mp3s 192.168.1.3(ro,root_squash)
And on Machine 2, add to /etc/fstab
192.168.1.2:/mp3s /mnt/mp3s nfs users,noexec,ro,auto
And you're all set. This will allow only Machine 2 to mount the NFS
share and no other systems.
If you want to be able to write to the directory from the "client"
machine, change "ro" to "rw." There are also many other options you can
change on the "exporting" end and the "mounting" end--see the mount and
exports manpages.
On Mon, Apr 19, 2004 at 11:11:11AM -0400, Stephen R Laniel wrote:
> I'm trying to move all my desktop-Linux stuff onto one
> computer (call it Computer B), and leave the other machine
> (Computer A) as a pure server. So I'd like to move all my
> MP3s off Computer A onto Computer B, since most of the time
> I'm just playing those MP3s on the desktop. But every now
> and then people will download those MP3s from my website.
>
> So: how would you guys recommend I do this? Should I move
> all the MP3s to Computer B, then mount Computer B's MP3
> directory as a Samba share on Computer A? What's the best
> approach here? I'd prefer not to install Apache on both
> machines and do some strange port-forwarding.
>
> Thanks,
> Steve
--
Adam Kessel
http://adam.rosi-kessel.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20040419/9d045ada/attachment-0001.pgp
More information about the Linux-disciples
mailing list