TAW Logo
TAW 3.0 (2/9/10 5:10 PM) Validation conform to WAI guidelines, W3C Recommendation 5 May 1999
Go to the Fundación CTIC website
Test summary outcome
AutomaticHuman review
Priority 13086
Priority 22125
Priority 3040

1. Human review2. Human review3. Human review2. Human review1. Human review1. Human review1. Human review2. Human review1. Human review2. Human review1. Human review1. Human review1. Human review2. Human review1. Human review2. Automatic

ETS de Ingenierías Informática y de Telecomunicación

1. Automatic1. Human review2. Human review 3. Human review1. Automatic1. Human review2. Human review

3. Human review
2. Human review 2. Human review2. Human review 2. Human review

Foros

Script para conexión WPA a cviugr-v2 Mensajes: 20 Lecturas: 3270 Último post: 08 de feb de 2010 10:09 Tags destacados:
Por: 2. Human review1. Automatic2. Human review gravelmuncha 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 13 de mar de 2007 15:30

Hola, he estado programando un script para conectar por wpa a civugr-v2, ya que aun no tengo ni idea de como conectar a la red mediante network manager, os explico un poco lo que hice:

· Cree un archivo de configuración para wpa_supplicant (que posteriormente cargaré) y lo guardé en /scripts/
· Cree un archivo tipo script para que usase dicho archivo de configuración y solicitase una ip mediante el cliente dhclient.
· En último lugar, cree un lanzador en el escritorio de gnome, que fuese arrancado con gksu, así evitamos tener que usar varias contraseñas con dicho script.

Si alguien quiere información acerca de como hacer estos pasos los publicaré, incluidos los permisos de usuario.

Saludos

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review javism@turing 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 15 de mar de 2007 11:00

Yo he actualizado mi scrip para que conecte más rápido, ¿cuál es el tuyo?


1. Human review

killall wpa_supplicant
/etc/init.d/networking stop
iwconfig eth1 essid cviugr-v2
wpa_supplicant -c /etc/wpa_supplicant.conf -i eth1 -D wext &
echo "Lanza DHCP"
dhclient eth1

El network manager no me llega a funcionar bien, y lo mismo ocurre con otro gestor de conexiones que instalé. Por cierto, que seguimos con el problema de que, con los el fichero de configuración que nos proporcionan hay que hacer:

1. Human review

/etc/init.d/wpa-ifupdown stop

para acceder a otras redes inalámbricas. ¿Alguien ha tenido tiempo de mirar una solución elegante a esto?

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Tarnum 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 15 de mar de 2007 22:32

Buenas, yo he hecho uno script que genera un script de conexión (valga la redundancia ;-) ) Te pide que le des el nombre de la interfaz inalámbrica y que le des el nombre de tus redes y sus contraseñas, hombre el script no es la panacea pero está apañao pq el script que genera permite conectar fácilemente a las redes, a ver si me conecto luego desde linux y os pongo por aqui el script.

PD: incluso se me ocurre un script que te liste todas las redes, tu elijas una y si tiene clave se la des para que se conecte. Además, no es muy difícil de hacer, si tengo tiempo lo haré….

Un saludo

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Alfonso 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 19 de mar de 2007 21:09

Minipunto por el kill, javism 1. Automatic1. Human review2. Human review . Es una buena idea incluirlo en el script y no tener que llamarlo siempre.

Aprovecho para preguntar si alguien sabe cómo conectar a la cvi-ugr2 usando el applet del network manager (que ya lo pregunté por otra hebra y nadie supo nada). Lo he tratado de configurar varias veces y no vale «pa ná» 1. Automatic1. Human review2. Human review . ¿Alguien ha tenido éxito?

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review gravelmuncha 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 12 de abr de 2007 18:09

Yo tampoco he tenido éxito a la hora de configurarlo por el network manager, simplemente hice un script que carga la configuración del wpa_supplicant, lo dejo por aquí.

#!/bin/sh
ifconfig eth1 down
ifconfig eth1 up
killall wpa_supplicant
killall dhclient
wpa_supplicant -c wpa_cviugr.conf -i eth1 -D wext -B
sleep 1
dhclient eth1

Le dais permiso de ejecución y arrancais como root.

PD: El archivo de configuración es el mismo que se ve en C.S.I.R.C.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Pedro Angel Castillo Valdivieso 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 30 de may de 2007 12:55

hola a todos!

He hecho un programita para crear (1) el fichero de configuración, (2) el script que llama al wpa_supplicant y (3) un acceso directo en el escritorio para lanzarlo fácilmente.

Simplemente copias este programa Perl donde tú quieras, lo ejecutas, le indicas los datos que te pida, y ya está: doble clic al acceso directo del escritorio.

Como siempre digo: yo no he inventado nada, sólo he recopilado información de diversas fuentes, y he hecho la gaita de poner el acceso directo (que parece algo como más de alto nivel) 1. Automatic1. Human review2. Human review


#!/usr/bin/perl

print "\n\nIndica la red a la que quieres conectar:\n";
print "\n\t1. cviugr-v2";
print "\n\t2. otra red \n\n\t\t";
my $entrada = <STDIN>;
chop($entrada);

if($entrada eq "2" 1. Automatic1. Human review2. Human review {

3. Human review1. Human review
rint "\nPara las redes con clave WEP o WPA (sin id.) usa el \"wifi-radar\" "; 
xit(0);

}

my $usuario="";
my $clave="";
if($entrada eq "1" 1. Automatic1. Human review2. Human review {

3. Human review1. Human review
rint "\n\nIndique el nombre de usuario: ";
usuario = <STDIN>; chop($usuario);
rint "\n\nIndique la clave de usuario: ";
clave = <STDIN>; chop($clave);
onfigurar_wpa_usuario_clave( $usuario , $clave );

}

print "\n\n";

################################################ #########################
sub configurar_wpa_usuario_clave {
my ($usuario,$clave)=@_;

my @output = `pwd`;
my $directorio_actual = $output[0];
chop($directorio_actual);
my @output = `cd ; pwd`;
my $accesodirecto = $output[0];
chop($accesodirecto);

# CREAR EL SCRIPT wpa_cviugrv2.sh
# PARA LA CONEXIÓN CVIUGR-V2

open(F,">wpa_cviugrv2.sh" 1. Automatic1. Human review2. Human review ;
print F "#!/bin/sh \n";
print F "ifconfig eth1 down \n";
print F "ifconfig eth1 up \n";
print F "killall wpa_supplicant \n";
print F "killall dhclient \n";
print F "wpa_supplicant -c $directorio_actual/wpa_cviugrv2.conf -i eth1 -D wext -B \n";
print F "sleep 1 \n";
print F "dhclient eth1 \n";
close(F);

# CREAR EL FICHERO wpa_cviugrv2.conf
# PARA LA CONEXIÓN CVIUGR-V2

open(F,">wpa_cviugrv2.conf" 1. Automatic1. Human review2. Human review ;
print F "ctrl_interface=/var/run/wpa_supplicant \n";
print F "eapol_version=1 \n";
print F "ap_scan=1 \n";
print F "network={ \n";
print F " ssid=\"cviugr-v2\" \n";
print F "key_mgmt=WPA-EAP \n";
print F "proto=WPA \n";
print F "eap=TTLS \n";
print F "anonymous_identity=\"anonymous\@ugr.es\" \n";
print F "identity=\"$usuario\" \n";
print F "password=\"$clave\" \n";
print F "priority=2 \n";
print F "phase2=\"auth=PAP\" \n";
print F "} \n";
close(F);

$accesodirecto = "$accesodirecto/Desktop/conectar_a_cviugrv2.desktop";
open(F,">$accesodirecto" 1. Automatic1. Human review2. Human review ;
print F "\n[Desktop Entry]\n";
print F "Encoding=UTF-8\n";
print F "Version=1.0\n";
print F "Type=Application\n";
print F "Terminal=false\n";
print F "Exec=gksudo perl $directorio_actual/wpa_cviugrv2.sh\n";
print F "Name[es_ES]=conectar_a_cviugrv2\n";
print F "Icon[es_ES]=/usr/share/pixmaps/gksu.png\n";
print F "Name=conectar_a_cviugrv2\n";
print F "Icon=/usr/share/pixmaps/gksu.png\n";
close(F);

print "\n\nPuedes conectar a la red $red tecleando \" sudo perl wpa_cviugrv2.sh \" ";
print "\no bien a través del acceso directo creado en el escritorio.";
}

########################################################### ##############

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review castillo@turing 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 30 de may de 2007 13:02

hola de nuevo...
creo que no ha sido buena idea copiar el script directamente.
Os lo dejo en:

3. Human review1. Human review
  http://atc.ugr.es/~pedro/docencia/config_wpa.txt

Lo descargáis en vuestro portátil, en vuestra cuenta, y lo ejecutáis de la siguiente forma:

3. Human review1. Human review
  perl  config_wpa.txt

con eso os crea los ficheros necesarios y el enlace directo en el escritorio.

un saludo

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Diego J. 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 30 de may de 2007 19:39

Gracias, yo ya lo tengo configurado, pero es un buen script.

-
2. Human revieweldiegoj (tecnología, cultura y sociedad comentadas desde una óptica tecnófila)

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review gravelmuncha 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 03 de oct de 2007 18:23

Hola, he estado probando el Script y funciona correctamente, el enlace del escritorio es lo único que no me funciona, así que tengo que ejecutarlo dos veces, desde el terminal, para que este arranque, pero funciona a la perfección, un 10 para el Script.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Extremeño 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 04 de oct de 2007 12:23

Gracias por el script Pedro, funciona a la perfección.

Como comentarios decir que quizás alguno tengáis que modificar las líneas en las que aparece eth1 y sustituirlas por vuestro interfaz de red y que en mi caso he tenido que añadir al script de conexión un killall NetworkManager ya que si no no se conectaba...

No he probado el enlace del escritorio así que no lo comento.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Extremeño 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 04 de oct de 2007 12:24

Añado que uso el script desde Debian Etch. ¿Aún no se pueden editar los mensajes?

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Mr. X 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 18 de mar de 2009 12:37

El Script ha sido probado desde un MacBook Santa Rosa 3.1 haciendo unas cuantas modificaciones y usando ndiswrapper con los drivers broadcomm, comentar que funciona a la perfección y sin ningún problema, gracias Pedro.

Saludos !

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review leynar 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 08 de oct de 2009 10:49

He probado el script de Pedro, he cambiado la interfaz de red a eth0, que es la que tengo yo, pero no sucede nada. No intenta conectarse ni se crea el icono en el escritorio.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review J. L. PiNo 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 08 de oct de 2009 15:16

Este script es bastante antiguo, si tienes Network Manager (el gestor de conexiones que usa Ubuntu, por ejemplo) es tan sencillo como configurar la conexión adecuadamente:
2. Human reviewhttp://etsiit.ugr.es/FAQ/doku.php?id=cvi-ugr

Me lo contaron y lo olvidé. Lo vi y lo entendí. Lo hice y lo aprendí.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Willaco 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 08 de oct de 2009 20:39

Os recomiendo que os instaleis un gestor de redes que se llama "wicd". No es compatible con network-manager, pero las conexiones a redes WPA son automáticas, sólo teneis que modificar un script de los que trae por defecto con los protocolos que usa la cviugr-v2 y ya esta.

Para mi gusto, es muchísimo mejor que estar lanzando el script cada vez que te conectas, simplemente le das a conectar y punto.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review J. L. PiNo 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 08 de oct de 2009 22:26

Willaco, con Network Manager también es simplemente darle a conectar (una vez que has configurado la conexión la primera vez con el menú que se ve en el enlace).

Me lo contaron y lo olvidé. Lo vi y lo entendí. Lo hice y lo aprendí.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Willaco 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 09 de oct de 2009 15:42

No lo había visto, disculpas.
Desde que me configuré la cviugr-v2, sólo estaba el script para lanzarlo con wpasupplicant, y como ya me instalé wicd. . . desde entonces no había visto network-manger.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review Juan Julián Merelo Guervós 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 12 de ene de 2010 12:26

@Willaco: ¿podrías poner el script por aquí?

JJ

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review djwill@turing 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 19 de ene de 2010 14:58

Por supuesto JJ.

La distro que uso actualmene es la Ubuntu 8.10 (lo digo por que lo mismo cambian los directorios en otra).

Los scripts de conexión de wicd están en /etc/wicd/encryption/templates

El archivo se llama ttls-pap y el contenido es el siguiente:


1. Human review

name = TTLS with PAP
author = Yo
version = 1
require anonymous_identity *Anonymous_Identity identity *Identity password *Password auth *Authentication
-----
ctrl_interface=/var/run/wpa_supplicant
network={
        ssid="$_ESSID"
        scan_ssid=$_SCAN
        eap=TTLS
        key_mgmt=WPA-EAP
        proto=WPA
        group=CCMP TKIP
        ca_cert="/home/willy/SCS_CAs.pem"
        anonymous_identity="anonymous@ugr.es"
        identity="<AQUI_TIENES_QUE_PONER_TU_USUARIO>@correo.ugr .es"
        password="<AQUI_TIENES_QUE_PONER_TU_CONTRASEÑA>"
        priority=2
        phase2="auth=PAP"
}

Lo único que hay que cambiar es tu usuario por <AQUI_TIENES_QUE_PONER_TU_USUARIO>, tu contraseña por <AQUI_TIENES_QUE_PONER_TU_CONTRASEÑA> y la ruta donde tengas descargado el certificado SCS_CAs.pem en el apartado ca_cert.

Saludos.

1. Human review2. Human reviewEnlace permanente Por: 2. Human review1. Automatic2. Human review jmerelo@etsiit 3. Human review1. Human review2. Human reviewEnviar mensaje Publicado el: 08 de feb de 2010 10:09

Gracias!

1. Human review2. Human reviewcontactar con equipo web
1. Human review2. Human reviewcontactar con secretaria
2. Automatic

C/Periodista Daniel Saucedo Aranda s/n E-18071 (Granada-Spain) Phone: +34-958242802

1. Human review2. Human reviewlogo ETSIIT
1. Human review2. Human reviewxhtml valid 3. Human review1. Human review2. Human reviewtaw3 valid
1. Human review2. Human reviewcss valid 3. Human review1. Human review2. Human reviewOptimizado para firefox
ETSIIT-Web 2.0 Pinky. Rev. 14902.
2. Human review1. Human review1. Human review1. Human review2. Human review1. Human review 2. Human review1. Human review1. Human review1. Human review2. Human review1. Human review

Found issues:

Priority 1[WAI] Priority 1 accessibility issues. A Web content developer must satisfy this checkpoint. Otherwise, one or more groups will find it impossible to access information in the document. Satisfying this checkpoint is a basic requirement for some groups to be able to use Web documents. 30 automatically detected problems and 86 problems that require human review have been found.

1.1 Provide a text equivalent for every non-text element (e.g., via "alt", "longdesc", or in element content). This includes: images, graphical representations of text (including symbols), image map regions, animations (e.g., animated GIFs), applets and programmatic objects, ascii art, frames, scripts, images used as list bullets, spacers, graphical buttons, sounds (played with or without user interaction), stand-alone audio files, audio tracks of video, and video.

6.3 Ensure that pages are usable when scripts, applets, or other programmatic objects are turned off or not supported. If this is not possible, provide equivalent information on an alternative accessible page.

2.1 Ensure that all information conveyed with color is also available without color, for example from context or markup.

4.1 Clearly identify changes in the natural language of a document's text and any text equivalents (e.g., captions).

6.1 Organize documents so they may be read without style sheets. For example, when an HTML document is rendered without associated style sheets, it must still be possible to read the document.

6.2 Ensure that equivalents for dynamic content are updated when the dynamic content changes.

7.1 Until user agents allow users to control flickering, avoid causing the screen to flicker.

8.1a Make programmatic elements such as scripts and applets directly accessible or compatible with assistive technologies, if functionality is important and not presented elsewhere.

11.4 If, after best efforts, you cannot create an accessible page, provide a link to an alternative page that uses W3C technologies, is accessible, has equivalent information (or functionality), and is updated as often as the inaccessible (original) page.

14.1 Use the clearest and simplest language appropriate for a site's content.

Priority 2[WAI] Priority 2 accessibility issues. A Web content developer should satisfy this checkpoint. Otherwise, one or more groups will find it difficult to access information in the document. Satisfying this checkpoint will remove significant barriers to accessing Web documents. 2 automatically detected problems and 125 problems that require human review have been found.

3.5 Use header elements to convey document structure and use them according to specification.

11.2 Avoid deprecated features of W3C technologies.

2.2a Ensure that foreground and background color combinations for images provide sufficient contrast when viewed by someone having color deficits or when viewed on a black and white screen.

3.1 When an appropriate markup language exists, use markup rather than images to convey information.

3.2 Create documents that validate to published formal grammars.

3.4 Use relative rather than absolute units in markup language attribute values and style sheet property values.

3.6 Mark up lists and list items properly.

3.7 Mark up quotations. Do not use quotation markup for formatting effects such as indentation.

6.4 For scripts and applets, ensure that event handlers are input device-independent.

7.2 Until user agents allow users to control blinking, avoid causing content to blink (i.e., change presentation at a regular rate, such as turning on and off).

7.3 Until user agents allow users to freeze moving content, avoid movement in pages.

8.1b Make programmatic elements such as scripts and applets directly accessible or compatible with assistive technologies.

9.3 For scripts, specify logical event handlers rather than device-dependent event handlers.

10.1 Until user agents allow users to turn off spawned windows, do not cause pop-ups or other windows to appear and do not change the current window without informing the user.

10.2 Until user agents support explicit associations between labels and form controls, for all form controls with implicitly associated labels, ensure that the label is properly positioned.

11.1 Use W3C technologies when they are available and appropriate for a task and use the latest versions when supported.

13.1 Clearly identify the target of each link.

13.2 Provide metadata to add semantic information to pages and sites.

13.3 Provide information about the general layout of a site (e.g., a site map or table of contents).

13.4 Use navigation mechanisms in a consistent manner.

Priority 3[WAI] Priority 3 accessibility issues. A Web content developer may address this checkpoint. Otherwise, one or more groups will find it somewhat difficult to access information in the document. Satisfying this checkpoint will improve access to Web documents. No automatically detected problems and 40 problems that require human review have been found.

2.2b Ensure that foreground and background color combinations for text provide sufficient contrast when viewed by someone having color deficits or when viewed on a black and white screen.

4.2 Specify the expansion of each abbreviation or acronym in a document where it first occurs.

9.4 Create a logical tab order through links, form controls, and objects.

9.5 Provide keyboard shortcuts to important links (including those in client-side image maps), form controls, and groups of form controls.

10.5 Until user agents (including assistive technologies) render adjacent links distinctly, include non-link, printable characters (surrounded by spaces) between adjacent links.

11.3 Provide information so that users may receive documents according to their preferences (e.g., language, content type, etc.)

13.5 Provide navigation bars to highlight and give access to the navigation mechanism.

13.6 Group related links, identify the group (for user agents), and, until user agents do so, provide a way to bypass the group.

13.7 If search functions are provided, enable different types of searches for different skill levels and preferences.

13.8 Place distinguishing information at the beginning of headings, paragraphs, lists, etc.

13.9 Provide information about document collections (i.e., documents comprising multiple pages.).

14.2 Supplement text with graphic or auditory presentations where they will facilitate comprehension of the page.

14.3 Create a style of presentation that is consistent across pages.

13.10 Provide a means to skip over multi-line ASCII art.