<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7581195575588609067</id><updated>2015-04-27T19:26:30.893-05:00</updated><category term="linux"/><category term="php"/><category term="centos"/><category term="comandos"/><category term="imprimir"/><category term="jquery"/><category term="mysql"/><category term="Apache"/><category term="fiscal"/><category term="actualizaciones"/><category term="antivirus"/><category term="bodas"/><category term="c-sharp"/><category term="cuidado de la pc"/><category term="electricidad"/><category term="esc/pos"/><category term="escritorio remoto"/><category term="ftp"/><category term="lado del cliente"/><category term="matrimonio"/><category term="nfs"/><category term="ordenamientos"/><category term="panda"/><category term="partes"/><category term="samba"/><category term="ssh"/><category term="tarjeta"/><category term="tierra fisica"/><category term="tiquetera"/><category term="tooltip"/><category term="troyano"/><category term="virus"/><category term="vsftp"/><title type='text'>Blog Sistemas Web - Sergio Zegarra</title><subtitle type='html'>Blog de tareas (proyectos, sistemas) desarrolladas, video tutoriales, clases en video, aplicaciones, demos, codigo fuente y mas</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-2299788831141064882</id><published>2013-05-06T00:04:00.004-05:00</published><updated>2013-05-06T00:04:59.666-05:00</updated><title type='text'>BLOQUEAR TOCHPAD MOUSE LAPTOP</title><content type='html'>&lt;a href=&quot;http://usemoslinux.blogspot.com/2012/11/como-activardesactivar-el-touchpad.html&quot;&gt;http://usemoslinux.blogspot.com/2012/11/como-activardesactivar-el-touchpad.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Muy buen articulo para bloquear el touch Pad (mouse panel) de las Laptop</content><link rel="related" href="http://usemoslinux.blogspot.com/2012/11/como-activardesactivar-el-touchpad.html" title="BLOQUEAR TOCHPAD MOUSE LAPTOP"/><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/2299788831141064882/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2013/05/bloquear-tochpad-mouse-laptop.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/2299788831141064882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/2299788831141064882'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2013/05/bloquear-tochpad-mouse-laptop.html' title='BLOQUEAR TOCHPAD MOUSE LAPTOP'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-6573383673730343852</id><published>2012-08-18T02:30:00.001-05:00</published><updated>2012-08-21T16:55:27.972-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Encontrar Domingos de un Mes - PHP</title><content type='html'>&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;
Para los que estaban buscando..&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Saber cuantos domingos hay dentro de un mes cualquiera..&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;También&amp;nbsp;saber que&amp;nbsp;días&amp;nbsp;caen domingo dentro de una mes...&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Encontrar todos los domingos del año...&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Encontrar un&amp;nbsp;día&amp;nbsp;de la semana entre fechas, o mes o anual&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; text-align: start;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot;&gt;&amp;lt;?php
&lt;span class=&quot;comment comment_block comment_block_php&quot; style=&quot;color: #888888;&quot;&gt;/** Sergio Zegarra Corne
 *  tareasyclases.com */&lt;/span&gt;

&lt;span class=&quot;meta meta_function meta_function_php&quot;&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;domingos_del_mes&lt;/span&gt;(&lt;span class=&quot;meta meta_function meta_function_arguments meta_function_arguments_php&quot;&gt;&lt;span class=&quot;meta meta_function meta_function_argument meta_function_argument_no-default meta_function_argument_no-default_php&quot;&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$mes&lt;/span&gt;&lt;/span&gt;,&lt;span class=&quot;meta meta_function meta_function_argument meta_function_argument_no-default meta_function_argument_no-default_php&quot;&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$anho&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;)&lt;/span&gt;{
    
    &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;strtotime&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$anho&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;-&lt;/span&gt;&#39;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$mes&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;-01&lt;/span&gt;&#39;&lt;/span&gt;); 
    &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha2&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;strtotime&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$anho&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;-&lt;/span&gt;&#39;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$mes&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;-&lt;/span&gt;&#39;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;date&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;t&lt;/span&gt;&quot;&lt;/span&gt;,&lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;mktime&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$mes&lt;/span&gt;,&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$anho&lt;/span&gt;))); 
    
    &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt;;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha2&lt;/span&gt;;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;strtotime&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;+1 day &lt;/span&gt;&#39;&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;date&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Y-m-d&lt;/span&gt;&#39;&lt;/span&gt;,&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt;))){ 
        &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;((&lt;span class=&quot;support support_function support_function_builtin_functions support_function_builtin_functions_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;strcmp&lt;/span&gt;(&lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;date&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;D&lt;/span&gt;&#39;&lt;/span&gt;,&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt;),&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Sun&lt;/span&gt;&#39;&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;)){
            &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$do&lt;/span&gt;[] &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_function support_function_php_date support_function_php_date_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;date&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;Y-m-d&lt;/span&gt;&#39;&lt;/span&gt;,&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$fecha1&lt;/span&gt;);
        }
    }

    &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$do&lt;/span&gt;;
}

&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//recorer todos los meses del año&lt;/span&gt;
&lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;for&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$d&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$d&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot;&gt;&amp;lt;=&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;12&lt;/span&gt;;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$d&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_increment-decrement keyword_operator_increment-decrement_php&quot;&gt;++&lt;/span&gt;){

    &lt;span class=&quot;support support_function support_function_basic_functions support_function_basic_functions_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;print_r&lt;/span&gt;(&lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot; style=&quot;background-color: white; font-size: 9pt; line-height: 1.3em;&quot;&gt;&lt;span class=&quot;meta meta_function meta_function_php&quot;&gt;&lt;span class=&quot;entity entity_name entity_name_function entity_name_function_php&quot;&gt;domingos_del_mes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 9pt; line-height: 1.3em;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;background-color: white; font-size: 9pt; line-height: 1.3em;&quot;&gt;$d&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 9pt; line-height: 1.3em;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;background-color: white; color: #0000dd; font-size: 9pt; font-weight: bold; line-height: 1.3em;&quot;&gt;2012&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 9pt; line-height: 1.3em;&quot;&gt;));&lt;/span&gt;

&lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;&amp;lt;hr/&amp;gt;&lt;/span&gt;&quot;&lt;/span&gt;;
}

&lt;span class=&quot;source source_php&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/6573383673730343852/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2012/08/encontrar-domingos-de-un-mes-php.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6573383673730343852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6573383673730343852'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2012/08/encontrar-domingos-de-un-mes-php.html' title='Encontrar Domingos de un Mes - PHP'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-1454444450961921760</id><published>2012-06-17T02:30:00.000-05:00</published><updated>2012-08-18T02:44:34.878-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><title type='text'>CREAR CODIGO CON EL APELLIDO Y NOMBRES - DNI ... JQUERY</title><content type='html'>&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;Para poder crear apellidos con las iniciales de los apellidos y de los nombres ... pero si existe su DOCUMENTO DE IDENTIDAD ... cambiarlo....&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Helvetica Neue&#39;, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://4.bp.blogspot.com/-8WOyRvUkFWY/T92GlSQdolI/AAAAAAAAADY/EyvvX-LSN2c/s1600/Captura.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;http://4.bp.blogspot.com/-8WOyRvUkFWY/T92GlSQdolI/AAAAAAAAADY/EyvvX-LSN2c/s400/Captura.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; text-align: start;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;background-color: white; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;form&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_reg&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;new_reg&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-widget-content&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;Codigo:&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;cod&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;codigo&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;cod&quot;&lt;/span&gt;  &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;8&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;readonly&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;true&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;button&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;cambiar&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;button&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;onclick&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;Aumentar()&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;Cambiar&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-widget-content&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;DNI:&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt; 
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;dni&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;onkeyup&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;CrearCodigo()&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;mediano&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;dni&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;8&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-widget-content&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;Paterno:&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt; 
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;pat&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;onkeyup&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;CrearCodigo()&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;pat&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;25&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-widget-content&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;Materno:&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt; 
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;mat&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;onkeyup&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;CrearCodigo()&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;mat&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;25&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-widget-content&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;Nombres:&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt; 
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;nom&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;onkeyup&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;CrearCodigo()&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;nom&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;25&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-widget-content&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;Fijo&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;style&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;width: 150px;&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;fij&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;mediano&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;fijo&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;18&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt; &lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;Celular &lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;p&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;mov&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;mediano&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;cel&quot;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;maxlength&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;20&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;new_fila ui-state-highlight&quot;&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;button&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;save&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;submit&quot;&lt;/span&gt; &amp;gt;&lt;/span&gt;REGISTRAR PRODUCTO&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;button&lt;/span&gt; &lt;span class=&quot;meta meta_attribute-with-value meta_attribute-with-value_id meta_attribute-with-value_id_html&quot;&gt;&lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_id entity_other_attribute-name_id_html&quot; style=&quot;font-style: italic;&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_toc-list meta_toc-list_id meta_toc-list_id_html&quot;&gt;reset&lt;/span&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;entity entity_other entity_other_attribute-name entity_other_attribute-name_html&quot; style=&quot;color: #000077; font-style: italic;&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_html&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;reset&quot;&lt;/span&gt; &amp;gt;&lt;/span&gt;LIMPIAR / BORRAR&lt;span class=&quot;meta meta_tag meta_tag_inline meta_tag_inline_any meta_tag_inline_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_inline entity_name_tag_inline_any entity_name_tag_inline_any_html&quot; style=&quot;color: #007700;&quot;&gt;button&lt;/span&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;div&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;meta meta_tag meta_tag_block meta_tag_block_any meta_tag_block_any_html&quot;&gt;&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_block entity_name_tag_block_any entity_name_tag_block_any_html&quot; style=&quot;color: #007700;&quot;&gt;form&lt;/span&gt;&amp;gt;&lt;/span&gt;

&lt;span class=&quot;source source_js source_js_embedded source_js_embedded_html&quot;&gt;&amp;lt;&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_script entity_name_tag_script_html&quot; style=&quot;color: #007700;&quot;&gt;script&lt;/span&gt;&amp;gt;
&lt;span class=&quot;comment comment_block comment_block_js&quot; style=&quot;color: #888888;&quot;&gt;/* algunos cosas para recordar 
   SERGIO ZEGARRA CORNE - sistemasweb.tk
*/&lt;/span&gt;

numero &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;;
&lt;span class=&quot;meta meta_function meta_function_js&quot;&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_js&quot;&gt;Aumentar&lt;/span&gt;()&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;   
    numero&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;++&lt;/span&gt;;
    &lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;numero&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;
        numero&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;;
        
    CrearCodigo&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;meta meta_function meta_function_js&quot;&gt;&lt;span class=&quot;storage storage_type storage_type_function storage_type_function_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;entity entity_name entity_name_function entity_name_function_js&quot;&gt;CrearCodigo&lt;/span&gt;()&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#dni&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_constant support_constant_js&quot;&gt;length&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;
        p &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;trim&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#pat&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_regexp string_regexp_js&quot; style=&quot;background-color: #fff0ff; color: #880088;&quot;&gt;/[^-A-Za-z0-9]+/g&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;substring&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
        m &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;trim&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#mat&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_regexp string_regexp_js&quot; style=&quot;background-color: #fff0ff; color: #880088;&quot;&gt;/[^-A-Za-z0-9]+/g&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;substring&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
        n &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;trim&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#nom&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_regexp string_regexp_js&quot; style=&quot;background-color: #fff0ff; color: #880088;&quot;&gt;/[^-A-Za-z0-9]+/g&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;substring&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;, &lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
        
        total &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;=&lt;/span&gt; p&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;+&lt;/span&gt;m&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;+&lt;/span&gt;n&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;0&#39;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;+&lt;/span&gt;numero;
        &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#cod&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;total&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;                
    &lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#cod&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#dni&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
    &lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;
    
    &lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#cod&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;val&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;support support_constant support_constant_js&quot;&gt;length&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;constant constant_numeric constant_numeric_js&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#cod&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;css&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;background-color&quot;&lt;/span&gt;: &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;red&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
        &lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#cod&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;css&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;background-color&quot;&lt;/span&gt;: &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;#0080C0&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;
&amp;lt;/&lt;span class=&quot;entity entity_name entity_name_tag entity_name_tag_script entity_name_tag_script_html&quot; style=&quot;color: #007700;&quot;&gt;script&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/1454444450961921760/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2012/06/crear-codigo-con-el-apellido-y-nombres.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/1454444450961921760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/1454444450961921760'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2012/06/crear-codigo-con-el-apellido-y-nombres.html' title='CREAR CODIGO CON EL APELLIDO Y NOMBRES - DNI ... JQUERY'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-8WOyRvUkFWY/T92GlSQdolI/AAAAAAAAADY/EyvvX-LSN2c/s72-c/Captura.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-5903632471317095402</id><published>2012-05-02T14:35:00.000-05:00</published><updated>2012-05-02T14:35:20.930-05:00</updated><title type='text'>MAS COMANDOS LINUX</title><content type='html'>&lt;br /&gt;
&lt;h2 style=&quot;color: #222222; font-family: Helvetica, Arial, sans-serif; font-size: 22px; font-weight: normal; line-height: 18px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
Cambiar el directorio $HOME en Linux&lt;/h2&gt;
&lt;div class=&quot;entry&quot; style=&quot;line-height: 17px;&quot;&gt;
&lt;div style=&quot;color: #666666; font-family: &#39;Lucida Grande&#39;, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;A veces es necesario cambiar la ruta del home de algun usuario de nuestro sistema, este tip rapido les ayudara por si es necesario hacerlo, en una sola linea quedara listo!&lt;/div&gt;
&lt;div style=&quot;color: #666666; font-family: &#39;Lucida Grande&#39;, Helvetica, Arial, sans-serif; font-size: 12px; margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;&quot;&gt;
&lt;span style=&quot;background-color: black; line-height: 13px; text-align: left;&quot;&gt;&lt;span style=&quot;color: lime; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;usermod -d /ruta/al/nuevo/directorio/ -m miusuario&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/5903632471317095402/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2012/05/mas-comandos-linux.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5903632471317095402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5903632471317095402'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2012/05/mas-comandos-linux.html' title='MAS COMANDOS LINUX'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-385570996964568727</id><published>2012-02-13T02:26:00.000-05:00</published><updated>2013-06-29T18:37:13.779-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bodas"/><category scheme="http://www.blogger.com/atom/ns#" term="matrimonio"/><category scheme="http://www.blogger.com/atom/ns#" term="partes"/><category scheme="http://www.blogger.com/atom/ns#" term="tarjeta"/><title type='text'>MI MATRIMONIO - 19 DE FEBRERO DEL 2012</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Tenga un buen dia mis amigos....&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Les informo que ya estoy a pocos dias de casarme, asi es que demorare en responder sus inquietudes, pero una vez termine con esto del ajetreo........ estare dispuesto para ayudarles.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img height=&quot;197&quot; src=&quot;http://tareasyclases.com/bodas/img/pa.jpg&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A los amigos de Peru, me gustaria formar un Grupo de Programadores para desarrollo de diferentes tipos de proyectos.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Un saludo y hasta la semana que biene&lt;/span&gt;</content><link rel="related" href="http://tareasyclases.com/bodas" title="MI MATRIMONIO - 19 DE FEBRERO DEL 2012"/><link rel='enclosure' type='image/jpeg' href='http://tareasyclases.com/bodas/img/pa.jpg' length='0'/><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/385570996964568727/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2012/02/mi-matrimonio-19-de-febrero-del-2012.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/385570996964568727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/385570996964568727'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2012/02/mi-matrimonio-19-de-febrero-del-2012.html' title='MI MATRIMONIO - 19 DE FEBRERO DEL 2012'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-834500730395143238</id><published>2011-09-21T18:03:00.000-05:00</published><updated>2011-09-21T18:03:56.201-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="esc/pos"/><category scheme="http://www.blogger.com/atom/ns#" term="fiscal"/><category scheme="http://www.blogger.com/atom/ns#" term="imprimir"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>IMPRIMISION DE TICKET EN IMPRESORA FISCAL EN LINUX DESDE PUERTO USB</title><content type='html'>&lt;div style=&quot;font-family: inherit; text-align: justify;&quot;&gt;Como ya les había comentado en entradas anteriores de como poder imprimir los &lt;span style=&quot;background-color: #ffe599;&quot;&gt;comando ESC/POS &lt;/span&gt;en windows, e seguido investigando la misma solución en LINUX, ya que por este ultimo inconveniente aun mis clientes usan windows para poder imprimir los tickets&amp;nbsp; (con la velocidad de la impresora, y las fuentes de la misma, NO COMO IMAGEN en la cual se demora un monto y las letras salen muy feas), yo manejo alrededor de 14 clientes los dias domingos y los demas dias seran unos 3 a 4, incluyendo impresoras TERMICAS que son similares a las FISCALES&amp;nbsp; o de IMPACTO....&lt;/div&gt;&lt;div style=&quot;font-family: inherit; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: inherit; text-align: justify;&quot;&gt;Pero volviendo al tema sufri mucho en encontrar la forma en la cual se pueda imprimir esos mismos comandos en linux, la idea es lo mismo (en WIndows pasaba los textos a la consola (MS_DOS) y luego los enviava al puerto deseado, ahora en linux es igual lo envio a su consola o mejor dicho creamos un BASH [mas adelante]).&lt;/div&gt;&lt;div style=&quot;font-family: inherit; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Aqui les dejo la primera linea de comando para que lo puedan estudiar, ampliar e implementar, y despues lo publiquen..&lt;/span&gt;.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: Georgia,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; &lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;seregio@seregio-desktop:$&lt;/span&gt; &lt;span style=&quot;background-color: yellow; color: blue;&quot;&gt;echo -e &quot;hola todo esta muy bien por aqui en la casa del Señor \n \n \n para poder imprimier de una forma faciel \n \n en estas impresoras hay que sufrir mucho \n \n \n \n&amp;nbsp; &lt;span style=&quot;background-color: orange; color: red;&quot;&gt;\x1D\x56\x1&lt;/span&gt;&quot; &amp;gt; &lt;span style=&quot;background-color: magenta;&quot;&gt;/dev/&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: magenta; color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace; font-size: small;&quot;&gt;usb/lp0 &lt;/span&gt;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Espero sus comentarios y/o sugerencias ya que tambien para mi es un principio el hacer esto.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;span style=&quot;font-size: xx-small;&quot;&gt;http://tareasyclases.com [beta]&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/834500730395143238/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/09/imprimision-de-ticket-en-impresora.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/834500730395143238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/834500730395143238'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/09/imprimision-de-ticket-en-impresora.html' title='IMPRIMISION DE TICKET EN IMPRESORA FISCAL EN LINUX DESDE PUERTO USB'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-5886001864830182005</id><published>2011-08-05T00:53:00.000-05:00</published><updated>2011-08-05T00:53:05.041-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c-sharp"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>SISTEMA DE CONTROL DE INGRESOS Y EGRESOS (DEMO)</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Vnh65GoIqy4/TjspXFCAFDI/AAAAAAAAAB8/SJfQT9UYVBk/s1600/sistema+colegio.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;http://4.bp.blogspot.com/-Vnh65GoIqy4/TjspXFCAFDI/AAAAAAAAAB8/SJfQT9UYVBk/s400/sistema+colegio.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;CAPTURA DEL SISTEMA DE CONTROL DE INGRESOS Y EGRESOS (DEMO)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Desarrollado en C Sharp 2008 y MySql&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/5886001864830182005/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/08/sistemas-demo.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5886001864830182005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5886001864830182005'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/08/sistemas-demo.html' title='SISTEMA DE CONTROL DE INGRESOS Y EGRESOS (DEMO)'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-Vnh65GoIqy4/TjspXFCAFDI/AAAAAAAAAB8/SJfQT9UYVBk/s72-c/sistema+colegio.JPG" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-6604931673368400587</id><published>2011-06-21T19:30:00.000-05:00</published><updated>2011-06-21T19:30:58.056-05:00</updated><title type='text'>Clase Linux Servidor DHCP 21-06-11</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: blue; font-size: large;&quot;&gt;&lt;b&gt;SERVIDOR&amp;nbsp; DHCP&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost dhcp-3.0.5]# cd /etc/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# ls dhcp*&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dhcp6c.conf&amp;nbsp; dhcp6s.conf&amp;nbsp; dhcpd.conf&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# vim dhcpd.conf &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]#&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;IR A LA RUTA&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/usr/share/doc/dhcp*/dhcpd.conf.sample&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost dhcp-3.0.5]# vim dhcpd.conf.sample&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;despues de modificado copiamos&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost dhcp-3.0.5]# cp dhcpd.conf.sample /etc&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;renombramos o reescribimos&lt;/div&gt;&lt;div style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost dhcp-3.0.5]# mv dhcpd.conf.sample dhcpd.conf&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost etc]# mv dhcpd.conf.sample dhcpd.conf&lt;/span&gt;&lt;br /&gt;
mv: ¿sobreescribir «dhcpd.conf»? (s/n) s&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost etc]# service dhcpd restart&lt;/span&gt;&lt;br /&gt;
Iniciando dhcpd:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dictado por el Profesor Jara Alva - IDAT&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/6604931673368400587/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/06/clase-linux-servidor-dhcp-21-06-11.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6604931673368400587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6604931673368400587'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/06/clase-linux-servidor-dhcp-21-06-11.html' title='Clase Linux Servidor DHCP 21-06-11'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-5446328257881636701</id><published>2011-06-16T19:47:00.000-05:00</published><updated>2011-06-16T19:47:16.019-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="ftp"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="vsftp"/><title type='text'>Clase Linux FTP CentOS 16-06-11</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;FTP :::::::::: vsftpd&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# rpm -q vsftpd&lt;/span&gt;&lt;br /&gt;
vsftpd-2.0.5-16.el5&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# cd /etc/vsftpd/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost vsftpd]# ls&lt;/span&gt;&lt;br /&gt;
ftpusers&amp;nbsp; user_list&amp;nbsp; vsftpd.conf&amp;nbsp; vsftpd_conf_migrate.sh&lt;br /&gt;
[root@localhost vsftpd]# &lt;/div&gt;&lt;div style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost vsftpd]# vim vsftpd.conf &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/5446328257881636701/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/06/clase-linux-ftp-centos-16-06-11.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5446328257881636701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5446328257881636701'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/06/clase-linux-ftp-centos-16-06-11.html' title='Clase Linux FTP CentOS 16-06-11'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-1999109298101362311</id><published>2011-06-16T19:14:00.000-05:00</published><updated>2011-06-16T19:14:07.945-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="nfs"/><title type='text'>Clase linux SERVIDOR Y CLIENTE NFS 16-06-11</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;a href=&quot;http://pekeunix.es/wp-content/uploads/2011/04/Gnome-fs-nfs.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;http://pekeunix.es/wp-content/uploads/2011/04/Gnome-fs-nfs.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;NFS: NETWORK FILE SYSTEM&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Este servicio no pide contraseña&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;REBIZAMOS LOS PAQUETES&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[&lt;span style=&quot;background-color: #ffe599;&quot;&gt;root@localhost ~]# rpm -q nfs-utils&lt;/span&gt;&lt;br /&gt;
nfs-utils-1.0.9-42.el5&lt;br /&gt;
&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost ~]# rpm -q portmap&lt;/span&gt;&lt;br /&gt;
portmap-4.0-65.2.2.1&lt;br /&gt;
[root@localhost ~]#&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost ~]# cd /etc&lt;/span&gt;&lt;br style=&quot;background-color: #ffe599;&quot; /&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost etc]# ls ex*&lt;/span&gt;&lt;br /&gt;
exports&lt;br /&gt;
&lt;br /&gt;
exim:&lt;br /&gt;
exim.conf&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost etc]# vim exports &lt;/span&gt;&lt;br /&gt;
&amp;nbsp;enter&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;escribimos&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;/nfs/publico&amp;nbsp;&amp;nbsp;&amp;nbsp; *(ro,rw)&lt;/span&gt;&lt;br style=&quot;background-color: #cfe2f3;&quot; /&gt;&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost etc]# mkdir -p /nfs/publico&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost etc]# cd /nfs/publico/&lt;/span&gt;&lt;br style=&quot;background-color: #ffe599;&quot; /&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# cat &amp;gt; registro1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;con cat creo un archivo&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# rpcinfo -p&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; programa vers proto&amp;nbsp;&amp;nbsp; puerto&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp; portmapper&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 111&amp;nbsp; portmapper&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100024&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; udp&amp;nbsp;&amp;nbsp;&amp;nbsp; 959&amp;nbsp; status&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 100024&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp; tcp&amp;nbsp;&amp;nbsp;&amp;nbsp; 962&amp;nbsp; status&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;necesitamos: mountd y nfs/nfsd&amp;nbsp;&amp;nbsp; } ntf =&amp;gt; portmap&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# service portmap restart&lt;br /&gt;
Parando portmap:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
Iniciando portmap:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# service nfs restart&lt;br /&gt;
Cerrar NFS mountd:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;[FALLÓ]&lt;/span&gt;&lt;br /&gt;
Cerrar el demonio NFS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;[FALLÓ]&lt;/span&gt;&lt;br /&gt;
Apagando cuotas NFS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;[FALLÓ]&lt;/span&gt;&lt;br /&gt;
Apagar los servicios NFS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;[FALLÓ]&lt;/span&gt;&lt;br /&gt;
Inicio de los servicios NFS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
Iniciando cuotas NFS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
Inicialización del demonio NFS:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;br /&gt;
Inicialización de NFS mountd:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-color: lime;&quot;&gt;[&amp;nbsp; OK&amp;nbsp; ]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# rpcinfo -p&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;para tener acceso al servidor escribimos desde la pc cliente&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# showmount -e 10.10.25.45&lt;/span&gt;&lt;br /&gt;
Export list for 10.10.25.45:&lt;br /&gt;
/nfs/publico *&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;************&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;[root@localhost publico]# showmount -e 10.10.25.28&lt;/span&gt;&lt;br style=&quot;color: #660000;&quot; /&gt;&lt;span style=&quot;color: #660000;&quot;&gt;mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive&lt;/span&gt;&lt;br /&gt;
**************&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;si nos apaerce bloqueado deshabilitamos el firewall&lt;/div&gt;&lt;div style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# setup&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# showmount -e 10.10.25.35&lt;/span&gt;&lt;br /&gt;
Export list for 10.10.25.35:&lt;br /&gt;
/nfs/publico *&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;creamos mas carpetas&lt;/div&gt;&lt;div style=&quot;background-color: #ffe599; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# mkdir -p /compartir/zegarra&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# mount -t nfs 10.10.25.35:/nfs/publico /compartir/zegarra/&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;nota: -t , nfs: es formato de archivo, ip servidotr,:/55/55, /,i carpeta&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--------------------------------------&lt;/div&gt;&lt;div style=&quot;background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;crow tab /* investigar esto */&lt;/div&gt;&lt;div style=&quot;background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# sh bach1&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost publico]# vim fstab&lt;/div&gt;&lt;div style=&quot;background-color: #b6d7a8; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--------------------------------------&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# vim bach1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;////escribir////////////////&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #cfe2f3; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;clear&lt;br /&gt;
ls -p&lt;br /&gt;
~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
~&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #ffe599;&quot;&gt;[root@localhost publico]# sh bach1&lt;/span&gt;&lt;br /&gt;
bach1&amp;nbsp; registro1&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/1999109298101362311/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/06/clase-linux-servidor-y-cliente-nfs-16.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/1999109298101362311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/1999109298101362311'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/06/clase-linux-servidor-y-cliente-nfs-16.html' title='Clase linux SERVIDOR Y CLIENTE NFS 16-06-11'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-7484377667651591909</id><published>2011-05-26T19:03:00.001-05:00</published><updated>2011-05-26T19:22:33.013-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Clase Linux - Configuracion de apache en CentOS</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Revisamos si se encuentra instalado el paquete de apache&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# rpm -q httpd&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;httpd-2.2.3-43.el5.centos&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;configurareros el apache en esta ruta &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]#  cd /etc/httpd/conf&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# ls&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;httpd.conf  magic&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# vim httpd.conf &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;nos vamos a la parte&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;### Section 2: &#39;Main&#39; server configuration&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#ServerName www.example.com:80  nombre de dominio:puerto&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ServerName www.zegarra.com:80&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;DocumentRoot &quot;/var/www/html&quot;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;guardamos y salimos&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora enlazamos el ip con el dominio&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# vim /etc/hosts&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;no borrar nada de lo que esta escrito&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;colocamos nuestra IP , dominio y nombre de pc&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# Do not remove the following line, or various programs&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# that require network functionality will fail.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;127.0.0.1               localhost.localdomain localhost&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;::1             localhost6.localdomain6 localhost6&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;10.10.25.28     www.zegarra.com         localhost&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora ingresamos al la carpte&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# cd /var/www/html/&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;y creeamos una pagina web&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost html]# vim hello.html&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;-html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;-head&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;-title&amp;gt;Sergio Zegarra&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;-/head&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;-/html&amp;gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~                                                                       &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~                                                                       &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~                                                                       &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~                                                                       &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~                &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora reiniciamos el servicio&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost html]# service httpd restart&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Parando httpd:                                             [FALLÓ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Iniciando httpd:                                           [  OK  ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost html]# wget www.tareasyclases.co.cc&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--2011-05-26 14:02:52--  http://www.tareasyclases.co.cc/&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Resolviendo www.tareasyclases.co.cc...&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost html]# wget www.zegarra.com/hello.html&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;--2011-05-26 14:06:50--  http://www.zegarra.com/hello.html&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Resolviendo www.zegarra.com... 10.10.25.28&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Connecting to www.zegarra.com|10.10.25.28|:80... conectado.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Petición HTTP enviada, esperando respuesta... 200 OK&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Longitud: 61 [text/html]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Saving to: `hello.html.1&#39;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;100%[===============================&amp;gt;] 61          --.-K/s   in 0s      &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;2011-05-26 14:06:50 (9,70 MB/s) - `hello.html.1&#39; saved [61/61]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora editamos los VIRTUALHOST&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost html]# cd&lt;/span&gt;&lt;br style=&quot;background-color: #fff2cc;&quot; /&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost ~]# cd /etc/httpd/conf&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost conf]# ls&lt;/span&gt;&lt;br /&gt;
httpd.conf&amp;nbsp; magic&lt;br /&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost conf]#vim&amp;nbsp; httpd.conf&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#NameVirtualHost *:80, permite crear varios dominios con un solo ip, el * representa el dominio y el 80 el puerto&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;agregamos esto&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#NameVirtualHost *:80&lt;br /&gt;
NameVirtualHost 10.10.25.28:80&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#&lt;virtualhost *:80=&quot;&quot;&gt;&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerAdmin webmaster@dummy-host.example.com&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentRoot /www/docs/dummy-host.example.com&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerName dummy-host.example.com&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp; ErrorLog logs/dummy-host.example.com-error_log&lt;br /&gt;
#&amp;nbsp;&amp;nbsp;&amp;nbsp; CustomLog logs/dummy-host.example.com-access_log common&lt;br /&gt;
#&lt;/virtualhost&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;virtualhost 10.10.25.28:80=&quot;&quot;&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ServerName www.idatlinux1.com&lt;br /&gt;
DocumentRoot &quot;/var/www/html/web1&quot;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;color: #cc0000;&quot; /&gt;&lt;br style=&quot;color: #cc0000;&quot; /&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;virtualhost 10.10.25.28:80=&quot;&quot;&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;
ServerName www.idatlinux2.com&lt;br /&gt;
DocumentRoot &quot;/var/www/html/web2&quot;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;color: #990000;&quot; /&gt;&lt;br style=&quot;color: #990000;&quot; /&gt;&lt;span style=&quot;color: #990000;&quot;&gt;&lt;virtualhost 10.10.25.28:80=&quot;&quot;&gt;&lt;/virtualhost&gt;&lt;/span&gt;&lt;br /&gt;
ServerName www.idatlinux3.com&lt;br /&gt;
DocumentRoot &quot;/var/www/html/web3&quot;&lt;br /&gt;
&lt;span style=&quot;color: #990000;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;guardamos&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora entramos al virtualhost, para agregar los nuevos dominios creados&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# vim /etc/hosts&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# Do not remove the following line, or various programs&lt;br /&gt;
# that require network functionality will fail.&lt;br /&gt;
127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost.localdomain localhost&lt;br /&gt;
::1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost6.localdomain6 localhost6&lt;br /&gt;
&lt;br /&gt;
10.10.25.28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.zegarra.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;
10.10.25.28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.idatlinux1.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;
10.10.25.28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.idatlinux2.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;
10.10.25.28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; www.idatlinux3.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; localhost&lt;br /&gt;
&lt;br /&gt;
guardamos y salimos&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora ingresamos al&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# cd /var/www/html/&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;y creamos 3 carpetas y creamos una pagina en cada una para las pruebas&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost conf]# cd /var/www/html/&lt;br /&gt;
[root@localhost html]# mkdir web1&lt;br /&gt;
&amp;nbsp;[root@localhost web1]# vim index.html&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost html]# mkdir web2&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost html]# cd web2&lt;br /&gt;
[root@localhost web2]# vim index.html&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora el ultimo&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost web2]# cd /var/www/html/&lt;br /&gt;
[root@localhost html]# mkdir web3&lt;br /&gt;
[root@localhost html]# cd web3&lt;br /&gt;
[root@localhost web3]# vim index.html&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;asdsd&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/7484377667651591909/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/05/clase-linux-configuracion-de-apache-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/7484377667651591909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/7484377667651591909'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/05/clase-linux-configuracion-de-apache-en.html' title='Clase Linux - Configuracion de apache en CentOS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-4525739148236501937</id><published>2011-05-24T19:33:00.003-05:00</published><updated>2011-05-24T19:57:45.085-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="samba"/><title type='text'>clase de linux 24-05-11 configurar samba server - samba-swat -</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;configurar samba server&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#============================ Share Definitions ==============================&lt;br /&gt;
&lt;br /&gt;
[homes]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = Home Directories&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseable = no&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writable = yes&lt;br /&gt;
;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valid users = %S&lt;br /&gt;
;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; valid users = MYDOMAIN\%S&lt;br /&gt;
[compartido]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = Aqui se comparte una ruta de linux&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseable = yes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; writable = yes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = /home/samba1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public = yes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create mode = 0777 #crea permisos como el CHMOD el 0(cero) es el permiso especial&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[printers]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = All Printers&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = /var/spool/samba&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseable = no&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;haciendo un test si esta correcto todo&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# vim /etc/samba/smb.conf&lt;br /&gt;
[root@localhost etc]# testparm&lt;br /&gt;
Load smb config files from /etc/samba/smb.conf&lt;br /&gt;
Processing section &quot;[homes]&quot;&lt;br /&gt;
Processing section &quot;[compartido]&quot;&lt;br /&gt;
Processing section &quot;[printers]&quot;&lt;br /&gt;
Loaded services file OK.&lt;br /&gt;
Server role: ROLE_STANDALONE&lt;br /&gt;
Press enter to see a dump of your service definitions&lt;br /&gt;
&lt;br /&gt;
[global]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; workgroup = LAB_A14&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server string = JAVIER&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passdb backend = tdbsam&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cups options = raw&lt;br /&gt;
&lt;br /&gt;
[homes]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = Home Directories&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read only = No&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseable = No&lt;br /&gt;
&lt;br /&gt;
[compartido]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = Aqui se comparte una ruta de linux&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = /home/samba1&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read only = No&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create mask = 0777&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; guest ok = Yes&lt;br /&gt;
&lt;br /&gt;
[printers]&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comment = All Printers&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path = /var/spool/samba&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printable = Yes&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; browseable = No&lt;br /&gt;
[root@localhost etc]# &lt;br /&gt;
[root@localhost etc]# &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;cramso un usuario para el samba&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# useradd samba1&lt;br /&gt;
[root@localhost etc]# passwd samba1&lt;br /&gt;
Changing password for user samba1.&lt;br /&gt;
New UNIX password: &lt;br /&gt;
BAD PASSWORD: it is too simplistic/systematic&lt;br /&gt;
Retype new UNIX password: &lt;br /&gt;
passwd: all authentication tokens updated successfully.&lt;br /&gt;
[root@localhost etc]# &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora le decimos que samba1 se va a conectar solo a samba con&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# &lt;br /&gt;
[root@localhost etc]# smbpasswd -a samba1&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# &lt;br /&gt;
[root@localhost etc]# smbpasswd -a samba1&lt;br /&gt;
New SMB password:&lt;br /&gt;
Retype new SMB password:&lt;br /&gt;
Added user samba1.&lt;br /&gt;
[root@localhost etc]# &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;reiniciamos el servicio para guardar los cambios&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# service smb restart&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Apagando los servicios SMB:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FALLÓ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Apagando los servicios NMB:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FALLÓ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Iniciando servicios SMB:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; OK&amp;nbsp; ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Iniciando servicios NMB:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; OK&amp;nbsp; ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora deshabilitaremos el CLINUX&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;son&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# setup&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;dentro de esto vamos a FIREWALL&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;y despues deshabilitamos el&amp;nbsp; SELinux: Obediente&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Nivel de seguridad: ( ) Habilitado (*) Deshabilitado&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Un cortafuegos le protege frente a intrusiones no&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │ autorizadas a la red.Al habilitar un cortafuegos&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │ bloquea todas las conexiones entrantes. Si inhabilita&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │ el cortafuegos entonces permitirá la entrada de todas&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │ las conexiones, lo que no es recomendable.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp; Nivel de seguridad: ( ) Habilitado (*) Deshabilitado&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELinux: Obediente&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Permisivo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deshabilitado&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp; ┌─────────┐&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ┌──────────────┐&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ┌──────────┐&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp; │ Aceptar │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │ Personalizar │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │ Cancelar │&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp; └─────────┘&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; └──────────────┘&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; └──────────┘&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; │&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost etc]# cd /etc/xinetd.d&lt;br /&gt;
[root@localhost xinetd.d]# ls&lt;br /&gt;
amanda&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chargen-dgram&amp;nbsp;&amp;nbsp; daytime-dgram&amp;nbsp;&amp;nbsp; echo-dgram&amp;nbsp;&amp;nbsp;&amp;nbsp; gssftp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ktalk&amp;nbsp;&amp;nbsp; rmcp&amp;nbsp;&amp;nbsp; talk&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time-dgram&lt;br /&gt;
amandaidx&amp;nbsp; chargen-stream&amp;nbsp; daytime-stream&amp;nbsp; echo-stream&amp;nbsp;&amp;nbsp; klogin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ntalk&amp;nbsp;&amp;nbsp; rsh&amp;nbsp;&amp;nbsp;&amp;nbsp; tcpmux-server&amp;nbsp; time-stream&lt;br /&gt;
amidxtape&amp;nbsp; clase1.txt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discard-dgram&amp;nbsp;&amp;nbsp; eklogin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; krb5-telnet&amp;nbsp; rexec&amp;nbsp;&amp;nbsp; rsync&amp;nbsp; telnet&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uucp&lt;br /&gt;
auth&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cvs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; discard-stream&amp;nbsp; ekrb5-telnet&amp;nbsp; kshell&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rlogin&amp;nbsp; swat&amp;nbsp;&amp;nbsp; tftp&lt;br /&gt;
[root@localhost xinetd.d]# vim swat&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;# default: off&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# description: SWAT is the Samba Web Admin Tool. Use swat \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to configure your Samba server. To use SWAT, \&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect to port 901 with your favorite web browser.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;service swat&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; port&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 901&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; socket_type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = stream&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wait&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = no&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; only_from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 10.10.25.29&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; user&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = root&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = /usr/sbin/swat&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; log_on_failure&amp;nbsp; += USERID&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; disable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = no&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~ &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;reiniciamos el servicio&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost xinetd.d]# service xinetd restart&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Parando xinetd:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; OK&amp;nbsp; ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Iniciando xinetd:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; OK&amp;nbsp; ]&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost xinetd.d]#&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;entramos a internet&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;http://10.10.25.29:901/&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;entramos el usuario samba1 y su clave&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;y probar en entorno grafico&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;parecido al webmin&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/4525739148236501937/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/05/clase-de-linux-24-05-11-configurar.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/4525739148236501937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/4525739148236501937'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/05/clase-de-linux-24-05-11-configurar.html' title='clase de linux 24-05-11 configurar samba server - samba-swat -'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-6055441305774081376</id><published>2011-05-17T19:27:00.000-05:00</published><updated>2011-05-17T19:27:11.651-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="escritorio remoto"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>clase linux 17 mayo 2011 - ssh - escirtorio remoto - vnc</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;div style=&quot;background-color: #fff2cc;&quot;&gt;&lt;b&gt;[root@localhost ~]# cat &amp;gt; ejemplo1&lt;/b&gt;&lt;/div&gt;esto es un ejejmplo&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #fff2cc;&quot;&gt;&lt;b&gt;[root@localhost ~]# mkdir /zegarra&lt;/b&gt;&lt;/div&gt;[root@localhost ~]# &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;scp = copia segura, es parte del ssh&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;tambien hay sftp que es similar al ftp&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;enviado archivo a otra maquina, el root debe ser otro tipo de usuario, no es recomendable el root&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/root es la carpeta&lt;/div&gt;&lt;div style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;span style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# scp ejemplo1 root@10.10.25.28:/root&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The authenticity of host &#39;10.10.25.28 (10.10.25.28)&#39; can&#39;t be established.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;RSA key fingerprint is 8a:0e:e8:98:a6:64:04:8f:12:b2:f3:17:5b:33:07:2e.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Are you sure you want to continue connecting (yes/no)? y&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Please type &#39;yes&#39; or &#39;no&#39;: y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Please type &#39;yes&#39; or &#39;no&#39;: y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Please type &#39;yes&#39; or &#39;no&#39;: y&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Please type &#39;yes&#39; or &#39;no&#39;: [root@localhost ~]# &lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# cat &amp;gt; ejemploz&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;willyman&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;background-color: #fff2cc; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# scp ejemploz root@10.10.25.28:/root&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;The authenticity of host &#39;10.10.25.28 (10.10.25.28)&#39; can&#39;t be established.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;RSA key fingerprint is 8a:0e:e8:98:a6:64:04:8f:12:b2:f3:17:5b:33:07:2e.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Are you sure you want to continue connecting (yes/no)? y&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Please type &#39;yes&#39; or &#39;no&#39;: yes&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Warning: Permanently added &#39;10.10.25.28&#39; (RSA) to the list of known hosts.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root@10.10.25.28&#39;s password: &quot;aqui se escribe la clave&quot;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ejemploz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0KB/s&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora con carpetas&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-r es recursividad, para enviar todo el contenido completo, es decir carptas y archivos que estan dentro&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# scp -r /zegarra root@10.10.25.28:/root&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root@10.10.25.28&#39;s password: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ejemplo1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp; 13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0KB/s&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]#&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #fff2cc; color: blue;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;estraer informacion de otra maquina hacia la mia&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost ~]# scp root@10.10.25.28:/root/ejemplo* /home&lt;/b&gt;&lt;br /&gt;
root@10.10.25.28&#39;s password: &lt;br /&gt;
ejemplo1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp; 13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0KB/s&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
ejemploz&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100%&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0KB/s&amp;nbsp;&amp;nbsp; 00:00&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #fff2cc; color: blue;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #fff2cc; color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora con extraer de otra maquina hacia la mia&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[&lt;/span&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;root@localhost ~]# scp -r root@10.10.25.28:/root/pozo/ /home&lt;/b&gt;&lt;br /&gt;
root@10.10.25.28&#39;s password: &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #fff2cc; color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&amp;nbsp;Ahora control remoto en terminal&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ssh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-l es login&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;root es el usuario&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost ~]# ssh -l root 10.10.25.28&lt;/b&gt;&lt;br /&gt;
root@10.10.25.28&#39;s password: &lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #fff2cc; color: blue;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;enviando mensajes&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;siempre y cuaando hallamos puesto ssh -l&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc; color: black;&quot;&gt;[root@localhost ~]# write root&lt;/b&gt;&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;para cerrar la conexion&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;usamos logout&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #fff2cc; color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahora usaremos VNC&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# rpm -q vnc-server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vnc-server-4.1.2-14.el5_3.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]#&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# cd /etc/sysconfig&lt;br /&gt;
[root@localhost sysconfig]# vim vncservers&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# doing so through a secure tunnel.&amp;nbsp; See the &quot;-via&quot; option in the&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# `man vncviewer&#39; manual page.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;VNCSERVERS=&quot;1:root&quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;# VNCSERVERARGS[2]=&quot;-geometry 800x600 -nolisten tcp -nohttpd -localhost&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;# `man vncviewer&#39; manual page.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;VNCSERVERS=&quot;1:root&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;VNCSERVERARGS[2]=&quot;-geometry 800x600 -nolisten tcp -nohttpd -localhost&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;~&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;VNCSERVERS=&quot;1:root&quot;&lt;br /&gt;
VNCSERVERARGS[1]=&quot;-geometry 800x600 -nolisten tcp -nohttpd -localhost&quot;&lt;br /&gt;
~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
~&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost sysconfig]# vncpasswd &lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
Password:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;&lt;br /&gt;
[root@localhost sysconfig]# service vncserver restart&lt;/b&gt;&lt;br /&gt;
Apagando Servidor VNC: 1:root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;span style=&quot;background-color: #e06666;&quot;&gt;FALLÓ&lt;/span&gt;]&lt;br /&gt;
Iniciando Servidor VNC: 1:root xauth:&amp;nbsp; creating new authority file /root/.Xauthority&lt;br /&gt;
&lt;br /&gt;
New &#39;localhost.localdomain:1 (root)&#39; desktop is localhost.localdomain:1&lt;br /&gt;
&lt;br /&gt;
Creating default startup script /root/.vnc/xstartup&lt;br /&gt;
Starting applications specified in /root/.vnc/xstartup&lt;br /&gt;
Log file is /root/.vnc/localhost.localdomain:1.log&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; &lt;span style=&quot;background-color: #93c47d;&quot;&gt;OK&amp;nbsp;&lt;/span&gt; ]&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;em el modo grafico&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;en los menus superiores&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sistema - administracion -&amp;nbsp; nivel de seguridad y cortafuegos&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;agregas el&lt;b&gt; puerto tcp 5900&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;luesgo vamos al menu&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sistema - preferencias - escritorio remoto&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;ahi habilitamos&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;PERMITIR A OTROS USUARIOS VER MI&amp;nbsp; ESCRITORIO&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/6055441305774081376/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/05/clase-linux-17-mayo-2011-ssh-escirtorio.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6055441305774081376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6055441305774081376'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/05/clase-linux-17-mayo-2011-ssh-escirtorio.html' title='clase linux 17 mayo 2011 - ssh - escirtorio remoto - vnc'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-9050149723796429122</id><published>2011-04-28T19:42:00.012-05:00</published><updated>2011-05-02T21:51:24.155-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="comandos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>MAS COMANDOS BASICOS LINUX CENTOS</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;creando tarjetas virtuales&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost network-scripts]# &lt;span style=&quot;color: red;&quot;&gt;ifconfig eth0:1 192.168.50.34 netmask 255.255.255.0&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;2. ¿Cuántos dispositivos SATA tiene el sistema operativo?&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;[root@localhost etc]#&lt;span style=&quot;color: red;&quot;&gt; fdisk -l | grep &#39;Disco /dev/sd&#39; | wc -l&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
2&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;3. Enviar a un archivo los paquetes Openoffice reconocidos por el comando rpm (usar la alternativa que los busca y muestra) , en forma ordenada y sin iguales a un archivo llamado ejemplo1&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc; color: black;&quot;&gt;[root@localhost ~]# &lt;span style=&quot;color: red;&quot;&gt;rpm -qa | grep openoffice | sort | tee ejemplo1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
9. Enviar a un archivo llamado ejemplo5 los PCI reconocidos de su sistema&lt;br /&gt;
operativo.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b style=&quot;background-color: #fff2cc; color: black;&quot;&gt;[root@localhost ~]#&lt;/b&gt;&lt;b style=&quot;color: red;&quot;&gt; cat /proc/ioports | grep PCI | tee ejemplo5&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
7. ¿Cuántos archivos y directorios tiene el directorio /etc?&lt;br /&gt;
&lt;b style=&quot;background-color: #fff2cc; color: black;&quot;&gt;[root@localhost ~]# &lt;span style=&quot;color: red;&quot;&gt;ls /etc | wc -l&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/9050149723796429122/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/mas-comandos-basicos-linux-centos.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/9050149723796429122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/9050149723796429122'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/mas-comandos-basicos-linux-centos.html' title='MAS COMANDOS BASICOS LINUX CENTOS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-8348844152290583917</id><published>2011-04-28T18:47:00.000-05:00</published><updated>2011-04-28T18:47:42.711-05:00</updated><title type='text'>EJERCICION DE TUBERIAS EN LINUX CENTOS</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;14. Sabiendo que el mouse tiene puerto USB, envié el nombre del fabricante a&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; un archivo llamado mouse1.&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# LSUSB&lt;br /&gt;
bash: LSUSB: command not found&lt;br /&gt;
[root@localhost ~]# lsusb&lt;br /&gt;
Bus 001 Device 001: ID 0000:0000&amp;nbsp; &lt;br /&gt;
Bus 005 Device 001: ID 0000:0000&amp;nbsp; &lt;br /&gt;
Bus 004 Device 001: ID 0000:0000&amp;nbsp; &lt;br /&gt;
Bus 003 Device 003: ID 04b3:3025 IBM Corp. &lt;br /&gt;
Bus 003 Device 001: ID 0000:0000&amp;nbsp; &lt;br /&gt;
Bus 003 Device 002: ID 04b3:310c IBM Corp. Wheel Mouse&lt;br /&gt;
Bus 002 Device 001: ID 0000:0000&amp;nbsp; &lt;br /&gt;
[root@localhost ~]# lsusb | greep Mouse&lt;br /&gt;
bash: greep: command not found&lt;br /&gt;
[root@localhost ~]# lsusb | greep Mouse | tee mouse1&lt;br /&gt;
bash: greep: command not found&lt;br /&gt;
&lt;span style=&quot;background-color: yellow;&quot;&gt;[root@localhost ~]#&lt;/span&gt;&lt;span style=&quot;background-color: yellow; color: red;&quot;&gt; lsusb | grep Mouse | tee mouse1&lt;/span&gt;&lt;br /&gt;
Bus 003 Device 002: ID 04b3:310c IBM Corp. Wheel Mouse&lt;br /&gt;
[root@localhost ~]# &lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/8348844152290583917/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/ejercicion-de-tuberias-en-linux-centos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/8348844152290583917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/8348844152290583917'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/ejercicion-de-tuberias-en-linux-centos.html' title='EJERCICION DE TUBERIAS EN LINUX CENTOS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-3259147182821905038</id><published>2011-04-26T19:21:00.000-05:00</published><updated>2011-04-26T19:21:38.159-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="comandos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>COMANDOS BASICOS LINUX CENTOS</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;para activar servicios permantes &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;[root@localhost ~]# ntsysv&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
otra forma es&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;[root@localhost ~]# chkconfig sshd on&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;para comprobar podemos entrar a&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# ntsysv&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/3259147182821905038/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/comandos-basicos-linux-centos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/3259147182821905038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/3259147182821905038'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/comandos-basicos-linux-centos.html' title='COMANDOS BASICOS LINUX CENTOS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-621145066315017511</id><published>2011-04-16T20:57:00.000-05:00</published><updated>2012-08-19T02:29:21.981-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>extrayendo y agrupando fecha en campo tipo timestamp mysql</title><content type='html'>&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;UN EJEMPLO QUE ENCONTRE POR AHI...&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Helvetica Neue, Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; text-align: start;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding: 0px; word-wrap: break-word;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&amp;lt;?php
    &lt;span class=&quot;support support_function support_function_session support_function_session_php&quot; style=&quot;color: #a535ae; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;session_start&lt;/span&gt;();
    &lt;span class=&quot;meta meta_include meta_include_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_import keyword_control_import_include keyword_control_import_include_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;require_once&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;../../class/diezmo.class.php&lt;/span&gt;&#39;&lt;/span&gt;&lt;/span&gt;;    
    &lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$objDi&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;keyword keyword_other keyword_other_new keyword_other_new_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;support support_class support_class_php&quot; style=&quot;color: #a535ae; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;Diezmo&lt;/span&gt;;

    &lt;span class=&quot;comment comment_block comment_block_php&quot; style=&quot;color: #919191; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;/** ERROR DE MYSQL */&lt;/span&gt;
    &lt;span class=&quot;meta meta_include meta_include_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&lt;span class=&quot;keyword keyword_control keyword_control_import keyword_control_import_include keyword_control_import_include_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;require_once&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;../../class/errores/mysql.ini.php&lt;/span&gt;&#39;&lt;/span&gt;&lt;/span&gt;;
    &lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$objME&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;=&lt;/span&gt;  &lt;span class=&quot;keyword keyword_other keyword_other_new keyword_other_new_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;support support_class support_class_php&quot; style=&quot;color: #a535ae; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;error_mysql&lt;/span&gt;(); &lt;span class=&quot;comment comment_block comment_block_php&quot; style=&quot;color: #919191; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;/** objeto error de mysql */&lt;/span&gt; 

    &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #919191; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;//agrupar campo timestamp mysql&lt;/span&gt;
    &lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$fec&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$objDi&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;consultar&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_sql string_quoted_double_sql_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&quot;&lt;span class=&quot;source source_sql source_sql_embedded source_sql_embedded_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;SELECT&lt;/span&gt; DATE_FORMAT(fec_reg,&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_sql&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&#39;%D&#39;&lt;/span&gt;) AS dateGroup 
                              &lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;FROM&lt;/span&gt; tbl_diezmos &lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;GROUP BY&lt;/span&gt; dateGroup 
                              &lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;ORDER by&lt;/span&gt; dateGroup ASC&lt;/span&gt;&quot;&lt;/span&gt;);

    &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #919191; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;//o &lt;/span&gt;

    &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #919191; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;//extrayendo y agrupando fecha en campo timestamp mysql&lt;/span&gt;
     &lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$fec&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$objDi&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;consultar&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_sql string_quoted_double_sql_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&quot;&lt;span class=&quot;source source_sql source_sql_embedded source_sql_embedded_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;storage storage_type storage_type_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;DATE&lt;/span&gt;(fec_reg) AS dateGroup 
                               &lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;FROM&lt;/span&gt; tbl_diezmos &lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;GROUP BY&lt;/span&gt; dateGroup 
                               &lt;span class=&quot;keyword keyword_other keyword_other_DML keyword_other_DML_sql&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;ORDER by&lt;/span&gt; dateGroup ASC&lt;/span&gt;&quot;&lt;/span&gt;);

&lt;span class=&quot;source source_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/span&gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;REPORTE DE CAJEROS&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;

FECHA:  &amp;lt;select name=&quot;fecha&quot;&amp;gt;
            &lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&amp;lt;?php
            &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;while&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$row2&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_function support_function_php_mysql support_function_php_mysql_php&quot; style=&quot;color: #a535ae; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;mysql_fetch_row&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$fec&lt;/span&gt;)){;
                &lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot; style=&quot;color: #a535ae; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&amp;lt;option&amp;gt;&lt;/span&gt;&#39;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;$row2&lt;/span&gt;[&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;0&lt;/span&gt;]&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&amp;lt;/option&amp;gt;&lt;/span&gt;&#39;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: #ff5600; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;color: #00a33f; padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;&lt;span class=&quot;constant constant_character constant_character_escape constant_character_escape_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;\n&lt;/span&gt;&lt;/span&gt;&quot;&lt;/span&gt;;
            }
            &lt;span class=&quot;source source_php&quot; style=&quot;padding-bottom: 0.1em; padding-top: 0.2em;&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/span&gt;

            &amp;lt;/select&amp;gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/621145066315017511/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/extrayendo-y-agrupando-fecha-en-campo.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/621145066315017511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/621145066315017511'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/extrayendo-y-agrupando-fecha-en-campo.html' title='extrayendo y agrupando fecha en campo tipo timestamp mysql'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-3100086387309797327</id><published>2011-04-14T19:39:00.000-05:00</published><updated>2011-04-14T19:39:40.708-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="comandos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Comandos Basicos II Linux CentOS</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;ejercicios de Tuberias en Linux CentOS&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;buscar cuantas palabras root tiene el archivo de los usurios del sistema operativo&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;#grep root /etc/passwd | wc -w&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
cuantas particiones tiene el disco duro&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;[root@localhost ~]#&amp;nbsp; fdisk -l | grep /dev |&amp;nbsp; wc -l&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;14/04/2011&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/3100086387309797327/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/comandos-basicos-ii-linux-centos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/3100086387309797327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/3100086387309797327'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/comandos-basicos-ii-linux-centos.html' title='Comandos Basicos II Linux CentOS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-6841901083131313437</id><published>2011-04-12T19:40:00.000-05:00</published><updated>2011-04-12T19:40:04.349-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="comandos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Cambiando permisos y Comandos basicos LINUX CentOS</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Comando Basicos de Linux en el entorno de CentOS &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;cambiar propiedades del archivo &lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: red;&quot;&gt;# chown &lt;/span&gt;guest4 registro4&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;cambiar de ususario y grupo a un archivo&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;# chown &lt;/span&gt;guest4.guest4 registro4&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;cambiar grupo a un archivo&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;# chgrp &lt;/span&gt;grupo4 registro4&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;[root@localhost ~]# ls -l&lt;/span&gt;&lt;br /&gt;
total 108&lt;br /&gt;
-rw------- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; 4418 abr&amp;nbsp; 9 08:44 anaconda-ks.cfg&lt;br /&gt;
drwxr-xr-x 2 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 abr 12 13:00 Desktop&lt;br /&gt;
-rw-r--r-- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp; 62179 abr&amp;nbsp; 9 08:43 install.log&lt;br /&gt;
-rw-r--r-- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 abr&amp;nbsp; 9 08:20 install.log.syslog&lt;br /&gt;
-rw-r--r-- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 abr 12 13:52 ls&lt;br /&gt;
-rw-r--r-- 1 guest4 grupo4&amp;nbsp;&amp;nbsp;&amp;nbsp; 16 abr 12 13:53 registro4&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
CAMBIANDO PERMISOS EN LOS ARCHIVOS :&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-rw-------&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;PRIMERA COLUMNA &lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;- : es un archivo&lt;/div&gt;&lt;div style=&quot;background-color: white; color: magenta; font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;d: es un dorectorio&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;-rw------- 1&lt;/span&gt; root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; 4418 abr&amp;nbsp; 9 08:44 anaconda-ks.cfg&lt;br /&gt;
&lt;span style=&quot;color: magenta;&quot;&gt;drwxr-xr-x &lt;/span&gt;2 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 abr 12 13:00 Desktop&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;-+---+---+--- &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;1&amp;nbsp; 2&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp; 4&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;1: AREA DE TIPO DE FICHERO&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;2: AREA DE PERMISO DE USUSARIO&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;3: AREA DE PERMISO DE GRUPO&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;4: AREA DE PERMISO DE OTROS&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; r = leer&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; w = escribir&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; x = ejecutar&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp; - = sin permiso&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;el orden es - rwx r-x r-x&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;b&gt;#chmod el comando usa por bloque los siguientes opcion&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;r = 4, w = 2, x = 1, - = 0 } la suma total o los permisos totales seria de 7&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Permisos por defecto para ARCHIVOS 644&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Permisos por defecto para CARPETAS 755&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# chmod 543 registro4 &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;[root@localhost ~]# ls -l&lt;br /&gt;
total 108&lt;br /&gt;
-rw------- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; 4418 abr&amp;nbsp; 9 08:44 anaconda-ks.cfg&lt;br /&gt;
drwxr-xr-x 2 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 abr 12 13:00 Desktop&lt;br /&gt;
-rw-r--r-- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp; 62179 abr&amp;nbsp; 9 08:43 install.log&lt;br /&gt;
-rw-r--r-- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 abr&amp;nbsp; 9 08:20 install.log.syslog&lt;br /&gt;
-rw-r--r-- 1 root&amp;nbsp;&amp;nbsp; root&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 abr 12 13:52 ls&lt;br /&gt;
-r-xr---wx 1 guest4 grupo4&amp;nbsp;&amp;nbsp;&amp;nbsp; 16 abr 12 13:53 &lt;span style=&quot;background-color: #444444; color: lime;&quot;&gt;registro4&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;el color verde es un archivos ejecutable&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
Prof. Carlos Jara - Idatux&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;a href=&quot;http://tareasyclases.co.cc/&quot;&gt;http://tareasyclases.co.cc/&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/6841901083131313437/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/cambiando-permisos-y-comandos-basicos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6841901083131313437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/6841901083131313437'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/04/cambiando-permisos-y-comandos-basicos.html' title='Cambiando permisos y Comandos basicos LINUX CentOS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-2529767806890712238</id><published>2011-03-25T01:32:00.004-05:00</published><updated>2012-06-23T03:18:56.173-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fiscal"/><category scheme="http://www.blogger.com/atom/ns#" term="imprimir"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="lado del cliente"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="tiquetera"/><title type='text'>IMPRIMIR TICKET EN IMPRESORA FISCAL CON PHP - PASO A PASO - LADO DEL CLIENTE</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;-- imprimir impresora tickets php - comandos esc / pos - punto de venta &amp;nbsp;--&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Vamos paso a paso amigos:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Y ahora vamos con el lado del cliente que recibe.&lt;br /&gt;
&lt;br /&gt;
En nuestro caso el servidor realiza el proceso de registro a travez de AJAX lo cual el proceso de registro nos devuelve la respuesta:&lt;br /&gt;
&lt;br /&gt;
mediante jquery registro un nombre:&lt;br /&gt;
&lt;br /&gt;
digamos que el input del form se llama txt_nom &amp;lt; - input id=&quot;txt_nom&quot; type=&quot;text&quot;  - /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
entonces con jquery lo rescatamos asi:&lt;br /&gt;
&lt;br /&gt;
var nom = $(&quot;#txt_nom&quot;).val();&lt;br /&gt;
&lt;br /&gt;
ahora este valor lo vamos a pasar a la pagina que procesa el registro, que se llama guarda.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;lt;&lt;/span&gt;script&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&lt;/span&gt;var nom = $(&quot;#txt_nom&quot;).val();
    &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;POST&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;guarda.php&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;nom:nom&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;storage storage_type storage_type_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;datos_retorno&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_js&quot; style=&quot;color: #888888;&quot;&gt;//aqui resivo si es ok o error&lt;/span&gt;
    &lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;lt;&lt;/span&gt;/script&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;Ahora vemos el contenido de la pagina guarda&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot;&gt;/** pagina guarda.php */&lt;/span&gt;

&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//recibo los parametros&lt;/span&gt;

&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$nom&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_global variable_other_global_php&quot;&gt;$_POST&lt;/span&gt;[&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;nom&lt;/span&gt;&quot;&lt;/span&gt;];

&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$r&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$objd&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_class keyword_operator_class_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;meta meta_function-call meta_function-call_object meta_function-call_object_php&quot;&gt;query&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;insert into tbl_reg (nombre) values (&#39;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$nom&lt;/span&gt;&#39;)&lt;/span&gt;&quot;&lt;/span&gt;);

    &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$r&lt;/span&gt;)
        &lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;ok&lt;/span&gt;&quot;&lt;/span&gt;;
        &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;support support_function support_function_construct support_function_construct_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;error&lt;/span&gt;&quot;&lt;/span&gt;;

&lt;span class=&quot;source source_php&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahora mas completo el script de aariba&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
6
7
8
9
10
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;lt;&lt;/span&gt;script&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;POST&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;guarda.php&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;nom:nom&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;storage storage_type storage_type_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;datos_retorno&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_js&quot; style=&quot;color: #888888;&quot;&gt;//aqui resivo si es ok o error&lt;/span&gt;

        &lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;datos_retorno&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;constant constant_language constant_language_boolean constant_language_boolean_true constant_language_boolean_true_js&quot; style=&quot;color: #003388; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_method meta_delimiter_method_period meta_delimiter_method_period_js&quot;&gt;.&lt;/span&gt;post&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;http://localhost/tosch/reporte/prueba.php&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_delimiter meta_delimiter_object meta_delimiter_object_comma meta_delimiter_object_comma_js&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;{&lt;/span&gt;datos:&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;pasas algo&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
        &lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;keyword keyword_control keyword_control_js&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;support support_function support_function_js&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_js&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;no se registro&quot;&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;;
    &lt;span class=&quot;meta meta_brace meta_brace_curly meta_brace_curly_js&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;meta meta_brace meta_brace_round meta_brace_round_js&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;lt;&lt;/span&gt;/script&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_js&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Ahora vemos que nuestro servidor esta invocando a la pagina que esta en nuestra pc, por eso el HTTP://LOCALHOST&lt;br /&gt;
&lt;br /&gt;
y la pagina prueba.php esta esto&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source-numbers&quot; style=&quot;color: #999999; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em; padding-right: 2em; text-align: right;&quot;&gt;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
&lt;/pre&gt;
&lt;/td&gt;&lt;td style=&quot;vertical-align: top;&quot;&gt;&lt;pre class=&quot;textmate-source&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;pre class=&quot;sunburst&quot; style=&quot;font-family: &#39;Bitstream Vera Sans Mono&#39;, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 9pt; line-height: 1.3em; margin-top: 0em;&quot;&gt;&lt;span class=&quot;source source_php source_php_embedded source_php_embedded_block source_php_embedded_block_html&quot;&gt;/**
 * &lt;span class=&quot;keyword keyword_other keyword_other_phpdoc keyword_other_phpdoc_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;@author&lt;/span&gt; ZEGARRA CORNE, Sergio
 * &lt;span class=&quot;keyword keyword_other keyword_other_phpdoc keyword_other_phpdoc_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;@copyright&lt;/span&gt; 2009
 */&lt;/span&gt;


&lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;if&lt;/span&gt;((&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_error-control keyword_operator_error-control_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fopen&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;COM5&lt;/span&gt;&quot;&lt;/span&gt;, &lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;w&lt;/span&gt;&quot;&lt;/span&gt;)) &lt;span class=&quot;keyword keyword_operator keyword_operator_comparison keyword_operator_comparison_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;constant constant_language constant_language_php&quot; style=&quot;color: #003388; font-weight: bold;&quot;&gt;FALSE&lt;/span&gt;){
        &lt;span class=&quot;keyword keyword_control keyword_control_php&quot; style=&quot;color: #008800; font-weight: bold;&quot;&gt;die&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;No se puedo Imprimir, Verifique su conexion con el Terminal&lt;/span&gt;&#39;&lt;/span&gt;);
    }

&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$dato&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;variable variable_other variable_other_global variable_other_global_php&quot;&gt;$_POST&lt;/span&gt;[&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;datos&lt;/span&gt;&#39;&lt;/span&gt;];  

&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;,&lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;64&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//reinicio&lt;/span&gt;

&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//fwrite($handle, chr(27). chr(112). chr(48));//ABRIR EL CAJON&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea VACIO&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;33&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;8&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//negrita&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;97&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//centrado&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;,&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;=================================&lt;/span&gt;&quot;&lt;/span&gt;);
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;32&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;3&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//ESTACIO ENTRE LETRAS&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;,&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;I. C. M. EL APOSENTO ALTO &lt;/span&gt;&quot;&lt;/span&gt;);
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;32&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//ESTACIO ENTRE LETRAS&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea VACIO&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;33&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;8&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//negrita&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea VACIO&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;,&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;Nacimos de Nuevo para ser grandes&lt;/span&gt;&quot;&lt;/span&gt;);
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;,&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;=================================&lt;/span&gt;&quot;&lt;/span&gt;);
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;, &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;27&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;100&lt;/span&gt;)&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt; &lt;span class=&quot;support support_function support_function_string support_function_string_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;chr&lt;/span&gt;(&lt;span class=&quot;constant constant_numeric constant_numeric_php&quot; style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;));&lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//salto de linea&lt;/span&gt;
&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fwrite&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;,&lt;span class=&quot;string string_quoted string_quoted_double string_quoted_double_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&quot;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_double meta_string-contents_quoted_double_php&quot;&gt;PALABRA A IMPRIMIT: &lt;/span&gt;&quot;&lt;/span&gt;&lt;span class=&quot;keyword keyword_operator keyword_operator_string keyword_operator_string_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$dato&lt;/span&gt;);


&lt;span class=&quot;support support_function support_function_file support_function_file_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;fclose&lt;/span&gt;(&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$handle&lt;/span&gt;); &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;// cierra el fichero PRN&lt;/span&gt;
&lt;span class=&quot;variable variable_other variable_other_php&quot;&gt;$salida&lt;/span&gt; &lt;span class=&quot;keyword keyword_operator keyword_operator_assignment keyword_operator_assignment_php&quot; style=&quot;color: black; font-weight: normal;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;support support_function support_function_exec support_function_exec_php&quot; style=&quot;color: #cc0000; font-weight: bold;&quot;&gt;shell_exec&lt;/span&gt;(&lt;span class=&quot;string string_quoted string_quoted_single string_quoted_single_php&quot; style=&quot;background-color: #fff0f0; color: #dd2200;&quot;&gt;&#39;&lt;span class=&quot;meta meta_string-contents meta_string-contents_quoted meta_string-contents_quoted_single meta_string-contents_quoted_single_php&quot;&gt;lpr COM5&lt;/span&gt;&#39;&lt;/span&gt;); &lt;span class=&quot;comment comment_line comment_line_double-slash comment_line_double-slash_php&quot; style=&quot;color: #888888;&quot;&gt;//lpr-&amp;gt;puerto impresora, imprimir archivo PRN&lt;/span&gt;
&lt;span class=&quot;source source_php&quot;&gt;?&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;br /&gt;
RECUERDEN QUE ESTA PAGINA prueba.php SE ESTA EJECUTANDO EN LA PC LOCAL, en mi caso en el DISTRITO DE ATE VITARTE, PUENTE PIEDRA, ETC.....&lt;br /&gt;
&lt;br /&gt;
ESPERO QUE CON ESTO ESTE MAS CLARA LA&amp;nbsp;SOLUCIÓN&amp;nbsp;A SUS PROBLEMAS, y si no es&amp;nbsp;así&amp;nbsp;podemos ponernos en contacto, claro, siempre y cuando&amp;nbsp;estén&amp;nbsp;cerca, por el momento estoy &amp;nbsp;ocupado, ya que estoy en mi VI CICLO de la IDAT y tan dejando mucha tarea, pero si aun le quedan mas dudas tratare de ralizar un video paso a paso.&lt;br /&gt;
&lt;br /&gt;
Su amigo para servirles Sergio Zegarra&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/2529767806890712238/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2011/03/imprimir-ticket-en-impresora-fiscal-con.html#comment-form' title='119 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/2529767806890712238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/2529767806890712238'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2011/03/imprimir-ticket-en-impresora-fiscal-con.html' title='IMPRIMIR TICKET EN IMPRESORA FISCAL CON PHP - PASO A PASO - LADO DEL CLIENTE'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>119</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-8801666308905888753</id><published>2010-11-30T23:53:00.000-05:00</published><updated>2010-11-30T23:53:19.983-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>LIMITAR VELOCIDAD DE DESCARGA DE ARCHIVOS EN PHP</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Aquí&amp;nbsp;les traigo un ejemplo practico de como limitar la velocidad de descarga para no saturar el ancho de banda con el que cuentan, de esta manera&amp;nbsp;habrá&amp;nbsp;mas visitas a su espacio y no tendran que modificar ningun parametro de su servidor (APACHE, IIS, etc).&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;Aqui he copia un ejemplo:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;script src=&quot;http://pastie.org/1337430.js&quot;&gt;
&lt;/script&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;a href=&quot;http://www.propiedadprivada.com/&quot;&gt;Entrada publicada en:&amp;nbsp;http://www.propiedadprivada.com/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel="related" href="http://www.propiedadprivada.com/limitar-la-velocidad-de-descarga-de-archivos-desde-php/77/" title="LIMITAR VELOCIDAD DE DESCARGA DE ARCHIVOS EN PHP"/><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/8801666308905888753/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2010/11/limitar-velocidad-de-descarga-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/8801666308905888753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/8801666308905888753'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2010/11/limitar-velocidad-de-descarga-de.html' title='LIMITAR VELOCIDAD DE DESCARGA DE ARCHIVOS EN PHP'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-705812562567149547</id><published>2010-11-30T03:57:00.002-05:00</published><updated>2010-11-30T04:00:49.848-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Extraer RUTA, NOMBRE y EXTENCION de un archivo - PHP</title><content type='html'>&lt;h3&gt;&lt;a href=&quot;http://upload.wikimedia.org/wikipedia/commons/2/27/Crystal_Clear_mimetype_php.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://upload.wikimedia.org/wikipedia/commons/2/27/Crystal_Clear_mimetype_php.png&quot; /&gt;&lt;/a&gt;Planteamiento&lt;/h3&gt;Algo que en principio parece tan trivial, se complica si empezamos a  pensar en las diferentes posibilidades de uso (o mal uso) de una función  de este tipo:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Extensión sin nombre:&lt;/strong&gt; .htaccess&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nombre sin extensión:&lt;/strong&gt; name&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nombre simplón:&lt;/strong&gt; name.jpeg&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Nombre complejo:&lt;/strong&gt; name.surname.gif&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ruta absoluta:&lt;/strong&gt; /path/to/name.surname.tar.gz&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ruta relativa:&lt;/strong&gt; ../../path/to/name.surname.tar.gz&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;BONUS: Cadena vacia para romper la función&lt;/strong&gt; Comillas vacias &#39;&#39;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;BONUS 2: Cadena malformada para romper la función&lt;/strong&gt; &#39;/\/.path///file/.gif&#39;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;BONUS 3: Ruta sin archivo&lt;/strong&gt; &#39;/path/to/folder/&#39;&lt;/li&gt;
&lt;/ul&gt;&lt;span id=&quot;more-746&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;Requerimientos&lt;/h3&gt;Si además queremos aumentar los requerimientos, la cosa se puede complicar bastante:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Yo como soy un perfeccionista de mierda, quiero 7 Campos: &lt;ul&gt;&lt;li&gt;¿ El fichero existe ? Puede ser útil en caso de querer borrar/comprobar&lt;/li&gt;
&lt;li&gt;¿ El fichero es escribible ? Puede ser útil en caso de querer borrar/editar&lt;/li&gt;
&lt;li&gt;Los permisos del archivo en formato &quot;humano&quot;&lt;/li&gt;
&lt;li&gt;El Nombre sin extensión&lt;/li&gt;
&lt;li&gt;La Extensión sin nombre&lt;/li&gt;
&lt;li&gt;El Archivo (nombre+extensión)&lt;/li&gt;
&lt;li&gt;La Ruta&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt; La función debe ser totalmente compatible hacia atrás, al menos cubriendo a PHP4&lt;/li&gt;
&lt;li&gt;En la medida de lo posible, no quiero errores si el usuario me pasa datos no válidos&lt;/li&gt;
&lt;li&gt;No quiero cadenas vacias, si uno de los campos no existe quiero un lindo &lt;span style=&quot;color: red; font-weight: bold;&quot;&gt;FALSE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Quiero la ruta sin / al final, añadirla en otras partes del flujo de  código es mucho más sencillo que tener que quitarla a posteriori.&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/h3&gt;&lt;h3&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small; font-weight: normal;&quot;&gt;Fuente:&amp;nbsp;&lt;a href=&quot;http://www.propiedadprivada.com/&quot;&gt;http://www.propiedadprivada.com/&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;br /&gt;
&lt;script src=&quot;http://pastie.org/1334733.js&quot;&gt;
&lt;/script&gt;</content><link rel="related" href="http://www.propiedadprivada.com/funcion-php-extraer-ruta-nombre-y-extension-de-un-archivo/746/" title="Extraer RUTA, NOMBRE y EXTENCION de un archivo - PHP"/><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/705812562567149547/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2010/11/extraer-ruta-nombre-y-extencios-de-un.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/705812562567149547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/705812562567149547'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2010/11/extraer-ruta-nombre-y-extencios-de-un.html' title='Extraer RUTA, NOMBRE y EXTENCION de un archivo - PHP'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-5759548964562206832</id><published>2010-11-20T17:57:00.003-05:00</published><updated>2010-11-30T03:58:58.829-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cuidado de la pc"/><category scheme="http://www.blogger.com/atom/ns#" term="electricidad"/><category scheme="http://www.blogger.com/atom/ns#" term="tierra fisica"/><title type='text'>Puesta a Tierra, Tierra Fisica o Pozo Tierra</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://tecnoculto.com/wp-content/uploads/electrocutado.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;http://tecnoculto.com/wp-content/uploads/electrocutado.jpg&quot; width=&quot;98&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno&amp;nbsp;aquí&amp;nbsp;les dejo un&amp;nbsp;vídeo&amp;nbsp;tutorial el cual nos enseñara la importancia de tener una puesta a tierra (Tierra Fisica o Pozo Tierra) para proteger nuestras pc´s tan preciadas de las descargas electricas que siempre pasan, o nunca te a pasado que cuando tocas alguna &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: red;&quot;&gt;parte metalica de tu Pc, Laptop y/o artefacto &lt;/span&gt;&lt;/b&gt;no sientes como que te estas electrucutando, ahora&amp;nbsp;imagínate&amp;nbsp;lo que tiene que soportar tu pc y/o artefactos&amp;nbsp;eléctricos todos las veces que lo usas, bueno a pensar y a darle solucion antes que sea muy tarde....&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;u&gt;&lt;b&gt;Vean lo&amp;nbsp;fácil&amp;nbsp;que es&amp;nbsp;prepararlas&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.youtube.com/watch?v=wIwMe-5LIp8&quot;&gt;Parte 1&lt;/a&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;object height=&quot;385&quot; width=&quot;480&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/wIwMe-5LIp8?fs=1&amp;amp;hl=es_ES&amp;amp;rel=0&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/wIwMe-5LIp8?fs=1&amp;amp;hl=es_ES&amp;amp;rel=0&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=DQVyoVp9xlk&amp;amp;feature=related&quot;&gt;Parte 2&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;object height=&quot;385&quot; width=&quot;480&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/DQVyoVp9xlk?fs=1&amp;amp;hl=es_ES&amp;amp;rel=0&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;/param&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;/param&gt;&lt;embed src=&quot;http://www.youtube.com/v/DQVyoVp9xlk?fs=1&amp;amp;hl=es_ES&amp;amp;rel=0&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;480&quot; height=&quot;385&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;Bueno saquen ustedes mismos sus conclusiones, pero no esperen a que se les malogre su pc o quedar electrocutados por una falla&amp;nbsp;eléctrica.&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;Ah, los&amp;nbsp;vídeos&amp;nbsp;los&amp;nbsp;encontré&amp;nbsp;en YOUTUBE.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;i&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Contribullan con sus tareas&amp;nbsp;aquí&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;a href=&quot;http://www.tareasyclases.co.cc/&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;http://www.tareasyclases.co.cc&lt;/span&gt;&lt;/a&gt;&lt;/i&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/5759548964562206832/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2010/11/puesta-tierra-tierra-fisica-o-pozo.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5759548964562206832'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/5759548964562206832'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2010/11/puesta-tierra-tierra-fisica-o-pozo.html' title='Puesta a Tierra, Tierra Fisica o Pozo Tierra'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-4116392267919042568</id><published>2010-06-15T01:33:00.000-05:00</published><updated>2010-06-15T01:33:06.925-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="actualizaciones"/><category scheme="http://www.blogger.com/atom/ns#" term="antivirus"/><category scheme="http://www.blogger.com/atom/ns#" term="panda"/><category scheme="http://www.blogger.com/atom/ns#" term="troyano"/><category scheme="http://www.blogger.com/atom/ns#" term="virus"/><title type='text'>MI ANTIVIRUS ORIGINAL NO SE ACTUALIZA - TROYANO QUE DESHABILITA LOS ANTIVIRUS</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Troyano (virus) que deshabilita los antivirus (actualizaciones)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;MI ANTIVIRUS ORIGINAL NO SE ACTUALIZA&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Les&amp;nbsp;informo&amp;nbsp;que este TROYANO tiene la particularidad de BLOQUEAR LAS ACTUALIZACIONES DE LOS ANTIVIRUS (lo&amp;nbsp;comprobé&amp;nbsp;con el PANDA, KASPERSKY, MCAFEE).&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Les comento que compre un antivirus con LICENCIA ORIGINAL (&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;como&amp;nbsp;siempre, solo&amp;nbsp;original....&lt;/i&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;), para una contadora, pero en unas semanas me llamo la contadora&amp;nbsp;diciéndome&amp;nbsp;que el antivirus no se actualiza, y bueno me quede con la duda; y como ella sabe algo de&amp;nbsp;antivirus, que hay&amp;nbsp;versiones&amp;nbsp;de prueba (demo), me hiso la pregunta si era de prueba por lo cual yo le informe de que NO, que era uno original y con licencia de una AÑO, pero este mismo no se actualizaba.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Entonces trate de ver porque no se actualizaba, y entre al amigo GOOGLE y busque&amp;nbsp;información&amp;nbsp;del problema en la pagina de la empresa (fabricante del antivirus) y me di con la sorpresa que la pagina no se&amp;nbsp;mostraba, era como que no tuviese una&amp;nbsp;conexión&amp;nbsp;a&amp;nbsp;Internet, me puse a pensar, y dije, no creo que el servidor de la empresa se halla&amp;nbsp;caído, entonces trate de buscar otra empresa, y de nuevo me&amp;nbsp;seguía&amp;nbsp;como que no tuviese&amp;nbsp;Internet&amp;nbsp;Internet, entonces fui a otra pc a comprobar y me pasaba lo mismo, dentro de mi no creo que las empresas mas importantes de ANTIVIRUS hallan colapsado, en mi ultimo intento fui a&amp;nbsp;comprobar&amp;nbsp;en un DICHOSA MAC e&amp;nbsp;hice&amp;nbsp;lo mismo, busque la pagina de la empresa del&amp;nbsp;antivirus&amp;nbsp;y que creen, funciona normal, entonces,&amp;nbsp;ahí,&amp;nbsp;descubrí&amp;nbsp;a este MUY BUEN PROGRAMADO TROYANO, que deshabilitaba toda&amp;nbsp;actualización&amp;nbsp;y hasta bloqueaba la propia pagina &amp;nbsp;de la empresa.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;Bueno&amp;nbsp;aquí&amp;nbsp;les describo su nombre y algunas cosas mas.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Nombre:&lt;/strong&gt; Bagle.DN &lt;b&gt;Nombre NOD32:&lt;/b&gt; Win32/Bagle.DN&lt;br /&gt;
&lt;b&gt;Tipo:&lt;/b&gt;  Caballo de Troya &lt;b&gt;Alias:&lt;/b&gt; Bagle.DN, Dropped:Win32.Bagle.EL@mm,  Email-Worm.Win32.Bagle.EE, Email-Worm.Win32.Bagle.el, I-Worm.Bagle.el,  I-Worm/Bagle, TR/Bagle.DY, TR/Bagle.DY.DLL, Trj/Mitglieder.FP,  Troj/BagDl-Fam, Troj/BagleDl-AA, Trojan.Lodav.B, Trojan.Lodear.D,  Trojan/Bagle.DY, Trojan/Bagle.DY.DLL, W32.Beagle.CO@mm, W32/Bagle.EL-mm,  W32/Bagle.gen, W32/Bagle.GEN@MM, W32/KillAV.CH!tr, W32/Mitglied.NN,  W32/Mitglieder.gen, Win32.Bagle.EL@mm, Win32.Fantibag.I,  Win32.HLLM.Beagle.38912, Win32/Bagle.DN, Win32/Fantibag.I!DLL!Trojan,  Win32/Fantibag.I!Trojan, Win32:Beagle-gen5, Worm.Beagle.El,  WORM_BAGLE.BQ&lt;br /&gt;
&lt;b&gt;Fecha:&lt;/b&gt; 7/nov/05 &lt;b&gt;Plataforma:&lt;/b&gt; Windows  32-bit &lt;b&gt;Tamaño:&lt;/b&gt; 15,088 bytes &lt;b&gt;Puerto:&lt;/b&gt; TCP 80.  Caballo de Troya descargado por variantes del Bagle, que intenta  desactivar diversos productos antivirus y cortafuegos.&lt;br /&gt;
&lt;br /&gt;
Fue  detectado el 7 de noviembre de 2005.&lt;br /&gt;
&lt;br /&gt;
Cuando se ejecuta, crea los  siguientes archivos en la carpeta System de Windows: &lt;br /&gt;
&lt;blockquote&gt;c:\windows\system32\antiav_exe.exe&lt;br /&gt;
c:\windows\system32\antiav_dll.dll  &lt;/blockquote&gt;El archivo .DLL es inyectado en el proceso de  EXPLORER.EXE (la interfase del propio Windows).&lt;br /&gt;
&lt;br /&gt;
NOTA:  &quot;c:\windows\system32&quot; puede variar de acuerdo al sistema operativo  instalado (con ese nombre por defecto en Windows XP y Windows Server  2003, como &quot;c:\winnt\system32&quot; en Windows NT y 2000 y  &quot;c:\windows\system&quot; en Windows 9x y ME).&lt;br /&gt;
&lt;br /&gt;
Crea las siguientes  entradas en el registro, para autoejecutarse en cada reinicio de  Windows: &lt;br /&gt;
&lt;blockquote&gt;HKCU\Software\Microsoft\Windows\CurrentVersion\Run&lt;br /&gt;
auto__antiav__key  = &quot;c:\windows\system32\antiav_exe.exe&quot;&lt;br /&gt;
&lt;br /&gt;
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run&lt;br /&gt;
auto__antiav__key  = &quot;c:\windows\system32\antiav_exe.exe&quot; &lt;/blockquote&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Usando el  DLL inyectado en el proceso EXPLORER.EXE, el gusano intenta conectarse a  diversos sitios de Internet, a través del puerto TCP 80 para descargar  otros archivos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;El troyano, intenta desactivar los procesos  relacionados con archivos, todos ellos relacionados con programas de  seguridad (antivirus y cortafuegos) e intenta borrar todos los archivos  del equipo infectado.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;Además, impide el acceso a las siguientes  direcciones, intentando impedir que los productos antivirus puedan  actualizarse:&lt;/div&gt;&lt;blockquote&gt;193 .69 .114 .12&lt;br /&gt;
212 .113 .20 .69&lt;br /&gt;
213  .219 .245 .4&lt;br /&gt;
213 .248 .60 .121&lt;br /&gt;
216 .200 .68 .152&lt;br /&gt;
62 .146 .66  .181&lt;br /&gt;
63 .210 .193 .12&lt;br /&gt;
84 .53 .142 .22&lt;br /&gt;
84 .53 .142 .6&lt;br /&gt;
ad  .doubleclick .net&lt;br /&gt;
ad .fastclick .net&lt;br /&gt;
ads .fastclick .net&lt;br /&gt;
antivir  .de&lt;br /&gt;
anti-virus .by&lt;br /&gt;
ar .atwola .com&lt;br /&gt;
atdmt .com&lt;br /&gt;
avast .com&lt;br /&gt;
avira  .com&lt;br /&gt;
avp .ch&lt;br /&gt;
avp .com&lt;br /&gt;
avp .ru&lt;br /&gt;
awaps .net&lt;br /&gt;
banner  .fastclick .net&lt;br /&gt;
banners .fastclick .net&lt;br /&gt;
bitdefender .com&lt;br /&gt;
bitdefender  .ru&lt;br /&gt;
ca .com&lt;br /&gt;
clamav .net&lt;br /&gt;
clamwin .com&lt;br /&gt;
click .atdmt .com&lt;br /&gt;
clicks  .atdmt .com&lt;br /&gt;
customer .symantec .com&lt;br /&gt;
database .clamav .net&lt;br /&gt;
dispatch  .mcafee .com&lt;br /&gt;
download .ikarus .at&lt;br /&gt;
download .mcafee .com&lt;br /&gt;
download  .microsoft .com&lt;br /&gt;
download25 .avast .com&lt;br /&gt;
downloadhosting .core  .ignum .cz&lt;br /&gt;
downloads .avira .com&lt;br /&gt;
downloads .microsoft .com&lt;br /&gt;
downloads1  .kaspersky-labs .com&lt;br /&gt;
downloads2 .kaspersky-labs .com&lt;br /&gt;
downloads3  .kaspersky-labs .com&lt;br /&gt;
downloads4 .kaspersky-labs .com&lt;br /&gt;
downloads-eu1  .kaspersky-labs .com&lt;br /&gt;
downloads-us1 .kaspersky-labs .com&lt;br /&gt;
downloads-us2  .kaspersky-labs .com&lt;br /&gt;
downloads-us3 .kaspersky-labs .com&lt;br /&gt;
drweb  .com&lt;br /&gt;
drweb .ru&lt;br /&gt;
engine .awaps .net&lt;br /&gt;
esetsoftware .com&lt;br /&gt;
fastclick  .net&lt;br /&gt;
files .referats .net&lt;br /&gt;
f-secure .com&lt;br /&gt;
ftp .avp .ch&lt;br /&gt;
ftp  .downloads2 .kaspersky-labs .com&lt;br /&gt;
ftp .f-secure .com&lt;br /&gt;
ftp  .kasperskylab .ru&lt;br /&gt;
ftp .sophos .com&lt;br /&gt;
ftpav .ca .com&lt;br /&gt;
gin .ba  .euroweb .sk&lt;br /&gt;
go .microsoft .com&lt;br /&gt;
grisoft .com&lt;br /&gt;
hbedv .com&lt;br /&gt;
ids  .kaspersky-labs .com&lt;br /&gt;
ikarus-software .at&lt;br /&gt;
kaspersky .com&lt;br /&gt;
kaspersky  .ru&lt;br /&gt;
kaspersky-labs .com&lt;br /&gt;
liveupdate .symantec .com&lt;br /&gt;
liveupdate  .symantecliveupdate .com&lt;br /&gt;
mast .mcafee .com&lt;br /&gt;
mcafee .com&lt;br /&gt;
media  .fastclick .net&lt;br /&gt;
msdn .microsoft .com&lt;br /&gt;
msk4 .drweb .com&lt;br /&gt;
my-etrust  .com&lt;br /&gt;
my-etrust .com&lt;br /&gt;
nai .com&lt;br /&gt;
networkassociates .com&lt;br /&gt;
niutwo  .norman .no&lt;br /&gt;
office .microsoft .com&lt;br /&gt;
open .by&lt;br /&gt;
pandasoftware .com&lt;br /&gt;
phx  .corporate-ir .net&lt;br /&gt;
rads .mcafee .com&lt;br /&gt;
ravantivirus .com&lt;br /&gt;
report  .bitdefender .com&lt;br /&gt;
rs02 .avast .com&lt;br /&gt;
rs03 .avast .com&lt;br /&gt;
rs06 .avast  .com&lt;br /&gt;
rs07 .avast .com&lt;br /&gt;
rs08 .avast .com&lt;br /&gt;
rs10 .avast .com&lt;br /&gt;
rs11  .avast .com&lt;br /&gt;
rs18 .avast .com&lt;br /&gt;
rs18 .avast .com&lt;br /&gt;
rs20 .avast .com&lt;br /&gt;
rs24  .avast .com&lt;br /&gt;
secure .nai .com&lt;br /&gt;
securityresponse .symantec .com&lt;br /&gt;
service1  .symantec .com&lt;br /&gt;
sm01 .avast .com&lt;br /&gt;
sm04 .avast .com&lt;br /&gt;
sm05 .avast  .com&lt;br /&gt;
sm09 .avast .com&lt;br /&gt;
sm12 .avast .com&lt;br /&gt;
sm13 .avast .com&lt;br /&gt;
sm14  .avast .com&lt;br /&gt;
sm15 .avast .com&lt;br /&gt;
sm16 .avast .com&lt;br /&gt;
sm17 .avast .com&lt;br /&gt;
sm19  .avast .com&lt;br /&gt;
sm21 .avast .com&lt;br /&gt;
sm22 .avast .com&lt;br /&gt;
sm23 .avast .com&lt;br /&gt;
sm25  .avast .com&lt;br /&gt;
sophos .com&lt;br /&gt;
spd .atdmt .com&lt;br /&gt;
support .microsoft  .com&lt;br /&gt;
symantec .com&lt;br /&gt;
trendmicro .com&lt;br /&gt;
update .symantec .com&lt;br /&gt;
updates  .symantec .com&lt;br /&gt;
updates1 .kaspersky-labs .com&lt;br /&gt;
updates2  .kaspersky-labs .com&lt;br /&gt;
updates3 .kaspersky-labs .com&lt;br /&gt;
updates4  .kaspersky-labs .com&lt;br /&gt;
updates5 .kaspersky-labs .com&lt;br /&gt;
upgrade  .bitdefender .com&lt;br /&gt;
us .mcafee .com&lt;br /&gt;
vba32 .de&lt;br /&gt;
vil .nai .com&lt;br /&gt;
viruslist  .com&lt;br /&gt;
viruslist .ru&lt;br /&gt;
windowsupdate .microsoft .com&lt;br /&gt;
www .antivir  .de&lt;br /&gt;
www .anti-virus .by&lt;br /&gt;
www .avast .com&lt;br /&gt;
www .avira .com&lt;br /&gt;
www  .avp .ch&lt;br /&gt;
www .avp .com&lt;br /&gt;
www .avp .ru&lt;br /&gt;
www .awaps .net&lt;br /&gt;
www  .bitdefender .com&lt;br /&gt;
www .bitdefender .ru&lt;br /&gt;
www .ca .com&lt;br /&gt;
www .clamav  .net&lt;br /&gt;
www .clamwin .com&lt;br /&gt;
www .drweb .com&lt;br /&gt;
www .fastclick .net&lt;br /&gt;
www  .f-secure .com&lt;br /&gt;
www .grisoft .com&lt;br /&gt;
www .hacksoft .com .pe&lt;br /&gt;
www  .hbedv .com&lt;br /&gt;
www .kaspersky .com&lt;br /&gt;
www .kaspersky .ru&lt;br /&gt;
www  .kaspersky-labs .com&lt;br /&gt;
www .mcafee .com&lt;br /&gt;
www .my-etrust .com&lt;br /&gt;
www  .nai .com&lt;br /&gt;
www .networkassociates .com&lt;br /&gt;
www .open .by&lt;br /&gt;
www  .pandasoftware .com&lt;br /&gt;
www .ravantivirus .com&lt;br /&gt;
www .sophos .com&lt;br /&gt;
www  .symantec .com&lt;br /&gt;
www .trendmicro .com&lt;br /&gt;
www .vba32 .de&lt;br /&gt;
www  .viruslist .com&lt;br /&gt;
www .viruslist .ru&lt;br /&gt;
www2 .eset .com&lt;br /&gt;
www3 .ca  .com&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;zak .avira .com&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;Reparación manual&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;NOTA: Tenga en cuenta que de acuerdo a  las acciones realizadas por el atacante remoto, pueden aplicarse  cambios en el sistema no contemplados en esta descripción genérica.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;b&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: normal;&quot;&gt;&lt;b&gt;Sobre  el componente troyano&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Nota: Recomendamos utilizar un  programa tipo firewall (cortafuego) como el ZoneAlarm, el cuál detendrá y  advertirá la conexión de este y cualquier otro troyano con Internet,  así como cualquier intento de acceder a nuestro sistema.&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;!--StartFragment --&gt;Si  el sistema operativo instalado es Windows Me o Windows XP, para poder  eliminar correctamente este virus de su computadora, deberá deshabilitar  antes de cualquier acción, la herramienta &quot;Restaurar sistema&quot; .&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Fuente:  VS ANTIVIRUS y LAFLECHA.NET&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/4116392267919042568/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2010/06/mi-antivirus-original-no-se-actualiza.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/4116392267919042568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/4116392267919042568'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2010/06/mi-antivirus-original-no-se-actualiza.html' title='MI ANTIVIRUS ORIGINAL NO SE ACTUALIZA - TROYANO QUE DESHABILITA LOS ANTIVIRUS'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7581195575588609067.post-7040892921789998575</id><published>2010-06-13T02:18:00.005-05:00</published><updated>2010-06-13T07:08:16.911-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="ordenamientos"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Ordenar Cadenas (texto) Alfabeticamente con PHP =&gt; Ayudandonos de MySql (tablas temp)</title><content type='html'>&lt;style&gt;
code{
background-color: white;
}
&lt;/style&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Bueno aqui les dejo un forma de como ordenar cadenas alfabeticamente   (semejante al metodo de burbuja, claro esto es para texto), ayudandonos   de las funciones que trae la base de datos Mysql en el ordenamiento. &lt;br /&gt;
&lt;br /&gt;
Les esplico un poco, vamos a mostrar los archivos que tenemos en una   carpeta, pero lo queremos ver en forma ordenada (alfabeticamente), la   cual &lt;/span&gt; &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;inlineimg&quot; src=&quot;http://x10hosting.com/forums/images/smilies/confused.gif&quot; title=&quot;Confused&quot; /&gt; DEBE haber muchas formas  de ordenarlas con PHP&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;, pero  aqui les doy una forma mas (creo &lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;inlineimg&quot; src=&quot;http://x10hosting.com/forums/images/smilies/tongue.png&quot; title=&quot;Tongue&quot; /&gt;) , en este  ejemplo voy a  CREAR UNA TABLA TEMPORAL, esta me va a servir para  insertar los  registros en ella, una vez insertado solo me basta hacerle  un &lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELECT  * TABLA_TEMP &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ORDER BY&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt; a la  tabla  temporal.&lt;br /&gt;
&lt;br /&gt;
Aqui les dejo mi ejemplo, +o- explicado, si les gusta comentennnnn&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;span style=&quot;color: #0000bb;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;/*&amp;nbsp;primero&amp;nbsp;nos&amp;nbsp;conectamos&amp;nbsp;a&amp;nbsp;nuestra&amp;nbsp;base&amp;nbsp;de&amp;nbsp;datos,&amp;nbsp;en&amp;nbsp;mi&amp;nbsp;caso&amp;nbsp;yo&amp;nbsp;uso&amp;nbsp;una&amp;nbsp;&amp;nbsp;clase&amp;nbsp;que&amp;nbsp;hereda&amp;nbsp;la&amp;nbsp;conexion&amp;nbsp;*/&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;include_once&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;../class/capa_datos.class.php&#39;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$objD&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;new&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;capa_datos&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//instanciamos&amp;nbsp;la&amp;nbsp;clase&lt;br /&gt;
&lt;br /&gt;
//aqui&amp;nbsp;creamos&amp;nbsp;la&amp;nbsp;tabla&amp;nbsp;TEMPORAL&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$resp&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$objD&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;consultar&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;CREATE&amp;nbsp;TEMPORARY TABLE&amp;nbsp;listado_temp(nombre&amp;nbsp;TINYTEXT);&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//verificamos&amp;nbsp;que&amp;nbsp;se&amp;nbsp;halla&amp;nbsp;creado&amp;nbsp;correctamente&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;if(!&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$resp&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;Se&amp;nbsp;produjo&amp;nbsp;un&amp;nbsp;error,&amp;nbsp;Intentelo&amp;nbsp;en&amp;nbsp;unos&amp;nbsp;minutos&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exit();&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;subidos/&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$directorio&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;dir&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$path&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//en&amp;nbsp;mi&amp;nbsp;caso&amp;nbsp;yo&amp;nbsp;quiero&amp;nbsp;listar&amp;nbsp;los&amp;nbsp;archivos&amp;nbsp;que&amp;nbsp;tengo&amp;nbsp;en&amp;nbsp;una&amp;nbsp;carpeta&amp;nbsp;&amp;nbsp;&amp;nbsp;(subidos/)&lt;br /&gt;
//con&amp;nbsp;lo&amp;nbsp;cual&amp;nbsp;uso&amp;nbsp;la&amp;nbsp;funcion&amp;nbsp;READ(),&amp;nbsp;la&amp;nbsp;cual&amp;nbsp;lee&amp;nbsp;todos&amp;nbsp;los&amp;nbsp;archivos&amp;nbsp;que&amp;nbsp;&amp;nbsp;tengo&amp;nbsp;en&amp;nbsp;esta&amp;nbsp;carpeta&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;while&amp;nbsp;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$archivo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$directorio&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;read&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;()){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//como&amp;nbsp;ven&amp;nbsp;aqui,&amp;nbsp;miestras&amp;nbsp;el&amp;nbsp;READ&amp;nbsp;va&amp;nbsp;leyendo,&amp;nbsp;yo&amp;nbsp;voy&amp;nbsp;insertanto&amp;nbsp;EN&amp;nbsp;LA&amp;nbsp;&amp;nbsp;TABLA&amp;nbsp;TEMPORAL&amp;nbsp;lo&amp;nbsp;que&amp;nbsp;READ()&amp;nbsp;lee&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$resp2&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$objD&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;consultar&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;insert&amp;nbsp;into&amp;nbsp;listado_temp&amp;nbsp;&amp;nbsp;values(&#39;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$archivo&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;)&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//una&amp;nbsp;vez&amp;nbsp;leido&amp;nbsp;todo&amp;nbsp;cierro&amp;nbsp;el&amp;nbsp;directorio&amp;nbsp;o&amp;nbsp;finalizo&amp;nbsp;el&amp;nbsp;READ()&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$directorio&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;close&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;();&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//ahora&amp;nbsp;que&amp;nbsp;ya&amp;nbsp;la&amp;nbsp;tabla&amp;nbsp;esta&amp;nbsp;llena&amp;nbsp;solo&amp;nbsp;me&amp;nbsp;falta&amp;nbsp;hacer&amp;nbsp;un&amp;nbsp;simple&amp;nbsp;select&amp;nbsp;y&lt;br /&gt;
//decirle&amp;nbsp;que&amp;nbsp;los&amp;nbsp;muestre&amp;nbsp;ordenado,&amp;nbsp;por&amp;nbsp;lo&amp;nbsp;cual&amp;nbsp;le&amp;nbsp;paso&lt;br /&gt;
//la&amp;nbsp;instruccion&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;{nombre&amp;nbsp;de&amp;nbsp;la&amp;nbsp;columna}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$rf&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$objD&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;consultar&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;select&amp;nbsp;*&amp;nbsp;from&amp;nbsp;listado_temp&amp;nbsp;ORDER&amp;nbsp;BY&amp;nbsp;nombre&amp;nbsp;&amp;nbsp;ASC&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//recoro&amp;nbsp;la&amp;nbsp;tabla&amp;nbsp;temporal&amp;nbsp;con&amp;nbsp;un&amp;nbsp;while&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$i&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;br /&gt;
while(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$row&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;mysql_fetch_row&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$rf&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;)){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ff8000;&quot;&gt;//como&amp;nbsp;ven&amp;nbsp;empiezo&amp;nbsp;a&amp;nbsp;imprimir&amp;nbsp;los&amp;nbsp;datos&amp;nbsp;de&amp;nbsp;la&amp;nbsp;tabla&amp;nbsp;temporal&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;echo&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;&amp;lt;div&amp;gt;&amp;lt;a&amp;nbsp;&amp;nbsp;href=&#39;bajar.html?baja=&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&#39;&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$row&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;].&lt;/span&gt;&lt;span style=&quot;color: #dd0000;&quot;&gt;&quot;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700;&quot;&gt;++;&lt;br /&gt;
}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;color: #007700;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000bb;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;code&gt;Recuerden que la tabla temporal existira mientras la conexión este   abierta si es que  nosotros no la destruimos antes. Una vez cerrada la  conexión la tabla  será destruida y el espacio que ocupava (en memória o  disco) será  liberado. &lt;br /&gt;
&lt;br /&gt;
Espero les ayude en algo &lt;img alt=&quot;&quot; border=&quot;0&quot; class=&quot;inlineimg&quot; src=&quot;http://x10hosting.com/forums/images/smilies/wink.gif&quot; title=&quot;Wink&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
---------------------------------------&lt;br /&gt;
&lt;a href=&quot;http://www.videosconvida.com/&quot; target=&quot;_blank&quot;&gt;http://www.videosconvida.com&lt;/a&gt;&lt;br /&gt;
---------------------------------------&lt;/code&gt;&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://mitareaperu.blogspot.com/feeds/7040892921789998575/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://mitareaperu.blogspot.com/2010/06/ordenar-cadenas-texto-alfabeticamente.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/7040892921789998575'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7581195575588609067/posts/default/7040892921789998575'/><link rel='alternate' type='text/html' href='http://mitareaperu.blogspot.com/2010/06/ordenar-cadenas-texto-alfabeticamente.html' title='Ordenar Cadenas (texto) Alfabeticamente con PHP =&gt; Ayudandonos de MySql (tablas temp)'/><author><name>Sergio Zegarra</name><uri>http://www.blogger.com/profile/02164725370601535716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/-9FOcF-a8y5Q/UEzxtonnehI/AAAAAAAAAGI/IkytIlwZ_iQ/s220/img016.jpg'/></author><thr:total>0</thr:total></entry></feed>