tag:blogger.com,1999:blog-54798434768264260862022-05-17T03:19:02.954-04:00Tips para SO GNU/LINUXTips a nivel general del software librejeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.comBlogger104110tag:blogger.com,1999:blog-5479843476826426086.post-1147731006537838972017-03-16T11:00:00.001-04:002017-03-16T11:00:11.019-04:00Solucion problema proceso com.jrdcom.jrdsetupwizar Alcatel one Touch 983<div dir="ltr" style="text-align: left;" trbidi="on"><a href="https://www.youtube.com/watch?v=G6EQa8A91Ec" target="_blank">https://www.youtube.com/watch?v=G6EQa8A91Ec</a><br /><br />Luego que vean ese video, veran cual es el problema y como se soluciona, en mi caso particular, yo no pude solucionarlo como esta en el video, por que antes de hacer <b>wipe use data desde el recovery, </b>yo habia rooteado el telefono y habia desinstalado youtube y google maps, por lo que ese video no me sirvio de nada, estube varios dias investigando y no encontraba solucion hasta que pense, que como fue mi caso, yo me hice root en esa terminal con un update.zip y que quizas de esa misma forma podia eliminar la aplicacion <b>SetupWizard</b> que era la que me estaba dando problemas, por lo que finalmente lo logre haciendo uso de este archivo que les comparto acontinuacion<br /><br /><a href="https://mega.nz/#!xBMjnDyD!Ce17w2yDYHv12ctjusey0Iz_btmdo9hIzwNPdEPSpEc" target="_blank">https://mega.nz/#!xBMjnDyD!Ce17w2yDYHv12ctjusey0Iz_btmdo9hIzwNPdEPSpEc</a><br /><br /><br />de esta manera elimine la apk de system y pude recuperar el terminal<br /><br /><br />el script tiene varias lineas por que estaba probando varias opciones para eliminar la app que era del sistema pero lo que voy a resaltar en <span style="background-color: yellow;">amarillo</span> es lo que yo creo que deberia tener<br /><br /><span style="background-color: yellow;">ui_print("Remove jrdSetupWizard from alcatel..");<br />mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");<br />delete("/system/app/JrdSetupWizard.apk");</span><br />delete("/custpack/app/withoutlibs/JrdSetupWizard.apk");<br />delete("/system/app/SetupWizard.apk");<br /><span style="background-color: yellow;">ui_print("Remove complete!");</span><br />package_extract_file("script.sh", "/tmp/script.sh");<br />set_perm(0, 0, 0777, "/tmp/script.sh");<br />run_program("/tmp/script.sh", "");<br />delete("/tmp/script.sh");<br />ui_print("Directamente!");<br />run_program("script.sh");<br />ui_print("Exec Script!");<br /><span style="background-color: yellow;">unmount("/system");</span><br /><br /><br /><br />_____________________________________________________<br /><br /><span style="background-color: lime;">ui_print("Remove jrdSetupWizard from alcatel..");<br />mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");<br />delete("/system/app/JrdSetupWizard.apk");</span><br /><span style="background-color: lime;">ui_print("Remove complete!");<br />unmount("/system");</span><br /><br /><span style="background-color: white;"> asi como esta resaltado en verde deberia funcionar, pero yo probé fue el de arriba, asi que es cuestion de ustedes si quieren editar el script</span><br /><span style="background-color: white;"><br /></span><span style="background-color: white;"><br /></span><span style="background-color: white;"><br /></span><br /><br /><br /><span style="background-color: white;">Descargalo de aqui y listo</span><br /><br /><a href="https://mega.nz/#%21xBMjnDyD%21Ce17w2yDYHv12ctjusey0Iz_btmdo9hIzwNPdEPSpEc" target="_blank">https://mega.nz/#!xBMjnDyD!Ce17w2yDYHv12ctjusey0Iz_btmdo9hIzwNPdEPSpEc</a><br /><br /></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com0tag:blogger.com,1999:blog-5479843476826426086.post-75046432740487877032013-10-25T10:14:00.004-04:302013-10-25T10:14:58.687-04:30400 comandos interesantes de linux<div dir="ltr" style="text-align: left;" trbidi="on"><h2 class="title-single" style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/" rel="bookmark" style="color: #0088cc; font-weight: lighter; text-decoration: none;" title="Tips: Más de 400 comandos para GNU/Linux que deberías conocer :D">Tips: Más de 400 comandos para GNU/Linux que deberías conocer :D</a></h2><div style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 15px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-shadow: rgb(255, 255, 255) 0px 1px 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">Me he encontrado en la<span class="Apple-converted-space"> </span><a href="http://gutl.jovenclub.cu/wiki/comandos/inicio" style="color: #0088cc; text-decoration: none;" target="_blank" title="Artículo Original">Wiki de GUTL</a><span class="Apple-converted-space"> </span>este completo listado con<span class="Apple-converted-space"> </span><strong style="font-weight: bold;">más de 400 comandos</strong><span class="Apple-converted-space"> </span>para<strong style="font-weight: bold;">GNU/Linux</strong><span class="Apple-converted-space"> </span>con su respectiva explicación, y los quiero compartir con ustedes para complementar<span class="Apple-converted-space"> </span><a href="http://blog.desdelinux.net/wp-content/themes/dlinux_3col/aprende-a-prescindir-del-entorno-grafico/" style="color: #0088cc; text-decoration: none;" target="_blank" title="Aprende a prescindir del entorno gráfico">este excelente artículo</a><span class="Apple-converted-space"> </span>que escribió mi colega para aprender a vivir con la consola.</div><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">Indice:</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><strong style="font-weight: bold;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#info" style="color: #0088cc; text-decoration: none;" title="Información del Sistema">Información del Sistema</a></strong></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><strong style="font-weight: bold;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#apagar" style="color: #0088cc; text-decoration: none;" title="Apagar (Reiniciar o Cerrar Sesión)">Apagar (Reiniciar o Cerrar Sesión)</a></strong></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#archi" style="color: #0088cc; text-decoration: none;" title="Archivos y Directorios"><strong style="font-weight: bold;">Archivos y Directorios</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#encontrar" style="color: #0088cc; text-decoration: none;" title="Encontrar archivos"><strong style="font-weight: bold;">Encontrar archivos</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#montar" style="color: #0088cc; text-decoration: none;" title="Montando un sistema de ficheros"><strong style="font-weight: bold;">Montando un sistema de ficheros</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#espacio" style="color: #0088cc; text-decoration: none;" title="Montando un sistema de ficheros"><strong style="font-weight: bold;">Espacio de Disco</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#usuarios" style="color: #0088cc; text-decoration: none;" title="Usuarios y Grupos"><strong style="font-weight: bold;">Usuarios y Grupos</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#pfiche" style="color: #0088cc; text-decoration: none;" title="Permisos en Ficheros (Usa ”+” para colocar permisos y ”-” para eliminar)"><strong style="font-weight: bold;">Permisos en Ficheros (Usa ”+” para colocar permisos y ”-” para eliminar)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#afiche" style="color: #0088cc; text-decoration: none;" title="Permisos en Ficheros (Usa ”+” para colocar permisos y ”-” para eliminar)"><strong style="font-weight: bold;">Atributos especiales en ficheros (Usa ”+” para colocar permisos y ”-” para eliminar)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#arfiche" style="color: #0088cc; text-decoration: none;" title="Archivos y Ficheros comprimidos"><strong style="font-weight: bold;">Archivos y Ficheros comprimidos</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#rpm" style="color: #0088cc; text-decoration: none;" title="Paquetes RPM (Red Hat, Fedora y similares)"><strong style="font-weight: bold;">Paquetes RPM (Red Hat, Fedora y similares)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#yum" style="color: #0088cc; text-decoration: none;" title="Actualizador de paquetes YUM (Red Hat, Fedora y similares)"><strong style="font-weight: bold;">Actualizador de paquetes YUM (Red Hat, Fedora y similares)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#deb" style="color: #0088cc; text-decoration: none;" title="Paquetes Deb (Debian, Ubuntu y derivados)"><strong style="font-weight: bold;">Paquetes Deb (Debian, Ubuntu y derivados)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#apt" style="color: #0088cc; text-decoration: none;" title="Actualizador de paquetes APT (Debian, Ubuntu y derivados)"><strong style="font-weight: bold;">Actualizador de paquetes APT (Debian, Ubuntu y derivados)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#cont" style="color: #0088cc; text-decoration: none;" title="Ver el contenido de un fichero"><strong style="font-weight: bold;">Ver el contenido de un fichero</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#texto" style="color: #0088cc; text-decoration: none;" title="Manipulación de texto"><strong style="font-weight: bold;">Manipulación de texto</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#estable" style="color: #0088cc; text-decoration: none;" title="Establecer caracter y conversión de ficheros"><strong style="font-weight: bold;">Establecer caracter y conversión de ficheros</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#analisis" style="color: #0088cc; text-decoration: none;" title="Análisis del sistema de ficheros"><strong style="font-weight: bold;">Análisis del sistema de ficheros</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#format" style="color: #0088cc; text-decoration: none;" title="Formatear un sistema de ficheros"><strong style="font-weight: bold;">Formatear un sistema de ficheros</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#swap" style="color: #0088cc; text-decoration: none;" title="Trabajo con la SWAP"><strong style="font-weight: bold;">Trabajo con la SWAP</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#backup" style="color: #0088cc; text-decoration: none;" title="Salvas (Backup)"><strong style="font-weight: bold;">Salvas (Backup)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#cdrom" style="color: #0088cc; text-decoration: none;" title="CD-ROM"><strong style="font-weight: bold;">CD-ROM</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#red" style="color: #0088cc; text-decoration: none;" title="Trabajo con la RED ( LAN y Wi-Fi)"><strong style="font-weight: bold;">Trabajo con la RED ( LAN y Wi-Fi)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#samba" style="color: #0088cc; text-decoration: none;" title="Redes de Microsoft Windows (SAMBA)"><strong style="font-weight: bold;">Redes de Microsoft Windows (SAMBA)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#iptable" style="color: #0088cc; text-decoration: none;" title="Tablas IP (CORTAFUEGOS)"><strong style="font-weight: bold;">Tablas IP (CORTAFUEGOS)</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#monitor" style="color: #0088cc; text-decoration: none;" title="Tablas IP (CORTAFUEGOS)"><strong style="font-weight: bold;">Monitoreando y depurando</strong></a></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/#otros" style="color: #0088cc; text-decoration: none;" title="Tablas IP (CORTAFUEGOS)"><strong style="font-weight: bold;">Otros comandos útiles</strong></a></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="info" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Información del sistema</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">arch</strong>: mostrar la arquitectura de la máquina (1).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">uname -m</strong>: mostrar la arquitectura de la máquina (2).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">uname -r</strong>: mostrar la versión del kernel usado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dmidecode -q</strong>: mostrar los componentes (hardware) del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">hdparm -i /dev/hda</strong>: mostrar las características de un disco duro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">hdparm -tT /dev/sda</strong>: realizar prueba de lectura en un disco duro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/cpuinfo</strong>: mostrar información de la CPU.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/interrupts</strong>: mostrar las interrupciones.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/meminfo</strong>: verificar el uso de memoria.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/swaps</strong>: mostrar ficheros swap.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/version</strong>: mostrar la versión del kernel.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/net/dev</strong>: mostrar adaptadores de red y estadísticas.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat /proc/mounts</strong>: mostrar el sistema de ficheros montado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lspci -tv</strong>: mostrar los dispositivos PCI.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lsusb -tv</strong>: mostrar los dispositivos USB.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">date</strong>: mostrar la fecha del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cal 2011</strong>: mostrar el almanaque de 2011.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cal 07 2011</strong>: mostrar el almanaque para el mes julio de 2011.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">date 041217002011.00</strong>: colocar (declarar, ajustar) fecha y hora.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">clock -w</strong>: guardar los cambios de fecha en la BIOS.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="apagar" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Apagar (Reiniciar Sistema o Cerrar Sesión)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">shutdown -h now</strong>: apagar el sistema (1).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">init 0</strong>: apagar el sistema (2).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">telinit 0</strong>: apagar el sistema (3).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">halt</strong>: apagar el sistema (4).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">shutdown -h hours:minutes &</strong>: apagado planificado del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">shutdown -c</strong>: cancelar un apagado planificado del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">shutdown -r now</strong>: reiniciar (1).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">reboot</strong>: reiniciar (2).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">logout</strong>: cerrar sesión.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="archi" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Archivos y Directorios</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd /home</strong>: entrar en el directorio “home”.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd ..</strong>: retroceder un nivel.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd ../..</strong>: retroceder 2 niveles.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd:</strong><span class="Apple-converted-space"> </span>ir al directorio raíz.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd ~user1</strong>: ir al directorio user1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd -</strong>: ir (regresar) al directorio anterior.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">pwd</strong>: mostrar el camino del directorio de trabajo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls</strong>: ver los ficheros de un directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls -F</strong>: ver los ficheros de un directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls -l</strong>: mostrar los detalles de ficheros y carpetas de un directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls -a</strong>: mostrar los ficheros ocultos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls *[0-9]</strong>*: mostrar los ficheros y carpetas que contienen números.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tree</strong>: mostrar los ficheros y carpetas en forma de árbol comenzando por la raíz.(1)</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lstree</strong>: mostrar los ficheros y carpetas en forma de árbol comenzando por la raíz.(2)</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkdir dir1</strong>: crear una carpeta o directorio con nombre ‘dir1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkdir dir1 dir2</strong>: crear dos carpetas o directorios simultáneamente (Crear dos directorios a la vez).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkdir -p /tmp/dir1/dir2</strong>: crear un árbol de directorios.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rm -f file1</strong>: borrar el fichero llamado ‘file1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rmdir dir1</strong>: borrar la carpeta llamada ‘dir1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rm -rf dir1</strong>: eliminar una carpeta llamada ‘dir1′ con su contenido de forma recursiva. (Si lo borro recursivo estoy diciendo que es con su contenido).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rm -rf dir1 dir2</strong>: borrar dos carpetas (directorios) con su contenido de forma recursiva.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mv dir1 new_dir</strong>: renombrar o mover un fichero o carpeta (directorio).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cp file1</strong>: copiar un fichero.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cp file1 file2</strong>: copiar dos ficheros al unísono.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cp dir /* .</strong>: copiar todos los ficheros de un directorio dentro del directorio de trabajo actual.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cp -a /tmp/dir1 .</strong>: copiar un directorio dentro del directorio actual de trabajo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cp -a dir1</strong>: copiar un directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cp -a dir1 dir2</strong>: copiar dos directorio al unísono.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ln -s file1 lnk1</strong>: crear un enlace simbólico al fichero o directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ln file1 lnk1</strong>: crear un enlace físico al fichero o directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">touch -t 0712250000 file1</strong>: modificar el tiempo real (tiempo de creación) de un fichero o directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">file file1</strong>: salida (volcado en pantalla) del tipo mime de un fichero texto.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iconv -l</strong>: listas de cifrados conocidos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iconv -f fromEncoding -t toEncoding inputFile > outputFile</strong>: crea una nueva forma del fichero de entrada asumiendo que está codificado en fromEncoding y convirtiéndolo a ToEncoding.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find . -maxdepth 1 -name *.jpg -print -exec convert ”{}” -resize 80×60 “thumbs/{}” \;</strong>: agrupar ficheros redimensionados en el directorio actual y enviarlos a directorios en vistas de miniaturas (requiere convertir desde ImagemagicK).</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="encontrar" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Encontrar archivos</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find / -name file1</strong>: buscar fichero y directorio a partir de la raíz del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find / -user user1</strong>: buscar ficheros y directorios pertenecientes al usuario ‘user1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find /home/user1 -name \*.bin</strong>: buscar ficheros con extensión ‘. bin’ dentro del directorio ‘/ home/user1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find /usr/bin -type f -atime +100</strong>: buscar ficheros binarios no usados en los últimos 100 días.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find /usr/bin -type f -mtime -10</strong>: buscar ficheros creados o cambiados dentro de los últimos 10 días.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find / -name \*.rpm -exec chmod 755 ‘{}’ \;</strong>: buscar ficheros con extensión ‘.rpm’ y modificar permisos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find / -xdev -name \*.rpm</strong>: Buscar ficheros con extensión ‘.rpm’ ignorando los dispositivos removibles como cdrom, pen-drive, etc.…</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">locate \*.ps</strong>: encuentra ficheros con extensión ‘.ps’ ejecutados primeramente con el command ‘updatedb’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">whereis halt</strong>: mostrar la ubicación de un fichero binario, de ayuda o fuente. En este caso pregunta dónde está el comando ‘halt’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">which halt</strong>: mostrar la senda completa (el camino completo) a un binario / ejecutable.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="montar" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Montando un sistema de ficheros</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount /dev/hda2 /mnt/hda2</strong>: montar un disco llamado hda2. Verifique primero la existencia del directorio ‘/ mnt/hda2′; si no está, debe crearlo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">umount /dev/hda2</strong>: desmontar un disco llamado hda2. Salir primero desde el punto ‘/ mnt/hda2.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fuser -km /mnt/hda2</strong>: forzar el desmontaje cuando el dispositivo está ocupado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">umount -n /mnt/hda2</strong>: correr el desmontaje sin leer el fichero /etc/mtab. Útil cuando el fichero es de solo lectura o el disco duro está lleno.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount /dev/fd0 /mnt/floppy</strong>: montar un disco flexible (floppy).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount /dev/cdrom /mnt/cdrom</strong>: montar un cdrom / dvdrom.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount /dev/hdc /mnt/cdrecorder</strong>: montar un cd regrabable o un dvdrom.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount /dev/hdb /mnt/cdrecorder</strong>: montar un cd regrabable / dvdrom (un dvd).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount -o loop file.iso /mnt/cdrom</strong>: montar un fichero o una imagen iso.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount -t vfat /dev/hda5 /mnt/hda5</strong>: montar un sistema de ficheros FAT32.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount /dev/sda1 /mnt/usbdisk</strong>: montar un usb pen-drive o una memoria (sin especificar el tipo de sistema de ficheros).</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="espacio" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Espacio de Disco</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">df -h</strong>: mostrar una lista de las particiones montadas.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls -lSr |more</strong>: mostrar el tamaño de los ficheros y directorios ordenados por tamaño.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">du -sh dir1</strong>: Estimar el espacio usado por el directorio ‘dir1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">du -sk * | sort -rn</strong>: mostrar el tamaño de los ficheros y directorios ordenados por tamaño.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -q -a –qf ‘%10{SIZE}t%{NAME}n’ | sort -k1,1n</strong>: mostrar el espacio usado por los paquetes rpm instalados organizados por tamaño (Fedora, Redhat y otros).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg-query -W -f=’${Installed-Size;10}t${Package}n’ | sort -k1,1n</strong>: mostrar el espacio usado por los paquetes instalados, organizados por tamaño (Ubuntu, Debian y otros).</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="usuarios" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Usuarios y Grupos</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">groupadd nombre_del_grupo</strong>: crear un nuevo grupo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">groupdel nombre_del_grupo</strong>: borrar un grupo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">groupmod -n nuevo_nombre_del_grupo viejo_nombre_del_grupo</strong>: renombrar un grupo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">useradd -c “Name Surname ” -g admin -d /home/user1 -s /bin/bash user1</strong>: Crear un nuevo usuario perteneciente al grupo “admin”.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">useradd user1</strong>: crear un nuevo usuario.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">userdel -r user1</strong>: borrar un usuario (‘-r’ elimina el directorio Home).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">usermod -c “User<span class="Apple-converted-space"> </span><acronym title="File Transfer Protocol">FTP</acronym>” -g system -d /ftp/user1 -s /bin/nologin user1</strong>: cambiar los atributos del usuario.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">passwd</strong>: cambiar contraseña.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">passwd user1</strong>: cambiar la contraseña de un usuario (solamente por root).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chage -E 2011-12-31 user1</strong>: colocar un plazo para la contraseña del usuario. En este caso dice que la clave expira el 31 de diciembre de 2011.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">pwck</strong>: chequear la sintaxis correcta el formato de fichero de ‘/etc/passwd’ y la existencia de usuarios.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">grpck</strong>: chequear la sintaxis correcta y el formato del fichero ‘/etc/group’ y la existencia de grupos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">newgrp group_name</strong>: registra a un nuevo grupo para cambiar el grupo predeterminado de los ficheros creados recientemente.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="pfiche" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Permisos en Ficheros (Usa ”+” para colocar permisos y ”-” para eliminar)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls -lh</strong>: Mostrar permisos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ls /tmp | pr -T5 -W$COLUMNS</strong>: dividir la terminal en 5 columnas.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod ugo+rwx directory1</strong>: colocar permisos de lectura ®, escritura (w) y ejecución(x) al propietario (u), al grupo (g) y a otros (o) sobre el directorio ‘directory1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod go-rwx directory1</strong>: quitar permiso de lectura ®, escritura (w) y (x) ejecución al grupo (g) y otros (o) sobre el directorio ‘directory1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chown user1 file1</strong>: cambiar el dueño de un fichero.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chown -R user1 directory1</strong>: cambiar el propietario de un directorio y de todos los ficheros y directorios contenidos dentro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chgrp group1 file1</strong>: cambiar grupo de ficheros.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chown user1:group1 file1</strong>: cambiar usuario y el grupo propietario de un fichero.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find / -perm -u+s</strong>: visualizar todos los ficheros del sistema con SUID configurado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod u+s /bin/file1</strong>: colocar el bit SUID en un fichero binario. El usuario que corriendo ese fichero adquiere los mismos privilegios como dueño.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod u-s /bin/file1</strong>: deshabilitar el bit SUID en un fichero binario.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod g+s /home/public</strong>: colocar un bit SGID en un directorio –similar al SUID pero por directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod g-s /home/public</strong>: desabilitar un bit SGID en un directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod o+t /home/public</strong>: colocar un bit STIKY en un directorio. Permite el borrado de ficheros solamente a los dueños legítimos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chmod o-t /home/public</strong>: desabilitar un bit STIKY en un directorio.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="afiche" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Atributos especiales en ficheros (Usa ”+” para colocar permisos y ”-” para eliminar)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +a file1</strong>: permite escribir abriendo un fichero solamente modo append.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +c file1</strong>: permite que un fichero sea comprimido / descomprimido automaticamente.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +d file1</strong>: asegura que el programa ignore borrar los ficheros durante la copia de seguridad.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +i file1</strong>: convierte el fichero en invariable, por lo que no puede ser eliminado, alterado, renombrado, ni enlazado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +s file1</strong>: permite que un fichero sea borrado de forma segura.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +S file1</strong>: asegura que un fichero sea modificado, los cambios son escritos en modo synchronous como con sync.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chattr +u file1</strong>: te permite recuperar el contenido de un fichero aún si este está cancelado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lsattr</strong>: mostrar atributos especiales.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="arfiche" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Archivos y Ficheros comprimidos</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">bunzip2 file1.bz2</strong>: descomprime in fichero llamado ‘file1.bz2′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">bzip2 file1</strong>: comprime un fichero llamado ‘file1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">gunzip file1.gz</strong>: descomprime un fichero llamado ‘file1.gz’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">gzip file1</strong>: comprime un fichero llamado ‘file1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">gzip -9 file1</strong>: comprime con compresión máxima.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rar a file1.rar test_file</strong>: crear un fichero rar llamado ‘file1.rar’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rar a file1.rar file1 file2 dir1</strong>: comprimir ‘file1′, ‘file2′ y ‘dir1′ simultáneamente.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rar x file1.rar</strong>: descomprimir archivo rar.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">unrar x file1.rar</strong>: descomprimir archivo rar.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -cvf archive.tar file1</strong>: crear un tarball descomprimido.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -cvf archive.tar file1 file2 dir1</strong>: crear un archivo conteniendo ‘file1′, ‘file2′ y’dir1′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -tf archive.tar</strong>: mostrar los contenidos de un archivo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -xvf archive.tar</strong>: extraer un tarball.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -xvf archive.tar -C /tmp</strong>: extraer un tarball en / tmp.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -cvfj archive.tar.bz2 dir1</strong>: crear un tarball comprimido dentro de bzip2.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -xvfj archive.tar.bz2</strong>: descomprimir un archivo tar comprimido en bzip2</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -cvfz archive.tar.gz dir1</strong>: crear un tarball comprimido en gzip.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -xvfz archive.tar.gz</strong>: descomprimir un archive tar comprimido en gzip.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">zip file1.zip file1</strong>: crear un archivo comprimido en zip.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">zip -r file1.zip file1 file2 dir1</strong>: comprimir, en zip, varios archivos y directorios de forma simultánea.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">unzip file1.zip</strong>: descomprimir un archivo zip.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="rpm" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Paquetes RPM (Red Hat, Fedora y similares)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -ivh package.rpm</strong>: instalar un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -ivh –nodeeps package.rpm</strong>: instalar un paquete rpm ignorando las peticiones de dependencias.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -U package.rpm</strong>: actualizar un paquete rpm sin cambiar la configuración de los ficheros.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -F package.rpm</strong>: actualizar un paquete rpm solamente si este está instalado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -e package_name.rpm</strong>: eliminar un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qa</strong>: mostrar todos los paquetes rpm instalados en el sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qa | grep httpd</strong>: mostrar todos los paquetes rpm con el nombre “httpd”.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qi package_name</strong>: obtener información en un paquete específico instalado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qg “System Environment/Daemons”</strong>: mostar los paquetes rpm de un grupo software.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -ql package_name</strong>: mostrar lista de ficheros dados por un paquete rpm instalado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qc package_name</strong>: mostrar lista de configuración de ficheros dados por un paquete rpm instalado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -q package_name –whatrequires</strong>: mostrar lista de dependencias solicitada para un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -q package_name –whatprovides</strong>: mostar la capacidad dada por un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -q package_name –scripts</strong>: mostrar los scripts comenzados durante la instalación /eliminación.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -q package_name –changelog</strong>: mostar el historial de revisions de un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qf /etc/httpd/conf/httpd.conf</strong>: verificar cuál paquete rpm pertenece a un fichero dado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qp package.rpm -l</strong>: mostrar lista de ficheros dados por un paquete rpm que aún no ha sido instalado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm –import /media/cdrom/RPM-GPG-KEY</strong>: importar la firma digital de la llave pública.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm –checksig package.rpm</strong>: verificar la integridad de un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -qa gpg-pubkey</strong>: verificar la integridad de todos los paquetes rpm instalados.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -V package_name</strong>: chequear el tamaño del fichero, licencias, tipos, dueño, grupo, chequeo de resumen de MD5 y última modificación.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -Va</strong>: chequear todos los paquetes rpm instalados en el sistema. Usar con cuidado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -Vp package.rpm</strong>: verificar un paquete rpm no instalado todavía.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm2cpio package.rpm | cpio –extract –make-directories *bin</strong>*: extraer fichero ejecutable desde un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpm -ivh /usr/src/redhat/RPMS/`arch`/package.rpm</strong>: instalar un paquete construido desde una fuente rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rpmbuild –rebuild package_name.src.rpm</strong>: construir un paquete rpm desde una fuente rpm.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="yum" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Actualizador de paquetes YUM (Red Hat, Fedora y similares)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum install package_name</strong>: descargar e instalar un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum localinstall package_name.rpm</strong>: este instalará un RPM y tratará de resolver todas las dependencies para ti, usando tus repositorios.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum update package_name.rpm</strong>: actualizar todos los paquetes rpm instalados en el sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum update package_name</strong>: modernizar / actualizar un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum remove package_name</strong>: eliminar un paquete rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum list</strong>: listar todos los paquetes instalados en el sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum search package_name</strong>: Encontrar un paquete en repositorio rpm.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum clean packages</strong>: limpiar un caché rpm borrando los paquetes descargados.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum clean headers</strong>: eliminar todos los ficheros de encabezamiento que el sistema usa para resolver la dependencia.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">yum clean all</strong>: eliminar desde los paquetes caché y ficheros de encabezado.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="deb" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Paquetes Deb (Debian, Ubuntu y derivados)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -i package.deb</strong>: instalar / actualizar un paquete deb.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -r package_name</strong>: eliminar un paquete deb del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -l</strong>: mostrar todos los paquetes deb instalados en el sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -l | grep httpd</strong>: mostrar todos los paquetes deb con el nombre “httpd”</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -s package_name</strong>: obtener información en un paquete específico instalado en el sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -L package_name</strong>: mostar lista de ficheros dados por un paquete instalado en el sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg –contents package.deb</strong>: mostrar lista de ficheros dados por un paquete no instalado todavía.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dpkg -S /bin/ping</strong>: verificar cuál paquete pertenece a un fichero dado.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="apt" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Actualizador de paquetes APT (Debian, Ubuntu y derivados)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-get install package_name</strong>: instalar / actualizar un paquete deb.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-cdrom install package_name</strong>: instalar / actualizar un paquete deb desde un cdrom.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-get update</strong>: actualizar la lista de paquetes.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-get upgrade</strong>: actualizar todos los paquetes instalados.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-get remove package_name</strong>: eliminar un paquete deb del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-get check</strong>: verificar la correcta resolución de las dependencias.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-get clean</strong>: limpiar cache desde los paquetes descargados.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apt-cache search searched-package</strong>: retorna lista de paquetes que corresponde a la serie «paquetes buscados».</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="cont" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Ver el contenido de un fichero</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat file1</strong>: ver los contenidos de un fichero comenzando desde la primera hilera.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tac file1</strong>: ver los contenidos de un fichero comenzando desde la última línea.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">more file1</strong>: ver el contenido a lo largo de un fichero.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">less file1</strong>: parecido al commando ‘more’ pero permite salvar el movimiento en el fichero así como el movimiento hacia atrás.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">head -2 file1</strong>: ver las dos primeras líneas de un fichero.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tail -2 file1</strong>: ver las dos últimas líneas de un fichero.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tail -f /var/log/messages</strong>: ver en tiempo real qué ha sido añadido al fichero.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="texto" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Manipulación de texto</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat file1 file2 .. | command <> file1_in.txt_or_file1_out.txt</strong>: sintaxis general para la manipulación de texto utilizando PIPE, STDIN y STDOUT.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat file1 | command( sed, grep, awk, grep, etc…) > result.txt</strong>: sintaxis general para manipular un texto de un fichero y escribir el resultado en un fichero nuevo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cat file1 | command( sed, grep, awk, grep, etc…) » result.txt</strong>: sintaxis general para manipular un texto de un fichero y añadir resultado en un fichero existente.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">grep Aug /var/log/messages</strong>: buscar palabras “Aug” en el fichero ‘/var/log/messages’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">grep ^Aug /var/log/messages</strong>: buscar palabras que comienzan con “Aug” en fichero ‘/var/log/messages’</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">grep [0-9] /var/log/messages</strong>: seleccionar todas las líneas del fichero ‘/var/log/messages’ que contienen números.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">grep Aug -R /var/log/</strong>*: buscar la cadena “Aug” en el directorio ‘/var/log’ y debajo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">sed ‘s/stringa1/stringa2/g’ example.txt</strong>: reubicar “string1” con “string2” en ejemplo.txt</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">sed ‘/^$/d’ example.txt</strong>: eliminar todas las líneas en blanco desde el ejemplo.txt</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">sed ‘/ *#/d; /^$/d’ example.txt</strong>: eliminar comentarios y líneas en blanco de ejemplo.txt</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">echo ‘esempio’ | tr ‘[:lower:]‘ ‘[:upper:]‘</strong>: convertir minúsculas en mayúsculas.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">sed -e ’1d’ result.txt</strong>: elimina la primera línea del fichero ejemplo.txt</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">sed -n ‘/stringa1/p’</strong>: visualizar solamente las líneas que contienen la palabra “string1”.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="estable" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Establecer caracter y conversión de ficheros</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dos2unix filedos.txt fileunix.txt</strong>: convertir un formato de fichero texto desde MSDOS a UNIX.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">unix2dos fileunix.txt filedos.txt</strong>: convertir un formato de fichero de texto desde UNIX a MSDOS.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">recode ..<acronym title="HyperText Markup Language">HTML</acronym><span class="Apple-converted-space"> </span>< page.txt > page.html</strong>: convertir un fichero de texto en html.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">recode -l | more</strong>: mostrar todas las conversiones de formato disponibles.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="analisis" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Análisis del sistema de ficheros</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">badblocks -v /dev/hda1</strong>: Chequear los bloques defectuosos en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fsck /dev/hda1</strong>: reparar / chequear la integridad del fichero del sistema Linux en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fsck.ext2 /dev/hda1</strong>: reparar / chequear la integridad del fichero del sistema ext 2 en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">e2fsck /dev/hda1</strong>: reparar / chequear la integridad del fichero del sistema ext 2 en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">e2fsck -j /dev/hda1</strong>: reparar / chequear la integridad del fichero del sistema ext 3 en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fsck.ext3 /dev/hda1</strong>: reparar / chequear la integridad del fichero del sistema ext 3 en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fsck.vfat /dev/hda1</strong>: reparar / chequear la integridad del fichero sistema fat en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fsck.msdos /dev/hda1</strong>: reparar / chequear la integridad de un fichero del sistema dos en el disco hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dosfsck /dev/hda1</strong>: reparar / chequear la integridad de un fichero del sistema dos en el disco hda1.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="format" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Formatear un sistema de ficheros</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkfs /dev/hda1</strong>: crear un fichero de sistema tipo Linux en la partición hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mke2fs /dev/hda1</strong>: crear un fichero de sistema tipo Linux ext 2 en hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mke2fs -j /dev/hda1</strong>: crear un fichero de sistema tipo Linux ext3 (periódico) en la partición hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkfs -t vfat 32 -F /dev/hda1</strong>: crear un fichero de sistema FAT32 en hda1.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">fdformat -n /dev/fd0</strong>: formatear un disco flooply.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkswap /dev/hda3</strong>: crear un fichero de sistema swap.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="swap" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Trabajo con la SWAP</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkswap /dev/hda3</strong>: crear fichero de sistema swap.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">swapon /dev/hda3</strong>: activando una nueva partición swap.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">swapon /dev/hda2 /dev/hdb3</strong>: activar dos particiones swap.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="backup" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Salvas (Backup)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dump -0aj -f /tmp/home0.bak /home</strong>: hacer una salva completa del directorio ‘/home’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dump -1aj -f /tmp/home0.bak /home</strong>: hacer una salva incremental del directorio ‘/home’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">restore -if /tmp/home0.bak</strong>: restaurando una salva interactivamente.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rsync -rogpav –delete /home /tmp</strong>: sincronización entre directorios.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rsync -rogpav -e ssh –delete /home ip_address:/tmp</strong>: rsync a través del túnel<span class="Apple-converted-space"> </span><acronym title="Secure Shell">SSH</acronym>.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rsync -az -e ssh –delete ip_addr:/home/public /home/local</strong>: sincronizar un directorio local con un directorio remoto a través de ssh y de compresión.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">rsync -az -e ssh –delete /home/local ip_addr:/home/public</strong>: sincronizar un directorio remoto con un directorio local a través de ssh y de compresión.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dd bs=1M if=/dev/hda | gzip | ssh user@ip_addr ‘dd of=hda.gz’</strong>: hacer una salva de un disco duro en un host remoto a través de ssh.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dd if=/dev/sda of=/tmp/file1</strong>: salvar el contenido de un disco duro a un fichero. (En este caso el disco duro es “sda” y el fichero “file1”).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar -Puf backup.tar /home/user</strong>: hacer una salva incremental del directorio ‘/home/user’.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">( cd /tmp/local/ && tar c . ) | ssh -C user@ip_addr ‘cd /home/share/ && tar x -p’</strong>: copiar el contenido de un directorio en un directorio remoto a través de ssh.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">( tar c /home ) | ssh -C user@ip_addr ‘cd /home/backup-home && tar x -p’</strong>: copiar un directorio local en un directorio remoto a través de ssh.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tar cf – . | (cd /tmp/backup ; tar xf – )</strong>: copia local conservando las licencias y enlaces desde un directorio a otro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find /home/user1 -name ‘*.txt’ | xargs cp -av –target-directory=/home/backup/ –parents</strong>: encontrar y copiar todos los ficheros con extensión ‘.txt’ de un directorio a otro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">find /var/log -name ‘*.log’ | tar cv –files-from=- | bzip2 > log.tar.bz2</strong>: encontrar todos los ficheros con extensión ‘.log’ y hacer un archivo bzip.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dd if=/dev/hda of=/dev/fd0 bs=512 count=1</strong>: hacer una copia del MRB (Master Boot Record) a un disco floppy.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dd if=/dev/fd0 of=/dev/hda bs=512 count=1</strong>: restaurar la copia del MBR (Master Boot Record) salvada en un floppy.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="cdrom" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>CD-ROM</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cdrecord -v gracetime=2 dev=/dev/cdrom -eject blank=fast -force</strong>: limpiar o borrar un cd regrabable.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkisofs /dev/cdrom > cd.iso</strong>: crear una imagen iso de cdrom en disco.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkisofs /dev/cdrom | gzip > cd_iso.gz</strong>: crear una imagen comprimida iso de cdrom en disco.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkisofs -J -allow-leading-dots -R -V “Label CD” -iso-level 4 -o ./cd.iso data_cd</strong>: crear una imagen iso de un directorio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cdrecord -v dev=/dev/cdrom cd.iso</strong>: quemar una imagen iso.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">gzip -dc cd_iso.gz | cdrecord dev=/dev/cdrom -</strong>: quemar una imagen iso comprimida.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mount -o loop cd.iso /mnt/iso</strong>: montar una imagen iso.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd-paranoia -B</strong>: llevar canciones de un cd a ficheros wav.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cd-paranoia – ”-3”</strong>: llevar las 3 primeras canciones de un cd a ficheros wav.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">cdrecord –scanbus</strong>: escanear bus para identificar el canal scsi.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dd if=/dev/hdc | md5sum</strong>: hacer funcionar un md5sum en un dispositivo, como un CD.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="red" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Trabajo con la RED (<span class="Apple-converted-space"> </span><acronym title="Local Area Network">LAN</acronym><span class="Apple-converted-space"> </span>y Wi-Fi)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ifconfig eth0</strong>: mostrar la configuración de una tarjeta de red Ethernet.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ifup eth0</strong>: activar una interface ‘eth0′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ifdown eth0</strong>: deshabilitar una interface ‘eth0′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ifconfig eth0 192.168.1.1 netmask 255.255.255.0</strong>: configurar una dirección IP.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ifconfig eth0 promisc</strong>: configurar ‘eth0′en modo común para obtener los paquetes (sniffing).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">dhclient eth0</strong>: activar la interface ‘eth0′ en modo dhcp.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">route -n</strong>: mostrar mesa de recorrido.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">route add -net 0/0 gw IP_Gateway</strong>: configurar entrada predeterminada.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">route add -net 192.168.0.0 netmask 255.255.0.0 gw 192.168.1.1</strong>: configurar ruta estática para buscar la red ’192.168.0.0/16′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">route del 0/0 gw IP_gateway</strong>: eliminar la ruta estática.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">echo “1” > /proc/sys/net/ipv4/ip_forward</strong>: activar el recorrido ip.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">hostname</strong>: mostrar el nombre del host del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">host<span class="Apple-converted-space"> </span><a href="http://www.example.com/" rel="nofollow" style="color: #0088cc; text-decoration: none;" title="http://www.example.com">www.example.com</a></strong>: buscar el nombre del host para resolver el nombre a una dirección ip(1).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">nslookup<span class="Apple-converted-space"> </span><a href="http://www.example.com/" rel="nofollow" style="color: #0088cc; text-decoration: none;" title="http://www.example.com">www.example.com</a></strong>: buscar el nombre del host para resolver el nombre a una direccióm ip y viceversa(2).</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ip link show</strong>: mostar el estado de enlace de todas las interfaces.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mii-tool eth0</strong>: mostar el estado de enlace de ‘eth0′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ethtool eth0</strong>: mostrar las estadísticas de tarjeta de red ‘eth0′.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">netstat -tup</strong>: mostrar todas las conexiones de red activas y sus PID.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">netstat -tupl</strong>: mostrar todos los servicios de escucha de red en el sistema y sus PID.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tcpdump tcp port 80</strong>: mostrar todo el tráfico<span class="Apple-converted-space"> </span><acronym title="Hyper Text Transfer Protocol">HTTP</acronym>.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iwlist scan</strong>: mostrar las redes inalámbricas.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iwconfig eth1</strong>: mostrar la configuración de una tarjeta de red inalámbrica.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">whois<span class="Apple-converted-space"> </span><a href="http://www.example.com/" rel="nofollow" style="color: #0088cc; text-decoration: none;" title="http://www.example.com">www.example.com</a></strong>: buscar en base de datos Whois.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="samba" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Redes de Microsoft Windows (SAMBA)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">nbtscan ip_addr</strong>: resolución de nombre de red bios.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">nmblookup -A ip_addr</strong>: resolución de nombre de red bios.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">smbclient -L ip_addr/hostname</strong>: mostrar acciones remotas de un host en windows.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="iptable" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Tablas IP (CORTAFUEGOS)</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -L</strong>: mostrar todas las cadenas de la tabla de filtro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t nat -L</strong>: mostrar todas las cadenas de la tabla nat.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -F</strong>: limpiar todas las reglas de la tabla de filtro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t nat -F</strong>: limpiar todas las reglas de la tabla nat.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -X</strong>: borrar cualquier cadena creada por el usuario.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -A INPUT -p tcp –dport telnet -j ACCEPT</strong>: permitir las conexiones telnet para entar.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -A OUTPUT -p tcp –dport http -j DROP</strong>: bloquear las conexiones<span class="Apple-converted-space"> </span><acronym title="Hyper Text Transfer Protocol">HTTP</acronym><span class="Apple-converted-space"> </span>para salir.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -A FORWARD -p tcp –dport pop3 -j ACCEPT</strong>: permitir las conexiones<span class="Apple-converted-space"> </span><acronym title="Post Office Protocol">POP</acronym><span class="Apple-converted-space"> </span>a una cadena delantera.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t filter -A INPUT -j LOG –log-prefix “DROP INPUT”</strong>: registrando una cadena de entrada.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</strong>: configurar un PAT (Puerto de traducción de dirección) en eth0, ocultando los paquetes de salida forzada.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">iptables -t nat -A PREROUTING -d 192.168.0.1 -p tcp -m tcp –dport 22 -j DNAT –to-destination 10.0.0.2:22</strong>: redireccionar los paquetes diriguidos de un host a otro.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="monitor" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Monitoreando y depurando</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">top</strong>: mostrar las tareas de linux usando la mayoría cpu.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ps -eafw</strong>: muestra las tareas Linux.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ps -e -o pid,args –forest</strong>: muestra las tareas Linux en un modo jerárquico.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">pstree</strong>: mostrar un árbol sistema de procesos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">kill -9 ID_Processo</strong>: forzar el cierre de un proceso y terminarlo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">kill -1 ID_Processo</strong>: forzar un proceso para recargar la configuración.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lsof -p $$</strong>: mostrar una lista de ficheros abiertos por procesos.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lsof /home/user1</strong>: muestra una lista de ficheros abiertos en un camino dado del sistema.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">strace -c ls >/dev/null</strong>: mostrar las llamadas del sistema hechas y recibidas por un proceso.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">strace -f -e open ls >/dev/null</strong>: mostrar las llamadas a la biblioteca.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">watch -n1 ‘cat /proc/interrupts’</strong>: mostrar interrupciones en tiempo real.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">last reboot</strong>: mostrar historial de reinicio.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">lsmod</strong>: mostrar el kernel cargado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">free -m</strong>: muestra el estado de la RAM en megabytes.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">smartctl -A /dev/hda</strong>: monitorear la fiabilidad de un disco duro a través de SMART.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">smartctl -i /dev/hda</strong>: chequear si SMART está activado en un disco duro.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tail /var/log/dmesg</strong>: mostrar eventos inherentes al proceso de carga del kernel.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">tail /var/log/messages</strong>: mostrar los eventos del sistema.</div></li></ol><h2 style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #0088cc; font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: lighter; letter-spacing: normal; line-height: 25px; margin: 15px; orphans: auto; padding: 10px 0px; text-align: start; text-indent: 0px; text-rendering: optimizelegibility; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://www.blogger.com/blogger.g?blogID=5479843476826426086" name="otros" style="color: #0088cc; font-weight: lighter; text-decoration: none;"></a>Otros comandos útiles</h2><ol style="-webkit-text-stroke-width: 0px; background-color: #f9f9f9; color: #333333; font-family: 'Source Sans Pro', 'Open Sans', 'Liberation Sans', Verdana, Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin: 0px 0px 10px 25px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">apropos …keyword</strong>: mostrar una lista de comandos que pertenecen a las palabras claves de un programa; son útiles cuando tú sabes qué hace tu programa, pero de sconoces el nombre del comando.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">man ping</strong>: mostrar las páginas del manual on-line; por ejemplo, en un comando ping, usar la opción ‘-k’ para encontrar cualquier comando relacionado.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">whatis …keyword</strong>: muestra la descripción de lo que hace el programa.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">mkbootdisk –device /dev/fd0 `uname -r`</strong>: crear un floppy boteable.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">gpg -c file1</strong>: codificar un fichero con guardia de seguridad GNU.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">gpg file1.gpg</strong>: decodificar un fichero con Guardia de seguridad GNU.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">wget -r<span class="Apple-converted-space"> </span><a href="http://www.example.com/" rel="nofollow" style="color: #0088cc; text-decoration: none;" title="http://www.example.com">www.example.com</a></strong>: descargar un sitio web completo.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">wget -c<span class="Apple-converted-space"> </span><a href="http://www.example.com/file.iso" rel="nofollow" style="color: #0088cc; text-decoration: none;" title="http://www.example.com/file.iso">www.example.com/file.iso</a></strong>: descargar un fichero con la posibilidad de parar la descargar y reanudar más tarde.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">echo ‘wget -c<span class="Apple-converted-space"> </span><a href="http://www.example.com/files.iso" rel="nofollow" style="color: #0088cc; text-decoration: none;" title="http://www.example.com/files.iso">www.example.com/files.iso</a>‘ | at 09:00</strong>: Comenzar una descarga a cualquier hora. En este caso empezaría a las 9 horas.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">ldd /usr/bin/ssh</strong>: mostrar las bibliotecas compartidas requeridas por el programa ssh.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">alias hh=’history’</strong>: colocar un alias para un commando –hh= Historial.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chsh</strong>: cambiar el comando Shell.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">chsh –list-shells</strong>: es un comando adecuado para saber si tienes que hacer remoto en otra terminal.</div></li><li style="font-family: 'Source Sans Pro', 'Open Sans', Verdana, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin: 0px 0px 0px 35px; padding: 0px 10px 0px 0px;"><div><strong style="font-weight: bold;">who -a</strong>: mostrar quien está registrado, e imprimir hora del último sistema de importación, procesos muertos, procesos de registro de sistema, procesos activos producidos por init, funcionamiento actual y últimos cambios del reloj del sistema.</div><div> </div><div> </div><div>fuente : <a href="http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/" target="_blank">http://blog.desdelinux.net/mas-de-400-comandos-para-gnulinux-que-deberias-conocer/</a> </div></li></ol></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com1tag:blogger.com,1999:blog-5479843476826426086.post-6758587419476566102013-10-23T12:43:00.001-04:302013-10-23T12:43:24.827-04:30Problemas con proxy.cgi en python (debian sqeeze)<div dir="ltr" style="text-align: left;" trbidi="on">Para realizar una peticion ajax externa. se necesita un proxy bien sea en php o en python , en mi caso opte por uno en pythony al tratar de correrlo en el servidor me daba este tipo de errores en <br /><br />$ tail -f /var/log/apache2/error.log<br /><br /><br />[Wed Oct 23 12:37:02 2013] [error] [client 130.16.1.15] (2)No such file or directory: exec of '/usr/lib/cgi-bin/proxy.cgi' failed<br />[Wed Oct 23 12:37:02 2013] [error] [client 130.16.1.15] Premature end of script headers: proxy.cgi<br /><br />la solucion fue<br /><br />$ aptitude install dos2unix<br />$ dos2unix /usr/lib/cgi-bin/proxy.cgi<br /><br />y pude ejecutarlo sin ningun problema<br /><br />este proxy.cgi es el que trae openlayers por default</div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com1tag:blogger.com,1999:blog-5479843476826426086.post-85365291161562758282013-09-19T09:41:00.000-04:302014-02-18T18:32:23.141-04:30Crear un Punto de Acceso Wifi con Debian 7 GNU/Linux (Hostap)<div dir="ltr" style="text-align: left;" trbidi="on"><br />Compartir el internet desde ETHERNET a WIFI<br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-zpmg0C_70s0/UjsCZeytMQI/AAAAAAAAARg/dfCb8vjqRdc/s1600/proxy.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="207" src="https://lh3.ggpht.com/-zpmg0C_70s0/UjsCZeytMQI/AAAAAAAAARg/dfCb8vjqRdc/s1600/proxy.jpeg" width="400" /></a></div><br /><br /><br />Cuando instale mi tarjeta de red no la reconocia mi debian 7 por que no tenia los drivers atheros y eso lo vi en el log del system<br /><br /><style type="text/css"> <!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } A:link { so-language: zxx } </style> <br />--> <br /><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>$ tail -f /var/log/syslog</b></span></div><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">Sep 18 14:09:13 la-victoria kernel: [11839.620928] usb 1-4: new high-speed USB device number 4 using ehci_hcd </div><div style="margin-bottom: 0cm;">Sep 18 14:09:13 la-victoria kernel: [11839.769812] usb 1-4: New USB device found, idVendor=0cf3, idProduct=9271 </div><div style="margin-bottom: 0cm;">Sep 18 14:09:13 la-victoria kernel: [11839.769815] usb 1-4: New USB device strings: Mfr=16, Product=32, SerialNumber=48 </div><div style="margin-bottom: 0cm;">Sep 18 14:09:13 la-victoria kernel: [11839.769817] usb 1-4: Product: USB2.0 WLAN </div><div style="margin-bottom: 0cm;">Sep 18 14:09:13 la-victoria kernel: [11839.769818] usb 1-4: Manufacturer: ATHEROS </div><div style="margin-bottom: 0cm;">Sep 18 14:09:13 la-victoria kernel: [11839.769819] usb 1-4: SerialNumber: 12345 </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11839.911442] cfg80211: Calling CRDA to update world regulatory domain </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017059] cfg80211: World regulatory domain updated: </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017062] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017064] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017065] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017067] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017068] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.017070] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.195120] usb 1-4: firmware: agent aborted loading htc_9271.fw (not found?) </div><div style="margin-bottom: 0cm;"><span style="background: #ffff00;">Sep 18 14:09:14 la-victoria kernel: [11840.195214] ath9k_htc: probe of 1-4:1.0 failed with error -22 </span></div><div style="margin-bottom: 0cm;">Sep 18 14:09:14 la-victoria kernel: [11840.195229] usbcore: registered new interface driver ath9k_htc </div><div style="margin-bottom: 0cm;">Sep 18 14:09:18 la-victoria dbus[2798]: [system] Activating service name='org.freedesktop.PackageKit' (using servicehelper) </div><div style="margin-bottom: 0cm;">Sep 18 14:09:18 la-victoria dbus[2798]: [system] Successfully activated service 'org.freedesktop.PackageKit' </div><div style="margin-bottom: 0cm;">Sep 18 14:09:23 la-victoria minissdpd[4314]: 1 new devices added </div><div style="margin-bottom: 0cm;">Sep 18 14:14:31 la-victoria NetworkManager[3155]: <info> kernel firmware directory '/lib/firmware' changed </info></div><div style="margin-bottom: 0cm;">Sep 18 14:14:38 la-victoria kernel: [12164.504705] usb 1-4: USB disconnect, device number 4 </div><div style="margin-bottom: 0cm;">Sep 18 14:14:41 la-victoria kernel: [12167.467941] usb 4-2: new full-speed USB device number 2 using uhci_hcd </div><div style="margin-bottom: 0cm;">Sep 18 14:14:41 la-victoria kernel: [12167.637931] usb 4-2: not running at top speed; connect to a high speed hub </div><div style="margin-bottom: 0cm;">Sep 18 14:14:41 la-victoria kernel: [12167.667918] usb 4-2: New USB device found, idVendor=0cf3, idProduct=9271 </div><div style="margin-bottom: 0cm;">Sep 18 14:14:41 la-victoria kernel: [12167.667923] usb 4-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48 </div><div style="margin-bottom: 0cm;">Sep 18 14:14:41 la-victoria kernel: [12167.667926] usb 4-2: Product: USB2.0 WLAN </div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">yo instale </div><div style="margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>$ dpkg -i Downloads/firmware-atheros_0.36+wheezy.1_all.deb </b></span></div><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">y me reconocio la tarjeta de red luego segui esta guia </div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">y no me funciono </div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><a href="http://enchufado.com/post.php?ID=341">http://enchufado.com/post.php?ID=341</a></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><a href="https://wiki.debian.org/es/Compartir_red_fisica_con_WiFi">https://wiki.debian.org/es/Compartir_red_fisica_con_WiFi</a></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">estos son los programas que necesitaras para que te funcione , que esta en la siguiente </div><div style="margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>$ apt-get install hostapd dnsmasq</b></span></div><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>$ service hostapd stop<br />$ service dnsmasq stop<br />$ update-rc.d hostapd disable<br />$ update-rc.d dnsmasq disable</b></span></div><div style="background: #000000; margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><br /><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><span style="font-size: large;"><span style="background: #ffff00;">esta si me funciono </span></span></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><a href="http://forum.xda-developers.com/showthread.php?t=2009381"><span style="color: maroon;"><span style="font-size: large;">http://forum.xda-developers.com/showthread.php?t=2009381</span></span></a></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;">/etc/hostapd.conf</div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>/etc/hostapd.conf</b></span></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Define interface </div><div style="background: #c0c0c0; margin-bottom: 0cm;">interface=wlan0 </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Select driver </div><div style="background: #c0c0c0; margin-bottom: 0cm;">driver=nl80211 </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Set access point name </div><div style="background: #c0c0c0; margin-bottom: 0cm;">ssid=<span style="background: #ff3366;">Nombre_de_tuRED</span></div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Set access point harware mode to 802.11g </div><div style="background: #c0c0c0; margin-bottom: 0cm;">hw_mode=g </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Set WIFI channel (can be easily changed) </div><div style="background: #c0c0c0; margin-bottom: 0cm;">channel=6 </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Enable WPA2 only (1 for WPA, 2 for WPA2, 3 for WPA + WPA2) </div><div style="background: #c0c0c0; margin-bottom: 0cm;">wpa=2 </div><div style="background: #c0c0c0; margin-bottom: 0cm;">wpa_passphrase=<span style="background: #ff3366;">Password</span></div><div style="background: #c0c0c0; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>/etc/dnsmasq.conf </b></span></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: #c0c0c0; margin-bottom: 0cm;"><span style="background: transparent;">bind-interfaces </span></div><div style="background: #c0c0c0; margin-bottom: 0cm;"><span style="background: transparent;"># Choose interface for binding </span></div><div style="background: #c0c0c0; margin-bottom: 0cm;"><span style="background: transparent;">interface=wlan0 </span></div><div style="background: #c0c0c0; margin-bottom: 0cm;"><span style="background: transparent;"># Specify range of IP addresses for DHCP leasses </span></div><div style="background: #c0c0c0; margin-bottom: 0cm;"><span style="background: transparent;">dhcp-range=192.168.150.2,192.168.150.15 </span></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="background: transparent; margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;"></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">no se te olvide cambiar en start.sh a ppp0 a eth0 y si estas en debian wheezy reemplazar la palabra sudo por vacio en definitiva el start.sh quedaria </div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">Ejecutar start.sh como root</div><div style="margin-bottom: 0cm;"><br /></div><div style="background: #000000; margin-bottom: 0cm;"><span style="color: white;"><b>start.sh</b></span></div><div style="margin-bottom: 0cm;"><br /></div><div style="background: #c0c0c0; margin-bottom: 0cm;">#!/bin/bash </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Start </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Configure IP address for WLAN </div><div style="background: #c0c0c0; margin-bottom: 0cm;">ifconfig wlan0 192.168.150.1 </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Start DHCP/DNS server </div><div style="background: #c0c0c0; margin-bottom: 0cm;">service dnsmasq restart </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Enable routing </div><div style="background: #c0c0c0; margin-bottom: 0cm;">sysctl net.ipv4.ip_forward=1 </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Enable NAT </div><div style="background: #c0c0c0; margin-bottom: 0cm;">iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Run access point daemon </div><div style="background: #c0c0c0; margin-bottom: 0cm;">hostapd /etc/hostapd.conf </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Stop </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Disable NAT </div><div style="background: #c0c0c0; margin-bottom: 0cm;">iptables -D POSTROUTING -t nat -o eth0 -j MASQUERADE </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Disable routing </div><div style="background: #c0c0c0; margin-bottom: 0cm;">sysctl net.ipv4.ip_forward=0 </div><div style="background: #c0c0c0; margin-bottom: 0cm;"># Disable DHCP/DNS server </div><div style="background: #c0c0c0; margin-bottom: 0cm;">service dnsmasq stop </div><div style="background: #c0c0c0; margin-bottom: 0cm;">service hostapd stop</div><div style="background: transparent; margin-bottom: 0cm;"><br /></div></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com1tag:blogger.com,1999:blog-5479843476826426086.post-33936320226293741162013-09-04T14:44:00.002-04:302013-09-19T09:42:19.813-04:30Instalando Android-Studio en debian 7 64 bits<div dir="ltr" style="text-align: left;" trbidi="on">solo tenemos que instalar<br />$ aptitude install ia32-libs lib32asound2 lib32gcc1 lib32ncurses5 lib32stdc++6 lib32z1 libc6-i386 libc6 libc6-dev<br /><br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-jvw0-kytNUQ/UieGcIBtoyI/AAAAAAAAARQ/yhiW7gvv6vA/s1600/studio_splash.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://lh3.ggpht.com/-jvw0-kytNUQ/UieGcIBtoyI/AAAAAAAAARQ/yhiW7gvv6vA/s1600/studio_splash.png" width="400" /></a></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-Jd06ZpliQro/UieGaxQjcNI/AAAAAAAAARI/hNL_Occc28A/s1600/android-studio-2-800x451.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://lh3.ggpht.com/-Jd06ZpliQro/UieGaxQjcNI/AAAAAAAAARI/hNL_Occc28A/s1600/android-studio-2-800x451.jpg" width="320" /></a></div><br /><br /><br /><br /><br /><br />extraido de : <a href="http://www.androidsis.com/configurar-adb-android-en-debianubuntu/" target="_blank">http://www.androidsis.com/configurar-adb-android-en-debianubuntu/</a><br /><br /><a href="http://www.genbetadev.com/desarrollo-aplicaciones-moviles/resolver-problema-de-aapt-del-sdk-android-en-gentoo-linux-puede-que-en-otros-tambien" target="_blank">http://www.genbetadev.com/desarrollo-aplicaciones-moviles/resolver-problema-de-aapt-del-sdk-android-en-gentoo-linux-puede-que-en-otros-tambien</a> </div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com0tag:blogger.com,1999:blog-5479843476826426086.post-59559056918727453962012-12-05T11:50:00.001-04:302013-08-20T13:58:29.179-04:30Encender y Apagar un Server Linux a Distancia<div dir="ltr" style="text-align: left;" trbidi="on">lo primero es instalar wakeonlan y lo segundo es copiar y ssh-rsa seguro en el server remoto.<br /><br />esta guía esta orientada a prender un server especifico cuando mi maquina se encienda y apagarlo cuando mi maquina se apague, todo esto se hará de forma automatica.... acontinuación muestro los pasos a seguir uno a uno ....<br /><br /><div style="background-color: #274e13;">1. ver si tu bios de tu server es compatible :</div><br />BIOS<br /><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #303030; display: inline !important; float: none; font-family: Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Para ver si tu BIOS es compatible, haz lo siguiente:</span><br /><ul style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #303030; font-family: Arial, Helvetica, sans-serif; font-size: 13.142857551574707px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; list-style: disc outside; margin: 0px 0px 0px 20px; orphans: 2; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><li style="margin: 5px 0px 0px; padding: 0px;">Reinicia el PC y entra a la BIOS presionando la tecla necesaria según la BIOS (ESC, F2, F5, F12, DEL)</li><li style="margin: 5px 0px 0px; padding: 0px;">Una vez en la BIOS, entra a las opciones de alimentación (POWER) y activa la opción Wake-on-Lan, o similar.</li></ul><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-VSBGaO5W4a8/UL9sdgnTlgI/AAAAAAAAAO0/g9K0TlkdH2g/s1600/eYcdh5qq-bios-wake-on-lan-s-.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh3.ggpht.com/-VSBGaO5W4a8/UL9sdgnTlgI/AAAAAAAAAO0/g9K0TlkdH2g/s1600/eYcdh5qq-bios-wake-on-lan-s-.png" /> </a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><br /><div style="background-color: #274e13;"> 2. instalar en tu server </div><br /><pre style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #f5f6f7; border: 1px solid rgb(210, 211, 215); color: black; font-family: monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 2em; margin: 2em 1.5em; orphans: 2; outline: 0px; overflow: auto; padding: 1em; text-align: start; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: pre; widows: 2; word-spacing: 0px; word-wrap: break-word;">$ su<br /><span class="anchor" id="line-2" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></span># aptitude install ethtool<br /><span class="anchor" id="line-3" style="border: 0px; font-family: inherit; font-size: 13px; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"></span># ethtool -s eth0 wol g</pre><br /><br />id todo ha ido bien colocas en tu consola lo siguiente<br /><br />root@server:~# <b>ethtool eth0 </b><br />Settings for eth0:<br /> Supported ports: [ TP ]<br /> Supported link modes: 10baseT/Half 10baseT/Full <br /> 100baseT/Half 100baseT/Full <br /> 1000baseT/Half 1000baseT/Full <br /> Supported pause frame use: No<br /> Supports auto-negotiation: Yes<br /> Advertised link modes: 10baseT/Half 10baseT/Full <br /> 100baseT/Half 100baseT/Full <br /> 1000baseT/Half 1000baseT/Full <br /> Advertised pause frame use: Symmetric<br /> Advertised auto-negotiation: Yes<br /> Speed: 1000Mb/s<br /> Duplex: Full<br /> Port: Twisted Pair<br /> PHYAD: 1<br /> Transceiver: internal<br /> Auto-negotiation: on<br /> MDI-X: Unknown<br /><b style="background-color: yellow;"> Supports Wake-on: g</b><br /><b style="background-color: yellow;"> Wake-on: g</b><br /> Current message level: 0x000000ff (255)<br /> drv probe link timer ifdown ifup rx_err tx_err<br /> Link detected: yes<br /><br /><br /><br /> y verificas que salga :<br /><br /><b style="background-color: yellow;"> Supports Wake-on: g</b><br /><b style="background-color: yellow;"> Wake-on: g</b><br /><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: #274e13;"> 3. en tu maquina personal instalas en wakeonlan</div><div style="background-color: white;"><br /></div><div style="background-color: white;"># aptitude install wakeonlan && exit</div><div style="background-color: white;"><br /></div><div style="background-color: #274e13;"><i>4. Instalar open-ssh-server en tu Servidor</i></div><div style="background-color: white;"><br /></div><div style="background-color: white;"># aptitude install openssh-server</div><div style="background-color: white;"></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><span style="background-color: #274e13;">5. crear la llave ssh-rsa en nuestra maquina personal</span></div><div style="background-color: white;"></div><div style="background-color: white;"><br /></div><div style="background-color: white;"># <b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: navy; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ssh-keygen -b 4096 -t rsa</b></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Simplemente presionemos<span class="Apple-converted-space"> </span></span><b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[Enter]</b><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">, un segundo después volvemos a presionar<span class="Apple-converted-space"> </span></span><b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[Enter]</b><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">, y un segundo después volvemos una vez más a presionar</span><b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[Enter]</b><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">. O sea, presionaríamos<span class="Apple-converted-space"> </span></span><b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 18px; margin: 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">[Enter]</b><span style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #666666; display: inline !important; float: none; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-converted-space"> </span>un total de tres (3) veces, solo lo presionamos… no escribimos nada</span></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><span style="background-color: white; color: #666666; display: inline ! important; float: none; font-family: 'Lucida Grande','Lucida Sans Unicode',Verdana,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">y saldra algo como esto al final </span></div><div style="background-color: white;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-2uISj3xmGWg/UL9wAyjyO3I/AAAAAAAAAPE/4jNPEJLpdeQ/s1600/ssh2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh3.ggpht.com/-2uISj3xmGWg/UL9wAyjyO3I/AAAAAAAAAPE/4jNPEJLpdeQ/s1600/ssh2.jpg" /></a></div><div style="background-color: white;"><span style="background-color: white; color: #666666; display: inline ! important; float: none; font-family: 'Lucida Grande','Lucida Sans Unicode',Verdana,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18px; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </span><b style="background-color: white; color: navy; font-family: 'Lucida Grande','Lucida Sans Unicode',Verdana,sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"> </b></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"> luego colocas en la consola, para los dos usuarios, con el que inicias sesion siempre y con root</div><div style="background-color: white;"># ssh-add && ssh-copy-id remoto@192.168.151.201</div><div style="background-color: white;"><br /></div><div style="background-color: white;">colocas la clave para copiar el ssh y listo, ya esta configurado, para que accedamos de manera remota sin que nos pida clave</div><div style="background-color: white;">para probarlo colocas </div><div style="background-color: white;"><br /></div><div style="background-color: white;"># <b style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: navy; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: normal; margin: 0px; orphans: 2; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">ssh remoto@192.168.151.201</b></div><div style="background-color: white;"><br /></div><div style="background-color: white;">y no deberia pedir clave</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;">muy bien ya esta todo casi listo ahora solo falta configurar los cripts que se iniciaran al arrancar mi pc y al apagarse......</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: #274e13;">6 . Creacion de los scripts</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;">para encender : </div><div style="background-color: white;"><br /></div><div style="background-color: white;">dentro de /etc/init.d/encender</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><span style="background-color: #990000; color: white;">#!/bin/bash</span><br /><br style="background-color: #990000; color: white;" /><div style="background-color: #990000;"><span style="background-color: #990000; color: white;">#mac server </span></div><div style="background-color: #990000;"><span style="background-color: #990000; color: white;">wakeonlan </span><span style="background: none repeat scroll 0% 0% rgb(192, 192, 192);">< mac-address </span><span style="background: #c0c0c0;">> </span></div><span style="background-color: #990000; color: white;">exit 0 </span></div><div style="background-color: white;"><br style="background-color: #990000;" /></div><div style="background-color: white;">para apagar :</div><div style="background-color: white;"><br style="background-color: #990000;" /></div><div style="background-color: white;">dentro de /etc/init.d/apagar</div><div style="background-color: white;"><br /></div><div style="background-color: white; color: white;"><span style="background-color: #990000;">#!/bin/bash</span><br /><br style="background-color: #990000;" /><span style="background-color: #990000;">ssh root@192.168.151.201 poweroff </span><br /><span style="background-color: #990000;">exit 0 </span></div><div style="background-color: white;"><br /></div><div style="background-color: white;">$ chmod +x /etc/init.d/apagar</div><div style="background-color: white;">$ chmod +x /etc/init.d/encender </div><div style="background-color: white;"><br /></div><div style="background-color: white;">luego solo hacen falta los ultimos ajustes .colocarlos en runlevels especifico ....</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><span style="background-color: #274e13;">7 . Enlaces simbolicos runlevels</span></div><div style="background-color: white;"><br /></div><div style="background-color: white;">como root, creas los enlaces simbolicos</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: #20124d; color: white;"># ln -s /etc/init.d/encender /etc/rc2.d/S20encender</div><div style="background-color: #20124d; color: white;"><br /></div><div style="background-color: white;"><span style="background-color: #20124d; color: white;"># ln -s /etc/init.d/apagar /etc/rc0.d/K20apagar</span></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;">eso es todo lo que necesitas....... adapta los script a tu gusto de acuerdo lo que necesites hacer.... </div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;">estas son algunas de las fuentes que tome en cuenta para dar con la soluncion !!!! </div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><div style="background-color: white;"><br /></div><br />fuentes:<br /><br /><a href="http://es.kioskea.net/faq/5040-encender-apagar-remotamente-un-pc-shutdown-wake-on-lan">http://es.kioskea.net/faq/5040-encender-apagar-remotamente-un-pc-shutdown-wake-on-lan</a><br /><br /><a href="http://wiki.debian.org/WakeOnLan">http://wiki.debian.org/WakeOnLan</a><br /><br /><a href="http://kzkggaara.wordpress.com/2011/02/14/ssh-sin-contrasena-en-solo-3-pasos/">http://kzkggaara.wordpress.com/2011/02/14/ssh-sin-contrasena-en-solo-3-pasos/</a> <br /><br /><a href="http://oscarcorrea.wordpress.com/2011/11/04/ejecutar-un-script-al-arrancar-linux/">http://oscarcorrea.wordpress.com/2011/11/04/ejecutar-un-script-al-arrancar-linux/</a><br /><br /><a href="http://es.wikipedia.org/wiki/Nivel_de_ejecuci%C3%B3n">http://es.wikipedia.org/wiki/Nivel_de_ejecuci%C3%B3n</a><br /><br /><a href="http://en.wikipedia.org/wiki/Runlevel">http://en.wikipedia.org/wiki/Runlevel</a><br /><br /><a href="http://www.guia-ubuntu.org/index.php?title=Runlevel">http://www.guia-ubuntu.org/index.php?title=Runlevel</a><br /><br /><a href="http://cristianolmos.blogspot.ch/2009/05/ejecutar-un-script-en-el-arranque-de.html">http://cristianolmos.blogspot.ch/2009/05/ejecutar-un-script-en-el-arranque-de.html</a><br /><br /><a href="http://chuchi322.blogspot.ch/2011/07/script-para-apagar-el-pc-en-linux.html">http://chuchi322.blogspot.ch/2011/07/script-para-apagar-el-pc-en-linux.html</a><br /><br /><a href="http://www.taringa.net/posts/linux/10410376/Ejecutar-un-script-al-inicio-de-linux.html" target="_blank">http://www.taringa.net/posts/linux/10410376/Ejecutar-un-script-al-inicio-de-linux.html </a><br /><br /><br /></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com0tag:blogger.com,1999:blog-5479843476826426086.post-22709528167929128962012-11-27T12:03:00.000-04:302012-11-27T12:24:14.609-04:30bbpress full screen (Pantalla completa)<div dir="ltr" style="text-align: left;" trbidi="on">Despues de tanto buscar como colocar bbpress full screen , pude crear una pequeña solucion, solo hay que tocar el archivo page.php de su tema activo<br /><br />que deveria tener algo parecido a esto :<br /><div style="color: white;"><br /></div><style type="text/css"> <!-- @page { margin: 2cm } P { margin-bottom: 0.21cm } </style> <br /><h4 style="text-align: left;"></h4><div style="background: none repeat scroll 0% 0% rgb(192, 192, 192); color: black; font-weight: normal; text-align: left;"><span style="background: #c0c0c0;"><?php get_header(); ?><br /><br /><div id="main-content" class="clearfix"><br /> <div id="left-area"><br /> <?php get_template_part('includes/breadcrumbs','page'); ?><br /> <div id="entries"><br /> <div class="entry post clearfix"><br /> <?php get_template_part('loop','page'); ?><br /> </div> <!-- end .entry --><br /> <br /> <?php if (get_option('aggregate_show_pagescomments') == 'on') comments_template('', true); ?><br /> </div> <!-- end #entries --><br /> </div> <!-- end #left-area --><br /><br /> <?php get_sidebar(); ?> <br /> <br /><?php get_footer(); ?> </span></div><div style="font-weight: normal; text-align: left;"><br /></div><div style="font-weight: normal; text-align: left;"><br /></div><div style="font-weight: normal; text-align: left;"><br /></div><div style="font-weight: normal; text-align: left;">y pulirlo para que cuando vaya a mostrar el foro, quede pantalla completa !!!!</div><div style="font-weight: normal; text-align: left;">solo hay que reemplazar por el codigo siguiente </div><div style="font-weight: normal; text-align: left;"><br /></div><div style="background: none repeat scroll 0% 0% rgb(192, 192, 192); color: black; font-weight: normal; text-align: left;"><span style="background: #c0c0c0;"><?php get_header(); <br /><span style="color: red;">$full="";</span><br /><span style="color: red;">if (is_bbpress())$full=" fullwidth";</span><br />?><br /><br /><div id="main-content" class="clearfix<span style="color: red;"> <?php echo $full?></span>"><br /> <div id="left-area"><br /> <?php get_template_part('includes/breadcrumbs','page'); ?><br /> <div id="entries"><br /> <div class="entry post clearfix"><br /> <?php get_template_part('loop','page'); ?><br /> </div> <!-- end .entry --><br /> <br /> <?php if (get_option('aggregate_show_pagescomments') == 'on') comments_template('', true); ?><br /> </div> <!-- end #entries --><br /> </div> <!-- end #left-area --><br /><br /> <span style="color: red;"><?php if (!is_bbpress()) { get_sidebar(); }?> </span> <br /> <br /><?php get_footer(); ?></span></div><div style="margin-bottom: 0cm;"><br /></div><div style="margin-bottom: 0cm;">lo que esta de color <span style="color: red;">rojo</span> fue lo unico que cambie.. yo estoy usando bbpress 2.2 y me funciono !!! saludos</div></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com0tag:blogger.com,1999:blog-5479843476826426086.post-62200233414347955802012-10-22T12:38:00.003-04:302012-11-27T12:24:36.757-04:30Saltar el proxy Squid con TOR y Privoxy en ubuntu 12.04<div dir="ltr" style="text-align: left;" trbidi="on"><br /><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Muchos sabemos que hoy en día la gran mayoría de las empresas (para no decir que todas) existen restricciones para el acceso a la web. </span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Pero nos preguntamos ¿es posible evitar estas restricciones o filtros? claro que es posible, gracias a la red </span><a href="http://zendproxy.com/bo.php?u=6CEDgCEHEwiO8KmxHAlA4c7%2FGzvzCc8%3D&b=1" style="color: #7d181e; text-decoration: none;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">TOR</span></a><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">.</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">El proceso que explicare a continuación, fue realizado en la distribución Ubuntu 12.04 </span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">(Precise) en conjunto con el navegador web Firefox 10</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Primero que nada procedemos abrir una terminal o consola y nos colocamos como usuario root.</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Podemos realizar una búsqueda de los paquetes</span><b><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> tor</span></i></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> y </span><b><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">privoxy</span></i></b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> de la siguiente manera:</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">#aptitude search tor privoxy</span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="color: red;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">OJO si nos les aparece dichos paquetes, revisen sus repositorios; o de igual manera pueden descargar dichos paquetes desde sus respectivas paginas web: </span></span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">- </span><a href="https://www.torproject.org/" style="color: #7d181e; text-decoration: none;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">TOR</span></a></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">- </span><a href="http://www.privoxy.org/" style="color: #7d181e; text-decoration: none;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">PRIVOXY </span></a></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ya verificado si tenemos nuestros paquetes, los procedemos a instalar:</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">#aptitude install tor privoxy -y</span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Una vez instalados procedemos a configurar el </span><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">privoxy; </span></i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">su archivo de configuración se encuentra en /etc/privoxy, alli buscamos un archivo llamado </span><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">config</span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">En este archivo lo que hacemos es agregar un par de lineas:</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><code><i><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">forward-socks4a / 127.0.0.1:9050 .<br />forward 192.168.0.*/ .</span></b></i></code></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><code><i><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></b></i></code></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Dichas lineas pueden ser agregadas al final del archivo; o si eres unos (as) de esos que le gustan el orden, los puedes colocar en en el punto 5.2</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="color: red;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">MOSCA, con los puntos (.) al final de cada linea, tienes que colocarlos; y la ip de la segunda linea seria la de tu servidor Proxy Squid.</span></span></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-wWLnOPbu8Mk/UIVybWHko5I/AAAAAAAAAMg/oKhwTeZ3zp4/s1600/Captura+de+pantalla+de+2012-10-22+12:10:10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://lh3.ggpht.com/-wWLnOPbu8Mk/UIVybWHko5I/AAAAAAAAAMg/oKhwTeZ3zp4/s400/Captura+de+pantalla+de+2012-10-22+12:10:10.png" width="400" /></a></div><br /><br /><br /><br /><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Como se muestra en la imagen, así debería quedar las 2 lineas que agregaron en el archivo de configuración del </span><i><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">privoxy</span></b></i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">.</span></div><div style="background-color: white; text-align: justify;"><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">y por ultimo colocan al final de este archivo esta informacion </span></div><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"><span style="line-height: 18px;"></span></span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"><br /></span><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">##########################################################################</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">##########################################################################</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">##########################################################################</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">##########################################################################</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">##########################################################################</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"><br /></span><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"># Generally, this file goes in /etc/privoxy/config</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">#</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"># Tor listens as a SOCKS4a proxy here:</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">#forward-socks4a / 127.0.0.1:9050 .</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">confdir /etc/privoxy</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">logdir /var/log/privoxy</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"># actionsfile standard # Internal purpose, recommended</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">actionsfile default.action # Main actions file</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">actionsfile user.action # User customizations</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">filterfile default.filter</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"><br /></span><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"># Don't log interesting things, only startup messages, warnings and errors</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">logfile logfile</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">#jarfile jarfile</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">#debug 0 # show each GET/POST/CONNECT request</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">debug 4096 # Startup banner and warnings</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">debug 8192 # Errors - *we highly recommended enabling this*</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;"><br /></span><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">user-manual /usr/share/doc/privoxy/user-manual</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">listen-address 127.0.0.1:8118</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">toggle 1</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">enable-remote-toggle 0</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">enable-edit-actions 0</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">enable-remote-http-toggle 0</span><br /><span style="color: #333333; font-family: Georgia, Times New Roman, serif; font-size: x-small;">buffer-limit 4096</span><br /><br /><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ya terminado este paso, procedemos a reiniciar los servicios de privoxy y tor</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">#/etc/init.d/privoxy restart</span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">#</span></i><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">/etc/init.d/tor restart</span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Verificamos que el privoxy este funcionando, ejecutando el comando netstat de la siguiente manera:</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">#netstat -an |grep 9050</span></i></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">y nos daría un resultado como el siguiente:</span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">tcp 0 0 127.0.0.1:9050 0.0.0.0:* LISTEN</span></i></div><br /><br /><br /><br /><br /><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Hasta aquí vamos bien; pero nos hace falta un complemento para el Firefox llamado </span><a href="https://www.torproject.org/dist/torbutton/">torbutton-current.xpi</a> <span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">, el cual puede ser descargado directamente de la pagina oficial de </span><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">TOR</span></i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> o simplemente instalarlo directamente desde la web de los<span style="color: blue;"> </span></span><span style="color: blue;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">complementos de mozilla</span><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">.</span></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"><br /></span></div><div style="text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Luego de haber instalado el complemento, te pedirá </span><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">firefox</span></i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"> que lo reinicies; luego del reinicio, en la parte inferior derecha nos muestra el </span><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">torbutton </span></i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">desactivado (como se muestra abajo en la imagen)</span></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-S70cYFNtpUk/UIV06--ZPAI/AAAAAAAAAMw/s2J8QRtCo70/s1600/Captura+de+pantalla+de+2012-10-22+12:20:43.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://lh3.ggpht.com/-S70cYFNtpUk/UIV06--ZPAI/AAAAAAAAAMw/s2J8QRtCo70/s400/Captura+de+pantalla+de+2012-10-22+12:20:43.png" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Ahora solo con darle un clic derecho, nos muestra una pantallita con varias opciones, el cual le damos: </span><b><i><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Cambiar estado del Tor, </span><span class="Apple-style-span" style="font-weight: normal;"><span class="Apple-style-span" style="font-style: normal;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">y nos los coloca como se muestra abajo en la imagen; ademas aprovechamos y verificamos si estamos navegando en la red </span></span><b><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">Tor </span></b><span class="Apple-style-span" style="font-style: normal;"><span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;">verificándolo en el siguiente link:</span></span></span></i></b></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><span class="Apple-style-span" style="color: #7d181e; font-family: Georgia, 'Times New Roman', serif; text-decoration: none;"><a href="http://zendproxy.com/bo.php?u=6CEDgDUYAUWRsa%2BuHBZY68fuViCvAZLwCt%2FbjM%2FVCqI0&b=1" style="color: #7d181e; text-decoration: none;">https://check.torproject.org/?lang=es</a></span></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: center;"></div><div style="background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: justify;"><br /></div><br /><br /><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-2fRNbLvWuuM/UIV1aKFIn8I/AAAAAAAAANA/BzDxkWPOxfA/s1600/torbutton-iceweasel1.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh3.ggpht.com/-2fRNbLvWuuM/UIV1aKFIn8I/AAAAAAAAANA/BzDxkWPOxfA/s1600/torbutton-iceweasel1.jpeg" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">si esta imagen no aparece en verde, se descargar el torbrowser para linux (<span style="background-color: white; color: #222222; font-family: Helvetica; font-size: 24px; line-height: 24px;">Vidalia</span>)y en español si quieren... desde aca <a href="https://www.torproject.org/dist/torbrowser/linux/">https://www.torproject.org/dist/torbrowser/linux/</a> yo me descargue <a href="https://www.torproject.org/dist/torbrowser/linux/tor-browser-gnu-linux-x86_64-2.2.39-3-dev-es-ES.tar.gz">ESTE</a></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">los desconprimes y ejecutas </div><br /><br class="Apple-interchange-newline" /><span style="background-color: black; color: white;">$ sh Descargas/tor-browser_es-ES/start-tor-browser</span><br /><span style="background-color: black; color: white;"><br /></span><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-XojyqumwXro/UIV9Px5HHPI/AAAAAAAAANQ/9zWPIloH3xw/s1600/Captura+de+pantalla+de+2012-10-22+12:56:27.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://lh3.ggpht.com/-XojyqumwXro/UIV9Px5HHPI/AAAAAAAAANQ/9zWPIloH3xw/s400/Captura+de+pantalla+de+2012-10-22+12:56:27.png" width="400" /></a></div><span style="background-color: black; color: white;"><br /></span><br /><span style="background-color: black; color: white;"><br /></span><span style="background-color: black; color: white;">y por ultimo configuran en vidalia esto .. donde XXX seria su ultimo obteto de su proxy</span><br /><span style="background-color: black; color: white;">ejemplo 192.168.0.124</span><br /><div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-jz0LXkwxD_U/UIWF_S0tljI/AAAAAAAAANg/nBnCoXPCybo/s1600/Captura+de+pantalla+de+2012-10-22+13:12:58.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="https://lh3.ggpht.com/-jz0LXkwxD_U/UIWF_S0tljI/AAAAAAAAANg/nBnCoXPCybo/s400/Captura+de+pantalla+de+2012-10-22+13:12:58.png" width="400" /></a></div><span style="background-color: black; color: white;"><br /></span><br />si no se conecta revisan el registro de mensajes y verán cual sea posiblemente el conflicto...<br /><br /><br />otros enlaces que les puede gustar es <a href="http://www.taringa.net/posts/linux/12590272/Instalar-Tor-en-Linux-y-Windows-para-usarlo-con-Chrome.html">Instalar-Tor-en-Linux-y-Windows-para-usarlo-con-Chrome</a><br /><br /><a href="http://linuxkillwin.blogspot.de/2011/04/tor-privacidad-en-internet-o-como.html">tor-privacidad-en-internet</a><br /><br /><br /><br />en caso de que quieran colocar el plugin de flash colocarlo en el directorio<br /><span style="background-color: yellow;">tor-browser_es-ES/App/Firefox/plugins</span><br /><br />y pegar el pluguin del sistema oprativo que esten usando, aca les dejo el de windows y el de linux <a href="http://dl.dropbox.com/u/6203246/plugins.tar.gz" target="_blank">plugin_flash</a><br /><br />Gracias a<br /><a href="http://esdebianfritto.blogspot.com/2012/05/saltar-el-proxy-squid-con-la-red-tor.html">esdebianfritto</a></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com0tag:blogger.com,1999:blog-5479843476826426086.post-5743978490790134722011-12-02T10:34:00.000-04:302011-12-02T10:34:33.845-04:30Edificio en Maracay, Venezuela Por Nestor David Sanchez Boada<a href="http://sketchup.google.com/3dwarehouse/details?mid=bbff9b03ac77abbf924e4a215f7bbf9b&esrc=bl">Edificio en Maracay, Venezuela Por Nestor David Sanchez Boada</a>: <img alt="" src="http://sketchup.google.com/3dwarehouse/images/google-earth-ribbon-small.gif" border="0" /><br /><br /><table><tbody><tr><td><img alt="" src="http://sketchup.google.com/3dwarehouse/download?mid=bbff9b03ac77abbf924e4a215f7bbf9b&rtyp=lt&ctyp=other&ts=1317525462000" /><br /><br /><br />Modelo 3D de<br /><a href="http://www.blogger.com/3dwarehouse/search?uq=0631208552701952361704134&scoring=m">Nestor David Sanchez Boada NDSB 2011</a></td><td valign="top">Modelo realizado por Nestor David Sánchez Boada. Para cualquier información sobre modelado 3D, no dude en contactar al siguiente correo clutch1997_@hotmail.com.</td></tr></tbody></table>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com0tag:blogger.com,1999:blog-5479843476826426086.post-36988757013897950692011-08-19T08:37:00.000-04:302012-10-29T09:23:00.803-04:30Debian - Apt-get : NO_PUBKEY / GPG error<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"><span class="hps">W</span>: <span class="hps">GPG error:</span> <span class="hps">ftp://ftp.debian.org/</span> <span class="hps">versión</span> <span class="hps">de prueba</span>:<br /><span class="hps">Las firmas siguientes no</span> <span class="hps">se pudieron verificar porque</span> <span class="hps">su llave pública no</span> <span class="hps">está disponible</span>: <span class="hps">NO_PUBKEY</span> <span class="hps">010908312D230C5F</span><br /><br /><span class="hps">W</span>: <span class="hps">No hay ninguna</span> <span class="hps">clave pública</span> <span class="hps">disponible para</span> <span class="hps">los identificadores de</span> <span class="hps">clave:</span><br /><span class="hps">010908312D230C5F</span></span><br /><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"><span class="hps"><br /></span></span><br /><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"><span class="hps"><span class="hps">Esta</span> <span class="hps">es una nueva característica</span> <span class="hps">del sistema</span> <span class="hps">apt-get</span> <span class="hps">que garantizan la autenticidad</span> <span class="hps">de los servidores</span> <span class="hps">de actualización de</span> <span class="hps">Debian</span>.<br /><span class="hps">solución</span><br /><br /><span class="hps">Simplemente escriba</span> <span class="hps">los siguientes comandos</span>, teniendo cuidado de <span class="hps">sustituir el número</span> <span class="hps">de la clave que</span> <span class="hps">aparece en el mensaje</span> <span class="hps">de error</span>:</span></span><br /><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif; font-size: 16px;"><span class="hps"><br /></span></span><br /><span class="hps"><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif;"></span></span><br /><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif;">gpg --keyserver pgpkeys.mit.edu --recv-key 010908312D230C5F </span><br /><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif;">gpg -a --export 010908312D230C5F | sudo apt-key add -</span><br /><br /><br /><br /><br /><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif;">o tambien, si hay problemas con algun proxy</span><br /><br /><div style="background-color: black; color: white;"><span class="Apple-style-span" style="font-family: arial, sans-serif;">$ sudo -i</span></div><span class="Apple-style-span" style="color: #333333; font-family: arial, sans-serif;"><span style="background-color: black; color: white;">$ gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 089EBE08314DF160</span><br /> gpg: solicitando clave 314DF160 de hkp servidor keyserver.ubuntu.com<br /> gpg: /root/.gnupg/trustdb.gpg: se ha creado base de datos de confianza<br /> gpg: clave 314DF160: clave pública "Launchpad ubuntugis-stable" importada<br /> gpg: Cantidad total procesada: 1 <br /> gpg: importadas: 1 (RSA: 1)<br /><span style="background-color: black; color: white;">$ gpg --export --armor 089EBE08314DF160 | apt-key add -</span><br /> OK<br /> </span></div>jeanhttp://www.blogger.com/profile/11278528660099830635noreply@blogger.com1