<?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>[blog.rayfoo] &#187; APT</title>
	<atom:link href="http://blog.rayfoo.info/tag/apt/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.rayfoo.info</link>
	<description>Infosec, DFIR, tech geekery, thoughts and whatnot</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:36:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Doing geolocation lookups in command line</title>
		<link>http://blog.rayfoo.info/2010/07/doing-geolocation-lookups-in-command-line</link>
		<comments>http://blog.rayfoo.info/2010/07/doing-geolocation-lookups-in-command-line#comments</comments>
		<pubDate>Thu, 08 Jul 2010 09:41:40 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=624</guid>
		<description><![CDATA[Did you know that it's possible to do your own geoip lookups from the linux command line? You need to install the geoip-bin package in Ubuntu/Debian's APT system: Then after which, lookups can be done as simply as: Note that the lookups are based on the GeoLite Country database.  For more detailed geoip lookups you [...]]]></description>
			<content:encoded><![CDATA[<p>Did you know that it's possible to do your own geoip lookups from the linux command line?</p>
<p>You need to install the geoip-bin package in Ubuntu/Debian's APT system:</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get install geoip-bin</pre>
<p>Then after which, lookups can be done as simply as:</p>
<pre class="brush: plain; title: ; notranslate">$ geoiplookup 8.8.8.8
GeoIP Country Edition: US, United States</pre>
<p>Note that the lookups are based on the <a href="http://www.maxmind.com/app/geoip_country">GeoLite Country</a> database.  For more detailed geoip lookups you will need to buy the better databases.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/07/doing-geolocation-lookups-in-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting IDNs in Ubuntu</title>
		<link>http://blog.rayfoo.info/2010/07/converting-idns-in-ubuntu</link>
		<comments>http://blog.rayfoo.info/2010/07/converting-idns-in-ubuntu#comments</comments>
		<pubDate>Wed, 07 Jul 2010 15:56:06 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[ICANN]]></category>
		<category><![CDATA[IDN]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[punycode]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=613</guid>
		<description><![CDATA[With the start of Internationalized domain names (IDNs) it sparked my interest since it requires conversion to punycode in order to continue working with existing DNS systems/applications, which work with ASCII. Taking a search through Ubuntu's APT system, to see whether any IDN related tools are available... There's the idn package!  Which allows encoding of IDNs [...]]]></description>
			<content:encoded><![CDATA[<p>With the start of <a href="http://en.wikipedia.org/wiki/Internationalized_domain_name">Internationalized domain names</a> (<a href="http://www.icann.org/en/topics/idn/">IDNs</a>) it sparked my interest since it requires conversion to <a href="http://en.wikipedia.org/wiki/Punycode">punycode</a> in order to continue working with existing DNS systems/applications, which work with ASCII.</p>
<p>Taking a search through Ubuntu's APT system, to see whether any IDN related tools are available...</p>
<pre class="brush: plain; title: ; notranslate">$ apt-cache search punycode

libidn11 - GNU Libidn library, implementation of IETF IDN specifications
libidn11-dev - Development files for GNU Libidn, an IDN library
idn - Command line and Emacs interface to GNU Libidn
libidn11-java - Java port of the GNU Libidn library, an IDN implementation
libidna-punycode-perl - encodes Unicode string in Punycode</pre>
<p>There's the idn package!  Which allows encoding of IDNs in punycode in the command line...</p>
<p>Doing an install...</p>
<pre class="brush: bash; title: ; notranslate">$ sudo apt-get install idn -y</pre>
<p>And trying it out!</p>
<pre class="brush: plain; title: ; notranslate">$ idn правительство.рф

libidn 1.15
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson.
GNU Libidn comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Libidn under the terms of
the GNU Lesser General Public License.  For more information
about these matters, see the file named COPYING.LIB.
xn--80aealotwbjpid2k.xn--p1ai</pre>
<p>And resolving the domain...</p>
<pre class="brush: plain; title: ; notranslate">$ nslookup xn--80aealotwbjpid2k.xn--p1ai

Non-authoritative answer:
Name:	xn--80aealotwbjpid2k.xn--p1ai
Address: 95.173.135.62</pre>
<p>Note that resolving the domain directly results in rubbish!</p>
<pre class="brush: plain; title: ; notranslate">$ nslookup правительство.рф

Non-authoritative answer:
Name:	\208\191\209\128\208\176\208\178\208\184\209\130\208\181\208\187\209\140\209\129\209\130\208\178\208\190.\209\128\209\132
Address: 67.215.65.132</pre>
<p>So, basically from this we understand that applications will need to use the punycode encoded version of the IDN, NOT the original IDN, when resolving.  And there're tools out there already can do that for us.</p>
<p>Since Ubuntu has these <a href="http://packages.ubuntu.com/search?keywords=idn">packages</a>, Debian would also have the corresponding <a href="http://packages.debian.org/search?keywords=idn">packages</a> available too.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/07/converting-idns-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Terminal) Easter Eggs</title>
		<link>http://blog.rayfoo.info/2010/02/terminal-easter-eggs</link>
		<comments>http://blog.rayfoo.info/2010/02/terminal-easter-eggs#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:07:57 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[easter egg]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=419</guid>
		<description><![CDATA[Friend of mine showed me a link to this video (http://www.youtube.com/watch?v=b-OhjAD937s) showing some easter eggs that can be done within Ubuntu's terminal. Apparently it can be done on any linux terminal, as long as you have the correct version of apt or aptitude installed, so give it a try and enjoy! The commands that can [...]]]></description>
			<content:encoded><![CDATA[<p>Friend of mine showed me a link to this video (<a href="http://www.youtube.com/watch?v=b-OhjAD937s">http://www.youtube.com/watch?v=b-OhjAD937s</a>) showing some easter eggs that can be done within Ubuntu's terminal.</p>
<p>Apparently it can be done on any linux terminal, as long as you have the correct version of apt or aptitude installed, so give it a try and enjoy!</p>
<p>The commands that can be run are:</p>
<ul>
<li><code>apt-get moo</code></li>
<li><code>aptitude moo</code></li>
<li><code>aptitude moo -v</code></li>
<li><code>aptitude moo -vv</code></li>
<li><code>aptitude moo -vvv</code></li>
<li><code>aptitude moo -vvvv</code></li>
<li><code>aptitude moo -vvvvv</code></li>
<li><code>aptitude moo -vvvvvv</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/02/terminal-easter-eggs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating APT&#8217;s trusted keys</title>
		<link>http://blog.rayfoo.info/2009/11/updating-apts-trusted-keys</link>
		<comments>http://blog.rayfoo.info/2009/11/updating-apts-trusted-keys#comments</comments>
		<pubDate>Sat, 28 Nov 2009 14:16:37 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[APT]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=384</guid>
		<description><![CDATA[If you're running an or command, and you get running might do the trick~ [via Fool's Wisdom]]]></description>
			<content:encoded><![CDATA[<p>If you're running an </p>
<pre class="brush: bash; title: ; notranslate">apt-get install</pre>
<p>or</p>
<pre class="brush: bash; title: ; notranslate">aptitude install</pre>
<p>command, and you get</p>
<pre class="brush: plain; title: ; notranslate">WARNING: The following packages cannot be authenticated!</pre>
<p>running</p>
<pre class="brush: bash; title: ; notranslate">sudo aptitude reinstall ubuntu-keyring</pre>
<p>might do the trick~</p>
<p>[via <a href="http://foolswisdom.com/warning-the-following-packages-cannot-be-authenticated/">Fool's Wisdom</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2009/11/updating-apts-trusted-keys/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

