logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 23-03-2020 18:16:05

BauHax
Membre
Inscription : 23-03-2020

Problème de connections internet wifi

Bonjour, je suis actuellement newbie sur Linux et j'ai chercher la solution en vain, c'est pourquoi je viens demander de l'aide ici.
J'ai passé mon pc portable Asus sous debian 10 LXQt avec le fameux connman pour gérer le wifi. Je réussi à me connecter aux wifi mais au moment de lancer un navigateur celui ne parvient pas à charger la moindre page. Or je n'ai pas ce problème avec les wifi auquel je me connectais auparavant lorsque l'ordi étais encore sous w10. Voilà voilà...
Network controller [ 0280] Qualcomm Atheros QCA9565 / AR9565 wireless network adapter [168c:0036] (rdv 01)
Merci d'avance pour votre aide

Hors ligne

#2 25-03-2020 10:03:57

Anonyme-11
Invité

Re : Problème de connections internet wifi

Salut,
peux tu donner le retour de :

rfkill


et de :

ifconfig


Ifconfig va te donner le nom de tes interfaces.
Le nom d'une interface wifi ressemble à : wlpXsX .
Aprés, tu n'as qu'à utiliser la commande :

ifup "ton_interface_wifi"


disposes tu du paquet : firmware-atheros  ?
Sinon, tu peux essayer de l'installer.

apt-get update && apt-get install firmware-atheros


Il faudra bien sur te brancher en ethernet ou utiliser ton téléphone comme modem USB.
Si la commande précédente ne trouves pas le paquet firmware-atheros, tu devras modifier ton fichier : /etc/apt/sources.list afin d'ajouter les dépots "contrib" et "non-free"
Il y a beaucoup de tuto sur le net, ce n'est vraiment pas compliqué, tu veras.

Dernière modification par Anonyme-11 (25-03-2020 10:13:10)

#3 25-03-2020 11:53:21

raleur
Membre
Inscription : 03-10-2014

Re : Problème de connections internet wifi

1) rfkill seul ne va pas afficher grand-chose d'intéressant. Plutôt

rfkill list


Mais j'ose espérer que si l'interface wifi est effectivement associée à un point d'accès, la radio n'est pas bloquée.

2) ifconfig n'est plus forcément installé par défaut. Il vaut mieux utiliser son remplaçant ip :

ip addr
ip route



3) ifup ne fonctionne qu'avec une interface configurée dans /etc/network/interfaces. Rien à voir avec connman a priori.


Il vaut mieux montrer que raconter.

Hors ligne

#4 25-03-2020 14:27:13

Anonyme-11
Invité

Re : Problème de connections internet wifi

perso j'utilise toujours rfkill seul qui me renvoi les infos que je souhaite, mais ca n'a pas d'importance.

rfkill


ID TYPE      DEVICE     SOFT     HARD
 0 wlan      phy0   débloqué débloqué
 1 bluetooth hci0     bloqué débloqué



Mais j'ose espérer que si l'interface wifi est effectivement associée à un point d'accès, la radio n'est pas bloquée.


En effet, j'avais mal lu...

Et pour le firmware-atheros, qu'est ce que tu en dis?

#5 25-03-2020 15:13:07

raleur
Membre
Inscription : 03-10-2014

Re : Problème de connections internet wifi

Renart_frambivore a écrit :

perso j'utilise toujours rfkill seul


Autant pour moi, ça a changé depuis buster et j'utilise encore une ancienne version.

Renart_frambivore a écrit :

Et pour le firmware-atheros, qu'est ce que tu en dis?


Pareil, je ne vois pas comment l'association avec le point d'accès pourrait se faire sans les firmwares nécessaires.


Il vaut mieux montrer que raconter.

Hors ligne

#6 26-03-2020 17:18:51

BauHax
Membre
Inscription : 23-03-2020

Re : Problème de connections internet wifi

Bonjour merci pour vos réponses, bon petite précision lors du démarage du PC il m'écrit nottament "failed to raised Network interface". Je vous met la réponse de ip addr et de ip route mais ifconfig n'est pas installé et rfkill non plus. Mes tentatives restent vaines pour mettre le débian en connection ethernet et pour le partage de connection par usb, j'ai donc téléchargé sur un autre ordi net-tools.60-6+b1_amd.deb ; rfkill_0.5-1_amd64.deb et firmware-atheros_20190717-2_ll.deb. J'installe les trois avec Gdebi il me répond que l'installation a été effectuée mais non lorsque j'utilises les commandes rfkill ou ifconfig pas de retour donc je sais pas .. j'ai l'impression d'etre un cassos à galérer comme ça pour installer un pilote de carte wifi mais pour le coup je galere vraiment.
merci pour votre aide, voici les retours commandes

linux@LINUX:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: enp3s0f2: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 38:2c:4a:82:a1:78 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc noqueue master tether state UP group default qlen 1000
    link/ether 40:e2:30:49:72:39 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::42e2:30ff:fe49:7239/64 scope link
       valid_lft forever preferred_lft forever
4: tether: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 40:e2:30:49:72:39 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/24 brd 192.168.0.255 scope global tether
       valid_lft forever preferred_lft forever
    inet6 fe80::8c61:66ff:fe5a:b646/64 scope link
       valid_lft forever preferred_lft forever
linux@LINUX:~$ ip route
192.168.0.0/24 dev tether proto kernel scope link src 192.168.0.1


bloc à supprimer si la commande n’affiche rien

Hors ligne

#7 21-05-2020 12:33:47

BauHax
Membre
Inscription : 23-03-2020

Re : Problème de connections internet wifi

bonjour je reviens vers vous parceque je trouve pas la solution, comme je suis débutant je comprend pas tout et je fait plus de la merde qu'autre chose, typiquement j'ai tenter de suivre ce tuto https://neurotechnics.com/blog/linux-fa … nterfaces/
au lieu de creer la regle 10-rename-network.rules.swp avec nano au lieu de vi et du coup je reussi pas a le modifier j'ai du mal a comprend si il s'est bien crer dans le bon repertoire et lorsque que je fais vi /etc/udev/rules.d/10-rename-network.rules et bah il me dit

E325: ATTENTION
Found a swap file by the name "/var/tmp/10-rename-network.rules.swp"
          owned by: root   dated: Thu May 21 12:46:16 2020
         file name: /ect/udev/rules.d/10-rename-network.rules
          modified: YES
         user name: root   host name: LINUX
        process ID: 3666
While opening file "/ect/udev/rules.d/10-rename-network.rules"
      CANNOT BE FOUND
(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /ect/udev/rules.d/10-rename-network.rules"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/var/tmp/10-rename-network.rules.swp"
    to avoid this message.

"/ect/udev/rules.d/10-rename-network.rules" [New DIRECTORY]
Press ENTER or type command to continue


quand j'essaye de de faire: /var/tmp/10-rename-network.rules.swp après avoir: vim -r /ect/udev/rules.d/10-rename-network.rules et bah il me dit que j'ai pas la permission
bon bref je pédale dans la semoule et je suis meme pas sur que ça résoudra mon problème, j'espère juste pas créer plus de probleme qu'il n'y en avait

Hors ligne

#8 21-05-2020 13:29:46

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Problème de connections internet wifi

Hello
On peux voir le contenu du fichier config de connman

cat /etc/connman/main.conf


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#9 21-05-2020 14:31:52

BauHax
Membre
Inscription : 23-03-2020

Re : Problème de connections internet wifi

linux@LINUX:~$ cat /etc/connman/main.conf
[General]

# Set input request timeout. Default is 120 seconds
# The request for inputs like passphrase will timeout
# after certain amount of time. Use this setting to
# increase the value in case of different user
# interface designs.
# InputRequestTimeout = 120

# Set browser launch timeout. Default is 300 seconds
# The request for launching a browser for portal pages
# will timeout after certain amount of time. Use this
# setting to increase the value in case of different
# user interface designs.
# BrowserLaunchTimeout = 300

# If wifi is disconnected, the background scanning will follow a simple
# backoff mechanism from 3s up to 5 minutes. Then, it will stay in 5
# minutes unless user specifically asks for scanning through a D-Bus
# call. If so, the mechanism will start again from 3s. This feature
# activates also the background scanning while being connected, which
# is required for roaming on wifi.
# When BackgroundScanning is false, ConnMan will not perform any scan
# regardless of wifi is connected or not, unless it is requested by
# the user through a D-Bus call.
# BackgroundScanning = true

# List of Fallback timeservers separated by ",".
# These timeservers are used for NTP sync when there are
# no timeserver set by the user or by the service.
# These can contain mixed combination of fully qualified
# domain names, IPv4 and IPv6 addresses.
# FallbackTimeservers =

# List of fallback nameservers separated by "," used if no
# nameservers are otherwise provided by the service. The
# nameserver entries must be in numeric format, host
# names are ignored.
# FallbackNameservers =

# List of technologies that are marked autoconnectable
# by default, separated by commas ",". The default value
# for this entry when empty is ethernet,wifi,cellular.
# Services that are automatically connected must have been
# set up and saved to storage beforehand.
# DefaultAutoConnectTechnologies =

# List of preferred technologies from the most preferred
# one to the least preferred one separated by commas ",".
# Services of the listed technology type will be tried one
# by one in the order given, until one of them gets connected
# or they are all tried. A service of a preferred technology
# type in state 'ready' will get the default route when
# compared to another preferred type further down the list
# with state 'ready' or with a non-preferred type; a service
# of a preferred technology type in state 'online' will get
# the default route when compared to either a non-preferred
# type or a preferred type further down in the list.
# PreferredTechnologies =

# List of blacklisted network interfaces separated by ",".
# Found interfaces will be compared to the list and will
# not be handled by connman, if their first characters
# match any of the list entries. Default value is
# vmnet,vboxnet,virbr,ifb,ve-,vb-.
# NetworkInterfaceBlacklist = vmnet,vboxnet,virbr,ifb,ve-,vb-

# Allow connman to change the system hostname. This can
# happen for example if we receive DHCP hostname option.
# Default value is true.
# AllowHostnameUpdates = true

# Allow connman to change the system domainname. This can
# happen for example if we receive DHCP domainname option.
# Default value is true.
# AllowDomainnameUpdates = true

# Keep only a single connected technology at any time. When a new
# service is connected by the user or a better one is found according
# to PreferredTechnologies, the new service is kept connected and all
# the other previously connected services are disconnected. With this
# setting it does not matter whether the previously connected services
# are in 'online' or 'ready' states, the newly connected service is
# the only one that will be kept connected. A service connected by the
# user will be used until going out of network coverage. With this
# setting enabled applications will notice more network breaks than
# normal. Default value is false.
# SingleConnectedTechnology = false

# List of technologies for which tethering is allowed separated by ",".
# The default value is wifi,bluetooth,gadget. Only those technologies
# listed here are used for tethering. If ethernet tethering is desired,
# then ethernet should be added to the list. The technologies listed here
# have to support tethering, currently tethering is implemented for wifi,
# bluetooth, gadget and ethernet.
# NOTE that if ethernet tethering is enabled, then a DHCP server is
# started on all ethernet interfaces. Tethered ethernet should
# never be connected to corporate or home network as it will disrupt
# normal operation of these networks. Due to this ethernet is not
# tethered by default. Do not activate ethernet tethering unless you
# really know what you are doing.
# TetheringTechnologies = wifi,bluetooth,gadget

# Restore earlier tethering status when returning from offline mode,
# re-enabling a technology, and after restarts and reboots.
# Default value is false.
# PersistentTetheringMode = false

# Automatically enable Anycast 6to4 if possible. This is not recommended, as
# the use of 6to4 will generally lead to a severe degradation of connection
# quality. See RFC6343. Default value is false (as recommended by RFC6343
# section 4.1).
# Enable6to4 = false

# Enable use of http get as on online status check.
# When a service is in a READY state, and is selected as default,
# ConnMan will issue an HTTP GET request to verify that end-to-end
# connectivity is successful. Only then the service will be
# transitioned to ONLINE state.
# If this setting is false, the default service will remain in READY state.
# Default value is true.
# EnableOnlineCheck = false

# List of technologies with AutoConnect = true which are always connected
# regardless of PreferredTechnologies setting. Default value is empty and
# will connect a technology only if it is at a higher preference than any
# other which is already connected.
# This setting has no effect if SingleConnectedTechnologies is enabled.
# AlwaysConnectedTechnologies =

# Enable auto connection of services in roaming.
# If this setting is false, roaming services are not auto-connected by Connman.
# Default value is false.
# AutoConnectRoamingServices = false




Merci de ton aide smile

Hors ligne

#10 21-05-2020 15:34:03

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Problème de connections internet wifi

ah ba je pensais trouver des infos dans ce fichier , mais en relisant le man il est dit qu'il est optionnel
Vu que toute les lignes sont commenté c'est comme si il était vide

ip route
192.168.0.0/24 dev tether proto kernel scope link src 192.168.0.1


Est ce que theter aurait un rapport avec l'option thetering, qui par défaut d'aprés ce que je comprend est déactivé pour évité les problémes?

# List of technologies for which tethering is allowed separated by ",".
# The default value is wifi,bluetooth,gadget. Only those technologies
# listed here are used for tethering. If ethernet tethering is desired,
# then ethernet should be added to the list. The technologies listed here
# have to support tethering, currently tethering is implemented for wifi,
# bluetooth, gadget and ethernet.
# NOTE that if ethernet tethering is enabled, then a DHCP server is
# started on all ethernet interfaces. Tethered ethernet should
# never be connected to corporate or home network as it will disrupt
# normal operation of these networks. Due to this ethernet is not
# tethered by default. Do not activate ethernet tethering unless you
# really know what you are doing.

# TetheringTechnologies = wifi,bluetooth,gadget


Je dis sûrement des bêtises la vérité est ailleur scratchhead.gif


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#11 21-05-2020 16:09:32

BauHax
Membre
Inscription : 23-03-2020

Re : Problème de connections internet wifi

Un moment j'avais lu ce tuto (euh la réponse de GAD3R qui a 18 approve) https://unix.stackexchange.com/question … interfaces


root@LINUX:/home/linux# apt-get install firmware-atheros
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'
état... Fait
firmware-atheros est déjà la version la plus récente (20190717-2).
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  python-lzma python-parsley python-psutil python-twisted python-txsocksx wmctrl
Veuillez utiliser « apt autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 365 non mis à jour.
 




root@LINUX:/home/linux# systemctl status networking.service
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-05-21 09:32:54 CEST; 7h ago
     Docs: man:interfaces(5)
  Process: 397 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
 Main PID: 397 (code=exited, status=1/FAILURE)

mai 21 09:32:54 LINUX systemd[1]: Starting Raise network interfaces...
mai 21 09:32:54 LINUX ifup[397]: ifup: /etc/network/interfaces:4: misplaced option
mai 21 09:32:54 LINUX ifup[397]: ifup: couldn't read interfaces file "/etc/network/interfaces"
mai 21 09:32:54 LINUX systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
mai 21 09:32:54 LINUX systemd[1]: networking.service: Failed with result '
exit-code'.
mai 21 09:32:54 LINUX systemd[1]: Failed to start Raise network interfaces.




root@LINUX:/home/linux# cat /etc/network/interfaces.d/setup
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
 




root@LINUX:/home/linux# ifconfig
bash: ifconfig : commande introuvable
 




root@LINUX:/home/linux# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp3s0f2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 38:2c:4a:82:a1:78 brd ff:ff:ff:ff:ff:ff
3: wlp2s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 40:e2:30:49:72:39 brd ff:ff:ff:ff:ff:ff
 




root@LINUX:/home/linux# lsub
bash: lsub : commande introuvable
 



et quand je fais

nano /etc/network/interfaces


voila comment le fichier est organisé:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

  /etc/network/interfaces.d

# The loopback network interface
auto lo
iface lo inet loopback



ou sinon je reinstalle mon débian avec un environnement plus utilisé qui n'utilise pas connman et whoap la problème réglé ?

Dernière modification par BauHax (21-05-2020 16:11:42)

Hors ligne

#12 22-05-2020 13:07:27

BauHax
Membre
Inscription : 23-03-2020

Re : Problème de connections internet wifi

okok alors j'ai fais un truc qui aurais marché ?! faut que je test sur d'autres wifi que le mien maintenant...

Au démarrage il réussi le démarrage du network interface
alors j'ai tout simplement supprimer:" /etc/network/interfaces.d " du fichier /etc/network/interfaces (avec la commande nano). Et apparament ça marche ..
Je me suis inspiré de https://debian-facile.org/doc:reseau:interfaces
dans lequel le fichier est organisé comme ça :

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
# The loopback network interface
auto lo
iface lo inet loopback



bon bah de toute façon je ferais remonter ma publi si j'ai de nouveaux problèmes à ce sujet, je remercie tout ceux qui ont tentés de me donner un coup de main, excellentes journée à tous smile

Dernière modification par BauHax (22-05-2020 13:08:13)

Hors ligne

#13 22-05-2020 13:16:29

BauHax
Membre
Inscription : 23-03-2020

Re : Problème de connections internet wifi

n’empêche je trouve ça étonnant que sur ce site https://linuxhint.com/debian_etc_network_interfaces/
le fichier soit organisé comme ça: 

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
 
/etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback



Sur le miens de base il n'y avait pas le /* à la fin de la ligne et sur le fichier de debian-facile il y a pas cette ligne /etc/network/interfaces
bon j'imagine que c'est des différences de version.. Bref merci.gif

Hors ligne

Pied de page des forums