jueves, 20 de diciembre de 2012

Códigos de configuración SPA2102 y similares

Estos son los códigos de configuraciones de los Adaptadores telefónicos , se los pasó para aquellos que configuran, sistemas telefónicos con Asterisk,


ACTION
DIGITS
CHOICES
DESCRIPTION
Enter Interactive Voice
Response Menu

****


Use this command to enter the Interactive
Voice Response Menu. Do not press any
other keys until you hear, “Linksys
 configuration menu. Please enter the option
followed by the # (pound) key or hang up to
exit.”
Check Internet
Connection Type
100

Hear the Internet connection type of the
Phone Adapter.
Check Internet IP
Address
110


Hear the IP address assigned to the Phone
Adapter’s Internet (external) interface.
Check Network Mask
(or Subnet Mask)
120


Hear the network or subnet mask assigned to
the Phone Adapter.
Check Gateway IP
Address
130


Hear the IP address of the Phone Adapter
(usually the network router).
Check MAC Address
140

Hear the MAC address of the Phone Adapter
in hexadecimal string format.
Check Firmware
Version
150


Hear the version number of the firmware
currently running on the Phone Adapter.
Check Primary DNS
Server IP Address
160


Hear the IP address of the primary DNS
(Domain Name Service) server.
Check Internet Web
Server Port
170


Hear the port number of the Internet Web
server used for the Web-based Utility.
Check Local IP
Address
210


Hear the local IP address of the Phone
Adapter.
Set Internet
Connection Type
101

Press 0 to use DHCP.
Press 1 to use a static IP
address.
Press 2 to use PPPoE.
Select the type of Internet connection you are
using. Refer to the documentation supplied
by your Internet Service Provider (ISP).
Set Static IP Address
111

Enter the IP address using
numbers on the telephone
keypad. Use the * (star)
key when entering a
decimal point.
First, set the Internet Connection Type to
static IP address; otherwise, you will hear,
“Invalid Option,” if you try to set the static IP
address.
Set Network (or
Subnet) Mask
121

Enter the network or
subnet mask using
numbers on the telephone
keypad. Use the * (star)
key when entering a
decimal point.
First, set the Internet Connection Type to
static IP address; otherwise, you will hear,
“Invalid Option,” if you try to set the network or subnet mask.
Set Gateway IP
Address
131

Enter the IP address using
numbers on the telephone
keypad. Use the * (star)
key when entering a
decimal point.
First, set the Internet Connection Type to
static IP address; otherwise, you will hear,
“Invalid Option,” if you try to set the gateway   IP address.
Set Primary DNS
Server IP Address
161

Enter the IP address using
numbers on the telephone
keypad. Use the * (star)
key when entering a
decimal point.
First, set the Internet Connection Type to
static IP address; otherwise, you will hear,
“Invalid Option,” if you try to set the IP
   address of the primary DNS server.
Set the Mode
201

Press 0 to select the
router/NAT mode.
Press 1 to select the
bridge/switch mode.

f the Phone Adapter acts as the router for
your network, use the router/NAT mode.

If your network already has a router, use the
bridge/switch mode.
Enable/Disable WAN
Access to the
Web-based Utility
7932

Press 1 to enable.
Press 0 to disable.

Use this setting to enable or disable WAN
access to the Web-based Utility. (This Utility
lets you configure the Phone Adapter.)
Manual Reboot
732668


After you hear, “Option successful,” hang up the phone. The Phone Adapter will
automatically reboot.
Factory Reset
73738

Press 1 to confirm.
Press * (star) to cancel.

If necessary, enter the password. The Phone
Adapter will request confirmation; enter 1 to
confirm. You will hear, “Option successful.”
Hang up the phone. The Phone Adapter will
reboot, and all settings will be reset to their
factory default settings.
User Factory Reset
877778

Press 1 to confirm.
Press * (star) to cancel.

The Phone Adapter will request confirmation; enter 1 to confirm. You will hear, “Option successful.” Hang up the phone. The Phone  Adapter will reboot and all user-configurable settings will be reset to their factory default settings.

Entering a Password

You may be prompted to enter a password when you want to reset the Phone Adapter to its factory default settings. To enter the password, use the phone’s keypad, and follow the appropriate instructions.

• To enter A, B, C, a, b, or c — press 2.
• To enter D, E, F, d, e, or f — press 3.
• To enter G, H, I, g, h, or i — press 4.
• To enter J, K, L, j, k, or l — press 5.
• To enter M, N, O, m, n, or o — press 6.
• To enter P, Q, R, S, o, q, r, or s — press 7.
• To enter T, U, V, t, u, or v — press 8.
• To enter W, X, Y, Z, w, x, y, or z — press 9.
• To enter all other characters, press 0.


Espero les sea de utilidad..

domingo, 30 de septiembre de 2012

Instalación rapida de servidor web "LAMP"

-->
Una de las combinaciones de software mas populares en LINUX es la conocida como LAMP (Linux Apache MySQL PHP) que básicamente es un servidor web con base de datos.

Este pequeño manual, les puede servir para montar rápidamente un servidor web en muy pocos pasos, ya que en muchas ocasiones es necesario montar un servicio web ya sea por motivos de trabajo o escolares.

INSTALACIÓN:

para la instalación lo vamos a hacer en un Linux Ubuntu y se puede hacer esto en todas las distribuciones Linux derivadas de Debian.

Abrimos nuestra terminal de linux y estando como super usuario instalamos la utilidad que nos muestra una interfaz simple para usuarios “tasksel” , y con ella instalar grupos de programas para fines específicos. En este caso nuestra finalidad es instalar un servidor web (LAMP)



1) Instalamos la aplicación tasksel con el siguiente comando:
#apt-get install tasksel

2) Despues de tener instalado tasksel, lo ejecutamos:
#tasksel

y con esto nos mostrará un menú parecido a esto:

3) seleccionamos “LAMP Server” con nuestro teclado usando las flechas y barra espaciadora para seleccionar.

4) Terminando la instalación nos podemos dar cuenta que ya tenemos instalado nuestro servidor web, tan solo abriendo nuestro navegador y tecleando la dirección “http://localhost” ahi nos deberá aparecer algo como “It Works!” que es la pagina de prueba que tiene por default Apache.

También podemos comprobar que tenemos instalado php creando en nuestro directorio web (normalmente es /var/www) un archivo llamado phpinfo.php con el contenido:

<?php

 phpinfo();
?>


seguido de esto en el navegador tecleamos la dirección: http://localhost/phpinfo.php y nos deberá mostrar algo parecido a esto:


Instalación de phpmyadmin

5) Para una administración mas amigable de nuestras bases de datos podemos instalar una interfaz web para ello. En este caso la aplicacioón se llama “phpmyadmin” y la podemos instalar con el siguiente comando:

#apt-get install phpmyadmin

terminando este proceso podemos comprobar la funcionalidad abriendo nuestro navegador y escribiendo la siguiente dirección: http://localhost/phpmyadmin y firmándonos para acceder. En este caso verás algo como esto:



Cualquier comentario o duda estoy a disposición

viernes, 21 de septiembre de 2012

Peticiones web con la librería libwww-perl y manipular resultados.

libwww-perl  es una librería que nos provee de una interfaz para desarrollar clientes web, pero en esta ocasión lo usaremos solo para hacer peticiones web hacia una pagina en un servidor web local  y mostrar  el resultado en la terminal mediante un script en bash.

Esto puede servir para alguna aplicación sencilla que se les ocurra,  por ejemplo yo hice una aplicacion tipo "bloqueo de pc" para cibercafés  utilizando esta librería.

Para esto tenemos que tener instalado:
* Un servidor web  (puede ser apache ó cherokee)
* Tener instalado la libreria libwww-perl
    si no la tienes instalada la puedes instalar con el siguiente comando:
    #apt-get install libwww-perl

Luego de tener todo instalado colocamos un archivo index.php  en nuestro servidor web, con el siguiente contenido:

<?php echo 0; ?>

También creamos otro archivo llamado peticion.sh con el siguiente contenido:

#!/bin/bash
ESTADO=$(GET http://127.0.0.1/index.php)
if [ "$ESTADO" = 0 ]
then
     echo "es cero"
else
     echo "es uno"
fi


Damos permisos de ejecución a nuestro script:
#chmod +x peticion.sh

Ejecutamos el script :
#./peticion.sh

esto nos devolverá un resultado como si visitáramos la pagina mediante nuestro navegador web, el cual nos daría como resultado el visualizar un "0" en una pagina en blanco, ya que estamos usando la petición "GET" para consultar, y seguido de esto comprobamos si la consulta es igual a cero, nos devolverá como resultado "es cero"  y si no es cero lo que nos muestra la consulta, nos devolverá como resultado "no es cero"

Espero que les sea de utilidad esta librería que tiene muchos más usos que el que le estamos dando en este post, si tienen alguna pregunta me la pueden hacer llegar con confianza ..

domingo, 16 de septiembre de 2012

De regreso..

Después de tres años de ausencia, he decidido empezar de nuevo a postear con regularidad en este espacio y con ganas de seguir promocionando el uso de GNU/Linux además de las experiencias , tutoriales importantes que les pueden ser de mucha ayuda a principiantes.