<?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-7097117846814763701</id><updated>2024-10-06T21:11:52.294-07:00</updated><category term="linux"/><category term="lua"/><category term="preparacion"/><category term="unix"/><category term="5.2"/><category term="Ubuntu"/><category term="color"/><category term="figlet"/><category term="gedit"/><category term="hola mundo"/><category term="opensuse"/><category term="print"/><category term="red"/><category term="tuberia"/><category term="vim"/><title type='text'>User Shell *nix</title><subtitle type='html'>Scripting Unix,tuberias,distros Linux/BSD</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-1900316912062541470</id><published>2013-02-08T10:37:00.001-08:00</published><updated>2013-02-09T10:55:19.596-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="color"/><category scheme="http://www.blogger.com/atom/ns#" term="figlet"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Muestra texto en grande en la terminal con figlet</title><content type='html'>En distintos sistemas tipo Unix,o que tenga terminal podemos usar apps de misc,como cowsay,sl,etc y en esta ocacion les&amp;nbsp; muestro figlet que es una programa de tipo consola que muestra texto en la terminal con estilo :D&lt;br /&gt;
&lt;br /&gt;
Miren:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFhrQQPRdkW39VsiwdnI0a4L8WXEg4j2v9pgGJzcfapUqhjek5N_dVe94WWSkcgUW4-NG50ShB0ud6d14W2zpqPytXnuGqSSslgl5nFsYj566UtyLcnw7EKWMUOqhJQo0LNY-FK4MZOAg/s1600/2013-02-08-121403_1024x600_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFhrQQPRdkW39VsiwdnI0a4L8WXEg4j2v9pgGJzcfapUqhjek5N_dVe94WWSkcgUW4-NG50ShB0ud6d14W2zpqPytXnuGqSSslgl5nFsYj566UtyLcnw7EKWMUOqhJQo0LNY-FK4MZOAg/s400/2013-02-08-121403_1024x600_scrot.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Bien para instalar basta con:&lt;br /&gt;
&lt;br /&gt;
Teclear en terminal&lt;br /&gt;
&lt;br /&gt;
Para Gentoo&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;sudo emerge -av figlet&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Para Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;sudo apt-get install figlet&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Para Archlinux&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;sudo pacman -S figlet&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Y&amp;nbsp; ejecutan asi&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;figlet texto&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpViJLGehCVDZq4FvoDgCrEsW1j0Im0k8dQm390UkiNimg3exgSNUr2pmAYISQu9ToBCDw0GKaSUgcreKv7hHvZ3MsAw8BLlSbB-OmBUXq6EF695Cn9WCNgo8TVRTo5UIBuymg6dPmmp8/s1600/2013-02-08-121833_1024x600_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpViJLGehCVDZq4FvoDgCrEsW1j0Im0k8dQm390UkiNimg3exgSNUr2pmAYISQu9ToBCDw0GKaSUgcreKv7hHvZ3MsAw8BLlSbB-OmBUXq6EF695Cn9WCNgo8TVRTo5UIBuymg6dPmmp8/s400/2013-02-08-121833_1024x600_scrot.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Esto no queda aqui ya que le podemos dar formato,por ejemplo el formato de banner que vimos hace un tiempo en debian en&lt;a href=&quot;http://www.itimetux.com/2012/07/muestra-texto-grande-con-banner-en-la.html&quot; target=&quot;_blank&quot;&gt; Tiempo de Tux&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Solo basta con usar esta sintaxis&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;figlet -f &lt;span style=&quot;color: red;&quot;&gt;banner&lt;/span&gt; texto&lt;/b&gt;&lt;/blockquote&gt;
En lo de rojo es el nombre del formato de texto &lt;br /&gt;
&lt;br /&gt;
Yo no he probado todos los formatos que hay,pero en especial me gusto el speed&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;figlet -f speed Tetxo&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;Para ver todos los formatos que hay,en terminal&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;ls /usr/share/figlet/*flf | cut -d &quot;/&quot; -f 5 | cut -d &quot;.&quot; -f 1&lt;/b&gt;&lt;/blockquote&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&amp;nbsp;Tambien si quieren que tenga color como el mio,usen este script:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://pastebin.com/jm3hxHcY&quot; target=&quot;_blank&quot;&gt;Enlace&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Creen un archivo de texto con extension .sh y metan lo que esta en pastebinque se llame por ejemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;figlet_color.sh&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Y ejecuten bash script.sh&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;bash&amp;nbsp; figlet_color.sh&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Si quieres que aparesca cada vez que abras la terminal&lt;br /&gt;
&lt;br /&gt;
Escondelo en tu carpeta home(pon un . al principio y quitale el .sh)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;mv figlet_color.sh .figlet_color &lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Y añadelo al .bashrc &lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;echo &#39;bash .figlet_color&#39; &amp;gt;&amp;gt; .bashrc&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Y listo :D</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/1900316912062541470/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2013/02/muestra-texto-en-grande-en-la-terminal.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/1900316912062541470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/1900316912062541470'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2013/02/muestra-texto-en-grande-en-la-terminal.html' title='Muestra texto en grande en la terminal con figlet'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFhrQQPRdkW39VsiwdnI0a4L8WXEg4j2v9pgGJzcfapUqhjek5N_dVe94WWSkcgUW4-NG50ShB0ud6d14W2zpqPytXnuGqSSslgl5nFsYj566UtyLcnw7EKWMUOqhJQo0LNY-FK4MZOAg/s72-c/2013-02-08-121403_1024x600_scrot.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-5258200137814414218</id><published>2013-02-06T15:26:00.000-08:00</published><updated>2013-02-06T15:26:01.775-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="red"/><category scheme="http://www.blogger.com/atom/ns#" term="tuberia"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><title type='text'>Saber mi ip dinamica con una tuberia Unix</title><content type='html'>Empezamos con las tuberias avanzadas de Unix usadas en Linux en este caso,y para saber cual es nuestra ip que nos asigna el router en nuestra red local&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;IP dinámica&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Una dirección IP dinámica es una IP asignada mediante un servidor DHCP (Dynamic Host Configuration Protocol) al usuario. La IP que se obtiene tiene una duración máxima determinada. El servidor DHCP provee parámetros de configuración específicos para cada cliente que desee participar en la red IP. Entre estos parámetros se encuentra la dirección IP del cliente.&lt;br /&gt;&lt;br /&gt;DHCP apareció como protocolo estándar en octubre de 1993. El estándar RFC 2131 especifica la última definición de DHCP (marzo de 1997). DHCP sustituye al protocolo BOOTP, que es más antiguo. Debido a la compatibilidad retroactiva de DHCP, muy pocas redes continúan usando BOOTP puro.&lt;br /&gt;&lt;br /&gt;Las IP dinámicas son las que actualmente ofrecen la mayoría de operadores. El servidor del servicio DHCP puede ser configurado para que renueve las direcciones asignadas cada tiempo determinado.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://es.wikipedia.org/wiki/Direcci%C3%B3n_IP#Direcciones_IPv4&quot; target=&quot;_blank&quot;&gt;es.wikipedia.org&lt;/a&gt;&lt;/b&gt;&lt;/blockquote&gt;
&amp;nbsp;Y este el pipe:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp;ifconfig | grep inet | awk &#39;{print &quot;Mi ip &quot; $2}&#39; | sed -n &#39;1p&#39;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;Explicacion:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;ifconfig&lt;/b&gt; es el conocido comando de Linux para red&lt;br /&gt;
&lt;br /&gt;
Con &lt;b&gt;grep&lt;/b&gt; hacemos un filtrado de inet&lt;br /&gt;
&lt;br /&gt;
Con &lt;b&gt;awk&lt;/b&gt; imprimimos la segunda columna que es donde esta la ip&lt;br /&gt;
&lt;br /&gt;
Con &lt;b&gt;sed&lt;/b&gt; mostramos solo la primera linea que es donde esta la ip dinamica&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVU2CtjU-KtFOQX2tOlKIQ84Ydct5aZzDdEffuKpx5VdsMmVaOH71RifZqUD5QDUW4ZGS5hsrhGNsYbJ-nbRBaC5qg-cjXyvyl5Xs378MINyMnZRTDhNzVa5fo_UvqUUGwB9ExCMoOQPY/s1600/2013-02-06-172246_1024x600_scrot.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVU2CtjU-KtFOQX2tOlKIQ84Ydct5aZzDdEffuKpx5VdsMmVaOH71RifZqUD5QDUW4ZGS5hsrhGNsYbJ-nbRBaC5qg-cjXyvyl5Xs378MINyMnZRTDhNzVa5fo_UvqUUGwB9ExCMoOQPY/s400/2013-02-06-172246_1024x600_scrot.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Eso es todo :D&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/5258200137814414218/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2013/02/saber-mi-ip-dinamica-con-una-tuberia.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/5258200137814414218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/5258200137814414218'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2013/02/saber-mi-ip-dinamica-con-una-tuberia.html' title='Saber mi ip dinamica con una tuberia Unix'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVU2CtjU-KtFOQX2tOlKIQ84Ydct5aZzDdEffuKpx5VdsMmVaOH71RifZqUD5QDUW4ZGS5hsrhGNsYbJ-nbRBaC5qg-cjXyvyl5Xs378MINyMnZRTDhNzVa5fo_UvqUUGwB9ExCMoOQPY/s72-c/2013-02-06-172246_1024x600_scrot.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-7406626232573115720</id><published>2012-11-15T14:49:00.002-08:00</published><updated>2013-02-09T10:56:34.181-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hola mundo"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="lua"/><category scheme="http://www.blogger.com/atom/ns#" term="print"/><title type='text'>Hola Mundo con Lua en Linux</title><content type='html'>Comenzamos con los tutoriales de Lua desde Linux,ya que antes solo era la&amp;nbsp;preparación&amp;nbsp;de las herramientas que&amp;nbsp;necesitábamos, pero en esta&amp;nbsp;ocasión&amp;nbsp;veremos &amp;nbsp;como imprimir texto con Lua,el&amp;nbsp;clásico&amp;nbsp;&lt;b&gt;Hola Mundo!!!&lt;/b&gt; :D&lt;br /&gt;
&lt;br /&gt;
1.Abre la terminal y localiza el ejecutable para añadirlo al &lt;b&gt;shebang&lt;/b&gt;,en terminal&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;which lua &amp;gt; hola-mundo.lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Y luego con nuestro editor&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;vim hola-mundo.lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Y añadimos esto al principio&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;#!&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Les tiene que quedar algo como esto&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;#!/usr/bin/lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
Con eso tenemos lista la primera linea de nuestro script&lt;br /&gt;
&lt;br /&gt;
2.Si queremos añadimos un comentario,en lua al igual que otros lenguajes de&amp;nbsp;programación&amp;nbsp;los comentarios se manejan de esta manera:&lt;br /&gt;
&lt;br /&gt;
Añadiendo dos guion medio(--) al principio de la linea,y de esta manera lua no lo tomara en cuenta&lt;br /&gt;
&lt;br /&gt;
Por ejemplo podemos añadir&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;--Mi primer programa en lua!!!&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
3.El comando de&amp;nbsp;ejecución,al igual que en otros&amp;nbsp;lenguajes&amp;nbsp;del comando que se encargara de mostrar nuestro texto sera &lt;b&gt;print&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Y esta el la sintaxis que usa,con ya Hola Mundo agregado&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;print (&quot;Hola Mundo!!!&quot;)&lt;/b&gt;&lt;/blockquote&gt;
O de igual forma&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;print &quot;Hola Mundo!!!&quot;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Solo tenemos que encomillar nuestro texto,seguido del comando print para que lua sepa lo que tiene que hacer.&lt;br /&gt;
&lt;br /&gt;
4.El script&lt;br /&gt;
&lt;br /&gt;
Nuestro script final queda de esta manera&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;#!/usr/bin/lua&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;--Mi primer programa en lua!!!&lt;br /&gt;&lt;br /&gt;print (&quot;Hola Mundo!!!&quot;)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDtUVqkGLKnRu2bMBmD2HbMp3mQOS_nPvbY6IIbCwUunLcjzo4p2ZIsXghzqnm868DX9GvXCLsJdXOCF1Oyv3HO9Zec_Ug1zzenttR2KN32HrsZcPBRib0BW4qYno_0hgIwFYykRDEq8/s1600/lua-linux-vim.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDtUVqkGLKnRu2bMBmD2HbMp3mQOS_nPvbY6IIbCwUunLcjzo4p2ZIsXghzqnm868DX9GvXCLsJdXOCF1Oyv3HO9Zec_Ug1zzenttR2KN32HrsZcPBRib0BW4qYno_0hgIwFYykRDEq8/s400/lua-linux-vim.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
5.La&amp;nbsp;ejecución&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Para ejecutarlo hay dos maneras&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
1.Si nuestro script lo usaremos nosotros mismos es recomendable solo hacer:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;lua hola-mundo.lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
2.Si nuestro script lo hacemos para que lo use el sistema es&amp;nbsp;recomendable&amp;nbsp;darle permisos de&amp;nbsp;ejecución&amp;nbsp;+x&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
En terminal&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;chmod +x hola-mundo.lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Y se puede ejecutar de esta manera&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;./hola-mundo.lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
o de igual manera&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;lua hola-mundo.lua&lt;/b&gt;&lt;/blockquote&gt;
&lt;div&gt;
Y este sera nuestro resultado!!!&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCnP_4wwDzMm-umtj3gmMY_BFmBXR6wc3xAP1Tcs9rEKE2XHeq1eDTa0gH5g3XnB87df9f5ine6I0cve9QKLd_jO_OraUM39G3pzjLWAHCkbWVEqROtNImbVc-5Xp0c6Fxg7tMN-YUPdU/s1600/hola-mundo-lua-linux.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;268&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCnP_4wwDzMm-umtj3gmMY_BFmBXR6wc3xAP1Tcs9rEKE2XHeq1eDTa0gH5g3XnB87df9f5ine6I0cve9QKLd_jO_OraUM39G3pzjLWAHCkbWVEqROtNImbVc-5Xp0c6Fxg7tMN-YUPdU/s400/hola-mundo-lua-linux.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/7406626232573115720/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2012/11/hola-mundo-con-lua-en-linux.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/7406626232573115720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/7406626232573115720'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2012/11/hola-mundo-con-lua-en-linux.html' title='Hola Mundo con Lua en Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDtUVqkGLKnRu2bMBmD2HbMp3mQOS_nPvbY6IIbCwUunLcjzo4p2ZIsXghzqnm868DX9GvXCLsJdXOCF1Oyv3HO9Zec_Ug1zzenttR2KN32HrsZcPBRib0BW4qYno_0hgIwFYykRDEq8/s72-c/lua-linux-vim.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-1226649035196576279</id><published>2012-08-21T10:58:00.001-07:00</published><updated>2013-02-09T10:58:38.864-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="5.2"/><category scheme="http://www.blogger.com/atom/ns#" term="lua"/><category scheme="http://www.blogger.com/atom/ns#" term="opensuse"/><category scheme="http://www.blogger.com/atom/ns#" term="preparacion"/><title type='text'>Instalar Lua 5.2 en openSUSE 12.1</title><content type='html'>Bueno en esta ocacion vamos a aprender a instalar Lua en openSUSE 12.1,como sabemos&amp;nbsp;Lua es&lt;br /&gt;
&lt;br /&gt;
Un lenguaje de extensión, suficientemente compacto para usarse en diferentes plataformas. En lua las variables no tienen tipo, sólo los datos y pueden ser lógicos, enteros, números de coma flotante o cadenas. Estructuras de datos como vectores, conjuntos, tablas hash, listas y registros pueden ser representadas utilizando la única estructura de datos de Lua: la tabla.&lt;br /&gt;
La semántica de Lua puede ser extendida y modificada redefiniendo funciones de las estructuras de datos utilizando metatablas. Lua ofrece soporte para funciones de orden superior, recolector de basura. Combinando todo lo anterior, es posible utilizar Lua en programación orientada a objetos.&lt;br /&gt;
&lt;br /&gt;
Visto en&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://es.wikipedia.org/wiki/Lua&quot; target=&quot;_blank&quot;&gt;http://es.wikipedia.org/wiki/Lua&lt;/a&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Bueno lo que me gusta de lua es que es un lenguaje de scripting que se puede ejecutar en Linux/Unix y ademas tambien es un lenguaje para la creacion de juegos de psp o se pueden ejecutar en la pc con un programa de Windows.&lt;br /&gt;
&lt;br /&gt;
Bueno el hecho es que lua no esta en ninguna repo de openSUSE,asi que esto no se limita al&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install lua-5.2&lt;br /&gt;
&lt;br /&gt;
de Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Tutorial&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.Lo que tenemos que hacer es bajar los binarios de aqui&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;a href=&quot;http://www.lua.org/download.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Enlace&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;/blockquote&gt;
2.Ojo no vayan a hacer&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;alien -r lua.tar.gz&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Porque alien trabaja con paquetes compilados(.deb.rpm,etc) y los tar.gz o tar.bz2 son archivos comprimidos con el código fuente y aunque los transforme no va a funcionar.&lt;br /&gt;
&lt;br /&gt;
Lo que haremos sera&lt;br /&gt;
&lt;br /&gt;
Descomprimir el fichero,para no confundirse con comandos de consola solo&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;clic derecho&amp;gt;&amp;gt;extraer&amp;nbsp;aquí&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
3.Ahora si abrimos terminal y nos damos locacion en la carpeta&lt;br /&gt;
&lt;br /&gt;
Ejemplo&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: large;&quot;&gt;cd Descargas/lua-5.2.1&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
4.Abrimos otra terminal y escribimos&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: large;&quot;&gt;sudo zypper in&amp;nbsp;compat-readline4&amp;nbsp;libguilereadline-v-18-18&amp;nbsp;libreadline6&amp;nbsp;readline-devel&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
5.Volvemos a la anterior terminal y escribimos&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: large;&quot;&gt;sudo make linux&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
Y listo podremos ejecutar lua con&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #38761d; font-size: large;&quot;&gt;lua&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDP_ef4iFv0_HpW6Q2deAl6nxku5udvACcTn3o4-unUlyLk4R8sFgBAuz_-FLMZ6T1CzKGaFwIJvWRcJ9xSWujwxCmMVVTJEvOZzDvUXXI7iU_WjlZCDH5kicGsPYjfaSEaWwUWrDRxfo/s1600/luaopensuse.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDP_ef4iFv0_HpW6Q2deAl6nxku5udvACcTn3o4-unUlyLk4R8sFgBAuz_-FLMZ6T1CzKGaFwIJvWRcJ9xSWujwxCmMVVTJEvOZzDvUXXI7iU_WjlZCDH5kicGsPYjfaSEaWwUWrDRxfo/s400/luaopensuse.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
o hacer un script&lt;br /&gt;
&lt;br /&gt;
Fuentes&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://www.lua.org/download.html&quot; target=&quot;_blank&quot;&gt;lua.org&lt;/a&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://es.wikipedia.org/wiki/Lua&quot; target=&quot;_blank&quot;&gt;es.wikipedia&lt;/a&gt;&amp;nbsp;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://www.itimetux.com/&quot; target=&quot;_blank&quot;&gt;Tiempo de Tux&lt;/a&gt;&lt;/b&gt;&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/1226649035196576279/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/instalar-lua-52-en-opensuse-121.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/1226649035196576279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/1226649035196576279'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/instalar-lua-52-en-opensuse-121.html' title='Instalar Lua 5.2 en openSUSE 12.1'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDP_ef4iFv0_HpW6Q2deAl6nxku5udvACcTn3o4-unUlyLk4R8sFgBAuz_-FLMZ6T1CzKGaFwIJvWRcJ9xSWujwxCmMVVTJEvOZzDvUXXI7iU_WjlZCDH5kicGsPYjfaSEaWwUWrDRxfo/s72-c/luaopensuse.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-3548594137882989860</id><published>2012-08-16T16:33:00.000-07:00</published><updated>2013-02-09T11:00:49.366-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="preparacion"/><category scheme="http://www.blogger.com/atom/ns#" term="vim"/><title type='text'>Habilitar sintaxis y números en vim </title><content type='html'>En la entrada pasada&amp;nbsp;mostré&amp;nbsp;como resaltar la sintaxis de lua en gedit,bueno pues ahora es casi lo mismo pero ahora para los amantes de la terminal.&lt;br /&gt;
&lt;br /&gt;
Vim es un editor de texto muy bueno el cual&amp;nbsp;Vim (del inglés Vi IMproved) es una versión mejorada del editor de texto vi,con el cual podemos programar de manera muy buena al activar los colores en la sintaxis y los nuemros al lado izquierdo&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Activar&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;números&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Para activar los&amp;nbsp;números&amp;nbsp;hacemos lo siguiente&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;sudo gedit&amp;nbsp;/etc/vim/vimrc&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
y buscamos&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;set mouse=a&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Abajo colocamos&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;set number&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
así:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhn8Pz3ZR6uKnFjTr759KA1_uw5WoA2lFwLeM5h-aE3ypADRIgJPrNHkZc8N8owcrNCUyaCYXGMT58EMZ-cdGuIANy4LnHDQ3Fe9fDoYya5sNNJLc0hUQuU7deXBch6J4kqf_cW8wcMik/s1600/numeroenvim.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhn8Pz3ZR6uKnFjTr759KA1_uw5WoA2lFwLeM5h-aE3ypADRIgJPrNHkZc8N8owcrNCUyaCYXGMT58EMZ-cdGuIANy4LnHDQ3Fe9fDoYya5sNNJLc0hUQuU7deXBch6J4kqf_cW8wcMik/s400/numeroenvim.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Y guardamos&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Para activar los colores en la sintasix&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
Editamos el mismo archivo&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;sudo gedit&amp;nbsp;/etc/vim/vimrc&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Buscamos&lt;b&gt; &quot;syntax on&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
y lo descomentamos&lt;br /&gt;
&lt;br /&gt;
así&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvcM7D1ghfMxGtvTla_Syd56-myLW_uiuwdLJDPpHn3086nfbyZ9iAMJV7qfVqp_RPmIDacBS4gE69_Dc2bO8TePZaO0YC1nufky1Xar8KyLDNPlajDRj_X1qobdYHq7EKtNNiGLMxuY8/s1600/sintaxon.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvcM7D1ghfMxGtvTla_Syd56-myLW_uiuwdLJDPpHn3086nfbyZ9iAMJV7qfVqp_RPmIDacBS4gE69_Dc2bO8TePZaO0YC1nufky1Xar8KyLDNPlajDRj_X1qobdYHq7EKtNNiGLMxuY8/s400/sintaxon.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Y guardamos&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
Podemos descargar colores en&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;a href=&quot;http://bytefluent.com/vivify/&quot; target=&quot;_blank&quot;&gt;http://bytefluent.com/vivify/&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Cuando este descargado el fichero lo copiamos a&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;~/.vim/colors/&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Después&amp;nbsp;entramos a vim y ponemos&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;syntax on&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;:colorscheme nombre_del_tema&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/3548594137882989860/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/habilitar-sintaxis-y-numeros-en-vim.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/3548594137882989860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/3548594137882989860'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/habilitar-sintaxis-y-numeros-en-vim.html' title='Habilitar sintaxis y números en vim '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhn8Pz3ZR6uKnFjTr759KA1_uw5WoA2lFwLeM5h-aE3ypADRIgJPrNHkZc8N8owcrNCUyaCYXGMT58EMZ-cdGuIANy4LnHDQ3Fe9fDoYya5sNNJLc0hUQuU7deXBch6J4kqf_cW8wcMik/s72-c/numeroenvim.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-2870058841128503337</id><published>2012-08-16T14:37:00.000-07:00</published><updated>2013-02-09T11:03:39.188-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gedit"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="lua"/><category scheme="http://www.blogger.com/atom/ns#" term="preparacion"/><title type='text'>Reconocer sintaxis de lua en gedit</title><content type='html'>Lua no es un lenguaje tan&amp;nbsp;distinguido&amp;nbsp;en Linux como python o bash,&amp;nbsp;así&amp;nbsp;que&amp;nbsp;habrá&amp;nbsp;limitaciones,por ejemplo la ayuda de editores para la sintaxis de los archivos .lua,si se usa nano tendremos este error pero si se usa vim no habra problema solo necesitaremos habilitar la sinatxis,pero en este caso la habilitaremos en gedit&lt;br /&gt;
&lt;br /&gt;
Primero descargaremos los plugins de gedit&lt;br /&gt;
&lt;br /&gt;
En Ubuntu o basados&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;sudo apt-get install gedit-plugins&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Luego abrimos gedit y lo&amp;nbsp;configuramos,con estos nuevos plugins se añaden muchas cosas pero solo iremos a:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;Ver&amp;gt;Modo de Resaltado&amp;gt;Scripts&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYq-MdDOfBIpYT8XFzE1YuyIexpTki8eF3IV1uFE6TapX56BKsH8cAHjZg4HYYjsFPXH5B1PahZpIpmc7wKjszjrQpn8QsNPOcd7yy8XFPYXlPqyrhoOIY6ZjH09eKkyI-GD3KiAuXTik/s1600/gedit_lua.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;225&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYq-MdDOfBIpYT8XFzE1YuyIexpTki8eF3IV1uFE6TapX56BKsH8cAHjZg4HYYjsFPXH5B1PahZpIpmc7wKjszjrQpn8QsNPOcd7yy8XFPYXlPqyrhoOIY6ZjH09eKkyI-GD3KiAuXTik/s400/gedit_lua.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Y seleccionamos &lt;b&gt;Lua&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt; &lt;b&gt;Ahora cuando hagamos un script en lua resaltara la sintaxis con colores&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/2870058841128503337/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/reconocer-sintaxis-de-lua-en-gedit.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/2870058841128503337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/2870058841128503337'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/reconocer-sintaxis-de-lua-en-gedit.html' title='Reconocer sintaxis de lua en gedit'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYq-MdDOfBIpYT8XFzE1YuyIexpTki8eF3IV1uFE6TapX56BKsH8cAHjZg4HYYjsFPXH5B1PahZpIpmc7wKjszjrQpn8QsNPOcd7yy8XFPYXlPqyrhoOIY6ZjH09eKkyI-GD3KiAuXTik/s72-c/gedit_lua.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7097117846814763701.post-653628133065190127</id><published>2012-08-16T14:09:00.001-07:00</published><updated>2013-02-09T11:04:38.678-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="lua"/><category scheme="http://www.blogger.com/atom/ns#" term="preparacion"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>Instalar lua en Ubuntu 12.04 y localizar ejecutable</title><content type='html'>Lua no esta instalado por defecto en Ubuntu 12.04,&amp;nbsp;así&amp;nbsp;que si queremos empezar a usar lua necesitamos instalarlo&lt;br /&gt;
&lt;br /&gt;
En terminal&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;sudo apt-get install lua5.2&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
Y para empezar a hacer scripting necesitaremos saber la ruta del ejecutable o mejor dicho&amp;nbsp;interprete&amp;nbsp;para ponerlo en el hashbang,&lt;br /&gt;
&lt;br /&gt;
Para localizar lua&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;whereis lua&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
Es el primero,seguramente es&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;/usr/bin/lua&lt;/span&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Pero verifiquen&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://shellnix-user.blogspot.com/feeds/653628133065190127/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/instalar-lua-en-ubuntu-1204-y-localizar.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/653628133065190127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7097117846814763701/posts/default/653628133065190127'/><link rel='alternate' type='text/html' href='http://shellnix-user.blogspot.com/2012/08/instalar-lua-en-ubuntu-1204-y-localizar.html' title='Instalar lua en Ubuntu 12.04 y localizar ejecutable'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09026194756509249762</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>