<?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/null &#187; mac osx</title>
	<atom:link href="http://devnull.fuoriradio.com/tag/mac-osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://devnull.fuoriradio.com</link>
	<description>appunti interessanti e non di un programmatore</description>
	<lastBuildDate>Tue, 19 Apr 2011 15:22:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Mac OS X: Come modificare il file etc/hosts</title>
		<link>http://devnull.fuoriradio.com/2010/02/04/mac-os-x-come-modificare-il-file-etchosts/</link>
		<comments>http://devnull.fuoriradio.com/2010/02/04/mac-os-x-come-modificare-il-file-etchosts/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 18:01:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[mac osx]]></category>

		<guid isPermaLink="false">http://devnull.fuoriradio.com/?p=216</guid>
		<description><![CDATA[Succede spesso di dover mettere un sito online mentre il dns ancora non si è propagato. Editando il file hosts nella maggior parte dei sistemi operativi si può aggiungere il nome host desiderato ed associarlo all&#8217;ip del server, così da vedere il sito online anche se ancora non è presente nei DNS che consultiamo per [...]]]></description>
			<content:encoded><![CDATA[<p>Succede spesso di dover mettere un sito online mentre il dns ancora non si è propagato.<br />
Editando il file hosts nella maggior parte dei sistemi operativi si può aggiungere il nome host desiderato ed associarlo all&#8217;ip del server, così da vedere il sito online anche se ancora non è presente nei DNS che consultiamo per navigare.</p>
<p>La procedura è breve ed è questa: (io uso nano ma potete usare vi o pico o qualsiasi altro editor)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p> Vi sarà chiesta la password di amministrazione, una volta digitata vedrete qualcosa del genere:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">##</span>
<span style="color: #666666; font-style: italic;"># Host Database</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># localhost is used to configure the loopback interface</span>
<span style="color: #666666; font-style: italic;"># when the system is booting.  Do not change this entry.</span>
<span style="color: #666666; font-style: italic;">##</span>
127.0.0.1       localhost
255.255.255.255 broadcasthost
::<span style="color: #000000;">1</span>             localhost</pre></div></div>

<p>andate alla fine ed aggiungetevi la linea desiderata: (Esempio)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">99.99.99.99 www.iltuodominio.tld</pre></div></div>

<p>Naturalmente mettete l&#8217;ip corretto al posto dei 99 e il dominio che volete,</p>
<p>poi digitate il comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> niload <span style="color: #660033;">-v</span> <span style="color: #660033;">-m</span> hosts . <span style="color: #000000; font-weight: bold;">&lt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hosts</pre></div></div>

<p>Tutto fatto.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevnull.fuoriradio.com%2F2010%2F02%2F04%2Fmac-os-x-come-modificare-il-file-etchosts%2F&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=65&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://devnull.fuoriradio.com/2010/02/04/mac-os-x-come-modificare-il-file-etchosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installare MacPorts</title>
		<link>http://devnull.fuoriradio.com/2010/02/03/installare-macports/</link>
		<comments>http://devnull.fuoriradio.com/2010/02/03/installare-macports/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 15:06:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[darwin]]></category>
		<category><![CDATA[mac osx]]></category>

		<guid isPermaLink="false">http://devnull.fuoriradio.com/?p=204</guid>
		<description><![CDATA[Gli utenti debian conoscono bene la comodità di apt-get o aptitude, per recuperare software e dipendenze varie, fare upgrade rapidamente etc. MacPorts è il corrispondente apple-darwiniano di apt-get ed è altrettanto utile. Per prima cosa controllate di avere già installati sul sistema: Apple&#8217;s Xcode Developer Tools (versione 3.2.1+ per Snow Leopard, 3.1.4+per Leopard, o 2.5 [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float:left; margin: 8px" src="http://snapcasa.com/get.aspx?code=9019&size=l&url=http%3A%2F%2Fmacports.org"/ ><br />
Gli utenti debian conoscono bene la comodità di apt-get o aptitude, per recuperare software e dipendenze varie, fare upgrade rapidamente etc.<br />
MacPorts è il corrispondente apple-darwiniano di apt-get ed è altrettanto utile.</p>
<p>Per prima cosa controllate di avere già installati sul sistema:</p>
<ul>
<li>Apple&#8217;s Xcode Developer Tools (versione 3.2.1+ per Snow Leopard, 3.1.4+per Leopard, o 2.5 per Tiger), li trovate su Apple Developer Connection oppure nel DVD di  Mac OS X e assicuratevi che sia installata la parte (&#8220;Unix Development&#8221; nell&#8217;installer di Xcode).</li>
<li>Il client X11 (in Tiger è opzionale e lo trovate nel DVD del sistema operativo, nei successivi c&#8217;è già)</li>
</ul>
<p>Per installare MacPorts andate sul sito: <a href="http://www.macports.org/">MacPorts</a>,  e fate il download della immagine disco relativa al vostro sistema operativo, apritela e lanciate il programma di installazione. Una volta finito aprite una finestra di terminale e digitate il seguente comando:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #660033;">-d</span> selfupdate</pre></div></div>

<p>inserite la password di amministrazione, attendete qualche secondo e avrete darwin ports attivo e funzionante.</p>
<p><span id="more-204"></span></p>
<p>Per conoscere la sintassi del comando port, digitate:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">port <span style="color: #7a0874; font-weight: bold;">help</span>
port
        <span style="color: #7a0874; font-weight: bold;">&#91;</span>-bcdfknopqRstuvy<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-D portdir<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>-F cmdfile<span style="color: #7a0874; font-weight: bold;">&#93;</span> action <span style="color: #7a0874; font-weight: bold;">&#91;</span>privopts<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>actionflags<span style="color: #7a0874; font-weight: bold;">&#93;</span>
        <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>portname<span style="color: #000000; font-weight: bold;">|</span>pseudo-portname<span style="color: #000000; font-weight: bold;">|</span>port-url<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000; font-weight: bold;">@</span>version<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>+-variant<span style="color: #7a0874; font-weight: bold;">&#93;</span>... <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #007800;">option</span>=value<span style="color: #7a0874; font-weight: bold;">&#93;</span>...<span style="color: #7a0874; font-weight: bold;">&#93;</span>...
&nbsp;
Supported commands
<span style="color: #660033;">------------------</span>
activate, archive, build, <span style="color: #c20cb9; font-weight: bold;">cat</span>, <span style="color: #7a0874; font-weight: bold;">cd</span>, checksum, clean, configure, contents,
deactivate, dependents, deps, destroot, <span style="color: #c20cb9; font-weight: bold;">dir</span>, distcheck, distfiles, dmg,
<span style="color: #c20cb9; font-weight: bold;">dpkg</span>, <span style="color: #7a0874; font-weight: bold;">echo</span>, <span style="color: #c20cb9; font-weight: bold;">ed</span>, edit, <span style="color: #7a0874; font-weight: bold;">exit</span>, extract, fetch, <span style="color: #c20cb9; font-weight: bold;">file</span>, gohome, <span style="color: #7a0874; font-weight: bold;">help</span>, info,
<span style="color: #c20cb9; font-weight: bold;">install</span>, installed, lint, list, livecheck, load, location, mdmg, mirror,
mpkg, notes, outdated, <span style="color: #c20cb9; font-weight: bold;">patch</span>, pkg, platform, portpkg, provides, quit,
rpm, search, <span style="color: #000000; font-weight: bold;">select</span>, selfupdate, srpm, submit, <span style="color: #c20cb9; font-weight: bold;">sync</span>, <span style="color: #7a0874; font-weight: bold;">test</span>, trace, unarchive,
uninstall, unload, upgrade, url, usage, variants, version, work
Pseudo-portnames
<span style="color: #660033;">----------------</span>
Pseudo-portnames are words that may be used <span style="color: #000000; font-weight: bold;">in</span> place of a portname, and
<span style="color: #c20cb9; font-weight: bold;">which</span> expand to some <span style="color: #000000; font-weight: bold;">set</span> of ports. The common pseudo-portnames are:
all, current, active, inactive, installed, uninstalled, outdated and obsolete.
These pseudo-portnames expand to the <span style="color: #000000; font-weight: bold;">set</span> of ports named.
&nbsp;
Additional pseudo-portnames start with...
variants:, variant:, description:, depends:, depends_lib:, depends_run:,
depends_build:, depends_fetch:, depends_extract:, portdir:, homepage:, epoch:,
platforms:, platform:, name:, long_description:, maintainers:, maintainer:,
categories:, category:, version:, and revision:.
These each <span style="color: #000000; font-weight: bold;">select</span> a <span style="color: #000000; font-weight: bold;">set</span> of ports based on a regex search of metadata
about the ports. In all such cases, a standard regex pattern following
the colon will be used to <span style="color: #000000; font-weight: bold;">select</span> the <span style="color: #000000; font-weight: bold;">set</span> of ports to <span style="color: #c20cb9; font-weight: bold;">which</span> the
pseudo-portname expands.
&nbsp;
Portnames that contain standard glob characters will be expanded to the
<span style="color: #000000; font-weight: bold;">set</span> of ports matching the glob pattern.
&nbsp;
Port expressions
<span style="color: #660033;">----------------</span>
Portnames, port glob patterns, and pseudo-portnames may be logically
combined using expressions consisting of and, or, not, <span style="color: #000000; font-weight: bold;">!</span>, <span style="color: #7a0874; font-weight: bold;">&#40;</span>, and <span style="color: #7a0874; font-weight: bold;">&#41;</span>.
&nbsp;
For <span style="color: #c20cb9; font-weight: bold;">more</span> information
<span style="color: #660033;">--------------------</span>
See <span style="color: #c20cb9; font-weight: bold;">man</span> pages: port<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, macports.conf<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">5</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, portfile<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, portgroup<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>,
porthier<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>, portstyle<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>. Also, see http:<span style="color: #000000; font-weight: bold;">//</span>www.macports.org.</pre></div></div>

<p>Se qualcosa non vi è chiaro andate sulla pagina relativa di man.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fdevnull.fuoriradio.com%2F2010%2F02%2F03%2Finstallare-macports%2F&amp;layout=button_count&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=65&amp;font=lucida+grande' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://devnull.fuoriradio.com/2010/02/03/installare-macports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

