Ok, anyone wanting to set up Freenas as an XBMC server. This works absolutely perfectly using Joshua Parker Ruehlig's post, here is the changes I have made. Every computer in the house runs XBMC identically this way with all media and most of the settings stored on the Nas.
After setting up the jail pbi correctly, and there is complete instructions including videos to do this, follow the instructions below. If any one see's something wrong with these pleas YELL. I left the 'mysql_secure_installation' line, as Joshua suggests, but I don't see that the matters for a home setup. If you do run it, you need to reboot Freenas and go back into the jail using 'jexec 1 csh' to get it to work. The '1' is the ID to the jail if you have more then one run jls.
If anyone has suggestions to make this work better, yell out!!! Really happy with how it works now!
__________________________________________________ _____________________________
#in freenas shell
jexec 1 csh
#in jail
pkg_add -r mysql55-server
pkg_add -r mysql55-client
mysql_secure_installation # ----<not necessary, but not a bad idea.
vi /etc/rc.conf
#add in
mysql_enable="YES"
#
service mysql-server start
mysql -u root -p
#in mysql
CREATE USER 'xbmc' IDENTIFIED BY 'xbmc';
GRANT ALL ON *.* TO 'xbmc';
quit;
__________________________________________________ _____________________________
This is the advancedsettings.xml file that is stored in %appdata%\Roaming\XBMC\userdata\ on Windows 7. You will have to create this file, copy and paste, then change the IP address's. 192.168.1.203 is my Jail IP and is only used in the first 2 setting, 192.168.1.201 is my Freenas IP, change them to your settings. You will also need to point the directory structure '/Media/xmbc/*' to a valid share/directory on Freenas system.
________________________________________________________________________________
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.203</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.1.203</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
<pathsubstitution>
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>smb://192.168.1.201/Media/xmbc/Thumbnails/</to>
</substitute>
<substitute>
<from>special://masterprofile/playlists/</from>
<to>smb://192.168.1.201/Media/xmbc/Settings/playlists/</to>
</substitute>
<substitute>
<from>special://masterprofile/addon_data/</from>
<to>smb://192.168.1.201/Media/xmbc/Settings/addon_data/</to>
</substitute>
<substitute>
<from>special://masterprofile/sources.xml</from>
<to>smb://192.168.1.201/Media/xmbc/sources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/mediasources.xml</from>
<to>smb://192.168.1.201/Media/xmbc/Settings/mediasources.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/RssFeeds.xml</from>
<to>smb://192.168.1.201/Media/xmbc/Settings/RssFeeds.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/favourites.xml</from>
<to>smb://192.168.1.201/Media/xmbc/Settings/favourites.xml</to>
</substitute>
<substitute>
<from>special://masterprofile/profiles.xml</from>
<to>smb://192.168.1.201/Media/xmbc/Settings/profiles.xml</to>
</substitute>
</pathsubstitution>
</advancedsettings>
____________________________________________________________________________________________
Thanks,
Bill