<?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; Ubuntu</title>
	<atom:link href="http://blog.rayfoo.info/tag/ubuntu/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>Getting the Samsung Galaxy S to work with Android SDK on Ubuntu</title>
		<link>http://blog.rayfoo.info/2010/10/getting-the-samsung-galaxy-s-to-work-with-android-sdk-on-ubuntu</link>
		<comments>http://blog.rayfoo.info/2010/10/getting-the-samsung-galaxy-s-to-work-with-android-sdk-on-ubuntu#comments</comments>
		<pubDate>Sat, 02 Oct 2010 18:48:41 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[adb]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[SDK]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=744</guid>
		<description><![CDATA[Just an info dump here. To get the Samsung Galaxy S working with the Android SDK in Ubuntu, some setup is needed, else you'll be getting errors like this: I did these on a Ubuntu Lucid Lynx, but this should work for other versions/distro of Linux too I think. 1) Change to root 2) Create [...]]]></description>
			<content:encoded><![CDATA[<p>Just an info dump here.</p>
<p>To get the Samsung Galaxy S working with the Android SDK in Ubuntu, some setup is needed, else you'll be getting errors like this:</p>
<pre class="brush: bash; title: ; notranslate">? adb devices
List of devices attached
????????????	no permissions</pre>
<p>I did these on a Ubuntu Lucid Lynx, but this should work for other versions/distro of Linux too I think.</p>
<p>1)<br />
Change to root</p>
<pre class="brush: bash; title: ; notranslate">? sudo -</pre>
<p>2)<br />
Create the needed file.  04e8 refers to the Vendor ID for the Samsung manufacturer.</p>
<pre class="brush: bash; title: ; notranslate"># echo 'SUBSYSTEM==&quot;usb&quot;, SYSFS{idVendor}==&quot;04e8&quot;, MODE=&quot;0666&quot;' &amp;gt;&amp;gt; /etc/udev/rules.d/51-android.rules</pre>
<p>3)<br />
Restart the udev service</p>
<pre class="brush: bash; title: ; notranslate"># /etc/init.d/udev restart</pre>
<p>4)<br />
Plug in the phone (make sure debugging mode is already enabled), and run adb as needed</p>
<pre class="brush: bash; title: ; notranslate">? adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
[device-id]    device</pre>
<p>Hope this helps whoever needs this. <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/10/getting-the-samsung-galaxy-s-to-work-with-android-sdk-on-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Metasploitable!</title>
		<link>http://blog.rayfoo.info/2010/05/metasploitable</link>
		<comments>http://blog.rayfoo.info/2010/05/metasploitable#comments</comments>
		<pubDate>Fri, 21 May 2010 14:14:23 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[practice]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vulnerable]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=559</guid>
		<description><![CDATA[Metasploit now has a utility to allow people to practise pentesting on a controlled environment.  Termed "Metasploitable", I'm guessing it is because it is "pwnable" It's basically an Ubuntu 8.04 server on a VMware 6.5 image, running plenty of old and vulnerable services.  Yummy! It is available to Metasploit Express customers from the Customer Center, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-562" title="metasploit" src="http://blog.rayfoo.info/wp-content/uploads/2010/05/metasploit-300x64.png" alt="" width="300" height="64" />Metasploit now has a utility to allow people to practise pentesting on a controlled environment.  Termed "Metasploitable", I'm guessing it is because it is "pwnable" <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>It's basically an Ubuntu 8.04 server on a VMware 6.5 image, running plenty of old and vulnerable services.  Yummy!</p>
<p>It is available to Metasploit Express customers from the <a href="http://www.rapid7.com/customers/customer-login.jsp">Customer Center</a>, and for the rest of us peeps, it's freely available for <a href="http://www.metasploit.com/documents/express/Metasploitable.zip.torrent">download via Bittorrent</a>. (a bit slow, but I'll try to seed this for as long as possible when I managed to get it entirely)</p>
<p>More info at <a href="http://blog.metasploit.com/2010/05/introducing-metasploitable.html">the blog post</a>.</p>
<p>[via <a href="http://blog.metasploit.com/2010/05/introducing-metasploitable.html">Metasploit Blog</a>]</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/05/metasploitable/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>Installing Ubuntu 7.04 server in VirtualBox</title>
		<link>http://blog.rayfoo.info/2010/02/installing-ubuntu-7-04-server-in-virtualbox</link>
		<comments>http://blog.rayfoo.info/2010/02/installing-ubuntu-7-04-server-in-virtualbox#comments</comments>
		<pubDate>Fri, 05 Feb 2010 07:55:53 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Offensive Security]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[VMware Player]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=413</guid>
		<description><![CDATA[As part of the fiddling around with Metasploit, there came the need to install a victim box to test things on (we don't want to be attacking a live site don't we?  Especially one that we don't own...), so here's a modification of the instructions found at Offensive Security's walkthrough for our needs. I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>As part of the fiddling around with <a href="http://www.metasploit.com/">Metasploit</a>, there came the need to install a victim box to test things on (we don't want to be attacking a live site don't we?  Especially one that we don't own...), so here's a modification of the instructions found at<a href="http://www.offensive-security.com/metasploit-unleashed/"> Offensive Security's walkthrough</a> for our needs.</p>
<p>I wanted to run the victim machines in VirtualBox instead of VMware Player, and after some experimentation and Googling around with the crashing <a href="http://www.virtualbox.org/ticket/289">issue</a>, here're the instructions on how to get things up and running.</p>
<p>Host OS: Ubuntu 9.10<br />
VirtualBox 3.1.2<br />
Guest OS: Ubuntu 7.04 Server</p>
<p><span id="more-413"></span></p>
<h2>Steps:</h2>
<p>1. Get only the server ISO, not the virtual machine. <a href="http://old-releases.ubuntu.com/releases/feisty/ubuntu-7.04-server-i386.iso">http://old-releases.ubuntu.com/releases/feisty/ubuntu-7.04-server-i386.iso</a></p>
<p>2. Add it into the list of CD/DVD images within the Virtual Media Manager in VirtualBox.</p>
<p>3. Create a new virtual machine with the following settings:<br />
Name: (up to you)<br />
Operation System: Linux<br />
Version: Ubuntu<br />
Base Memory Size: (up to you, the defaults of 384MB was ok for me)<br />
Boot Hard Disk: (up to you, create new or select pre-existing one)</p>
<p>4. Select the new virtual machine, then click on Settings to edit the settings for this virtual machine (duh).</p>
<p>5. Goto System &gt; Processor. Check the box labelled "Enable PAE/NX".  This is needed for this to work.</p>
<p>6. Goto the Storage section, select the "Empty" CD/DVD item, then select the 7.04 ISO you added earlier in step 1.  This will be needed for your install...</p>
<p>7. Goto the Network section.  Adapter 1 should be enabled for you already, change "Attached to" from "NAT" to "Host-only Adapter".  I do this since we want a vulnerable server and not get the latest updates.  If you have different needs set this option accordingly.</p>
<p>8. Edit any other hardware options as you wish and then press "Ok".</p>
<p>9. Start the virtual machine, it should boot up to the CD ISO.  Follow the steps for installing the ISO into the virtual disk.  If you're using "Host-only Adapter" as shown in step 7, it will prompt a bit with regards to empty route, no nameservers and no proxy.  This is normal, leave as blank and continue.</p>
<p>10. There!  I (hopefully) can haz vulnerable server!</p>
<p>Do leave a comment if this has helped, or if you have any other questions which I'll answer if I can, heh. <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>--------------------------------</p>
<h2>References:</h2>
<p>1. <a href="http://www.offensive-security.com/metasploit-unleashed/">Offensive Security's walkthrough on Metasploit</a>: Metasploit Unleashed &gt; 02 Required Materials &gt; Ubuntu 7.04</p>
<p>2. <a href="http://www.virtualbox.org/ticket/289">Ubuntu 7.04 Server Crashes when booting</a>: ... do a default install of Ububtu 7.04 Server. When install is complete, immediately after booting Ubuntu crashes: Int 14: CR2 c1000000 err 00000002 EIP c03f3c3e CS 00000060 flags 00000006 Stack: 373c0046 00000000 ffffffff c0490000 00001400 00000080 00400000 ffffff80</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/02/installing-ubuntu-7-04-server-in-virtualbox/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>
		<item>
		<title>OpenVPN client fails after running update-resolv-conf</title>
		<link>http://blog.rayfoo.info/2009/11/openvpn-client-fails-after-running-update-resolv-conf</link>
		<comments>http://blog.rayfoo.info/2009/11/openvpn-client-fails-after-running-update-resolv-conf#comments</comments>
		<pubDate>Tue, 17 Nov 2009 02:46:17 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=352</guid>
		<description><![CDATA[OpenVPN client on Ubuntu "suddenly" stopped working.  A look through the logs showed that the update-resolv-conf script seems to be failing... ovpn-openvpn[3552]: /etc/openvpn/update-resolv-conf tun0 1500 1542 x.x.x.x x.x.x.x init ovpn-openvpn[3552]: script failed: external program exited with error status: 1 A quick trace of the update-resolv-conf script shows that the problem's with resolvconf: resolvconf: Error: /etc/resolv.conf [...]]]></description>
			<content:encoded><![CDATA[<p>OpenVPN client on Ubuntu "suddenly" stopped working.  A look through the logs showed that the update-resolv-conf script seems to be failing...</p>
<p><code>ovpn-openvpn[3552]: /etc/openvpn/update-resolv-conf tun0 1500 1542 x.x.x.x x.x.x.x init<br />
ovpn-openvpn[3552]: script failed: external program exited with error status: 1</code></p>
<p>A quick trace of the update-resolv-conf script shows that the problem's with resolvconf:</p>
<p><code>resolvconf: Error: /etc/resolv.conf must be a symlink</code></p>
<p>And the fix for that based on <a href="http://n0b3l1a.blogspot.com/2009/02/resolvconf-error-etcresolvconf-must-be.html">another solution</a>:</p>
<p><code>sudo rm /etc/resolv.conf<br />
sudo ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2009/11/openvpn-client-fails-after-running-update-resolv-conf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

