A few updates to my How to Setup and Configure a Linux Media Server post.
Mental note: don’t start posting random how-tos at 4am and then go over to digg and submit them, before you’ve even finished testing out your setup!
There was one huge flaw with the default Fedora Core 4 setup — Samba shares don’t work properly with OS X. A pretty huge problem for a ‘media server’ to have if you are rockin’ the mac anywhere in your household.
Uh oh, Browsing the Samba Share Doesn’t Work on My OS X Box!
I thought it was too good to be true!
The Samba version installed with Fedora Core 4 is not the very latest.
You’ll need to download and install the latest version of Samba if you need to access your linux media server from OS X. (unless you’re lucky and you can mount your share from OSX without a problem - maybe Apple’s fixed this bug in the latest build)
But if it isn’t working for ya, there are also configuration settings you’ll need to setup on OSX, and even possibly a simple AppleScript startup launcher which will perform the mount of the network share upon startup each time. (this should work in OS X but is broken on some systems, including mine)
If you’re having OS X samba connection woes, I’ll just have to point you to this thread at macworld.com. It contains most of the information needed to configure your new Linux Samba installation (this was the trickiest part), as well as a few minor settings you need to configure in your OS X “/etc/smb.conf” file.
Next, you may have problems getting your network share to auto-mount under OS X at startup time. Never fear, here’s a recipe for ya:
Auto-Mounting Your Network Share Under OS X on Startup
There isn’t really the concept of a “Mapped Network Drive” under OS X like there is in Windows (there’s mounted volumes, instead). However, you can do basically the same thing but it can be a bit tricky to do so w/o using some AppleScript-fu.
Open Script Editor and make a script like:
tell application "Finder"
open location "smb://username:password@ipaddress/the/path"
end tell
For example, mine was:
tell application "Finder"
open location "smb://sbraford@192.168.1.97/media"
end tell
From user Virtual1 on the thread:
Select to save as “Application”, and make sure “startup screen” and “stay running” are NOT checked.
Save the application script somewhere. Next open up your OS X User profiles / settings / configurations.
Click over to Startup Items, then drag your new auto-mounter AppleScript file onto it & make sure it’s enabled and that your settings get saved (may have to click on the Lock icon).
Next, logout and log back on to see if your new network share gets auto-mounted on startup! If so, w00t, you’re in business.
An update for those who prefer not to use FAT32 partitions on your *nix drives: You may want to format using Ext2, if FAT32 is not to your liking. The Ext2 filesystem is accessible under windows by adding some basic drivers. Thanks Pete and Blue Rowlf for the constructive feedback/comments!
And, last but not least… my version of ‘Media Server’ I guess differs greatly from other’s. Doh!
For me, the biggest thing a Media Server has to do is sit there and serve files. But for other people, it has to be a full-fledged PVR. So, here are my thoughts on adding additional functionality to your network file/media Linux server:
Regularly Scheduled Media Downloads
You have two options here. If you have cable/satellite television, you can use Myth TV as a PVR.
OR, if you only have one big fat Internet connection like yours truly, Broadcatching via RSS + BitTorrent is your answer.
Update: After playing with Azureus and its various RSS plugins for a while on Gnome/Linux, I was still unable to get it to even download torrents properly.
This could be a Linux/Firewall/Router issue, who knows. But debugging it was getting way beyond what I was trying to achieve for the common user (including myself).
Instead, the simplest approach was to mount the Linux Media Server share as a mapped network drive, and configure a Win32 BitTorrent client to do the downloading and just use the server as a file store. (not ideal, but does the job in a pinch.) uTorrent is an excellent C++ based BitTorrent client that has added RSS feed import support in its latest version.
One thing that might be cool as well in the future is setting up a web-based, ajax-powered streaming mp3 server like mp3act.
Hope these updates might appease some of the Digg playa haters out there. Though, despite the “no digg! all he did was mount a blah blah configure a blah blah shell script I can do that in my sleep” posts on digg, the article has been bookmarked 57 times on del.icio.us (at the time of this writing) at least, so hopefully lots of people found it useful!
Please let me know if you have any more tips / updates on setting up a Linux Media Server.