Ubuntu https://www.keopx.net/tag/ubuntu es Instalar certificados de Let's Encrypt - Free SSL/TLS Certificates en Debian / Ubuntu https://www.keopx.net/blog/instalar-certificados-de-lets-encrypt-free-ssltls-certificates-en-debian-ubuntu <span class="field field--name-title field--type-string field--label-hidden">Instalar certificados de Let&#039;s Encrypt - Free SSL/TLS Certificates en Debian / Ubuntu</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Activamos ssl para apache:</p> <pre> <code class="language-bash">a2enmod ssl</code></pre><p>Añadimos a nuestro site la configuración correcta:</p> <pre> <code class="language-apache">... &lt;VirtualHost *:443&gt; ServerAdmin keopx@keopx.net ServerName www.keopx.net DocumentRoot /var/www/keopx.net/docroot &lt;Directory /var/www/keopx.net/docroot/&gt; # Options FollowSymLinks Options SymLinksIfOwnerMatch AllowOverride All Require all granted &lt;/Directory&gt; ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On SSLCertificateFile /etc/letsencrypt/live/www.keopx.net/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/www.keopx.net/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf &lt;/VirtualHost&gt; &lt;VirtualHost *:80&gt; ServerName keopx.net Redirect 301 / http://www.keopx.net/ &lt;/VirtualHost&gt; ....</code></pre><p>Procedemos a instalar <strong>letsencrypt:</strong></p> <pre> <code class="language-bash">cd /opt git clone https://github.com/certbot/certbot.git letsencrypt</code></pre><p>Configuramos <strong>letsencrypt</strong>:</p> <pre> <code class="language-bash">nano /etc/letsencrypt/keopx.ini</code></pre><pre> <code class="language-ini">authenticator = webroot webroot-path = /var/www/keopx.net/docroot renew-by-default agree-dev-preview agree-tos email = keopx@keopx.net</code></pre><p>Procedemos a crear el certificado (duran 3 meses):</p> <pre> <code class="language-bash">/opt/letsencrypt/certbot-auto --config /etc/letsencrypt/keopx.ini --user-agent letsencrypt-ubuntu-webroo -d www.keopx.net certonly</code></pre><p>Ahora es necesario reiniciar apache:</p> <pre> <code class="language-bash">service apache2 reload</code></pre><h2>Automatizar renovaciones automáticas:</h2> <p>crontab -e</p> <pre> <code class="language-bash">6 0 1 * * /opt/letsencrypt/certbot-auto --config /etc/letsencrypt/phpmyadmin.isarea.ini --user-agent letsencrypt-ubuntu-webroot -d phpmyadmin.isarea.com certonly &amp;&amp; service apache2 reload</code></pre><p> </p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Vie, 09/12/2016 - 19:41</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/letsencrypt" hreflang="es">letsencrypt</a></div> <div class="field__item"><a href="/categoria/sistemas" hreflang="es">Sistemas</a></div> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/categoria/apache2" hreflang="es">Apache2</a></div> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/ssl" hreflang="es">SSL</a></div> <div class="field__item"><a href="/tag/apache" hreflang="es">apache</a></div> <div class="field__item"><a href="/tag/sistemas" hreflang="es">Sistemas</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title">Comentarios</h2> <article role="article" data-comment-user-id="0" id="comment-2406" about="/comment/2406" typeof="schema:Comment" class="comment js-comment by-anonymous clearfix"> <span class="hidden" data-comment-timestamp="1481529425"></span> <footer class="comment__meta"> <article typeof="schema:Person" about="/user/0" class="profile"> </article> <p class="comment__author"><span rel="schema:author"><a rel="nofollow" href="http://front.id" lang="" typeof="schema:Person" property="schema:name" datatype="" class="username">Capy (no verificado)</a></span> </p> <p class="comment__time">Sáb, 10/12/2016 - 15:43 <span property="schema:dateCreated" content="2016-12-10T14:43:06+00:00" class="rdf-meta hidden"></span> </p> <p class="comment__permalink"><a href="/comment/2406#comment-2406" hreflang="es">Enlace permanente</a></p> </footer> <div class="comment__content"> <h3 property="schema:name" datatype=""><a href="/comment/2406#comment-2406" class="permalink" rel="bookmark" hreflang="es">Muy bueno</a></h3> <div property="schema:text" class="clearfix text-formatted field field--name-comment-body field--type-text-long field--label-hidden field__item"><p>Gracias tenía agendado hacer esto en mi web y todavía no lo había buscado. A los favoritos!</p> </div> <drupal-render-placeholder callback="comment.lazy_builders:renderLinks" arguments="0=2406&amp;1=default&amp;2=es&amp;3=" token="XKZRmaQE02eOBhDwVf2FSfXRCPk_vEfNYu7q-LsQSy4"></drupal-render-placeholder> </div> </article> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=268&amp;2=field_comments&amp;3=comment" token="ViRdZ4E193bGeokwU7Vx3JhRTMv5dcCOesVVnXH3wco"></drupal-render-placeholder> </section> Fri, 09 Dec 2016 18:41:34 +0000 keopx 268 at https://www.keopx.net MySQL UTF-8 por defecto Debian / Ubuntu https://www.keopx.net/blog/mysql-utf-8-por-defecto-debian-ubuntu <span class="field field--name-title field--type-string field--label-hidden">MySQL UTF-8 por defecto Debian / Ubuntu</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Sabemos que el tema de la codificación de la base de datos es importante para que no haya en el futuro problemas de codificación, por lo que la recomendación, yo diría obligatorio, es utilizar UTF-8. Para ello editamos el fichero my.cfg:</p> <pre class="brush: bash"> sudo nano /etc/mysql/my.cnf </pre><p>Buscamos [mysqld] y escribimos lo siguiente:</p> <pre class="brush: bash"> [mysqld] character-set-server=utf8 collation-server=utf8_general_ci </pre><p>Despues reinicioamos el servidor MySQL</p> <pre class="brush: bash"> sudo service mysql restart </pre><p>Referencias:</p> <ul><li><a href="http://dev.mysql.com/doc/refman/5.0/en/charset-applications.html">http://dev.mysql.com/doc/refman/5.0/en/charset-applications.html</a></li> </ul></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sáb, 25/01/2014 - 08:20</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/mysql" hreflang="es">MySQL</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/mysql" hreflang="es">Mysql</a></div> <div class="field__item"><a href="/tag/base-de-datos" hreflang="es">Base de datos</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=244&amp;2=field_comments&amp;3=comment" token="zXg03-m4DbhzggrJmz7GD7oqbCYsyn7vNG7iWwzAj7s"></drupal-render-placeholder> </section> Sat, 25 Jan 2014 07:20:28 +0000 keopx 244 at https://www.keopx.net Actualizar plugin de flash para chromium y firefox/iceweasel. https://www.keopx.net/blog/actualizar-plugin-de-flash-para-chromium-y-firefoxiceweasel <span class="field field--name-title field--type-string field--label-hidden">Actualizar plugin de flash para chromium y firefox/iceweasel.</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><pre class="brush: bash"> sudo cp -r usr/* /usr</pre><pre class="brush: bash"> sudo cp libflashplayer.so /usr/lib/chromium/plugins/ sudo cp libflashplayer.so /usr/lib/opera/plugins/ cp libflashplayer.so /home/keopx/.mozilla/plugins/</pre><p>Java</p> <pre class="brush: bash"> sudo cp /usr/lib/jvm/jdk1.7.0_05/jre/lib/amd64/libnpjp2.so /usr/lib/chromium/plugins/ sudo cp /usr/lib/jvm/jdk1.7.0_05/jre/lib/amd64/libnpjp2.so /usr/lib/opera/plugins/ cp libflashplayer.so /home/keopx/.mozilla/plugins/ </pre></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sáb, 14/07/2012 - 11:42</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/flash" hreflang="es">Flash</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=232&amp;2=field_comments&amp;3=comment" token="dFLQa2r-a4WT6CTBDgJc66pOYmliYwUUvkSXiRhbvDM"></drupal-render-placeholder> </section> Sat, 14 Jul 2012 09:42:22 +0000 keopx 232 at https://www.keopx.net Activar y desactivar root en Debian GNU/Linux https://www.keopx.net/blog/activar-y-desactivar-root-en-debian-gnulinux <span class="field field--name-title field--type-string field--label-hidden">Activar y desactivar root en Debian GNU/Linux</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Pues la solución es bastante sencilla.</p> <p>No suele ser muy habitual tener que realizar esta tarea, pero puede ser necesario habilitar el usuario <strong>root</strong> para realizar algunas tareas. De esta forma sencilla se puede habilitar y deshabilitar el usuario <strong>root</strong>.</p> <p> </p> <p>Habilitar root:</p> <pre> sudo passwd root</pre><p>Deshabilitar root:</p> <pre> sudo passwd -l root</pre></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mié, 25/01/2012 - 17:44</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/terminal" hreflang="es">Terminal</a></div> <div class="field__item"><a href="/tag/consola" hreflang="es">consola</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=227&amp;2=field_comments&amp;3=comment" token="QTIV-GLktq5FXYFS_aPfjYc_mbnBJN7LWZFN-DpvnN4"></drupal-render-placeholder> </section> Wed, 25 Jan 2012 16:44:47 +0000 keopx 227 at https://www.keopx.net Instalar flash player 64 bits en Debian/Ubuntu https://www.keopx.net/blog/instalar-flash-player-64-bits-en-debianubuntu <span class="field field--name-title field--type-string field--label-hidden">Instalar flash player 64 bits en Debian/Ubuntu</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Vamos a instalar de forma sencilla flash player 64 bits de forma nativa en Debian testing (Wheezy) y/o Ubuntu. Para ello el sistema operativo tiene que estar ser de 64 bits.</p> <pre>$ wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.0.1.152/install_flash_player_11_linux.x86_64.tar.gz $ tar xvzf install_flash_player_11_linux.x86_64.tar.gz $ mv libflashplayer.so ~/.mozilla/plugins/ $ sudo cp -r usr/* /usr/ $ rm -r usr/ </pre><p>De esta forma sencilla ya tendremos flash 64 bits de forma nativa en linux.</p> <p>Para conprobar que todo esta correcto podemos visitar la siguiente pagina:</p> <p><a href="http://www.adobe.com/software/flash/about/">http://www.adobe.com/software/flash/about/</a></p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Jue, 06/10/2011 - 11:23</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> <div class="field__item"><a href="/tag/flash" hreflang="es">Flash</a></div> <div class="field__item"><a href="/tag/amd64" hreflang="es">amd64</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=226&amp;2=field_comments&amp;3=comment" token="pbSmCa5Y2ipm15vC23YXVm3Bo3QRh45d0t4WB15Urd8"></drupal-render-placeholder> </section> Thu, 06 Oct 2011 09:23:15 +0000 keopx 226 at https://www.keopx.net Unir zip de varias particiones en un fichero en Linux https://www.keopx.net/blog/unir-zip-de-varias-particiones-en-un-fichero-en-linux <span class="field field--name-title field--type-string field--label-hidden">Unir zip de varias particiones en un fichero en Linux</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>En caso de tener un fichero zip divido en varios ficheros y necesitamos descomprimirlo, podemos realizar la siguiente operacion:</p> <pre> $ cat file.zip.001 file.zip.002 file.zip.003 file.zip.004 file.zip.005 &gt; file_complete.zip $ unzip file_complete.zip </pre><p>Con esto ya abriamos unificado el zip y posteriormente descomprimirlo.</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Lun, 20/06/2011 - 10:50</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/zip" hreflang="es">Zip</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=222&amp;2=field_comments&amp;3=comment" token="kLBjzF5a4I_4UpWys2CY_1AVWWKzdMHgZD7UYVRMGFI"></drupal-render-placeholder> </section> Mon, 20 Jun 2011 08:50:32 +0000 keopx 222 at https://www.keopx.net https://www.keopx.net/blog/unir-zip-de-varias-particiones-en-un-fichero-en-linux#comments Cambiar las preferencias de java (alternatives) en Debian/Ubuntu https://www.keopx.net/blog/cambiar-las-preferencias-de-java-alternatives-en-debianubuntu <span class="field field--name-title field--type-string field--label-hidden">Cambiar las preferencias de java (alternatives) en Debian/Ubuntu</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>En Debian nos encontramos que la maquina virtual de java por defecto es OpenJDK, pero debido a muchos desarrollos es necesario utilizar otra maquina de java, en casi todos ellos Sun/Oracle JDK.</p> <p>Veamos como cambiar esos parametros para su funcionamiento.</p> <p>Si accedemos a la ruta:</p> <pre line="1" lang="bash" xml:lang="bash">$ cd /etc/alternatives </pre><p>Y ejecutamos:</p> <pre line="1" lang="bash" xml:lang="bash">$ ls -la ja*</pre><p>Y veremos el siguiente resultado:</p> <pre line="1" lang="bash" xml:lang="bash">java -&gt; /usr/lib/jvm/java-6-openjdk/jre/bin/java </pre><p>Para modificarlo es necesario ejecutar los siguiente comandos.</p> <p>Listar las maquinas virtuales java:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo update-java-alternatives -l java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk java-6-sun 63 /usr/lib/jvm/java-6-sun </pre><p>Procedemos a cambiar de maquina virtual java:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo update-java-alternatives -s java-6-sun </pre><p>Veremos como ahora java apunta a la maquina sun.</p> <pre line="1" lang="bash" xml:lang="bash">java -&gt; /usr/lib/jvm/java-6-sun/jre/bin/java </pre><p> </p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Mié, 09/03/2011 - 16:28</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/java" hreflang="es">Java</a></div> <div class="field__item"><a href="/tag/jvm" hreflang="es">jvm</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=216&amp;2=field_comments&amp;3=comment" token="-zpNOF41bO2d5cJYfEFQNntdbo4O2daBnbArtJeeKYU"></drupal-render-placeholder> </section> Wed, 09 Mar 2011 15:28:49 +0000 keopx 216 at https://www.keopx.net Instalación y configuración de SAI-UPS APC https://www.keopx.net/blog/instalacion-y-configuracion-de-sai-ups-apc <span class="field field--name-title field--type-string field--label-hidden">Instalación y configuración de SAI-UPS APC</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>En principio en gnome el servicio <strong>ups-monitor</strong> nos mantiene controlado el sistema SAI y nos permite configurarlo en caso de que la red eléctrica falle. <strong>Siempre que se haya iniciado una sesión en el equipo</strong>, de no ser así no mantendremos el control. Para solucionar esto en equipos servidor tenemos un paquete para esto, <strong>apcupsd</strong>:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo aptitude install apcupsd</pre><p>Cambiamos los parámetros en:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.orig $ sudo nano /etc/apcupsd/apcupsd.conf</pre><p>Cambiamos</p> <pre line="1" lang="bash" xml:lang="bash">UPSCABLE smart</pre><p>Por</p> <pre line="1" lang="bash" xml:lang="bash">UPSCABLE usb</pre><p>Y más abajo tambien modificamos <em>UPSTYPE</em> y <em>DEVICE</em>: Cambiamos:</p> <pre line="1" lang="bash" xml:lang="bash">UPSTYPE apcsmart DEVICE /dev/ttys0</pre><p>Por:</p> <pre line="1" lang="bash" xml:lang="bash">UPSTYPE usb DEVICE</pre><p>* Si en <strong>DEVICE</strong> lo dejamos <strong>blanco</strong>. Resultado similar al siguiente:</p> <pre line="1" lang="bash" xml:lang="bash">## apcupsd.conf ## UPSNAME Back-900 UPSCABLE usb UPSTYPE usb DEVICE POLLTIME 60 LOCKFILE /var/lock</pre><p>Reiniciamos el servicio:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo /etc/init.d/apcupsd restart</pre><p>Arrancamos el servicio a mano:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo /sbin/apcupsd</pre><p>Probamos la configuración:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo /sbin/apcaccess status</pre><p>Nos devolverá algo similar a esto:</p> <pre line="1" lang="bash" xml:lang="bash">APC : 001,037,0931 DATE : 2011-01-30 18:39:34 +0100 HOSTNAME : server-host VERSION : 3.14.8 (16 January 2010) debian UPSNAME : Back-900 CABLE : USB Cable MODEL : Back-UPS BR 900GI UPSMODE : Stand Alone STARTTIME: 2011-01-30 18:39:16 +0100 STATUS : ONLINE LINEV : 215.0 Volts LOADPCT : 27.0 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 37.2 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds SENSE : Medium LOTRANS : 176.0 Volts HITRANS : 294.0 Volts ALARMDEL : Always BATTV : 27.0 Volts LASTXFER : Unacceptable line voltage changes NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A SELFTEST : NO STATFLAG : 0x07000008 Status Flag MANDATE : 2010-08-14 SERIALNO : 3B1022X43411 BATTDATE : 2010-08-14 NOMINV : 230 Volts NOMBATTV : 24.0 Volts NOMPOWER : 540 Watts FIRMWARE : 879.L1d.I USB FW:L1 APCMODEL : Back-UPS BR 900GI END APC : 2011-01-30 18:39:35 +0100</pre><p>Si reiniciamos nos encontraremos con el siguiente mensaje:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo /sbin/apcaccess status Error contacting apcupsd @ localhost:3551: Connection refused</pre><p>Para que se inicia de forma automatica debemos cambiar el siguiente parametro:</p> <pre line="1" lang="bash" xml:lang="bash">$ sudo nano /etc/default/apcupsd</pre><p>Y dejamos así:</p> <pre line="1" lang="bash" xml:lang="bash"># Apcupsd-devel internal configuration APCACCESS=/sbin/apcaccess #ISCONFIGURED=no ISCONFIGURED=yes</pre><p><strong>Ya tenemos automatizado!!!</strong> Relacionados:</p> <ul><li><a href="http://flossexperiences.wordpress.com/2008/10/26/configuring-apcupsd/">http://flossexperiences.wordpress.com/2008/10/26/configuring-apcupsd/</a></li> <li><a href="http://failserver.nl/blog/2009/05/howto-install-apc-ups-750-series-on-debian-lenny/">http://failserver.nl/blog/2009/05/howto-install-apc-ups-750-series-on-debian-lenny/</a></li> <li><a href="http://www.imacat.idv.tw/cgi-bin/man/man2html?apcaccess+8">Explicación de las variables</a></li> </ul></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Lun, 31/01/2011 - 18:11</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/consola" hreflang="es">consola</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/linux" hreflang="es">Linux</a></div> <div class="field__item"><a href="/tag/sai" hreflang="es">SAI</a></div> <div class="field__item"><a href="/tag/seguridad" hreflang="es">seguridad</a></div> <div class="field__item"><a href="/tag/server" hreflang="es">server</a></div> <div class="field__item"><a href="/tag/terminal" hreflang="es">Terminal</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> <div class="field__item"><a href="/tag/ups" hreflang="es">UPS</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=210&amp;2=field_comments&amp;3=comment" token="0PdQYdmavv6Ekq8vzUnpjZkd-Q2RC_Jerk5fA_ytrmw"></drupal-render-placeholder> </section> Mon, 31 Jan 2011 17:11:36 +0000 keopx 210 at https://www.keopx.net Convertir ogg y mp3 en Debian/Ubuntu con soundconverter https://www.keopx.net/blog/convertir-ogg-y-mp3-en-debianubuntu-con-soundconverter <span class="field field--name-title field--type-string field--label-hidden">Convertir ogg y mp3 en Debian/Ubuntu con soundconverter</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Antes de nada es necesario instalar los codec <strong>ffmpeg</strong>. Instalar soundconverter:</p> <pre line="1" lang="bash" xml:lang="bash">sudo aptitude install soundkonverter</pre><p>Ahora ya podemos pasar a recodificar con el interface. </p> <!--break--><p>Otra opción para pasar de flv a avi o mpeg es la siguiente:</p> <pre line="1" lang="bash" xml:lang="bash">ffmpeg -i archivo.flv nuevo_archivo.avi</pre><pre line="1" lang="bash" xml:lang="bash">ffmpeg -i archivo.flv nuevo_archivo.mpeg</pre><p><strong>Relacionado</strong>:</p> <ul><li><a href="http://www.keopx.net/blog/convertir-videos-flv-a-ogg-o-mp3-en-debianubuntu/">http://www.keopx.net/blog/convertir-videos-flv-a-ogg-o-mp3-en-debianubuntu/</a></li> </ul></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Sáb, 30/10/2010 - 09:01</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/consola" hreflang="es">consola</a></div> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/gnu-linux" hreflang="es">GNU Linux</a></div> <div class="field__item"><a href="/tag/linux" hreflang="es">Linux</a></div> <div class="field__item"><a href="/tag/sonido" hreflang="es">Sonido</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> <div class="field__item"><a href="/tag/video" hreflang="es">Video</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=198&amp;2=field_comments&amp;3=comment" token="MydaEgXNRj1HQh1SPLc5z4cWausTtxnWr7W3huCyPXU"></drupal-render-placeholder> </section> Sat, 30 Oct 2010 07:01:48 +0000 keopx 198 at https://www.keopx.net Añadir usuario al grupo de administración de impresora en Debian Squeeze (testing) https://www.keopx.net/blog/anadir-usuario-al-grupo-de-administracion-de-impresora-en-debian-squeeze-testing <span class="field field--name-title field--type-string field--label-hidden">Añadir usuario al grupo de administración de impresora en Debian Squeeze (testing)</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Para administrar las impresoras desde la web de CUPS, <a href="http://localhost:631">http://localhost:631</a> es necesario el añadir el usuario al grupo de administración de impresoras, siempre y cuando el usuario ya exista.</p> <pre lang="bash" line="1" xml:lang="bash"> sudo usermod -a -G lpadmin keopx</pre></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/keopx" typeof="schema:Person" property="schema:name" datatype="">keopx</span></span> <span class="field field--name-created field--type-created field--label-hidden">Vie, 17/09/2010 - 09:54</span> <div class="field field--name-field-tax-cat field--type-entity-reference field--label-above"> <div class="field__label">Categoria</div> <div class="field__items"> <div class="field__item"><a href="/categoria/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/categoria/sistemas" hreflang="es">Sistemas</a></div> <div class="field__item"><a href="/categoria/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <div class="field field--name-field-tax-tag field--type-entity-reference field--label-above"> <div class="field__label">Tag</div> <div class="field__items"> <div class="field__item"><a href="/tag/debian" hreflang="es">Debian</a></div> <div class="field__item"><a href="/tag/sistemas" hreflang="es">Sistemas</a></div> <div class="field__item"><a href="/tag/ubuntu" hreflang="es">Ubuntu</a></div> </div> </div> <section class="field field--name-field-comments field--type-comment field--label-above comment-wrapper"> <h2 class="title comment-form__title">Añadir nuevo comentario</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=194&amp;2=field_comments&amp;3=comment" token="5EQxVjZgOSAS5DEI7td-HAwujynd2AzBoLjPj5cTZOs"></drupal-render-placeholder> </section> Fri, 17 Sep 2010 07:54:47 +0000 keopx 194 at https://www.keopx.net