[wlan] configuration

Applications, problèmes de configuration réseau
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

Donc ça n'est pas ce que tu fais en manuel... :copain:
Vire le "mode managed" (garde channel auto pour les histoires de timeout).
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

j'ai essayer avec le managed en manuel ca marche

Je l'ai enleve dans le wireless ca ne marche toujours pas
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

On pourrait voir le rc.conf en entier ? :|
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Oui maintenant que j'ai l'interface et l'environnement :)

Mais je ne sais pas tout copier d'un coup je fais morceau par morceau:

Code : Tout sélectionner

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.UTF-8"
HARDWARECLOCK="UTC"
TIMEZONE="Europe/Paris"
KEYMAP="fr-latin1"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth0="dhcp"
wlan0="dhcp"
# wlan_wlan0="wlan0 essid Livebox-xxx key xxx"
INTERFACES=(eth0 wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond dbus wicd)
Dernière modification par x4rkz le sam. 23 avr. 2011, 17:31, modifié 1 fois.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

Sinon, ligne des DAEMONS: tu essaies d'utiliser network en même temps que wicd. Soit l'un, soit l'autre (ou encore un autre), ça peut causer des soucis.
Maintenant, si tu fais:

Code : Tout sélectionner

/etc/rc.d/wicd stop
/etc/rc.d/network restart
?
Dernière modification par FoolEcho le sam. 23 avr. 2011, 17:50, modifié 1 fois.
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Pour tester il faut que je redemarre mon pc, j'enleve donc wicd de la liste ?
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

Pas besoin de redémarrer pour le moment. Fais juste les deux lignes que je t'ai indiqué (et si ça marche, alors oui, tu pourras enlever wicd de la liste... pareil si tu décides de passer à wicd, il te faudra enlever network, cf. wiki)
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Ben j'ai redémarré en enlevant wicd le temps que tu réponde et cela ne change rien
Avatar de l’utilisateur
Ypnose
Maître du Kyudo
Messages : 1363
Inscription : sam. 01 mai 2010, 13:17

Re: [wlan] configuration

Message par Ypnose »

Le wiki anglophone est particulièrement bien fourni pour l'installation de Wicd et toute les modifs du rc.conf.
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

Oui, je ne vois pas du tout pourquoi tu n'y arrives pas par network... mais bon, tu peux utiliser wicd ou autre en suivant bien le wiki (tant que tu as de quoi faire la connexion en manuel, tu n'es pas bloqué déjà).
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

J'ai testé diverses choses mais je n'y arrive toujours pas ^^
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

x4rkz a écrit :J'ai testé diverses choses
Très éclairant. :copain:

Tu as essayé en configurant wicd (ou netcfg ou networkmanager) à la place ?
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

J'ai essayé wicd
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

... mais encore ? :roll:
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Je ne peux rien te dire de plus j'ai normalement fais pareil que sur le tuto après j'ai essayer deux trois variantes, mais globalement je suis toujours au même point que avant
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17629
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [wlan] configuration

Message par benjarobin »

Si tu es arrivé à te connecter manuellement alors wicd est obligé de fonctionner.
Donc tu as sûrement mal fait quelques chose.
Tu peux donner la liste des daemons dans le rc.conf ?
Et tu peux expliquer comment tu t'y prend pour te connecter ? Toutes les étapes, merci
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Pour me connecter je fais
sudo iwconfig wlan0 essid x key y
dhcpcd wlan0

Je vous donne les deux fichiers:
/etc/rc.conf

Code : Tout sélectionner

# /etc/rc.conf - Main Configuration for Arch Linux /etc/rc.conf - Main
# Configuration for Arch Linux#
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will
# result
#
-----------------------------------------------------------------------#
in the hardware clock being left untouched (useful for virtualization)
# LOCALIZATION# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps CONSOLEFONT: found
# in /usr/share/kbd/consolefonts (only needed for non-US) CONSOLEMAP:
# found in /usr/share/kbd/consoletrans USECOLOR: use ANSI color
# sequences in startup messages
#
-----------------------------------------------------------------------#
LOCALE="en_US.UTF-8" HARDWARECLOCK="UTC" TIMEZONE="Europe/Paris"
KEYMAP="fr-latin1" CONSOLEFONT= CONSOLEMAP= USECOLOR="yes"
# 
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
# LOCALE: available languages can be listed with the 'locale -a'
command#
# HARDWARECLOCK: set to "UTC" or "localtime", any other value will
result# MOD_AUTOLOAD: Allow autoloading of modules at boot and when
needed
#   in the hardware clock being left untouched (useful for

virtualization)# MOD_BLACKLIST: Prevent udev from loading these modules
# TIMEZONE: timezones are found in /usr/share/zoneinfo# MODULES: Modules
# KEYMAP: keymaps are found in /usr/share/kbd/keymapsto load at boot-up.
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed
for non-US)Prefix with a ! to blacklist.
# CONSOLEMAP: found in /usr/share/kbd/consoletrans# NOTE: Use of
#'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#USECOLOR: use ANSI color sequences in startup messages#
#MOD_AUTOLOAD="yes" MOD_BLACKLIST=() #deprecated
LOCALE="en_US.UTF-8"MODULES=() HARDWARECLOCK="UTC"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -------------------------------------------------------------
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"

# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="myhost"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"

eth0="dhcp"
wlan0="dhcp"
wlan_wlan0="wlan0 essid xxx key yyy"
INTERFACES=(eth0 wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng netfs crond dbus wicd)

/etc/conf.d/wireless

Code : Tout sélectionner

  GNU nano 2.2.6          File: /etc/conf.d/wireless                            

#
# Settings for wireless cards
#
# For each wireless interface declared in INTERFACES (in rc.conf), declare
# a wlan_${IF} variable that contains the arguments to be passed to
# iwconfig(8).  Then list the original interface name in the
# WLAN_INTERFACES array.
#

# wlan_wlan0="wlan0 channel auto essid xxx key yyy"
# WLAN_INTERFACES=(wlan0)
Avatar de l’utilisateur
FoolEcho
Maître du Kyudo
Messages : 10711
Inscription : dim. 15 août 2010, 11:48
Localisation : Basse-Normandie

Re: [wlan] configuration

Message par FoolEcho »

Pour wicd, /etc/conf.d/wireless ne te servira pas.

Côté rc.conf (il est un peu fichu bizarrement et tu as HOSTNAME en double... :roll: ), tu commentes la ligne wlan_wlan0 et tu modifes INTERFACES:

Code : Tout sélectionner

#wlan_wlan0="wlan0 essid xxx key yyy"
INTERFACES=(!eth0 !wlan0)
("!eth0" si tu veux que wicd gère aussi le filiaire, sinon tu laisses "eth0")

Tu redémarres et tu n'as plus qu'à configurer ta connexion via wicd-client... ou wicd-gtk si tu préfères le mode graphique... et au démarrage suivant, tout devrait rouler.
«The following statement is not true. The previous statement is true.» :nage:
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Je vais essayer ca, mais pour le hostname c'est parce que je n'arrive pas (peut être ne peut on pas) a copier tout le fichier de ma console d'un coup, j'ai fais partie par partie.

PS: editer en résolu (valable pour un précédent topic) n'est pas pratique lorsque le nom est trop long
x4rkz
Daikyu
Messages : 89
Inscription : ven. 22 avr. 2011, 16:14

Re: [wlan] configuration

Message par x4rkz »

Lorsque je me connecte par wicd network manager j'obitient unable to get the ip address
Répondre