Difference between revisions of "Alx9r's Network Attached Storage Setup"
(→Symlink and Permissions) |
|||
Line 33: | Line 33: | ||
These permissions pass through on the samba shares, which means that I can put stuff on the media drive folders from a Windows computer by browsing to <tt>\\mce\public</tt> and logging in as my user. | These permissions pass through on the samba shares, which means that I can put stuff on the media drive folders from a Windows computer by browsing to <tt>\\mce\public</tt> and logging in as my user. | ||
+ | |||
+ | {{Alx9rSampleSetupNavbox}} |
Revision as of 05:24, 31 May 2008
Alx9r's Sample Setup |
I opted to use a built-in (sata connected) secondary media storage drive. This scheme has two qualities:
- The media drive can be formatted XFS so that LinuxMCE can "listen" for new media files that are copied to the drive. Other filesystems don't allow for this.
- Fresh installations of LinuxMCE can be put on the primary drive without losing media. If you have only a single drive, this is not possible without going through a less-supported multi-partition installation.
Folder Structure and Media (Pre-Installation)
Before installing LinuxMCE, I formatted my secondary media drive to the XFS filesystem using the gparted LiveCD. Then I created the standard LinuxMCE media drive folder structure on that drive. The structure looks like this:
public
|-data |-videos |-music |-pictures
Also before installation, I moved all of my media to the appropriate folder on the media drive.
Symlink and Permissions
Once LinuxMCE is installed, there are steps that I performed to prepare the media drive: Create a symlink to the drive and set appropriate permissions to it.
I wanted the drive to be accessible as /media/bi (bi short for built-in). I created a symlink accordingly using this command:
ln -s /mnt/device/XX /media/bi
Where XX is some sort of ID number for the media drive that seems to change each time I install LinuxMCE.
I wanted the default user, linuxmce to be able to do things at will on that drive, so I made that user the owner:
sudo chown -R linuxmce /media/bi
Everyone should be able to delete, rename, and copy stuff to the public folder, so I changed the permissions accordingly:
chmod a+w -R /media/bi/public
These permissions pass through on the samba shares, which means that I can put stuff on the media drive folders from a Windows computer by browsing to \\mce\public and logging in as my user.
Alx9r's Sample Setup | |
---|---|
Materials | Network Gear · Hybrid Core (living room) · AV Gear (living room) · Orbiters · Glue |
Preparation | Router Setup · Aquos TV Power-on |
Hybrid Core pre-LinuxMCE Setup | Assembly · BIOS Tweaks · Hardware Testing · NAS Media Drive Setup |
Hybrid Core LinuxMCE Installation | Bare-metal Install · AV Wizard · Sarah (Setup Wizard) · Special Steps · PVR-150 Remote · Aquos TV · Denon Receiver · Media Drive Setup · Laptop Orbiter · Webpad Orbiter |
Hybrid Core Additional Software | Bittorrent · Synergy |
Toolkit | Laptop · telnet/ssh client · Remote Mouse and Keyboard · Partition Tools |
Design Rationale | Network Topology · NAS |