Creating a Personal Content Media Network, Part 1

Posted: December 15th, 2009 | Author: | Filed under: AppleTV, Mac OS X Server, Media | No Comments »

First I’m going to take an overview of XBMC, the application that we’ll use to replace front row or AppleTV.

XBMC is great application. It has many features that put it above and beyond front row. First XBMC is a media manager and digital jukebox. It does not do any file system organization of files so it does require you to be a clean with your media. It is capable of playing most types of audio such as ogg and mp3 as well as able to play any video that you have a codec installed on your computer. It’s fully interoperable with the standard Apple remote and has a different yet still intuitive interface, (despite what Luke tells you.)

I’m going to show you how to customize XBMC to pull movies in from differing sources. First navigate into Movies and erase the sources that you won’t be using. Then click add new source and type in the location. Also you can specify an SMB server for XBMC to connect to, we’ll cover more on this later. My movies are located on my server and thus I will specify the SMB address along with a username and password. Then when I select on the source that I’ve just entered XBMC will make an SMB connection to my server and list all the movies I have. Now I can navigate to my Movies directory and select any movie I want.

Another great thing about XBMC is the control interface. Simply take you apple remote and press the play button, and on screen control appears. You can then navigate the controls and select whatever action you want with the play button. Or press menu to escape. Also while the movie is playing you can press the menu button and minimize the film so that you can browse for another, or if you want to return to the minimize film just keep pressing the menu button.

Now this can all be applied to the music and pictures features as well. Just specify the location of your music or pictures and XBMC will list them for you. Plus, thanks to a nifty iTunes plugin you can now load your iTunes playlists inside of XBMC so there’s no need to resort all your music!

But now for the piece de resistance. To replace front row altogether you want to enable the Apple remote to work with XBMC. To do so, in Settings, hit the Apple Remote section. If you’ve got a standard-issue Apple remote, set Mode to Standard. To start up XBMC instead of Front Row, check off “Always Running” in the Apple Remote section of XBMC’s Settings area.

You can download and install XBMC for your Mac from here or if you’re using an AppleTV please read this.


Using Network Accounts on a Linux Client with Open Directory Leopard Server

Posted: December 1st, 2009 | Author: | Filed under: LDAP, Linux, Mac OS X Server, Snow Leopard | 2 Comments »

I have two linux machines at home and I want to be able to use my network home directory and network account from my Leopard Open Directory server. One is running Ubuntu 9.10 and the other OpenSuSE 11.2. Here’s what I had to do:

In this post I assume you already have an Open Directory environment and network based user accounts as well as AFP homes setup. In other words, a working Open Directory setup with bound AND working Mac clients.

Exporting User Home Directories with NFS

First we want to make sure that the home directories are being exported via NFS. Open Server Admin and connect to your OD master. At the top of Server Admin click on File Sharing and then your AFP home folder volume. Click on File Sharing up at the top and select your AFP home volume. The click on the “Share Point” button in the bottom pane and then “Protocol Options” (Note: if “Enable Automount” is not checked you either have the wrong volume selected or your configuration is incorrect)

In the Protocol Options drop down select the NFS tab and select a means by which to export the NFS share. I would recommend using subnet and if you know what you’re doing select a minimum security of “Kerberos v5 with data integrity and privacy” however you should only select this if you REALLY know what you’re doing. I will make a walk through for this at a later date. If you don’t know Kerberos like the back of your hand then I would select “Any” for now. Check Allow Subdirectory Mounting. Click OK and you’re done.

Ubuntu 9.10 Authentication

On the Ubuntu Linux client first install the necessary packages:

sudo apt-get install libpam-ldap libnss-ldap nss-updatedb libnss-db nfs-common nscd

In the following wizard just accept the default answers, they should be correct. Then edit /etc/ldap.conf and make it sure it contains the following lines. Note this is not a verbatim output of /etc/ldap.conf


host 192.168.1.1
# this should be the IP of your OD server or better yet service based CNAME record
base dc=example,dc=com # this is of course the ldap search base configured in the OD server
bind_policy soft

Now edit /etc/ldap/ldap.conf

BASE dc=example,dc=com
URI ldap://example.com

/etc/pam.d/common-account

account sufficient pam_ldap.so
account required pam_unix.so

/etc/pam.d/common-auth

auth sufficient pam_ldap.so
auth required pam_unix.so nullok_secure use_first_pass

/etc/pam.d/common-password

password sufficient pam_ldap.so
password required pam_unix.so nullok obscure min=4 max=8 md5

/etc/pam.d/common-session

session required pam_unix.so
session required pam_mkhomedir.so skel=/etc/skel/
session optional pam_ldap.so

/etc/nsswitch.conf

passwd: files ldap

group: files ldap

shadow: files ldap

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

openSuSE 11.2 Authentication

On the command line start yast

Navigate to Network Services and then LDAP client type in your LDAP server IP and search domain, unclick TLS and bam you’re done. God I love Novell 😉

Ubuntu 9.10 & openSuSE 11.2 Automount

Create the directory /Network/Servers then all that is needed is to create the following line in /etc/auto.master

/Network/Servers /etc/auto.net

Restart autofs

sudo /etc/init.d/autofs restart

After this you should be able to log in and access your home folder.