<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>/dev/root &#187; Apple</title>
	<atom:link href="http://devroot.org/tag/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://devroot.org</link>
	<description>Rants of a grumpy sysadmin living in London.</description>
	<lastBuildDate>Mon, 26 Jul 2010 11:25:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Configuring samba server in Mac OS X Leopard</title>
		<link>http://devroot.org/2007/10/26/configuring-samba-server-in-mac-os-x-leopard/</link>
		<comments>http://devroot.org/2007/10/26/configuring-samba-server-in-mac-os-x-leopard/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 13:56:06 +0000</pubDate>
		<dc:creator>lynxman</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://devroot.org/2007/10/26/configuring-samba-server-in-mac-os-x-leopard/</guid>
		<description><![CDATA[If you don&#8217;t have Mac OS X Leopard server you have a Samba implementation limited mostly to home directories and a lot of borking around, if you&#8217;re a typical Unix Admin as I am you&#8217;ll want to take things in your hands and add the shares you want yourself in the command line. Leopard uses [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t have Mac OS X Leopard server you have a Samba implementation limited mostly to home directories and a lot of borking around, if you&#8217;re a typical Unix Admin as I am you&#8217;ll want to take things in your hands and add the shares you want yourself in the command line.</p>
<p>Leopard uses Samba 3 and its own authentication and locking methods connected to  its auth layer and afp locking so a typical samba config file won&#8217;t work, it also has a dynamically modificable part which is configured via System Preferences.</p>
<p>This is not the smartest method neither prepared for faint hearted people, but it&#8217;ll work if you&#8217;re used to Linux.</p>
<p>If you had samba already working on Tiger the changes are only at locking, vfs and user auth, which is what enables all the new Leopard system to work properly.</p>
<p>This are the exact changes from Tiger to Leopard</p>
<p><code><br />
# Changes affecting user mapping and authentication<br />
passdb backend = odsam<br />
idmap domains = default<br />
idmap config default: default = yes<br />
idmap config default: backend = odsam<br />
idmap alloc backend = odsam<br />
idmap negative cache time = 5<br />
obey pam restrictions = yes<br />
security = USER<br />
auth methods = guest odsam<br />
ntlm auth = yes<br />
lanman auth = no<br />
use kerberos keytab = yes<br />
com.apple: lkdc realm = LKDC:SHA1.xxx<br />
realm = LKDC:SHA1.xxx<br />
</code><br />
<code><br />
# Changes affecting the FS interaction and locks<br />
vfs objects = darwinacl,darwin_streams<br />
use sendfile = yes<br />
ea support = yes<br />
darwin_streams:brlm = yes<br />
enable core files = yes<br />
max smbd processes = 10<br />
log level = 1<br />
map to guest = Bad User<br />
</code></p>
<p>You want to take a look at the realm SHA1 strings since they&#8217;re dependant on your installation, you can always check the new /etc/smb.conf in Mac OS X Leopard and then merge it up with your previous config, or replace the config as I did and just add this.</p>
<p>The Leopard samba configuration is brilliant, but at the same time limited to push you to buy the Server version, at the same time it&#8217;s interesting to play with the includes it adds too, but this at least will get your previous samba config out and running fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://devroot.org/2007/10/26/configuring-samba-server-in-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Optimize network throughput on your Apple TV</title>
		<link>http://devroot.org/2007/05/01/optimize-network-throughput-on-your-appletv/</link>
		<comments>http://devroot.org/2007/05/01/optimize-network-throughput-on-your-appletv/#comments</comments>
		<pubDate>Tue, 01 May 2007 21:35:43 +0000</pubDate>
		<dc:creator>lynxman</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Wireless]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple TV]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://devroot.org/2007/05/01/optimize-network-throughput-with-appletv/</guid>
		<description><![CDATA[This is specially helpful if you are using your Apple TV wireless adapter instead of plugging it directly to the network with an Ethernet cable. This small tweak assumes that you already have sshd access to your Apple TV, if not please check out AwkwardTV on how to do that. I had some problems watching [...]]]></description>
			<content:encoded><![CDATA[<p>This is specially helpful if you are using your Apple TV wireless adapter instead of plugging it directly to the network with an Ethernet cable.</p>
<p>This small tweak assumes that you already have sshd access to your Apple TV, if not please check out <a title="AwkwardTV" href="http://www.awkwardtv.org/" target="_blank">AwkwardTV</a> on how to do that.</p>
<p>I had some problems watching HD DivX files in my AppleTV, they were skipping frames and freezing in the most awkward moments, I have all of my files in a mac mini and shared on the network using AFP. The files are mounted in the Apple TV using the <a title="ATVFiles" href="http://plugins.awkwardtv.org/det.php?p=atvfiles" target="_blank">ATVFiles</a> plugin and the <a title="aTV-ShareMounter" href="http://plugins.awkwardtv.org/det.php?recordID=vfxshare" target="_blank">aTV-ShareMounter</a> plugin.</p>
<p>What needs to be added to give the network buffer enough buffer space on the network is tweak the kernel options at startup, that can be done as in Mac OS X editing the file <em>/etc/sysctl.conf</em> which in the Apple TV version of Mac OS X does not exist by default, you&#8217;ll have to create it, don&#8217;t worry I&#8217;ll put here two quick ways to do it.</p>
<p><em><strong>How to edit /etc/sysctl.conf (if it does not exist)</strong></em></p>
<p><strong>First Option &#8211; The fast kamikaze strategy</strong> (will work for everybody, but be really careful!).</p>
<p><em>echo &#8220;kern.ipc.somaxconn=512&#8243; &gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.mssdflt=1460&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.sendspace=98304&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.recvspace=98304&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;kern.ipc.maxsockbuf=1048576&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.udp.maxdgram=57344&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.udp.recvspace=42080&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.local.stream.sendspace=98304&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.local.stream.recvspace=98304&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.delayed_ack=0&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.rfc1323=1&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.rfc1644=1&#8243; &gt;&gt; /etc/sysctl.conf<br />
echo &#8220;net.inet.tcp.newreno=1&#8243; &gt;&gt; /etc/sysctl.conf</em></p>
<p><strong>Second Option &#8211; The slow wise monk strategy</strong> (this will work in all cases)</p>
<p>Edit a sysctl.conf in your computer (just be sure that if you&#8217;re in a Posix system you&#8217;re not editing your local <em>/etc/sysctl.conf</em>).</p>
<p>Add these values to the file</p>
<p><em>kern.ipc.somaxconn=512<br />
net.inet.tcp.mssdflt=1460<br />
net.inet.tcp.sendspace=98304<br />
net.inet.tcp.recvspace=98304<br />
kern.ipc.maxsockbuf=1048576<br />
net.inet.udp.maxdgram=57344<br />
net.inet.udp.recvspace=42080<br />
net.local.stream.sendspace=98304<br />
net.local.stream.recvspace=98304<br />
net.inet.tcp.delayed_ack=0<br />
net.inet.tcp.rfc1323=1<br />
net.inet.tcp.rfc1644=1<br />
net.inet.tcp.newreno=1</em></p>
<p>Copy it to your Apple TV through scp and make sure it ends up in its correct position at <em>/etc/sysctl.conf</em> on your Apple TV</p>
<p>The changes you do will be available on the next reboot, I find it better to do it this way so  you&#8217;re 100% sure that all the changes are loaded at the same time.</p>
<p>I hope this solves <a title="Leo Laporte" href="http://leoville.com/" target="_blank">Leo Laporte</a> streaming problems to his Apple TV ;)</p>
]]></content:encoded>
			<wfw:commentRss>http://devroot.org/2007/05/01/optimize-network-throughput-on-your-appletv/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Pushing the limits of Expose</title>
		<link>http://devroot.org/2007/01/29/pushing-the-limits-of-expose/</link>
		<comments>http://devroot.org/2007/01/29/pushing-the-limits-of-expose/#comments</comments>
		<pubDate>Mon, 29 Jan 2007 06:37:55 +0000</pubDate>
		<dc:creator>lynxman</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Expose]]></category>
		<category><![CDATA[Leopard]]></category>

		<guid isPermaLink="false">http://devroot.org/2007/01/29/pushing-the-limits-of-expose/</guid>
		<description><![CDATA[After this interesting article in Digg I decided out of boredom to try this up myself, here&#8217;s the result. After this I noticed that the concurrent file limit by default in Mac OS X is quite low! Only around 200 processes per user, which even if it&#8217;s more than enough for most users sometimes depending [...]]]></description>
			<content:encoded><![CDATA[<p>After <a title="Digg.com" href="http://www.digg.com/apple/Pushing_the_limits_of_Expose" target="_blank">this</a> interesting article in <a title="Digg" href="http://www.digg.com">Digg</a> I decided out of boredom to try this up myself, here&#8217;s the result.</p>
<p><a title="Photo Sharing" href="http://www.flickr.com/photos/42475794@N00/372994899/"><img src="http://farm1.static.flickr.com/134/372994899_6234e3651f.jpg" border="0" alt="expose_limits" width="500" height="313" /></a></p>
<p>After this I noticed that the concurrent file limit by default in Mac OS X is quite low! Only around 200 processes per user, which even if it&#8217;s more than enough for most users sometimes depending on what you do you need more ;)</p>
<p>Mac OS X respects the sysctl.conf kernel parameter file as most unix do, so it&#8217;s just a question of adding the following parameter there:</p>
<p><code>kern.maxproc=2048<br />
kern.maxprocperuid=512<br />
kern.sysv.shmmax=167772160<br />
kern.sysv.shmmin=1<br />
kern.sysv.shmmni=32<br />
kern.sysv.shmseg=8<br />
kern.sysv.shmall=65536</code></p>
<p>I noticed after raising the processes value that the shared memory values where low as well, so it&#8217;s a good option to change them all at the same time.</p>
<p>Of course this configuration is not really recommended for machines with less than 1Gb of RAM, so be careful!</p>
<p>Also you need to raise the limit on launchd, launchd is Apple replacement for initd and it manages the initial limits for users.</p>
<p>Just edit (or create /etc/launchd.conf) and add:</p>
<p><code>limit maxproc 1024 2048<br />
limit maxfiles 2048 4096</code></p>
]]></content:encoded>
			<wfw:commentRss>http://devroot.org/2007/01/29/pushing-the-limits-of-expose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
