View previous topic :: View next topic |
Author |
Message |
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Sun Feb 20, 2005 8:16 pm Post subject: Installare programma Gnome |
|
|
Salve, premetto che sono un neofita di gentoo e soprattutto di linux.
Ho installato gentoo con interfaccia grafica gnome.
Volevo installarci WiFi Radar che ha un'interfaccia grafica adatta a Gnome.
Una volta scaricato il file wifi_radar-1.1.tar.gz mi ritrovo con due file:
wifi_radar.py e wifi_radar.svg
Il problema è che non so come farlo partire.
Queste sono le istruzioni sul sito ufficiale:
Quote: | WiFi Radar assumes to be on a Gentoo based system, but that is a minor detail. Here is what is important:
* It will always look for the config file in /etc/conf.d/wifi_radar.conf. You can change that in wifi_radar.py
* If that file does not exist, it will create it, so you must always run it within a correctly permitted account (as root or use sudo)
* Running it without the "--config" option will set it to "scan and auto connect" mode, which has no UI.
* Running it with the "--config" option will display the UI for configuration.
* The icon SVG file must be in
/usr/share/pixmaps/wifi_radar.svg |
Io ho copiato il file wifi_radar.py /etc/conf.d/ e l'ho rinominato wifi_radar.conf come spiegato qui sopra.
Poi ho aperto con nano il file e ho configurato il tutto.
Ora non riesco a capire come far partire il programma.
Qualcuno può aiutarmi??
Grazie! |
|
Back to top |
|
|
mouser Veteran
Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Sun Feb 20, 2005 9:00 pm Post subject: |
|
|
Quote: |
* It will always look for the config file in /etc/conf.d/wifi_radar.conf. You can change that in wifi_radar.py
|
vero che la mia conoscenza di inglese e' limitata, ma qui non dice di cambiare wifi_radar.conf in wifi_radar.py????
mouser |
|
Back to top |
|
|
SilverXXX l33t
Joined: 18 Sep 2004 Posts: 885
|
Posted: Sun Feb 20, 2005 9:09 pm Post subject: |
|
|
Stai eseguendo wifi radar da root?
@ mouser: dice che il file da cercare (il .conf) è settato dentro al .py; se vuoi tenere il .conf da un'altra parte, devi cambiare anche il .py _________________ about:mozilla |
|
Back to top |
|
|
mouser Veteran
Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Sun Feb 20, 2005 9:10 pm Post subject: |
|
|
SilverXXX wrote: |
...
@ mouser: dice che il file da cercare (il .conf) è settato dentro al .py; se vuoi tenere il .conf da un'altra parte, devi cambiare anche il .py |
Ehh, be!!!
Meno male che la mia vecchia prof di inglese delle superiori non legge il forum
mouser |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Sun Feb 20, 2005 10:38 pm Post subject: |
|
|
SilverXXX wrote: | Stai eseguendo wifi radar da root?
@ mouser: dice che il file da cercare (il .conf) è settato dentro al .py; se vuoi tenere il .conf da un'altra parte, devi cambiare anche il .py |
Si da root.Ma sinceramente non so ho capito bene..Quindi il .conf sarebbe anche quello da eseguire????
Grazie dell'aiuto SilverXXX |
|
Back to top |
|
|
SilverXXX l33t
Joined: 18 Sep 2004 Posts: 885
|
Posted: Mon Feb 21, 2005 7:03 am Post subject: |
|
|
No, è da eseguire solo il .py; nel .conf ci sono le impostazioni che lo script legge. _________________ about:mozilla |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Mon Feb 21, 2005 7:58 am Post subject: |
|
|
Scusate la mia ignoranza con la lingua straniera...
Qualcuno mi puo tradurre queste due frasi
Quote: | * If that file does not exist, it will create it, so you must always run it within a correctly permitted account (as root or use sudo)
* Running it without the "--config" option will set it to "scan and auto connect" mode, which has no UI.
* Running it with the "--config" option will display the UI for configuration. |
Thanks! |
|
Back to top |
|
|
mouser Veteran
Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Mon Feb 21, 2005 8:23 am Post subject: |
|
|
Grossomodo dovrebbero dire:
Quote: |
* If that file does not exist, it will create it, so you must always run it within a correctly permitted account (as root or use sudo)
* Running it without the "--config" option will set it to "scan and auto connect" mode, which has no UI.
* Running it with the "--config" option will display the UI for configuration.
|
Quote: |
* Se quel file non esiste, dovrai crearlo, e dovrai sempre eseguirlo tramite un account con corretti privilegi (come root o usando sudo)
* Avviarlo senza l'opzione "--config" lo setterà nella modalità "scansiona e collegati automaticamente", che non ha interfaccia utente
* Avviarlo con l'opzione "--config" visualizzerà l'interfaccia utente per la configurazione
|
Sempre pronto ad essere corrette
Ciriciao
mouser |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Mon Feb 21, 2005 6:26 pm Post subject: |
|
|
Ragazzi non riesco a far partire sto maledetto programma..
Allora...Riepilogo la faccenda...
Nell'archivio che ho scaricato ci sono due file:
wifi_radar.py e wifi_radar.svg.
Quest'ultimo l'ho messo dentro /usr/share/pixmaps/wifi_radar.svg mentre wifi_radar.py l'ho rinominato in wifi_radar.conf e l'ho messo dentro /etc/conf.d/
Nel file wifi_radar.py c'è questo codice:
Code: | #!/usr/bin/python
# wifi_radar.py
# A wireless profile manager for X1000 Linux
#
# Ahmad Baitalmal <ahmad@baitalmal.com>
# This software is under the GPL license
import time, os, sys, re, ConfigParser
# if not SPEAK_UP: return
# Defaults, these could be different for your distro.
CONF_FILE = "/etc/conf.d/wifi_radar.py"
IWLIST_COMMAND = "/usr/sbin/iwlist"
IWCONFIG_COMMAND= "/usr/sbin/iwconfig"
IFCONFIG_COMMAND= "/sbin/ifconfig"
DHCP_COMMAND = "/sbin/dhcpcd"
ROUTE_COMMAND = "/sbin/route"
SAY_COMMAND = "/usr/local/bin/say"
# More defaults, these may get overridden by values found in the conf file
ICON_FILE = "/usr/share/pixmaps/wifi_radar.svg"
INTERFACE = "wlan0"
SCAN_TIMEOUT = "5"
SPEAK_UP = True
Piu tutto il codice scritto in C del programma
|
Ora effettuate queste operazioni come faccio a far partire il programma????
Non riesco a capire cosa significano queste due operazioni e su quale file devo agire:
Code: | * Avviarlo senza l'opzione "--config" lo setterà nella modalità "scansiona e collegati automaticamente", che non ha interfaccia utente
* Avviarlo con l'opzione "--config" visualizzerà l'interfaccia utente per la configurazione |
Grazie ! |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Tue Feb 22, 2005 10:26 am Post subject: |
|
|
Qualcuno riesce ad aiutarmi??
Sto linux mi sta facendo perdere la testa.. |
|
Back to top |
|
|
Pancu l33t
Joined: 16 Feb 2005 Posts: 612 Location: Cesena
|
Posted: Sat Feb 26, 2005 12:19 pm Post subject: |
|
|
Ho provato a far partire il programma..
Ecco l'errore.
Code: | # sudo /usr/local/bin/wifi_radar.py --config
Traceback (most recent call last):
File "/usr/local/bin/wifi_radar.py", line 653, in ?
import gtk
File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line 37, in ? from _gtk import *
RuntimeError: could not open display
|
|
|
Back to top |
|
|
mouser Veteran
Joined: 10 Aug 2004 Posts: 1419 Location: Milano
|
Posted: Sat Feb 26, 2005 12:28 pm Post subject: |
|
|
Pancu wrote: |
...
Code: |
...
RuntimeError: could not open display
|
|
Allora, prova a dare il comando
Dovrebbe restituirti, per esempio, :0.0
A questo punto prova con
Code: |
$ DISPLAY=:0 sudo /usr/local/bin/wifi_radar.py --config
|
E vedi se migliora il tutto.
ps: la parte superiore dell'errore farebbe sembrare che non hai installato le gtk, o che hai compilato python senza il supporto per queste librerie.
Ciriciao
mouser |
|
Back to top |
|
|
|