<?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>musicalgeometry &#187; command line</title>
	<atom:link href="http://www.musicalgeometry.com/archives/category/command-line/feed" rel="self" type="application/rss+xml" />
	<link>http://www.musicalgeometry.com</link>
	<description>sound, code, &#38; DIY tech</description>
	<lastBuildDate>Sat, 24 Jul 2010 16:32:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Change Your Company Name In XCode</title>
		<link>http://www.musicalgeometry.com/archives/766</link>
		<comments>http://www.musicalgeometry.com/archives/766#comments</comments>
		<pubDate>Sun, 25 Oct 2009 06:46:39 +0000</pubDate>
		<dc:creator>Jason Job</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[XCode]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://www.musicalgeometry.com/?p=766</guid>
		<description><![CDATA[If you want your own company name to be automatically included in your XCode source files instead of this: // // helloworld.m // helloworld // // Created by John Smith on 24/10/09. // Copyright __MyCompanyName__ 2009. All rights reserved. // &#8230; <a href="http://www.musicalgeometry.com/archives/766">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you want your own company name to be automatically included in your XCode source files instead of this:</p>
<pre><code>//
//  helloworld.m
//  helloworld
//
//  Created by John Smith on 24/10/09.
//  Copyright __MyCompanyName__ 2009. All rights reserved.
//</code></pre>
<p>then it is time to open up your Terminal app.</p>
<div id="attachment_778" class="wp-caption alignnone" style="width: 310px"><a href="http://www.musicalgeometry.com/wp-content/uploads/2009/10/Terminal-2.png"><img class="size-medium wp-image-778" style="border: 1px solid black;" title="Terminal 2" src="http://www.musicalgeometry.com/wp-content/uploads/2009/10/Terminal-2-300x212.png" alt="Terminal 2" width="300" height="212" /></a><p class="wp-caption-text">OSX Terminal app</p></div>
<p>You will find it at ~/Applications/Utilities/Terminal.app.</p>
<p>Enter the following in the open terminal (replacing the company name with yours):</p>
<pre><code>defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{"ORGANIZATIONNAME" = "Smith Incorporated";}'</code></pre>
<p>Now when you create new source files in XCode you will see this:</p>
<pre><code>//
//  helloworld.m
//  helloworld
//
//  Created by John Smith on 24/10/09.
//  Copyright Smith Incorporated 2009. All rights reserved.
//</code></pre>
<p>Much better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.musicalgeometry.com/archives/766/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Find What Linux Distro You Are In?</title>
		<link>http://www.musicalgeometry.com/archives/697</link>
		<comments>http://www.musicalgeometry.com/archives/697#comments</comments>
		<pubDate>Sat, 12 Sep 2009 17:27:35 +0000</pubDate>
		<dc:creator>Jason Job</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[command line]]></category>

		<guid isPermaLink="false">http://www.musicalgeometry.com/?p=697</guid>
		<description><![CDATA[I was recently doing something over ssh on my hosts shared server and realized that I didn&#8217;t know what Linux distro I was working in. I did some Googling and found a number of suggestions on how to find this &#8230; <a href="http://www.musicalgeometry.com/archives/697">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was recently doing something over ssh on my hosts shared server and realized that I didn&#8217;t know what Linux distro I was working in.</p>
<div id="attachment_699" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-699   " title="Which Distro" src="http://www.musicalgeometry.com/wp-content/uploads/2009/09/Picture-1-300x212.png" alt="Which Distro" width="300" height="212" /><p class="wp-caption-text">My server was running Red Hat</p></div>
<p>I did some Googling and found a number of suggestions on how to find this information out. Only the last of these three actually worked for me but I thought I would include them because it seems that they work for others on different systems.</p>
<pre><code>lsb_release -a</code></pre>
<pre><code>cat /etc/lsb_release</code></pre>
<pre><code>cat /proc/version</code></pre>
<p>Hopefully one of these will work for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.musicalgeometry.com/archives/697/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Remote Access On Your iPhone</title>
		<link>http://www.musicalgeometry.com/archives/393</link>
		<comments>http://www.musicalgeometry.com/archives/393#comments</comments>
		<pubDate>Fri, 03 Apr 2009 16:23:20 +0000</pubDate>
		<dc:creator>Jason Job</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.musicalgeometry.com/?p=393</guid>
		<description><![CDATA[We are truly living in the future. Today while riding the bus to work I used my iPhone to log onto my web server using an SSH terminal app called TouchTerminal. As the bus made its way through the rain I &#8230; <a href="http://www.musicalgeometry.com/archives/393">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We are truly living in the future. Today while riding the bus to work I used my iPhone to log onto my web server using an <a href="http://en.wikipedia.org/wiki/Secure_Shell">SSH</a> terminal app called <a href="http://www.jbrink.net/touchterm/index.html">TouchTerminal</a>. As the bus made its way through the rain I was working at a command line logged on to a <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)">LAMP</a> server implementing some <a href="http://daniel0.net/phpfreaks_tutorials/php_security/php_security.pdf">PHP security</a> measures that I had read about the night before. I was able to create and edit files with <a href="http://en.wikipedia.org/wiki/Vi">vi</a>, move and copy files and folders, write and execute scripts and do anything that I could do logged onto my server from my computer at home. Did I mention this app is free?</p>
<div id="attachment_410" class="wp-caption alignnone" style="width: 170px"><a href="http://www.musicalgeometry.com/wp-content/uploads/2009/04/screenshot-20090406-231024.png"><img class="size-medium wp-image-410   " style="margin-top: 8px; margin-bottom: 8px; border: 1px solid black;" title="TouchTerminal" src="http://www.musicalgeometry.com/wp-content/uploads/2009/04/screenshot-20090406-231024-200x300.png" alt="SSH terminal on your iPhone" width="160" height="240" /></a><p class="wp-caption-text">An SSH terminal on your iPhone</p></div>
<p>I&#8217;m not going to do a proper review of TouchTerminal except to say that it is a phenomenally cool free app for all network nerds. To be able to log onto a command line on my server from anywhere with cellular service is amazing. The makers of TouchTerminal also make a Pro version which implements all kinds of goodies to make doing network admin from your iPhone even easier if you are so inclined.</p>
<p>While I can&#8217;t really see myself using TouchTerminal all that much, the geek factor is just too much to resist, and for free you can&#8217;t go wrong. The only problem I can see is that now I have no excuse for not doing that WordPress upgrade I have been putting off. I&#8217;ll just have to do it on the bus.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.musicalgeometry.com/archives/393/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serial Communication Tool For OSX</title>
		<link>http://www.musicalgeometry.com/archives/55</link>
		<comments>http://www.musicalgeometry.com/archives/55#comments</comments>
		<pubDate>Wed, 01 Oct 2008 13:51:14 +0000</pubDate>
		<dc:creator>Jason Job</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[prototyping]]></category>

		<guid isPermaLink="false">http://www.musicalgeometry.com/?p=55</guid>
		<description><![CDATA[Coming from a Windows background I previously used HyperTerminal as a serial communication tool. When I moved to a Mac I tried an app called zterm that is a sort of HyperTerminal equivalent, but found it to be a bit &#8230; <a href="http://www.musicalgeometry.com/archives/55">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Coming from a Windows background I previously used HyperTerminal as a serial communication tool. When I moved to a Mac I tried an app called zterm that is a sort of HyperTerminal equivalent, but found it to be a bit cumbersome. The best, and my favourite way that I have found to accomplish communication over the serial port in OSX, is with a Terminal app called screen.</p>
<div id="attachment_193" class="wp-caption alignnone" style="width: 310px"><a href="http://www.musicalgeometry.com/wp-content/uploads/2008/10/terminal.jpg"><img class="size-medium wp-image-193     " style="margin-top: 8px; margin-bottom: 8px;" title="terminal" src="http://www.musicalgeometry.com/wp-content/uploads/2008/10/terminal-300x218.jpg" alt="Don't Fear The Command Line!" width="300" height="218" /></a><p class="wp-caption-text">Don&#39;t fear the command line!</p></div>
<p>To use it you first need to open Terminal via Applications-&gt;Utilities-&gt;Terminal. Then you need to get a list of the serial ports available. These devices are listed in the <code>/dev</code> folder and all start with the prefix <code>tty.</code> To see a list of all the serial ports on your computer, type:</p>
<pre><code>ls /dev/tty.*</code></pre>
<p>The <code>ls</code> is the Unix <em>list</em> command and the <code>*</code> after <code>tty.</code> is a wild card so that you are returned a list of everything in the <code>/dev</code> folder that starts with <code>tty.</code>, namely all your serial ports. To connect to one of those serial ports you need to use <em>screen.</em> The format for calling screen is:</p>
<pre><code>screen portname datarate</code></pre>
<p>For example, to connect to a serial port called /dev/tty.usbserial-A3000Xg3 at 9600 bits per second, type:</p>
<pre><code>screen /dev/tty.usbserial-A3000Xg3 9600</code></pre>
<p>Now anything you type will be sent out the serial port (though there is no local echo of your typing) and anything the serial port receives will be displayed on the screen. The command to close the serial port is <code>Control-A</code> followed by <code>Control-\.</code></p>
<p>For more info on <em>screen</em> check the man pages by typing:</p>
<pre><code>man screen</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.musicalgeometry.com/archives/55/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
