PDA

View Full Version : SLAX , WIRELESS KWIFIMANAGER E CASINI VARI


Sub_mariner
29-09-2008, 15:44
Salve gente.
Ho slax 6
la pennetta dlink gw122
il programma kwifimanager

La rete viene rilevata
i driver per rt73 sono ok.
ma nella finestra del kwifimanager vedo che nel campo access point invece del classico 192.168.1.1 c'è l'indirizzo MAC sapete quello 00:EA ecc..
Ho controllato sul router (dlink g624T) e corrisponde.
Ovviamente non si connette, anche se la rete viene rilevata e il segnale è bello verde.
Ho sentito parlare di dhcp e storie simili.
ma dopo 2 giorni mi sono arreso.
Mi date una mano a configurare finalmente questo casino?
Grazie anticipate

sasa83
29-09-2008, 17:31
che ci sia il mac è normale...
come hai impostato la connessione? hai usato iwconfig o che cosa?

Sub_mariner
29-09-2008, 19:46
Ciao.
Bè vedi ho fatto dei casini.
Se dovessi dirti come ho fatto non te lo saprei raccontare.
una cosa però te la posso dire, se riavvio sparisce tutto.
Quindi ti chiederei di dirmi fin dall'inizio cosa dovrei fare, tenendo presente ciò di cui sopra e cioè:
pennetta dlink g122
slax 6
kwifi manager

i driver del dlink li ho messi, però devo ogni volta apre la console e digitare modprobe rt73, quindi anche qui dovrei capire come si fa a metterli in automatico ( il file modprobe.conf non l'ho trovato)
Spero tu o altri mi possiate aiutare perchè mi son proprio esaurito..:eek:

sasa83
29-09-2008, 20:46
lascia perdere kwifimanager...cmq, non ho mai usato la slax ma dovrebbe essere simile alla slackware se non uguale. se così fosse hai bisogno di editare 2 files: /etc/rc.d/rc.inet1.conf e /etc/rc.d/rc.wireless.conf
posta il loro contenuto e poi si vede come configurarli...è importante sapere se usi la cifratura wep o la wpa, in quest'ultimo caso: hai installato wpa_supplicant?

Sub_mariner
29-09-2008, 22:52
ciao, domani, dal lavoro, ti posto ciò che mi hai chiesto.
Grazie diecimila del tuo interessamento.
a domani:)

Sub_mariner
30-09-2008, 09:25
QUESTO È INET.CONF

This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""

# Default gateway IP address:
#GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## EXAMPLE CONFIG INFORMATION FOR WLAN0. UNCOMMENT THE LINES YOU NEED AND FILL
## IN YOUR DATA. (YOU MAY NOT NEED ALL OF THESE FOR YOUR WIRELESS NETWORK)
#IFNAME[4]="WLAN0"
#IPADDR[4]=""
#NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="YES"
#DHCP_HOSTNAME[4]="ICCULUS-WIRELESS"
#DHCP_KEEPRESOLV[4]="YES"
#DHCP_KEEPNTP[4]="YES"
#DHCP_KEEPGW[4]="YES"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=DLINK_WIRELESS
#WLAN_MODE[4]=MANAGED
#WLAN_RATE[4]="54M AUTO"
#WLAN_CHANNEL[4]="6"
#WLAN_KEY[4]=
#WLAN_IWPRIV[4]="SET AUTHMODE=WPAPSK | SET ENCRYPTYPE=TKIP | SET WPAPSK=
#WLAN_WPA[4]="WPA_SUPPLICANT"
#WLAN_WPADRIVER[4]="WEXT"
#WLAN_WPAWAIT[4]=30

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name instead of
# the default 'eth4'
#IFNAME[4]="eth0:1" # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15 # The default timeout for the DHCP client to
# wait for server resonse is 30 seconds, but
# you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # An example of how you can override _any_
# parameter defined in rc.wireless.conf, by
# prepending 'WLAN_' to the parameter's name.
# Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).
#WLAN_WPA[4]="wpa_supplicant" # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
# ndiswrapper driver (if you leave this empty
# the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30 # In case it takes long for the WPA association
# to finish, you can increase the wait time
# (defaults to 10 seconds)

QUESTO INVECE È RC.WIRELESS.CONF

# Wireless LAN adapter configuration
#
# Theory of operation :
#
# The script attempts to match a block of settings to the specific wireless
# card inserted, the *first* block matching the card is used.
# The address format is "hwaddr", with * as a wildcard.
# 'hwaddr' is the unique MAC address identifier of the wireless card.
# The MAC address is usually printed on the card, or can be found via ifconfig.
# Some examples here use only half of the MAC address with a wildcard to
# match a whole family of cards...
#
# All the Wireless specific configuration is done through the Wireless
# Extensions, so we will just call 'iwconfig' with the right parameters
# defined below.
# Of course, you need to have iwconfig installled on your system.
# To download iwconfig, or for more info on Wireless Extensions :
# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
#
# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...
#
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
# -- I added sections for Prism/GT and Atheros based cards --
# -- (supported by the prism54 and madwifi drivers) --
# -- 16/sep/2004 * Eric Hameleers --
#

VERBOSE=1

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="any"
;;
## ---------- END SECTION TO REMOVE ------------


# Here are a few examples with a few Wireless LANs supported...
# The matching is done on the first 3 bytes of the MAC address

# SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter
00:04:E2:*)
INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
# ESSID (extended network name) : My Network, any
ESSID="any"
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="7"
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M,54M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
# Example for 40-bit encryption:
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
# Example for 104-bit encryption (aka 128-bit WEP):
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;

# Multiband Atheros based 802.11a/b/g universal NIC cards
00:05:4E:*)
INFO="Multiband Atheros based 802.11a/b/g universal NIC"
# ESSID (extended network name) : My Network, any
ESSID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="7"
# Bit rate : auto, 1M, 11M,54M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
# Example for 40-bit encryption:
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
# Example for 104-bit encryption (aka 128-bit WEP):
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;

# Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
# Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
00:60:1D:*|00:02:2D:*)
INFO="Wavelan IEEE example (Lucent default settings)"
ESSID="Wavelan Network"
MODE="Managed"
#RATE="auto"
KEY="s:secu1"
# To set all four keys, use :
#KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
# For the RG 1000 Residential Gateway: The ESSID is the identifier on
# the unit, and the default key is the last 5 digits of the same.
#ESSID="084d70"
#KEY="s:84d70"
;;

# Cisco/Aironet 4800/3x0
# Note : MPL driver only (airo/airo_cs), version 1.3 or later
00:40:96:*|00:02:8A:*)
INFO="Cisco/Aironet example (Cisco default settings)"
ESSID="any"
# To set all four ESSID, use iwconfig v21 and the same trick as above
MODE="Managed"
#RATE="11M auto"
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY="off"
;;

# Samsung MagicLan (+ some other PrismII cards)
# Note : Samsung binary library driver, version 1.20 or later
00:00:F0:*|00:02:78:*)
INFO="Samsung MagicLan example (Samsung default settings)"
ESSID="any"
MODE="Managed"
CHANNEL="4"
RATE="auto"
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
#IWCONFIG="power on"
;;

# Raytheon Raylink/WebGear Aviator2.4
# Note : doesn't work yet, please use for debugging only :-(
00:00:8F:*|00:00:F1:*)
INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
ESSID="ADHOC_ESSID"
MODE="Ad-Hoc"
RATE="auto"
IWPRIV="set_framing 1"
;;


# Old Lucent Wavelan
08:00:0E:*)
INFO="Wavelan example (Lucent default settings)"
NWID="0100"
MODE="Ad-Hoc"
FREQ="2.425G"
KEY="off"
;;

# Netwave (Xircom Netwave/Netwave Airsurfer)
00:80:C7:*)
INFO="Netwave example (Netwave default settings)"
NWID="100"
KEY="00"
;;

# Proxim RangeLan2/Symphony (what is the MAC address ???)
XX:XX:XX:*)
INFO="Proxim RangeLan2/Symphony example"
NWID="0"
MODE="Master"
CHANNEL="15"
IWPRIV="setsubchan 1"
;;

# No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
XX:XX:XX:*)
INFO="NWN Swallow example"
ESSID="session"
KEY="0000-0000-00 open"
;;

# Symbol Spectrum24 setting (what is the MAC address ???)
XX:XX:XX:*)
INFO="Symbol Spectrum24 example"
ESSID="Essid string"
;;

# Generic example (decribe all possible settings)
*)
INFO="Fill with your own settings..."
# ESSID (extended network name) : My Network, any
ESSID=""
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE=""
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL=""
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M
RATE=""
# Encryption key : 4567-89AB-CD, s:password
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;
esac

Te li ho messi completi senza omettere niente.
wpa supplicant non so cosa sia nè l'ho mai installato.

sasa83
30-09-2008, 10:43
non mi hai ancora detto se usi la wep o la wpa...
cmq, per il resto...dalle cose che modifichi in questo file devi togliere il # davanti, e poi scrivi quello che ti dico...
QUESTO È INET.CONF

...cut...

# Default gateway IP address:
#GATEWAY="192.168.1.1"quì togli il cancelletto e metti l'indirizzo ip del router

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## EXAMPLE CONFIG INFORMATION FOR WLAN0. UNCOMMENT THE LINES YOU NEED AND FILL
## IN YOUR DATA. (YOU MAY NOT NEED ALL OF THESE FOR YOUR WIRELESS NETWORK)
#IFNAME[4]="WLAN0" quì metti il nome della tua interfaccia
#IPADDR[4]=""
#NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="YES" quì togli il cancelletto e basta
#DHCP_HOSTNAME[4]="ICCULUS-WIRELESS"
#DHCP_KEEPRESOLV[4]="YES"
#DHCP_KEEPNTP[4]="YES"
#DHCP_KEEPGW[4]="YES"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=DLINK_WIRELESS
#WLAN_MODE[4]=MANAGED
#WLAN_RATE[4]="54M AUTO"
#WLAN_CHANNEL[4]="6"
#WLAN_KEY[4]="SARAGONE"
#WLAN_IWPRIV[4]="SET AUTHMODE=WPAPSK | SET ENCRYPTYPE=TKIP | SET WPAPSK=96389DC66EAF7E6EFD5B5523AE43C7925FF4DF2F8B7099495192D44A774FDA16"
#WLAN_WPA[4]="WPA_SUPPLICANT"
#WLAN_WPADRIVER[4]="WEXT"
#WLAN_WPAWAIT[4]=30

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name instead of
# the default 'eth4'
#IFNAME[4]="eth0:1" # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15 # The default timeout for the DHCP client to
# wait for server resonse is 30 seconds, but
# you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # An example of how you can override _any_
# parameter defined in rc.wireless.conf, by
# prepending 'WLAN_' to the parameter's name.
# Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).
#WLAN_WPA[4]="wpa_supplicant" # Run wpa_supplicant for WPA support
#WLAN_WPADRIVER[4]="ndiswrapper"# Tell wpa_supplicant to specifically use the
# ndiswrapper driver (if you leave this empty
# the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30 # In case it takes long for the WPA association
# to finish, you can increase the wait time
# (defaults to 10 seconds)

QUESTO INVECE È RC.WIRELESS.CONF

# Wireless LAN adapter configuration
#
# Theory of operation :
#
# The script attempts to match a block of settings to the specific wireless
# card inserted, the *first* block matching the card is used.
# The address format is "hwaddr", with * as a wildcard.
# 'hwaddr' is the unique MAC address identifier of the wireless card.
# The MAC address is usually printed on the card, or can be found via ifconfig.
# Some examples here use only half of the MAC address with a wildcard to
# match a whole family of cards...
#
# All the Wireless specific configuration is done through the Wireless
# Extensions, so we will just call 'iwconfig' with the right parameters
# defined below.
# Of course, you need to have iwconfig installled on your system.
# To download iwconfig, or for more info on Wireless Extensions :
# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
#
# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...
#
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
# -- I added sections for Prism/GT and Atheros based cards --
# -- (supported by the prism54 and madwifi drivers) --
# -- 16/sep/2004 * Eric Hameleers --
#

VERBOSE=1

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="any" quì metti l'essid della tua rete
;;
## ---------- END SECTION TO REMOVE ------------


----cut---

Te li ho messi completi senza omettere niente.
wpa supplicant non so cosa sia nè l'ho mai installato.

il resto della configurazione dipende dal tipo di chiave che usi...
edit: il nom dell'interfaccia lo puoi ricavare lanciando
iwconfig

come root dal terminale...è ovvio quindi che debba aver installato i wireless tools.

Sub_mariner
30-09-2008, 11:09
Ciao.
intanto di nuovo grazie.
Uso WPA, ma caso mai servisse posso mettere WPE,non c'è problema.
Quando dici interfaccia che cosa intendi?
Il programma kwifimanager?
Io ho solo quello.
Ho provato ad installare Rutilit, che dovrebbe essere il migliore, ma non riesco ad installarlo in nessun modo.
Nè col pachhetto deb nè col taz.gz.
Tieni presente che ho slax installato su HD.
Quindi i moduli non si installano, credo sia un bug della slax proprio.
Quando ci provi dà sempre errore.
I moduli li ho dovuti installare a mano dopo averli decompressi, copiando i file uno per uno nelle rispettive directory del pc.
quindi il pacchetto che serve a installare i file .deb per slax, quando vado a cercare di installare i .deb digito dpkg -i nomefile e quello mi risponde che il file /var/lib/dpkg/status non esiste.
ed in effetti non c'è.
questo sarà un altro problema per cui chiederò aiuto.
ma questa è un'altra storia.
andiamo con ordine quindi.
questa sera sul tardi quando torno a casa provo le modifiche che mi hai suggerito e domani ti faccio senz'altro sapere.
ad ogni modo se sai indicarmi qualche altro programma gestire la connessione wifi, che non sia kwifimanager, indicamelo pure così lo installo.
o almeno ci provo :)

Sub_mariner
30-09-2008, 11:21
#IFNAME[4]="WLAN0" quì metti il nome della tua interfaccia

qui non capito che devo mettere, WLAN0 devo rimuoverla?
ovviamente il cancelletto devo toglierlo giusto?

sasa83
30-09-2008, 11:25
un programma valido è wicd...se usi il wpa hai bisogno di 2 programmi: wireless tools e wpa supplicant, e poi devi applicare le modifiche che ti ho detto ai file ci conf più altre, o in alternativa puoi far gestire tutto a wicd, ma in questo caso io non ti so aiutare perchè non l'ho mai usato...e inoltre credo che wicd non vada d'accordo con inet e quindi debba disabilitare quest'ultimo...credo!!!

#IFNAME[4]="WLAN0" quì metti il nome della tua interfaccia

qui non capito che devo mettere, WLAN0 devo rimuoverla?
ovviamente il cancelletto devo toglierlo giusto?

il cancelletto va tolto....
il nome dell'interfaccia è il nome con il quale appunto si identifica la tua rete, si può vedere facilmente lanciando iwconfig dal terminale, di solito è wlan0 o eth1, può dipendere dal driver che si usa, nel tuo caso è probabile che sia rt73 o qualcosa del genere.
per il fatto dei pacchetti inizio a non capirci niente...ma scusa sei sicuro che la slax usi i .deb? ma poi perchè hai installato proprio la slax? pensavo fosse una distribuzione concepita per essere installata su penne usb, ma se hai un hd a disposizione ti consiglierei di orientarti su altro.

Sub_mariner
30-09-2008, 14:27
AIA...dunque...questi famosi wireless tools esistono sotto forma di tar.gz?
la slax non usa i .deb è vero, ma grazie all'utility dpgk dovrebbe essere appunto possibile usarli senza problemi.
Dovrebbe !
Ho scelto la slax per diversi motivi, buon supporto, diversi programmi,lingua italiana,m,a sopratutto versatilità ,leggerezza e velocità.
calcola che è installata su un pentium 3 a 500mhz con un hdfda 2gb e 128mb di ram.
e va alla grande.
certo ubuntu è completa, ma è molto più lenta e sopratutto vuole minimo 2,5gb solo per essere installata.
cmq vediamo che succede con le info che mi hai dato.

sasa83
30-09-2008, 17:40
ripeto che non ho mai usato slax e quindi potrei sbagliarmi però ho letto che puoi benissimo usare i pacchetti della slackware...quindi tutto il software che vuoi lo trovi quì: www.slacky.eu
cmq i wireless tools dovrebbero già esserci, hai provato a lanciare iwconfig come root dal terminale? poi dal sito che ti ho detto puoi scaricare wpa_supplicant (sempre che non lo abbia già) e wicd se vuoi un tool frafico.

Sub_mariner
30-09-2008, 22:41
Purtroppo il primo esperimento , cioè la modifica dei file che mi hai detto è fallito.
Nel senso che non si connette ol router, comunica ma non ci sono i parametri giusti, e con quel kwifimanager non si può modificare niente.
senti, facciamo una cosa, mi dai una mano ad installare wicd ?
io non ci sono riuscito.
ho scaricato il pacchetto, ma l'installazione non è andata a buon fine a quanto pare, visto che non vedo l'icona di wicd da nessuna parte.
azz ma perchè devo essere tutto così complicato?
proviamoci dài !

sasa83
30-09-2008, 23:13
Purtroppo il primo esperimento , cioè la modifica dei file che mi hai detto è fallito.
Nel senso che non si connette ol router, comunica ma non ci sono i parametri giusti, e con quel kwifimanager non si può modificare niente.
senti, facciamo una cosa, mi dai una mano ad installare wicd ?
io non ci sono riuscito.
ho scaricato il pacchetto, ma l'installazione non è andata a buon fine a quanto pare, visto che non vedo l'icona di wicd da nessuna parte.
azz ma perchè devo essere tutto così complicato?
proviamoci dài !

:grrr: :grrr: ho detto di lasciar perdere kwifimanager, è un ordine!!!
:grrr: :grrr: posta l'output del comando
iwconfig

dato come root...
la modifica dei file è ovvio che non abbia portato a niente, mi sarei stupito del contrario...poichè non hai impostato nessuna chiave di rete!
allora...questo benedetto wicd come l'hai installato? l'hai installato da un .tgz? da un .rpm? se hai dato un comando per installarlo scrivimelo quì completo...

Sub_mariner
01-10-2008, 10:39
Ciao, allora questo è l'output di "iwconfig"
Il programma wicd ho cercato di installarlo da un tar.gz
Ma una volta scompattato, nella cartella ho visto che ha l'installer in linguaggio python.
Quindi mi son installato , a mano visto che i pacchetti su HD non si installano, l'interprete python.
Ma , anche se seguo le indicazioni del "readme" il programma non si installa.
In pratica secondo le istruzioni dovrei scrivare da terminale "python setup.py configure" e poi "python setup.py".
Ma qualcosa non va.


root@slax:~# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 RT73 WLAN ESSID:""
Mode:Managed Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-111 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

root@slax:~#

sasa83
01-10-2008, 16:06
i wireless tools ce li hai e la scheda funziona...se vuoi usare wicd allora ti consiglio di installarlo dai .tgz, non tar.gz.
scaricalo da quì: www.slacky.eu, una volta che hai il pacchetto lo installi con il comando:
installpkg nomefile.tgz

oppure vedi se c'è un gestore grafico tipo kpackage o qualcos'altro, altr sempre dalla shell qualcosa di più intuitivo potrebbe essere:
pkgtool

nel menù scegli "other" e vai a scrivere il percorso dove si trova il pacchetto...
poi sempre da pkgtool scegli "remove", scorri la lista e vedi se è installato wpa_supplicant...la finestra dovrebbe apparire simile a questa:
http://img221.imageshack.us/my.php?image=snapshot8ik8.png

Sub_mariner
01-10-2008, 16:15
Ciao, una risposta veloce poi scappo al lavoro, da cui però più tardi mi ricollego e leggerò e risponderò, in caso.
Wpa-supplicant non c'era e me lo son dovuto installare, come al solito a mano, dopo aver decompresso il pacchetto, copiando i file uno per uno nelle rispettive dir.
Assurda questa cosa, non si installa nessun pacchetto se slax è su HD, chissa se è solo un problema mio.
A più tardi e grazie dell'aiuto che mi stai dando.

sasa83
01-10-2008, 16:19
Ciao, una risposta veloce poi scappo al lavoro, da cui però più tardi mi ricollego e leggerò e risponderò, in caso.
Wpa-supplicant non c'era e me lo son dovuto installare, come al solito a mano, dopo aver decompresso il pacchetto, copiando i file uno per uno nelle rispettive dir.
Assurda questa cosa, non si installa nessun pacchetto se slax è su HD, chissa se è solo un problema mio.
A più tardi e grazie dell'aiuto che mi stai dando.

ma pacchetti tgz? questa cosa mi è nuova, cmq te lo dicevo io che era meglio se sceglievi qualcos'altro...ce ne sono a decine distribuzioni che girano su pc del neolitico.

Sub_mariner
01-10-2008, 19:59
Ciao,sono connesso dal pc del lavoro,su cui guarda caso, ho anche qui installato slax 6.
Ho scaricato il pacchetto che mi hai indicato, wicd con estensione .tgz, poi con il comando che mi hai scritto, l'ho installato.
Tutto ok fin qui.
Poi nella cartella "internet" ho trovato l'icona di wicd e l'ho lanciato.
Ma , nonostante venga fuori l'iconcina ballonzolante del wicd, dopo un pò va via e non succede niente.
L'ho installato qui per fare una prova, ma calcola che quinon c'è nessuna rete nè router.
E' forse questo il motivo per cui non mi viene fuori l'interfaccia grafica?
Te lo dico perchè ho letto da qualche parte che wicd va in conflitto con network manager, e quest'ultimo dovrebbe essere rimosso.
Se è così allora dovresti aiutarmi, perchè non saprei come fare.
Se invece il motivo è che manca la rete allora domani provo a casa.
Dimmi tu.

sasa83
01-10-2008, 22:10
wicd l'ho usato solo una volta sulla slackware...per farlo funzionare ho dovuto disabilitare il demone inet per le connessioni e poi abilitare il demone di wicd, altr se lo lanci così e basta non viene fuori niente.
il demone credo venga piazzato in /etc/rc.d/rc.wicd, quindi vedi se ha l'attributo di eseguibile, e poi toglilo al demone inet1. fatto questo puoi lanciare il client per settare la connessione, ma per il wpa hai bisogno anche di wpa_supplicant.
ps. hai installato le dipendenze per wicd? a quanto ne so io sono: dbus-python, pygobject, pycairo e pygtk. vedi se le hai...

Sub_mariner
02-10-2008, 06:50
QUESTO è il contenuto del file etc/rc.d/rc.wicd.

a questo punto che dovrei fare concretamente?


#!/bin/bash

if [[ $1 = "start" ]]
then
echo "Stopping any running daemons..."
killall daemon.py 2> /dev/null
echo "Starting wicd daemon..."
/opt/wicd/daemon.py 2> /dev/null
fi

if [[ $1 = "stop" ]]
then
echo "Stopping wicd daemon..."
killall daemon.py 2> /dev/null
fi

Sub_mariner
02-10-2008, 06:58
domanda banale ma non troppo.
come si cercano i file che mi hai detto ?

Sub_mariner
02-10-2008, 08:06
altra cosa:
usando quel tool grafico che mi hai descritto (ce l'ho), ho visto che wpa_supplicant non è tra i pacchetti installati.
eppure se da console digito wpa_supplicant mi viene fuori la lista delle opzioni disponibili.
Come mai ?

Sub_mariner
02-10-2008, 08:37
Così non andiamo da nessuna parte.
Ho installato wicd come mi hai detto.
ma manca quel pygtk.
me lo son cercato su google ma non ho trovato la versione in .tgz.
allora l'ho scaricata in tar.gz ma va solo il comando ./configure da root.
poi se faccio "make" mi dà errore.
Non stiamo mettendo un pò troppa carne al fuoco ?
Ricominciamo da capo?
Non cambio distro perchè ci son riusciti in tanti, se non tutti, a connettersi con questa chiavetta e la slax.

sasa83
02-10-2008, 10:42
Così non andiamo da nessuna parte.
Ho installato wicd come mi hai detto.
ma manca quel pygtk.
me lo son cercato su google ma non ho trovato la versione in .tgz.
allora l'ho scaricata in tar.gz ma va solo il comando ./configure da root.
poi se faccio "make" mi dà errore.
Non stiamo mettendo un pò troppa carne al fuoco ?
Ricominciamo da capo?
Non cambio distro perchè ci son riusciti in tanti, se non tutti, a connettersi con questa chiavetta e la slax.

ma certo che ci sono riusciti, ma noi stiamo andando un po' a rallentatore...allora visto che finalmente abbiamo scoperto che hai wpa_supplicant usiamo il metodo tradizionale...cmq i .tgz come ti ho detto li scarichi da slacky.eu, non devi andare a cercarli su google.
allora, devi creare un file, wpa_supplicant.conf e mettilo nella cartella /etc. aprilo e scrivici questo:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
#
# rete domestica protetta con metodo WPA-Personal (WPA_PSK)
network={
ssid="ESSID"
scan_ssid=0
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="chiave"
}

al posto di "ESSID" ci metti il nome della tua rete, e al posto di "chiave" ci metti la password della rete. salvi e chiudi.
i precedenti file che ti avevo detto di modificare, il file rc.wireless.conf va bene come ti avevo detto, mentre nel file rc.inet1.conf togli il cancelletto davanti alla linea:
#WLAN_WPA[4]="wpa_supplicant" # Run wpa_supplicant for WPA support

successivamente vediamo se funziona...dalla shell dai il comando:
/etc/rc.d/rc.inet1 restart

e dopo:
wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0

se funziona si può fare in modo che tutto parta in automatico all'avvio...
apri il file rc.wireless.conf, subito dopo VERBOSE=1, circa alla linea 31, aggiungi questo:
WPA="y"


poi apri il file rc.wireless e in fondo aggiungi questo:
if [ "$WPA" = "y" -a -x /usr/local/sbin/wpa_supplicant ]; then
/usr/local/sbin/wpa_supplicant -Bw -c/etc/wpa_supplicant.conf -i${INTERFACE}
fi

se tutto è andato bene all'avvio dovrebbe connettersi in automatico...se non funziona o preferisci usare wicd fai un fischio.

Sub_mariner
02-10-2008, 11:45
Ciao, quello che vedi sotto è la scritta che ho dato da root, e sotto c'è l'output, mi pare di capire che ha qualcosa a che fare con la key?
Nel file che ho creato il campo "password" ci ho scritto la chiave WPA per connettersi al router, ma l'ho scritta in caratteri normali, non esadecimali, può essere questo?
La schermata di sotto era andata in loop e per fermarla ho dovuto rimuovere la chiavetta...
Forza che ce la facciamo..:)

root@slax:~# wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0


Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='wheel' (DEPRECATED)
Priority group 0
id=0 ssid='DLINK_WIRELESS'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0x0
capabilities: key_mgmt 0x0 enc 0x3
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1b:11:0a:18:74
wpa_driver_wext_set_wpa
Driver does not support WPA.
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
ctrl_interface_group=10 (from group name 'wheel')
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results

sasa83
02-10-2008, 15:54
l'essid va scritto tra le virgolette, quindi nel tuo caso sarebbe:
ssid="DLINK_WIRELESS"

la chiave va scritta lo stesso tra virgolette ed in caratteri ascii, se la vuoi scrivere senza virgolette devi mettere l'equivalente esadecimale...
commenta la linea
ctrl_interface_group='wheel'

cioè mettici il # davanti...prova poi a riavviare la rete:
/etc/rc.d/rc.inet1 restart

e dopo riavvia wpa_supplicant:
wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0

se non funziona prova con questo comando:
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B

Sub_mariner
02-10-2008, 16:53
niente da fare, va sempre il loop e i messaggi son come l'output che ti ho già postato, è qualcosa che ha a che fare con la WPA o qualcosa del genere.
come se la pssword non fosse impostata.

sasa83
02-10-2008, 17:04
niente da fare, va sempre il loop e i messaggi son come l'output che ti ho già postato, è qualcosa che ha a che fare con la WPA o qualcosa del genere.
come se la pssword non fosse impostata.

con tutti e 2 i comandi da errore? hai decommentato la riga in rc.inet1.conf riguardo a wpa come ti avevo detto? hai riavviato l'interfaccia prima di provare? sei sicuro di aver settato correttamente wpa_supplicant.conf?
se hai risposto si a tutte le domande proviamo un ultimo disperato tentativo...apri rc.inet1.conf e decommenta la riga:
WLAN_WPADRIVER[4]="ndiswrapper"

sostituendo al posto di ndiswrapper Wext.
cmq mi lascia perplesso questa scritta nell'output:
Driver does not support WPA.

è dunque probabile che gli rt73 non supportino il wpa, anche se dubito...

Sub_mariner
02-10-2008, 17:13
Proverò a ricontrollare tutto daccapo.
rt73 dovrebbero supportare il WPA.
Provo con entarmbi i comandi e ti posto gli output.
Ma prima dimmi un sito dove provare a convertire la password in ascii.
Ad esempio, se usassi "pippo" che ne verrebbe fuori ?
usando un convertitore online mi viene fuori questo
112, 105, 112, 112, 111
non vorrei che lo sbaglio fosse il mio nel convertire..

sasa83
02-10-2008, 17:15
Proverò a ricontrollare tutto daccapo.
rt73 dovrebbero supportare il WPA.
Provo con entarmbi i comandi e ti posto gli output.
Ma prima dimmi un sito dove provare a convertire la password in ascii.
Ad esempio, se usassi "pippo" che ne verrebbe fuori ?
non vorrei che lo sbaglio fosse il mio nel convertire..

allora, se la vuoi usare in ascii (cioè testo semplice) devi mettere le virgolette, se ce l'hai in hex allora togli le virgolette...pippo è già in ascii, non devi convertire niente...

Sub_mariner
02-10-2008, 17:19
bene. riprovo e ti faccio sapere più tardi.

sasa83
02-10-2008, 17:27
bene. riprovo e ti faccio sapere più tardi.

mi sembra di aver capito che rt73 non gradisca Wext, quindi devi usare un altro driver....prova a usare questo comando:
wpa_supplicant -D ralink -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B

e poi al posto di ndiswrapper in rc.inet1.conf metti ralink, altro non so che dire perchè non uso gli rt73.

Sub_mariner
02-10-2008, 17:32
QUESTO È L'OUT DEL PRIMO COMANDO
mi son ricordato che questa chiavetta con ubuntu funziona benissimo, con la stessa chaive WPA

root@slax:~# wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='wheel' (DEPRECATED)
Priority group 0
id=0 ssid='DLINK_WIRELESS'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=14 enc_capa=0x0
capabilities: key_mgmt 0x0 enc 0x3
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1b:11:0a:18:74
wpa_driver_wext_set_wpa
Driver does not support WPA.
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[SIOCSIWENCODEEXT]: Operation not supported
Driver did not support SIOCSIWENCODEEXT, trying SIOCSIWENCODE
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
ctrl_interface_group=10 (from group name 'wheel')
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists, but does not allow connections - assuming it was leftover from forced program termination
Successfully replaced leftover ctrl_iface socket '/var/run/wpa_supplicant/wlan0'
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
Wireless event: cmd=0x8b2a len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 82 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1b:11:38:ea:48 ssid='DLINK_WIRELESS' wpa_ie_len=0 rsn_ie_len=0 caps=0x11
skip - non-WPA network not allowed
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results
Failed to get scan results - try scanning again
Setting scan request: 1 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Scan results: -1
Failed to get scan results

sasa83
02-10-2008, 17:36
QUESTO È L'OUT DEL PRIMO COMANDO
mi son ricordato che questa chiavetta con ubuntu funziona benissimo, con la stessa chaive WPA

root@slax:~# wpa_supplicant -d -c/etc/wpa_supplicant.conf -iwlan0
..............


hai commentato la linea: ctrl_interface_group='wheel'?
e usando -d Wext o -d ralink funziona?

Sub_mariner
02-10-2008, 17:55
questo invece è l'out del secondo comando

root@slax:~# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
root@slax:~#

Dici che è wpa_supplicant il problema?
nel campo GATEWAY del file inet1.conf ho scritto "192.168.1.1"
è giusto penso.
L'ultima soluzione non l'ho ancora provata, ma il driver del rt73 dovrebbe (il condizionale è d'obbligo) essere a posto.
Una bella sfida però questo wireless...

Sub_mariner
02-10-2008, 17:57
hai commentato la linea: ctrl_interface_group='wheel'?
e usando -d Wext o -d ralink funziona?


si la riga l'ho commentata, col secondo comando ti ho appena postato l'out, però -d ralink non ho provato...devo?

sasa83
02-10-2008, 20:40
si la riga l'ho commentata, col secondo comando ti ho appena postato l'out, però -d ralink non ho provato...devo?

si devi, perchè a quanto pare rt73 non va d'accordo con wext...

Sub_mariner
02-10-2008, 21:35
ok provo allora. Ma ho notato una cosa, andando sul wiki di wpa_supplicant ho letto la procedura di installazione del pacchetto e ho visto che è diversissima di quel che ho fatto io.
A dire il vero non ho mai configurato niente e credo di aver fatto un'installazione a metà.
C'è di più.
Ho visto che la versione nuova è la 5 addirittura mentre io non credo di aver messo quella.
Quindi mi son scaricato l'ultima release stabile dal link riportato sul wiki e son pronto per installarla, seguendo le tue indicazioni.
Il pacchetto è un tar.gz, non son riuscito a trovare nessun tgz.
Penso proprio che il problema sia qui sai?
Mi dai una mano a installare il tutto ?
adesso mi copio il pacchetto sul portatile nella root e poi son pronto.
Cmq prima provo a ridare il comando aggiungendo ciò che mi hai scritto.

sasa83
02-10-2008, 22:04
ok provo allora. Ma ho notato una cosa, andando sul wiki di wpa_supplicant ho letto la procedura di installazione del pacchetto e ho visto che è diversissima di quel che ho fatto io.
A dire il vero non ho mai configurato niente e credo di aver fatto un'installazione a metà.
C'è di più.
Ho visto che la versione nuova è la 5 addirittura mentre io non credo di aver messo quella.
Quindi mi son scaricato l'ultima release stabile dal link riportato sul wiki e son pronto per installarla, seguendo le tue indicazioni.
Il pacchetto è un tar.gz, non son riuscito a trovare nessun tgz.
Penso proprio che il problema sia qui sai?
Mi dai una mano a installare il tutto ?
adesso mi copio il pacchetto sul portatile nella root e poi son pronto.
Cmq prima provo a ridare il comando aggiungendo ciò che mi hai scritto.

guarda io wpa_supplicant l'ho installato dai tgz e non ho configurato proprio niente e funziona benissimo, quindi non credo sia quello il problema...però io uso ndiswrapper, per i ralink non so veramente cosa dire. ho provato a leggere il wiki della slackware e dicono di ricompilare wpa_supplicant andando a creare un file .config nella directory principale dei sorgenti, quindi si devono aggiungere queste linee:
CONFIG_WIRELESS_EXTENSION=y
CONFIG_DRIVER_NDISWRAPPER=y
CONFIG_CTRL_IFACE=y

dove al posto di ndiswrapper devi mettere il tuo driver, però ho trovato tanti esempi, ma nessuno con i ralink..però ripeto, io non ho dovuto fare niente di tutto ciò. secondo me il problema è nel driver, al posto del wext devi usare qualcos'altro, e in un sito ho letto che uno aveva risolto mettendo -Dralink...

sasa83
02-10-2008, 22:15
guarda, ho proprio una chiavetta d-link g122, su linux non l'ho mai usata, ma adesso vedo se riesco a farla funzionare con il wpa e poi ti faccio sapere...

edit: funziona, ho provato sulla arch e vanno....i driver che usa sono gli rt73usb, e la riga per lanciare wpa supplicant è:
wpa_supplicant -Dwext -iwlan1 -c/etc/wpa_supplicant.conf -B

mi da un piccolo errore, ma a quanto pare non è niente di grave, in particolare dice:
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 -

poi do un bel:
dhcpcd wlan1

e parte alla grande...

Sub_mariner
03-10-2008, 09:58
root@slax:~# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -B

ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - root@slax:~#

dhcpcd wlan0

root@slax:~#


Ho fatto tutto come mi hai detto ma ancora non mi connetto.
Si accende la lucina lampeggiante "act" sulla chiavetta ma l'altra "lnk" rimane spenta.
Ho prvato ad aprire il browser ma dà errore in quanto non è in rete, ovviamente.
Dove hai scaricato il driver rt73usb?

sasa83
03-10-2008, 10:11
dopo che hai dato il comando dhcpcd wlan0 non dice niente? i driver non li ho scaricati da nessuna parte, sono inclusi nel kernel.

EDIT: nel file rc.inet1.conf hai messo queste 2 linee?
WLAN_WPA[4]="wpa_supplicant"
WLAN_WPADRIVER[4]="wext"

prova ad usare lo stesso wpa_supplicant.conf che uso io, con le dovute modifiche:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=0
ssid="ESSID"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="CHIAVE"
}

hai aggiunto WPA="y" al file rc.wireless.conf?
hai aggiunto quelle linee che ti avevo detto al file rc.wireless?
se hai fatto tutto DEVE partire in automatico, per forza...se non parte non so che dire, prova a reinstallare wpa supplicant!

Sub_mariner
03-10-2008, 11:25
nonostante le modifiche non va.
ti metto i due file inet1.conf e wireless.conf in modo che tu possa vederli come sono adesso.
questo è inet.conf:


# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").

# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.

# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.

# =============================================================================

# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""


#Default gateway IP address:
GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0. Uncomment the lines you need and fill
## in your data. (You may not need all of these for your wireless network)
IFNAME[4]="WLAN0"
#IPADDR[4]=""
#NETMASK[4]="255.255.255.0"
USE_DHCP[4]="YES"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]="DLINK_WIRELESS"
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]=""
#WLAN_KEY[4]=""
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
WLAN_WPA[4]="wpa_supplicant" #Run wpa_supplicant for WPA support
WLAN_WPADRIVER[4]="wext"
#WLAN_WPAWAIT[4]=30

## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name instead of
# the default 'eth4'
#IFNAME[4]="eth0:1" # Set up an IP alias.
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_TIMEOUT[4]=15 # The default timeout for the DHCP client to
# wait for server resonse is 30 seconds, but
# you might want a shorter wait.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # An example of how you can override _any_
# parameter defined in rc.wireless.conf, by
# prepending 'WLAN_' to the parameter's name.
# Useful with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).
WLAN_WPA[4]="wpa_supplicant" # Run wpa_supplicant for WPA support
WLAN_WPADRIVER[4]="ralink" # Tell wpa_supplicant to specifically use the
# ndiswrapper driver (if you leave this empty
# the 'wext' driver is used by default)
#WLAN_WPAWAIT[4]=30 # In case it takes long for the WPA association
# to finish, you can increase the wait time
# (defaults to 10 seconds)

questo è invece wireless.conf


# Wireless LAN adapter configuration
#
# Theory of operation :
#
# The script attempts to match a block of settings to the specific wireless
# card inserted, the *first* block matching the card is used.
# The address format is "hwaddr", with * as a wildcard.
# 'hwaddr' is the unique MAC address identifier of the wireless card.
# The MAC address is usually printed on the card, or can be found via ifconfig.
# Some examples here use only half of the MAC address with a wildcard to
# match a whole family of cards...
#
# All the Wireless specific configuration is done through the Wireless
# Extensions, so we will just call 'iwconfig' with the right parameters
# defined below.
# Of course, you need to have iwconfig installled on your system.
# To download iwconfig, or for more info on Wireless Extensions :
# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
#
# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...
#
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
# -- I added sections for Prism/GT and Atheros based cards --
# -- (supported by the prism54 and madwifi drivers) --
# -- 16/sep/2004 * Eric Hameleers --
#

VERBOSE=1

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="DLINK_WIRELESS"
WPA="y"
;;
## ---------- END SECTION TO REMOVE ------------


# Here are a few examples with a few Wireless LANs supported...
# The matching is done on the first 3 bytes of the MAC address

# SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter
00:04:E2:*)
INFO="SMC2835W EZ Connect g 2.4GHz 54 Mbps Wireless Cardbus Adapter"
# ESSID (extended network name) : My Network, any
ESSID="any"
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="6"
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M,54M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
# Example for 40-bit encryption:
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
# Example for 104-bit encryption (aka 128-bit WEP):
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;

# Multiband Atheros based 802.11a/b/g universal NIC cards
00:05:4E:*)
INFO="Multiband Atheros based 802.11a/b/g universal NIC"
# ESSID (extended network name) : My Network, any
ESSID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE="Managed"
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL="7"
# Bit rate : auto, 1M, 11M,54M
RATE="auto"
# Encryption key : 4567-89AB-CD, s:password
# Example for 40-bit encryption:
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
# Example for 104-bit encryption (aka 128-bit WEP):
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;

# Lucent Wavelan IEEE (+ Orinoco, RoamAbout and ELSA)
# Note : wvlan_cs driver only, and version 1.0.4+ for encryption support
00:60:1D:*|00:02:2D:*)
INFO="Wavelan IEEE example (Lucent default settings)"
ESSID="Wavelan Network"
MODE="Managed"
#RATE="auto"
KEY="s:secu1"
# To set all four keys, use :
#KEY="s:secu1 [1] key s:secu2 [2] key s:secu3 [3] key s:secu4 [4] key [1]"
# For the RG 1000 Residential Gateway: The ESSID is the identifier on
# the unit, and the default key is the last 5 digits of the same.
#ESSID="084d70"
#KEY="s:84d70"
;;

# Cisco/Aironet 4800/3x0
# Note : MPL driver only (airo/airo_cs), version 1.3 or later
00:40:96:*|00:02:8A:*)
INFO="Cisco/Aironet example (Cisco default settings)"
ESSID="any"
# To set all four ESSID, use iwconfig v21 and the same trick as above
MODE="Managed"
#RATE="11M auto"
#KEY="d5ad2f05abd048ecf10b1c80c7"
KEY="off"
;;

# Samsung MagicLan (+ some other PrismII cards)
# Note : Samsung binary library driver, version 1.20 or later
00:00:F0:*|00:02:78:*)
INFO="Samsung MagicLan example (Samsung default settings)"
ESSID="any"
MODE="Managed"
CHANNEL="4"
RATE="auto"
#KEY="883e-aa67-21 [1] key 5501-d0da-87 [2] key 91f5-3368-6b [3] key 2d73-31b7-96 [4]"
#IWCONFIG="power on"
;;

# Raytheon Raylink/WebGear Aviator2.4
# Note : doesn't work yet, please use for debugging only :-(
00:00:8F:*|00:00:F1:*)
INFO="Raylink/Aviator2.4 example (Aviator default ad-hoc setting)"
ESSID="ADHOC_ESSID"
MODE="Ad-Hoc"
RATE="auto"
IWPRIV="set_framing 1"
;;


# Old Lucent Wavelan
08:00:0E:*)
INFO="Wavelan example (Lucent default settings)"
NWID="0100"
MODE="Ad-Hoc"
FREQ="2.425G"
KEY="off"
;;

# Netwave (Xircom Netwave/Netwave Airsurfer)
00:80:C7:*)
INFO="Netwave example (Netwave default settings)"
NWID="100"
KEY="00"
;;

# Proxim RangeLan2/Symphony (what is the MAC address ???)
XX:XX:XX:*)
INFO="Proxim RangeLan2/Symphony example"
NWID="0"
MODE="Master"
CHANNEL="15"
IWPRIV="setsubchan 1"
;;

# No Wires Needed Swallow 550 and 1100 setting (what is the MAC address ???)
XX:XX:XX:*)
INFO="NWN Swallow example"
ESSID="session"
KEY="0000-0000-00 open"
;;

# Symbol Spectrum24 setting (what is the MAC address ???)
XX:XX:XX:*)
INFO="Symbol Spectrum24 example"
ESSID="Essid string"
;;

# Generic example (decribe all possible settings)
*)
INFO="Fill with your own settings..."
# ESSID (extended network name) : My Network, any
ESSID=""
# NWID/Domain (cell identifier) : 89AB, 100, off
NWID=""
# Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto
MODE=""
# Frequency or channel : 1, 2, 3 (channel) ; 2.422G, 2.46G (frequency)
FREQ=""
CHANNEL=""
# Sensitivity (cell size + roaming speed) : 1, 2, 3 ; -70 (dBm)
SENS=""
# Bit rate : auto, 1M, 11M
RATE=""
# Encryption key : 4567-89AB-CD, s:password
KEY=""
# RTS threshold : off, 500
RTS=""
# Fragmentation threshold : off, 1000
FRAG=""
# Other iwconfig parameters : power off, ap 01:23:45:67:89:AB
IWCONFIG=""
# iwspy parameters : + 01:23:45:67:89:AB
IWSPY=""
# iwpriv parameters : set_port 2, set_histo 50 60
IWPRIV=""
;;
esac


Sta diventando un vero rebus questa storia.

Sub_mariner
03-10-2008, 11:33
E se provassimo ad installare Rutilt ?
Esiste anche la versione .tgz
Solo che io non son riuscito ad installarla.
quando dò make install mi dà un messaggio strano, qualcosa come "install is up to eccetera.
E' un disastro anche installare programmi a quanto pare.

sasa83
03-10-2008, 11:36
nonostante le modifiche non va.
ti metto i due file inet1.conf e wireless.conf in modo che tu possa vederli come sono adesso.
questo è inet.conf:

...cut...

#Default gateway IP address:
GATEWAY="192.168.1.1"

# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"

## Example config information for wlan0. Uncomment the lines you need and fill
## in your data. (You may not need all of these for your wireless network)
IFNAME[4]="WLAN0"
#IPADDR[4]=""
#NETMASK[4]="255.255.255.0"
USE_DHCP[4]="YES"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
WLAN_ESSID[4]="DLINK_WIRELESS"
#WLAN_MODE[4]=Managed
#WLAN_RATE[4]="54M auto"
#WLAN_CHANNEL[4]=""
#WLAN_KEY[4]=""
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"


quest'ultima linea non è messa a capo e decommentata vero?



questo è invece wireless.conf


# Wireless LAN adapter configuration
#
# Theory of operation :
#
# The script attempts to match a block of settings to the specific wireless
# card inserted, the *first* block matching the card is used.
# The address format is "hwaddr", with * as a wildcard.
# 'hwaddr' is the unique MAC address identifier of the wireless card.
# The MAC address is usually printed on the card, or can be found via ifconfig.
# Some examples here use only half of the MAC address with a wildcard to
# match a whole family of cards...
#
# All the Wireless specific configuration is done through the Wireless
# Extensions, so we will just call 'iwconfig' with the right parameters
# defined below.
# Of course, you need to have iwconfig installled on your system.
# To download iwconfig, or for more info on Wireless Extensions :
# http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
#
# Note : you don't need to fill all parameters, leave them blank, in most
# cases the driver will initialise itself with sane defaults values or
# automatically figure out the value... And no drivers do support all
# possible settings...
#
# -- This is a modified '/etc/pcmcia/wireless.opts' script --
# -- I added sections for Prism/GT and Atheros based cards --
# -- (supported by the prism54 and madwifi drivers) --
# -- 16/sep/2004 * Eric Hameleers --
#

VERBOSE=1

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="DLINK_WIRELESS"
WPA="y"
;;
## ---------- END SECTION TO REMOVE ------------

.....cut...

Sta diventando un vero rebus questa storia.

WPA="y" va SUBITO DOPO la linea VERBOSE...quindi il tuo deve apparire così:
VERBOSE=1
WPA="y"

case "$HWADDR" in

## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Any ESSID"
ESSID="DLINK_WIRELESS"
;;
## ---------- END SECTION TO REMOVE ------------

sasa83
03-10-2008, 11:43
E se provassimo ad installare Rutilt ?
Esiste anche la versione .tgz
Solo che io non son riuscito ad installarla.
quando dò make install mi dà un messaggio strano, qualcosa come "install is up to eccetera.
E' un disastro anche installare programmi a quanto pare.

cos'è rutilt? poi non capisco perchè ti voglia fare del male...io non ho ancora capito come installi i programmi, se ci sono i pacchetti perchè scarichi i sorgenti? un tgz va installato come ti ho detto, o con il comando installpkg oppure pkgtool, basta! cos'è questo make install? i tgz poi si trovano su www.slacky.eu soprattutto, oppure www.linuxpackages.net, www.mytux.org o se trovi qualcosa da www.slax.org; perchè vai a cercarli su google?

Sub_mariner
03-10-2008, 11:57
cos'è rutilt? poi non capisco perchè ti voglia fare del male...io non ho ancora capito come installi i programmi, se ci sono i pacchetti perchè scarichi i sorgenti? un tgz va installato come ti ho detto, o con il comando installpkg oppure pkgtool, basta! cos'è questo make install? i tgz poi si trovano su www.slacky.eu soprattutto, oppure www.linuxpackages.net, www.mytux.org o se trovi qualcosa da www.slax.org; perchè vai a cercarli su google?

E' così in effetti.
da quando mi hai spiegato la storia dei tgz faccio in quel modo.
quindi il pacchetto rutilt.tgz da console digito installdpkg nomepacchetto e stranamente non me lo installa, anzi mi dici che NON è un pacchetto .tgz.
Invece lo è eccome, visto che l'estensione è quella.
Allora lancio l'utility grafica ma anche lì mi dà lo stesso strano messaggio.
C'è da dire che in questo modo ne ho installati altri di pacchetti e vanno bene.
Rutilt è un'utility grafica per gestire l'wifi con driver rt73 ed è stata fatta apposta per evitare incasinamenti vari.
La sua page è questa, ed è lo stesso sito del driver :
http://rt2x00.serialmonkey.com/wiki/index.php/Downloads

Adesso provo a fare le modifiche che mi hai detto.

Sub_mariner
03-10-2008, 12:14
quella linea è commentata, nel copia incolla è passato sotto ma ho guardato nel file originale ed è ok.
Ho passato il WPA="yes" subito sotto verbosem restartato la inet1 e provato col comando "wpa_supplicant -Dwext -wlan0 -c/etc/wpa_supplicant.conf -B"
ma non va, nemmeno dopo che gli aggiungo dhpcd wlan0.

Ecco la procedura che ho seguito per cercare di installare "rutilt"

scarico file .tgz
lo metto nella dir "root"
da lì apro terminale e dò "installpkg nomefile.tgz"
si crea una dir chiamata "rutilt ecc"
vi entro
leggo file readme e dice di partire con "./ configure.sh"
tutto ok
poi dice "make"
tutto ok
poi dice "make install"
e qui non è più ok in quando mi dice "install is out to date"
Non so che significhi.

sasa83
03-10-2008, 12:20
il tgz di questo rutilt non esiste...forse quello che hai scaricato è un semplice archivio tgz ma non un pacchetto; anche i pacchetti slackware sono semplici archivi tgz con la sola differenza che hanno all'interno degli eseguibili e uno script d'installazione. cmq dopo le modifiche riavvia e la connessione dovrebbe essere automaticamente attiva...

Sub_mariner
03-10-2008, 14:17
No.
Non ci siamo.
Non è attivo niente.
Se decidi di mollarmi ti capisco.
In caso dimmelo.

sasa83
03-10-2008, 14:30
No.
Non ci siamo.
Non è attivo niente.
Se decidi di mollarmi ti capisco.
In caso dimmelo.

non so più cosa pensare...
1. fammi vedere il contenuto di wpa_supplicant.conf.
2. lancia iwconfig e fammi vedere l'output.

puoi dopo provare ad usare un ip fisso, nel file rc.inet1.conf commenta la linea con dhcp e poi setta l'indirizzo, una cosa del genere insomma:
IFNAME[4]="WLAN0"
IPADDR[4]="192.168.1.2"
NETMASK[4]="255.255.255.0"
#USE_DHCP[4]="YES"

vediamo se mi viene in mente qualcos'altro.

edit: ho notato che hai scritto wlan0 in maiuscolo, siccome linux è case sensitive non vorrei facesse problemi per quello...prova a scriverlo in minuscolo. anche il yes dopo dhcp, e il nome della rete? sicuro che sia maiuscolo? per la chiave di rete stessa cosa...è probabile che non importi ma proviamo.

Sub_mariner
03-10-2008, 15:00
Aspetta,aspetta..ho una novità..
ho aperto il pannello del router dal browser e ho provato a togliere la protezione, impostando quindi il "none", poi ho riavviato il router stesso.
Poi ho acceso il portatile con su slax, inserito la chiavetta e lanciato il programma di default, kwifimanager, ma ancora niente..
poi sempre da slax ho lanciato un altro programma che c'è di default, quello che si chiama "set IP address", lì ho inserito manualmente i DNS e gli indirizzi 192.168.1.1 del gateway, poi 192.168.1.3 assegnato al portatile e 255.255.255.0
, miracolosamente si è connesso.
Senza nessun programma esterno.
ma così non posso stare senza nessuna cifratura, ovviamnete non va bene.
Allora ho di nuovo aperto il ruoter e ho settato protocollo WEP inserendo una chiave esadecimale, salvato e riavviato.
poi son passato a slax sul portatile e ho settato il kwifimanager, visto che supporta la WEP (ma non la WPA), solita storia poi con il settaggio di "Set IP address" e nonostante pare sia tutto a posto, non apre le pagine del browser, mi dà errore.
Ma che diavolo succede?
un firewall di slax ?
un qualcosa da marte?
Un campo elettromagnetico occulto?:D

sasa83
03-10-2008, 15:09
non mi hai fatto vedere il wpa_supplicant.conf e l'output di iwconfig (ovviamente con la wpa settata). fai le modifiche che ti ho detto sulle maiuscole perchè sicuramente sarà una cavolata del genere...
cmq se vuoi usare la wep o qualsiasi altra cosa lascia perdere questo benedetto kwifimanager per favore. la chiave wep si deve settare nel file rc.wireless.conf, in questo modo:
## NOTE : Comment out the following five lines to activate the samples below ...
## --------- START SECTION TO REMOVE -----------
## Pick up any Access Point, should work on most 802.11 cards
*)
INFO="Wifi Network"
ESSID="DLINK_WIRELESS"
KEY="AFBC-44CE-59CC-etc......"
;;
## ---------- END SECTION TO REMOVE ------------

ovviamente cancellando tutte le modifiche fatte per la wpa in precedenza, e cioè il wpa="y" nello stesso file, e commentando la linea WLAN_WPA[4]="wpa_supplicant"

nel file rc.inet1.conf e successivamente gli devi dire che driver usare, che non sarà più wext ma rt73usb:
WLAN_WPADRIVER[4]="rt73usb"

Sub_mariner
03-10-2008, 20:25
ok.
adesso provo e ti posto gli output che mi hai chiesto.

Sub_mariner
03-10-2008, 21:34
questo è il wpa_supplicant.conf, è quello che mi hai postato tu. con le opportune modifiche.

ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
scan_ssid=0
ssid="DLINK_WIRELESS"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="miachiave"


questo è invece l'output di iwconfig e iwcong wlan2, vedi 2 perchè avevo tolto e rimosso la chiavetta senza riavviare.
Una domanda, ma quando wpa_supplicant va in loop non c'è un comando per farlo fermare?
se riscrivo un altro comando sempre wpa mi dice che c'è già un processo in corso.
Ad ogni modo, anche con queste ultime modifiche niente di nuovo.
La WEP non l'ho più provata.

root@slax:~# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan2 RT73 WLAN ESSID:""
Mode:Managed Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-111 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

root@slax:~# iwconfig wlan2
wlan2 RT73 WLAN ESSID:""
Mode:Managed Frequency=2.412 GHz Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Encryption key:off
Link Quality=0/100 Signal level:-121 dBm Noise level:-111 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

sasa83
03-10-2008, 22:02
cioè fammi capire, se riavvii con la chiavetta attaccata e tutti i file impostati per il wpa, dopo il riavvio, senza far nient'altro lanci iwconfig e ti da quell'output? e se provi con la wep? mi sembra strano...

edit: domanda stupida, forse hai sbagliato nel copia-incolla, ma la parentesi graffa c'è alla fine del wpa_supplicant.conf?

Sub_mariner
05-10-2008, 09:24
Ciao, sì è così. se riavvio è esattamente come hai descritto.
No la parentesi graffa c'è, infatti ci ero stato attento.
Ad ogni modo, ho scaricato la distro NIMBLEX che è la fotocopia di slax solo con più programmi.
tra questi c'è "wireless assistant", non ho dovuto fare altro che lanciarla e mi ha rilevato subito la rete, poi ho inserito la chiave WAP e miracolo è andato tutto ok.
Penso che piallerò il disco e installerò questa.
Mi dispiace solo di aver perso e di averti fatto perdere un sacco di tempo.
Ma alla fine la strada della conoscenza passa anche attraverso i fallimenti.
Alla fine qualcosa di nuovo ho imparato, grazie a te, e di sicuro prima o poi mi tornerà utile.
Se ti viene in mente qualcosa da provare con la slax, questa mia richiesta di assistenza è sempre valida.

sasa83
05-10-2008, 14:13
Ad ogni modo, ho scaricato la distro NIMBLEX che è la fotocopia di slax solo con più programmi.
tra questi c'è "wireless assistant", non ho dovuto fare altro che lanciarla e mi ha rilevato subito la rete, poi ho inserito la chiave WAP e miracolo è andato tutto ok.
Penso che piallerò il disco e installerò questa.


:cincin: :mano: