[QtMoko] Wireless connention to eduroam

2013-03-11 Thread Giacomo 'giotti' Mariani

Dear Radeck, all,
I use to connect to eduroam wireless network in Europe and I'm not
able to do this from the GUI, su I wrote a simple script to achieve this
(even if it does not work everytime...):
#!/bin/bash
rm /var/lib/wpa_supplicant/eth0
killall wpa_supplicant
om wifi power 1
sllep 2
om wifi maxperf eth0 1
sleep 2
wpa_supplicant -Dwext -ieth0 -c/etc/wpa_supplicant/wpa_supplicant-eduroam.conf 
-B
sleep 30
dhclient eth0

where
# cat /etc/wpa_supplicant/wpa_supplicant-eduroam.conf
ctrl_interface=/var/lib/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
fast_reauth=1
ap_scan=1

network={
ssid=eduroam
proto=WPA2 WPA RSN
key_mgmt=WPA-EAP
eap=TTLS
identity=user
password=pass
#phase2=auth=Any
phase2=auth=PAP
}

Now my question: which is the best way to create an icon to launch it?

A second one: have you got any suggestion on how to improve it?

Best regards,
  Giacomo
 

-- 
##
giacomo 'giotti' mariani
gpg --keyserver pool.sks-keyservers.net --recv-key 0x99bfa859
O ASCII ribbon campaign: stop HTML mail
www.asciiribbon.org
##




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko] Wireless connention to eduroam

2013-03-11 Thread Daniele Forsi
2013/3/11 Giacomo 'giotti' Mariani:

 om wifi power 1
 sllep 2

I guess this should be sleep

-- 
Daniele Forsi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: QtMoko v54

2013-03-11 Thread Radek Polak
On Sunday, March 10, 2013 07:26:40 PM Peter Fey wrote:

 What are the new displays on the homescreen for? I think one is for
 power consumption, and the one with the sphere might display the
 identification of the gsm cell I am booked into, but what is the
 P-shaped symbol for?

That should be atmospheric pressure - on freerunner unused - could maybe work 
with navigation board.

Regards

Radek
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko] Wireless connention to eduroam

2013-03-11 Thread Radek Polak
On Monday, March 11, 2013 11:03:19 AM Giacomo 'giotti' Mariani wrote:

 Now my question: which is the best way to create an icon to launch it?

You can use some unused script available in devtools. Or you can write 
.desktop file with your own icon. There are many examples how to do it - e.g. 
check source code and debian package of some installable app on 
http://qtmoko.sourceforge.net/apps

Regards

Radek
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko] Wireless connention to eduroam

2013-03-11 Thread Giacomo 'giotti' Mariani
On 03/11/2013 11:37 AM, Radek Polak wrote:

 On Monday, March 11, 2013 11:03:19 AM Giacomo 'giotti' Mariani wrote:

  

  Now my question: which is the best way to create an icon to launch it?

  

 You can use some unused script available in devtools. Or you can write
 .desktop file with your own icon. There are many examples how to do it
 - e.g. check source code and debian package of some installable app on
 http://qtmoko.sourceforge.net/apps

  

 Regards

  

 Radek

Thanks. I think I will use a couple of unused scripts available in
devtools. Meanwhile, how can I add a new one there?

I noticed that the wifi symbol is not displayed if I start wifi that
way. Do you know how the wifi symbol is triggered in the theme?

Best regards,
  Giacomo

-- 
##
giacomo 'giotti' mariani
gpg --keyserver pool.sks-keyservers.net --recv-key 0x99bfa859
O ASCII ribbon campaign: stop HTML mail
www.asciiribbon.org
##

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko] Wireless connention to eduroam

2013-03-11 Thread francesco . devita

Il 11/03/2013 14:50, Giacomo 'giotti' Mariani ha scritto:


I noticed that the wifi symbol is not displayed if I start wifi that 
way. Do you know how the wifi symbol is triggered in the theme?

This is the line about the wifi icon in the titlebar:

status name=wifi imageon=wifi.png 
on=expr:@/Network/Interfaces/Wifi/State == 2 
active=expr:@/Network/Interfaces/Wifi/State == 2 
onclick=message=QPE/Application/qterminal,setDocument(QString),/opt/qtmoko/bin/ping.sh 
/


the icon appears when expr:@/Network/Interfaces/Wifi/State == 2, but I 
don't know how you can do that.


Ciao
Joif
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko] Wireless connention to eduroam

2013-03-11 Thread Radek Polak
On Monday, March 11, 2013 03:04:01 PM francesco.dev...@mailoo.org wrote:

 Il 11/03/2013 14:50, Giacomo 'giotti' Mariani ha scritto:
  I noticed that the wifi symbol is not displayed if I start wifi that
  way. Do you know how the wifi symbol is triggered in the theme?
 
 This is the line about the wifi icon in the titlebar:
 
 status name=wifi imageon=wifi.png
 on=expr:@/Network/Interfaces/Wifi/State == 2
 active=expr:@/Network/Interfaces/Wifi/State == 2
 onclick=message=QPE/Application/qterminal,setDocument(QString),/opt/qtmoko
 /bin/ping.sh /
 
 the icon appears when expr:@/Network/Interfaces/Wifi/State == 2, but I
 don't know how you can do that.

There is command line utility calles vsexplorer (or something like that) in 
/opt/qtmoko/bin. You can use it to read and probably set these valuespace 
objects.

Regards

Radek
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [QtMoko] Wireless connention to eduroam

2013-03-11 Thread Paul Fertser
Hi,

Giacomo 'giotti' Mariani giacomomari...@yahoo.it writes:
 wpa_supplicant -Dwext -ieth0 
 -c/etc/wpa_supplicant/wpa_supplicant-eduroam.conf -B
 sleep 30
 dhclient eth0

I have two alternative suggestions for you here:

1. Read /usr/share/doc/wpasupplicant/README.Debian and configure it in
roaming mode. That way Debian will take care of calling dhclient
itself when it's needed.

2. Write a simplistic script that would call dhclient when needed and
use it with wpa_cli -a your_script

That way your connection will be fully automatically reestablished after
suspend to ram.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community