Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installare programma Gnome
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Sun Feb 20, 2005 8:16 pm    Post subject: Installare programma Gnome Reply with quote

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
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Sun Feb 20, 2005 9:00 pm    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
SilverXXX
l33t
l33t


Joined: 18 Sep 2004
Posts: 885

PostPosted: Sun Feb 20, 2005 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Sun Feb 20, 2005 9:10 pm    Post subject: Reply with quote

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 :lol:

mouser :wink:
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Sun Feb 20, 2005 10:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
SilverXXX
l33t
l33t


Joined: 18 Sep 2004
Posts: 885

PostPosted: Mon Feb 21, 2005 7:03 am    Post subject: Reply with quote

No, è da eseguire solo il .py; nel .conf ci sono le impostazioni che lo script legge.
_________________
about:mozilla
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Mon Feb 21, 2005 7:58 am    Post subject: Reply with quote

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!:wink:
Back to top
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Mon Feb 21, 2005 8:23 am    Post subject: Reply with quote

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 :wink:
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Mon Feb 21, 2005 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Tue Feb 22, 2005 10:26 am    Post subject: Reply with quote

Qualcuno riesce ad aiutarmi??
Sto linux mi sta facendo perdere la testa..:cry: :cry: :cry: :cry:
Back to top
View user's profile Send private message
Pancu
l33t
l33t


Joined: 16 Feb 2005
Posts: 612
Location: Cesena

PostPosted: Sat Feb 26, 2005 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
mouser
Veteran
Veteran


Joined: 10 Aug 2004
Posts: 1419
Location: Milano

PostPosted: Sat Feb 26, 2005 12:28 pm    Post subject: Reply with quote

Pancu wrote:

...
Code:

...
RuntimeError: could not open display


Allora, prova a dare il comando
Code:

$ echo $DISPLAY

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 :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum