LinuxQuestions.org
Review your favorite Linux distribution.
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 07-04-2005, 04:00 PM   #1
leopardb
LQ Newbie
 
Registered: Mar 2004
Distribution: debian
Posts: 9

Rep: Reputation: 0
where to store mp3 in file hierarchy


I want to share mp3 and others files accross a windows/linux network via samba.

Where in linux file hierarchy should such files be placed ?

They don't belong to /home/some_user since they don't belong to a particular user.

I would think of something like /usr/share, but it's not how it should be done i guess.

I've seen things about /opt but i'm a bit confused now, as where those files should be placed ideally.

Thanks for answers.
 
Old 07-04-2005, 04:01 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,379

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
/var/something/ is noramlly the best place imho, but you're free to put it wherever you want really. Personally i use /raid/mp3 as it just on my kickass 320gb raid5 array
 
Old 07-04-2005, 06:58 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
I share my mps3's among users on the machine; not shared in the networking, exported folder sense. I put them in /usr/local/share/music

I do share them over the network, but not direct access. Specifically, I use gnump3d for it. It's a streaming mp3 server that dishes out the songs over a web interface. Depending on how you configure it, you can allow users to download songs or only allow read-only streaming. It even allows playlist creation. I've always thought it's quite a nice piece of software, especially considering it's all done in Perl.
 
Old 07-05-2005, 08:20 AM   #4
leopardb
LQ Newbie
 
Registered: Mar 2004
Distribution: debian
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for your fast answers !

acid_kewpie
Here's what i've found on the web about /var :

Quote:
Contains variable data like system logging files, mail and printer spool directories. It is specific for each system, i.e., not shared over the network with other computers. Why not put it into /usr? Because there might be circumstances when you may want to mount /usr as read-only, e.g. if it is on a CD or on another computer. '/var' contains variable data, i.e. files and directories the system must be able to write to during operation, whereas /usr should only contain static data.
So, it seems this file structure is supposed to contains only files used by programs, not files that the program reads and does not modify (mp3, pictures, mpgs, documents etc...).


Dark_Helmet
Here's what i've found on the web about /usr/local :

Quote:
The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated. It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr. Locally installed software must be placed within /usr/local rather than /usr unless it is being installed to replace or upgrade software in /usr.
So it's not for stocking files like mp3, openoffice documents or gimp pictures, but more for programs.

What i'm using currently, and i'm pretty sure it's not the right location, is a "shared" folder within /home. But of course if i want to create a "shared" user, there will be a conflict. So that's an awful solution.

Still, i'm not convinced by /var and /usr/local Thanx anyway !
 
Old 07-05-2005, 08:51 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
On a technical standpoint, you can literally put it anywhere you want.

My suggestion would be.. create your own partition like /data in / to share these files.. or simply create a /share directory.. you don't always have to go by the old standards.
 
Old 07-05-2005, 09:16 AM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I use a partition called /pub that I use for files that I share. I have a directory for /pub/ogg and /pub/mp3, etc. for each audio/whatever format of file I want to share.

BTW, my /pub/ogg directory has just passed 17 GB.

I love my Linux Irish Music Jukebox!
 
Old 07-05-2005, 09:40 AM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
So it's not for stocking files like mp3 ... but more for programs.
Them's fightin' words!

Actually, to reference your own quote:
Quote:
It may be used for programs and data that are shareable amongst a group of hosts, but not found in /usr.
As a practical example, you can find themes for certain applications in /usr/local/share. By themes I mean just graphical eye-candy; not actual programs. Snoop around your distro's files and see what they put in there. I'm willing to bet you'll see similar things.

Acid_kewpie and trickykid are completely correct though: It's your system, you can put it wherever you like. If you try to follow the Filesystem Hierarchy Standard to the letter for everything, you'll quickly find it's a crutch rather than a help.
 
  


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
How do i store the output of an rpm or source to file? dr_zayus69 Linux - Software 8 03-07-2005 09:03 AM
How to store password file so it could not be deleted? softnayr Programming 4 09-25-2004 01:04 PM
opt software, file hierarchy & prep. packages pross AIX 1 04-14-2004 01:33 PM
Mp3 store for linux? thcmwz Linux - Software 1 11-06-2003 04:23 PM
use fat32 or ext2 as file store? bedwardj Linux - Hardware 2 08-27-2003 06:39 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration