<?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>linfati.cl &#187; howto</title>
	<atom:link href="http://www.linfati.cl/tag/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linfati.cl</link>
	<description>desde &#039;94 navegando y desde &#039;97 presente en internet</description>
	<lastBuildDate>Thu, 02 Sep 2010 09:53:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Howto run MAC OSX on VirtualBox 3.2</title>
		<link>http://www.linfati.cl/2010/04/30/howto-run-mac-osx-on-virtualbox-3-2/</link>
		<comments>http://www.linfati.cl/2010/04/30/howto-run-mac-osx-on-virtualbox-3-2/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 17:36:52 +0000</pubDate>
		<dc:creator>linfati.cl</dc:creator>
				<category><![CDATA[linfati.cl]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.linfati.cl/?p=2089</guid>
		<description><![CDATA[You need: VirtualBox 3.2 Original DVD of OSX Leopard or Snow leopard (the DMG or ISO will not work) An MAC running OSX (on mac running linux or windows will not work) Procedure: Create a new Virtual Machine on VirtualBox Name it osx, and do next, next, next, next, next&#8230; Edit the Virtual Machine and [...]]]></description>
			<content:encoded><![CDATA[<p>You need:</p>
<ul>
<li>VirtualBox 3.2</li>
<li>Original DVD of OSX Leopard or Snow leopard (the DMG or ISO will not work)</li>
<li>An MAC running OSX (on mac running linux or windows will not work)</li>
</ul>
<p>Procedure:</p>
<ul>
<li>Create a new Virtual Machine on VirtualBox</li>
<li>Name it osx, and do next, next, next, next, next&#8230;</li>
<li>Edit the Virtual Machine and setup the virtual cdrom to &#8220;Host Cdrom&#8221;</li>
<li>Start the virtual machine</li>
</ul>
<p><strong>What Happens if i not have the original dvd, and use an iso image of the 5th partition of the dmg file.</strong><br />
run before install:
<pre class="brush: plain;"> VBoxManage setextradata osx &quot;VBoxInternal2/EfiBootArgs&quot; &quot;-v rd=disk1&quot; </pre>
<p>run after install:
<pre class="brush: plain;"> VBoxManage setextradata osx  &quot;VBoxInternal2/EfiBootArgs&quot; &quot;&quot; </pre>
<p><strong>Why OSX on Virtualbox boot in verbose mode?</strong><br />
is the default setting, to change it run:
<pre class="brush: plain;"> VBoxManage  setextradata osx &quot;VBoxInternal2/EfiBootArgs&quot; &quot;   &quot; </pre>
<p><strong>NOTE</strong>: is &#8220;_space_&#8221;</p>
<p><strong>How run OSX on MAC hardware, but over Linux or Windows?</strong><br />
You need know yours OSK0 and OSK1 hardware key to desencrypt the installer and applications (finder, etc) on fly. If you not have the OSK0 and OSK1 the installer will not run (only will see a blue screen with a mouse pointer). The OSK0 and OSK1 is loaded AUTOMATICLY on mac hardware running osx.</p>
<p><strong>How setup manually the OSK0 and OSK1 hardware key?</strong><br />
run:
<pre class="brush: plain;"> VBoxManage setextradata osx &quot;VBoxInternal2/SmcDeviceKey&quot;  &quot;yours_osk0_and_osk1_concatenated_in_ascii&quot; </pre>
<p><strong>How know my OSK0 and OSK1 hardware keys?</strong><br />
Use google.</p>
<p><a href="http://www.flickr.com/photos/rlinfati/4566171958/" title="osx_on_virtualbox (by Rodrigo Linfati)"><img src="http://farm4.static.flickr.com/3664/4566171958_9fb53e186b.jpg" title="osx_on_virtualbox (by Rodrigo Linfati)" alt="osx_on_virtualbox (by Rodrigo Linfati)" width="500" height="413" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.linfati.cl/2010/04/30/howto-run-mac-osx-on-virtualbox-3-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to boot a Ubuntu Live iso from grub</title>
		<link>http://www.linfati.cl/2010/04/04/how-to-boot-a-ubuntu-live-iso-from-grub/</link>
		<comments>http://www.linfati.cl/2010/04/04/how-to-boot-a-ubuntu-live-iso-from-grub/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 00:09:24 +0000</pubDate>
		<dc:creator>linfati.cl</dc:creator>
				<category><![CDATA[linfati.cl]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.linfati.cl/?p=2074</guid>
		<description><![CDATA[Create a directory to copy the Ubuntu Live iso mkdir /boot/ubuntu-isos/ cp lucid-desktop-i386.iso /boot/ubuntu-isos/ Create a script /etc/grub.d/40_ubuntu-iso to auto-detect the iso image at the directory #!/bin/sh set -e IMAGES=/boot/ubuntu-isos/ . /usr/lib/grub/grub-mkconfig_lib for isofile in ${IMAGES}*.iso do IMAGEPATH=$( make_system_path_relative_to_its_root &#34;$isofile&#34; ) echo &#34;Found ubuntu iso image: $IMAGEPATH&#34; &#62;&#38;2 cat &#60;&#60; EOF menuentry &#34;Bootable iso: $(basename [...]]]></description>
			<content:encoded><![CDATA[<p>Create a directory to copy the Ubuntu Live iso </p>
<pre class="brush: bash;">
mkdir /boot/ubuntu-isos/
cp lucid-desktop-i386.iso /boot/ubuntu-isos/
</pre>
<p>Create a script /etc/grub.d/40_ubuntu-iso to auto-detect the iso image at the directory</p>
<pre class="brush: bash;">
#!/bin/sh

set -e

IMAGES=/boot/ubuntu-isos/
. /usr/lib/grub/grub-mkconfig_lib

for isofile in ${IMAGES}*.iso
do
      IMAGEPATH=$( make_system_path_relative_to_its_root &quot;$isofile&quot; )
      echo &quot;Found ubuntu iso image: $IMAGEPATH&quot; &gt;&amp;2
      cat &lt;&lt; EOF
menuentry &quot;Bootable iso: $(basename $IMAGEPATH | sed s/.iso//)&quot; {
EOF
      prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e &quot;s/^/\t/&quot;
      cat &lt;&lt; EOF
	loopback loop $isofile
	linux (loop)/casper/vmlinuz boot=casper console-setup/layoutcode=latam locale=es_CL.UTF-8 iso-scan/filename=$isofile quiet splash noeject noprompt --
	initrd (loop)/casper/initrd.lz
}
EOF
done
</pre>
<p>and run update-grub2</p>
<p>NOTE: the iso boot on SPANISH with a LatinoAmerican keyboard, please change &#8220;console-setup/layoutcode=latam locale=es_CL.UTF-8&#8243; or delete it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linfati.cl/2010/04/04/how-to-boot-a-ubuntu-live-iso-from-grub/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>pbuilder and chroot</title>
		<link>http://www.linfati.cl/2010/02/05/pbuilder-and-chroot/</link>
		<comments>http://www.linfati.cl/2010/02/05/pbuilder-and-chroot/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 15:07:43 +0000</pubDate>
		<dc:creator>linfati.cl</dc:creator>
				<category><![CDATA[linfati.cl]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tecnologia]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.linfati.cl/?p=1941</guid>
		<description><![CDATA[Build a Chroot with debootstrap, example a Ubuntu lucid sudo debootstrap lucid /opt/chroots/lucid.linfati.cl/ now, create a /usr/local/bin/go-chroot file with #/bin/sh case &#34;$1&#34; in sethost) echo virtu-$2 &#124; sudo tee /opt/chroots/$2.linfati.cl/etc/debian_chroot ;; run) sudo pbuilder --execute \ --aptcache &#34;&#34; \ --no-targz \ --buildplace /opt/chroots/$2.linfati.cl \ -- /bin/su - ;; *) $0 sethost $1 $0 run $1 [...]]]></description>
			<content:encoded><![CDATA[<p>Build a Chroot with debootstrap, example a Ubuntu lucid</p>
<pre class="brush: plain;">
sudo debootstrap lucid /opt/chroots/lucid.linfati.cl/
</pre>
<p>now, create a /usr/local/bin/go-chroot file with</p>
<pre class="brush: plain;">
#/bin/sh

case &quot;$1&quot; in
  sethost)
	echo virtu-$2 | sudo tee /opt/chroots/$2.linfati.cl/etc/debian_chroot
	;;
  run)
	sudo pbuilder --execute \
	--aptcache &quot;&quot; \
	--no-targz \
	--buildplace /opt/chroots/$2.linfati.cl \
	-- /bin/su -
	;;
  *)
	$0 sethost $1
	$0 run $1
	;;
esac

exit 0
</pre>
<p>and run</p>
<pre class="brush: plain;">
go-chroot lucid
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.linfati.cl/2010/02/05/pbuilder-and-chroot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>auto-connect to ssh vpn using upstart</title>
		<link>http://www.linfati.cl/2009/12/19/auto-connect-to-ssh-vpn-using-upstart/</link>
		<comments>http://www.linfati.cl/2009/12/19/auto-connect-to-ssh-vpn-using-upstart/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 04:04:51 +0000</pubDate>
		<dc:creator>linfati.cl</dc:creator>
				<category><![CDATA[linfati.cl]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.linfati.cl/?p=1691</guid>
		<description><![CDATA[if you have a ssh keys configured to root user in a ssh-server, you can do a vpn over ssh using a tun interface copy the text to /etc/init/vpn2ssh.conf, change 1.2.3.4 for the ip of the vpn server and do &#8220;start vpn2ssh&#8221; # vpn2ssh - vpn over ssh to ssh server manager # # vpn [...]]]></description>
			<content:encoded><![CDATA[<p>if you have a ssh keys configured to root user in a ssh-server, you can do a vpn over ssh using a tun interface</p>
<p>copy the text to /etc/init/vpn2ssh.conf, change 1.2.3.4 for the ip of the vpn server and do &#8220;start vpn2ssh&#8221;</p>
<pre class="brush: bash;">
# vpn2ssh - vpn over ssh to ssh server manager
#
# vpn over ssh to ssh server manager

description &quot;vpn over ssh to va.linfati.cl manager&quot;
author &quot;Rodrigo Linfati &lt;rodrigo@linfati.cl&gt;&quot;
version &quot;0.1&quot;

start on started gdm
stop on stopping gdm

respawn
expect fork

env vpnserver=1.2.3.4
env idtun=309
env iplocal=172.30.9.2
env ipremote=172.30.9.1

pre-start exec sleep 60
exec ssh -C -f -w $idtun:$idtun $vpnserver ifconfig tun$idtun $ipremote pointopoint $iplocal  up
post-start exec                            ifconfig tun$idtun $iplocal  pointopoint $ipremote up
</pre>
<p>Note: on ssh server need &#8220;PermitTunnel=yes&#8221; on sshd_config</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linfati.cl/2009/12/19/auto-connect-to-ssh-vpn-using-upstart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Configurar IPV6 en Centos 5</title>
		<link>http://www.linfati.cl/2009/06/08/howto-configurar-ipv6-en-centos-5/</link>
		<comments>http://www.linfati.cl/2009/06/08/howto-configurar-ipv6-en-centos-5/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 08:36:18 +0000</pubDate>
		<dc:creator>linfati.cl</dc:creator>
				<category><![CDATA[linfati.cl]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[como]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.linfati.cl/blogs/?p=721</guid>
		<description><![CDATA[Modificamos los siguientes archivos /etc/sysconfig/network ( solo añadir lineas que falten ) HOSTNAME=el_nombre_de_la_maquina NETWORKING=yes NETWORKING_IPV6=yes IPV6_AUTOTUNNEL=yes /etc/sysconfig/network-scripts/ifcfg-sit1&#8243;) DEVICE=sit1 BOOTPROTO=none ONBOOT=yes IPV6INIT=yes IPV6TUNNELIPV4=ipv4_servidor_del_tunel IPV6TUNNELIPV4LOCAL=ipv4_cliente_del_tunel IPV6ADDR=ipv6_cliente_del_tunel /etc/sysconfig/static-routes-ipv6&#8243;) sit1 2000::/3 ipv6_servidor_del_tunel Y activamos la configuracion! /etc/init.d/network reboot]]></description>
			<content:encoded><![CDATA[<p><strong>Modificamos los siguientes archivos</strong></p>
<p>/etc/sysconfig/network ( solo añadir lineas que falten )</p>
<pre class="brush: plain;">
HOSTNAME=el_nombre_de_la_maquina
NETWORKING=yes
NETWORKING_IPV6=yes
IPV6_AUTOTUNNEL=yes
</pre>
<p>/etc/sysconfig/network-scripts/ifcfg-sit1&#8243;)</p>
<pre class="brush: plain;">
DEVICE=sit1
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=yes
IPV6TUNNELIPV4=ipv4_servidor_del_tunel
IPV6TUNNELIPV4LOCAL=ipv4_cliente_del_tunel
IPV6ADDR=ipv6_cliente_del_tunel
</pre>
<p>/etc/sysconfig/static-routes-ipv6&#8243;)</p>
<pre class="brush: plain;">
sit1    2000::/3        ipv6_servidor_del_tunel
</pre>
<p><strong>Y activamos la configuracion!</strong></p>
<pre class="brush: plain;">
/etc/init.d/network reboot
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.linfati.cl/2009/06/08/howto-configurar-ipv6-en-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
