<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Sudo on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/sudo/</link><description>Recent content in Sudo on Karpoke - Just Another Blog</description><generator>Hugo -- 0.159.0</generator><language>es</language><lastBuildDate>Fri, 22 Jun 2012 20:41:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/sudo/index.xml" rel="self" type="application/rss+xml"/><item><title>Arch en Raspberry Pi</title><link>http://karpoke.ignaciocano.com/2012/06/22/arch-en-raspberry-pi/</link><pubDate>Fri, 22 Jun 2012 20:41:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2012/06/22/arch-en-raspberry-pi/</guid><description>&lt;p&gt;Después de haber estado usando la &lt;a href="http://karpoke.ignaciocano.com/2012/06/21/raspberry-pi/"&gt;Raspberry Pi con Debian&lt;/a&gt;, he
querido probar otras distribuciones, en este caso Arch.&lt;/p&gt;
&lt;p&gt;Desde la página de &lt;a href="http://www.raspberrypi.org/downloads"&gt;descargas&lt;/a&gt;, nos bajamos el torrent, así no
sobrecargamos el servidor.&lt;/p&gt;
&lt;h2 id="crear-una-copia-de-la-tarjeta-sd"&gt;Crear una copia de la tarjeta SD&lt;/h2&gt;
&lt;p&gt;He estado unos días trasteando con Debian, ya sabéis, modificando la
tabla de particiones para utilizar todo el espacio disponible,
instalando paquetes, configurándola a mi gusto, no mucho, pero si ahora
formateo la tarjeta, es un trabajo perdido. No sólo eso, sino que no
descarto tener que repetirlo de nuevo si posteriormente vuelvo a debian.
Puede que al final me quede con Arch, pero me apetece probar alguna
distribución más, como &lt;a href="http://www.raspbmc.com"&gt;Raspbmc&lt;/a&gt; o &lt;a href="http://www.pwnpi.com"&gt;PwnPi&lt;/a&gt;, así que me interesa
guardar una copia de la tarjeta. Quizá sería mejor opción crear una
máquina virtual con &lt;code&gt;qemu&lt;/code&gt; para probar otras distribuciones, o utilizar
tarjetas SD diferentes, pero dado lo sencillo que es hacer la copia esto
será lo primero que haga.&lt;/p&gt;</description></item><item><title>sudo vacilón</title><link>http://karpoke.ignaciocano.com/2011/08/04/sudo-vacilon/</link><pubDate>Thu, 04 Aug 2011 13:32:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/08/04/sudo-vacilon/</guid><description>&lt;pre tabindex="0"&gt;&lt;code&gt;$ sudo passwd
[sudo] password for user:
Are you on drugs?
[sudo] password for user:
Maybe if you used more than just two fingers...
[sudo] password for user:
I’ve seen penguins that can type better than that.
sudo: 3 incorrect password attempts
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Si te gustaría recibir un piropo cada vez que &lt;a href="http://usemoslinux.blogspot.com/2011/08/sudo-no-me-insultes-el-terminal-se.html"&gt;escribes mal la
contraseña de &lt;code&gt;sudo&lt;/code&gt;&lt;/a&gt;, no
tienes más que editar el archivo de configuración de &lt;a href="http://karpoke.ignaciocano.com/posts/memo/with-great-power-comes-great-responsibility/"&gt;&lt;code&gt;sudo&lt;/code&gt;&lt;/a&gt;,
&lt;code&gt;/etc/sudoers&lt;/code&gt;, mediante el comando &lt;code&gt;visudo&lt;/code&gt;:&lt;/p&gt;</description></item><item><title>Extraer un archivo de un archivo comprimido, desde el terminal</title><link>http://karpoke.ignaciocano.com/2011/06/30/extraer-un-archivo-de-un-archivo-comprimido-desde-el-terminal/</link><pubDate>Thu, 30 Jun 2011 20:36:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/06/30/extraer-un-archivo-de-un-archivo-comprimido-desde-el-terminal/</guid><description>&lt;p&gt;Un día estás editando un archivo en un servidor remoto, &lt;a href="http://karpoke.ignaciocano.com/2011/06/17/compartiendo-una-conexion-por-ssh/"&gt;por &lt;code&gt;ssh&lt;/code&gt;&lt;/a&gt;,
y, a la hora de guardar, te das cuenta de que has editado el fichero sin
tener los privilegios suficientes, por lo que &lt;code&gt;vim&lt;/code&gt; se queja:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;E505: &amp;#34;app.config&amp;#34; is read-only (add ! to override)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;La solución es sencilla, para guardarlo como &lt;code&gt;root&lt;/code&gt; escribes:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;:w !sudo tee %
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;O eso creías. De repente, te das cuenta de que eso no es lo que has
escrito, porque &lt;code&gt;vim&lt;/code&gt; se ha puesto en modo &lt;em&gt;inferno&lt;/em&gt;, y cada tecla que
pulsas le da vida propia, porque hace exactamente lo que le dices que
haga y no lo que realmente quieres que haga, y cuando pasa la tormenta y
vuelves a editar el fichero, sólo contiene:&lt;/p&gt;</description></item><item><title>With great power comes great responsibility</title><link>http://karpoke.ignaciocano.com/2011/03/07/with-great-power-comes-great-responsibility/</link><pubDate>Mon, 07 Mar 2011 22:40:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2011/03/07/with-great-power-comes-great-responsibility/</guid><description>&lt;p&gt;Cuando ejecutamos &lt;code&gt;sudo&lt;/code&gt; por primera vez nos dice:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Trust&amp;hellip; &lt;em&gt;my ass&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Sandwich" loading="lazy" src="http://karpoke.ignaciocano.com/images/sandwich-300x249.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fuente: &lt;a href="http://xkcd.com/149/"&gt;xkcd.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="sudo rm" loading="lazy" src="http://karpoke.ignaciocano.com/images/sudorm.jpg"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fuente: &lt;a href="http://www.leprosys.info/2008/08/no-ejecutes-sudo-rm-rf.html"&gt;leprosys.info&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="whoops" loading="lazy" src="http://karpoke.ignaciocano.com/images/whoops-300x272.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fuente: &lt;a href="http://www.leprosys.info/2008/08/no-ejecutes-sudo-rm-rf.html"&gt;leprosys.info&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="sudo-rm" loading="lazy" src="http://karpoke.ignaciocano.com/images/sudo-rm-300x193.png"&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Fuente: &lt;a href="http://www.genbeta.com/linux/la-terminal-de-linux-no-muerde-ii-trucos-mas-avanzados"&gt;genbeta.com&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>