<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml"
>

<channel>
	<title>MikeSpike.org &#187; command line</title>
	<atom:link href="http://www.mikespike.org/tag/command-line/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikespike.org</link>
	<description>un poco de todo</description>
	<lastBuildDate>Tue, 04 May 2010 15:28:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selecting audio ports on Mac Pro&#8217;s in lab environments.</title>
		<link>http://www.mikespike.org/2008/12/01/selecting-audio-ports-on-mac-pros-in-lab-environments</link>
		<comments>http://www.mikespike.org/2008/12/01/selecting-audio-ports-on-mac-pros-in-lab-environments#comments</comments>
		<pubDate>Mon, 01 Dec 2008 23:04:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[classroom]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[jack]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[line-out rear]]></category>
		<category><![CDATA[mac pro]]></category>

		<guid isPermaLink="false">http://www.mikespike.org/?p=99</guid>
		<description><![CDATA[Where I work, Apple computers is the standard for Communications majors. That being said, we&#8217;ve got a few labs with Mac Pro&#8217;s and 13 individual editing suites. The edit suites provide the students with a cubical shunned away from the world by a sliding glass door allowing their video creativity juices to flow. In the [...]]]></description>
			<content:encoded><![CDATA[<p>Where I work, Apple computers is the standard for Communications majors. That being said, we&#8217;ve got a few labs with Mac Pro&#8217;s and 13 individual editing suites. The edit suites provide the students with a cubical shunned away from the world by a sliding glass door allowing their video creativity juices to flow. In the labs, there is a desktop at the front of the room dedicated for the teacher with wall-mounted speakers and a projector. Although all this hardware looks great on the outside, one issue that came up was audio. Since the change to Intel chips, the three audio sources (headphone, audio speaker and line-out) which if you remember, would auto-switch based on what was plugged in, has now changed to three independent sources. What this means is if a user wants to make any changes to how audio gets routed they must make the change manually. To add to this issue, my environment consists of users logging in individually every time they use a machine whether it&#8217;s in a classroom or in an editing suite. If the audio changes were a global change, I wouldn&#8217;t be having this issue; but because it has a default value (front speaker jack) for each person that logs in, I&#8217;m stuck with another problem. Which if you are thinking, I&#8217;m leaving all my grunts and complaints about OSX&#8217;s &#8220;features&#8221; in a lab environment for another blog post.<span id="more-99"></span></p>
<p><a title="soundsourcesshot.png" rel="lightbox[g2image]" href="http://www.mikespike.org/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=4163&amp;g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT"><img class="alignleft" title="soundsourcesshot.png" src="http://www.mikespike.org/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=4164&amp;g2_GALLERYSID=TMP_SESSION_ID_DI_NOISSES_PMT" alt="soundsourcesshot.png" width="60" height="125" /></a>Software named <a href="http://www.rogueamoeba.com/freebies/" target="_self">Soundsource</a> made by Amoeba makes the change pretty simple by adding an icon on the toolbar. This is a pretty slick piece of software, but this still doesn&#8217;t fulfill the user login for teacher stations in the classrooms and the editing suites which have rear speaker input. You can suggesting plugging the speakers into the front plug, but give it a day and someone would have pulled it out.</p>
<p>In my search for solutions, I pondered if there was any way to change the audio configuration via command<a title="Picture 2.png" rel="lightbox[g2image]" href="http://www.mikespike.org/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=4165&amp;g2_GALLERYSID=3fce41308a9a2b7ddf6da7858ee071e5"><img class="alignright" title="Picture 2.png" src="http://www.mikespike.org/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=4166&amp;g2_GALLERYSID=3fce41308a9a2b7ddf6da7858ee071e5" alt="Picture 2.png" width="125" height="80" /></a> line. This would at least make it a viable option to use a launchd user agent once the user logs in. Scouring the internet, which I must say I do a pretty good job, I found a <a title="Picture 3.png" rel="lightbox[g2image]" href="http://www.mikespike.org/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=4167&amp;g2_GALLERYSID=3fce41308a9a2b7ddf6da7858ee071e5"><img class="alignleft" title="Picture 3.png" src="http://www.mikespike.org/gallery2/main.php?g2_view=core.DownloadItem&amp;g2_itemId=4169&amp;g2_GALLERYSID=3fce41308a9a2b7ddf6da7858ee071e5" alt="Picture 3.png" width="125" height="117" /></a>utility called <a href="http://code.google.com/p/switchaudio-osx/">Switchaudio</a>. This small utility is just what I&#8217;ve been looking for. It adds a way to select the input or output audio sources from the available sources (as shown on the right). After this, everything else fell into place. I ended up putting this file in the /usr/bin directory to make the utility easily accessible. Then I created a launchd user agent using <a href="http://tuppis.com/lingon/">Lingon</a> so whenever a user logs on, the output audio changes to whatever I want (in this case &#8220;Built-in Line Output&#8221;).</p>
<p>Lastly, to make the changes in the affected labs and 13 video editing suites, I made a package installer and pushed it out using Remote Desktop.</p>
<p>Pretty simple once I figured it out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespike.org/2008/12/01/selecting-audio-ports-on-mac-pros-in-lab-environments/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point featurename="Greensboro, NC">36.0726354 -79.7919754</georss:point>
	</item>
		<item>
		<title>Log into a mac using ARD&#8217;s &#8220;send unix command.&#8221;</title>
		<link>http://www.mikespike.org/2008/10/21/log-into-a-computer-using-ard-remotely-via-send-unix-command</link>
		<comments>http://www.mikespike.org/2008/10/21/log-into-a-computer-using-ard-remotely-via-send-unix-command#comments</comments>
		<pubDate>Tue, 21 Oct 2008 20:43:16 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[10.5]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple Remote Desktop]]></category>
		<category><![CDATA[ARD]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[login]]></category>

		<guid isPermaLink="false">http://www.mikespike.org/?p=88</guid>
		<description><![CDATA[I stumbled across this useful little tidbit of knowledge. Have you ever needed to log into several machines in a lab but hated going to each one and typing in your credentials. Well thanks to &#8220;David Kahn3&#8243; and others for coming up with the following script,
osascript &#60;&#60;EOF
tell application &#8220;System Events&#8221;
keystroke tab
keystroke (ASCII character 8 )
keystroke [...]]]></description>
			<content:encoded><![CDATA[<p>I stumbled across this useful little tidbit of knowledge. Have you ever needed to log into several machines in a lab but hated going to each one and typing in your credentials. Well thanks to &#8220;David Kahn3&#8243; and others for coming up with the following script,</p>
<h5><span style="color: #ff0000;">osascript &lt;&lt;EOF<br />
tell application &#8220;System Events&#8221;<br />
keystroke tab<br />
keystroke (ASCII character 8 )<br />
keystroke tab<br />
keystroke (ASCII character 8 )<br />
keystroke return<br />
delay 0.5<br />
keystroke tab<br />
keystroke &#8220;username&#8221;<br />
keystroke tab<br />
delay 0.5<br />
keystroke &#8220;password&#8221;<br />
delay 0.5<br />
keystroke return<br />
keystroke return<br />
keystroke return<br />
keystroke return<br />
end tell<br />
EOF</span></h5>
<p>I was able to push this script out using Apple Remote Desktop (run as root not admin) to my macs while they were at the login screen window. Just a few changes for the account username/password fields and bam the computers logged in without me having to even touch them.Beautiful</p>
<h5><a href="http://discussions.apple.com/thread.jspa?messageID=8110420&amp;#8110420">Original Post from Apple Support</a></h5>
]]></content:encoded>
			<wfw:commentRss>http://www.mikespike.org/2008/10/21/log-into-a-computer-using-ard-remotely-via-send-unix-command/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point featurename="Greensboro, NC">36.0726354 -79.7919754</georss:point>
	</item>
	</channel>
</rss>
