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 Re : Réseau » [resolu] isc-dhcp-server » 11-04-2023 17:03:50

Lolo_D
merci pour le conseil...cela explique peut être certains soucis que je ne comprends sur d'autres erreurs quand je les lis, je tâcherai de les relire plus attentivement !
en tout cas, ça fonctionne !
Il me reste à :
- mettre une IP fixe sur une machine
- préciser un 2nd réseau qui bénéficiera de ce DHCP
- installer un serveur nom de domaine si j'ai bien compris bind9 est la référence pour les débutants dans mon genre ;
- sécuriser un peu tout ça parce qu'à mon avis "tout est ouvert" sur mon serveur.
j'ai encore un peu de boulot pour comprendre comment tout ça fonctionne mais au moins j'ai un peu avancé grâce à vous  smile

#2 Re : Réseau » [resolu] isc-dhcp-server » 11-04-2023 16:38:01

Lolo_D
Shame on me...
J'ai lu et je me suis focalisé sur : default-lease-time en comprenant que c'était sur cette ligne là qu'il manquait quelque chose...
bref, merci et vraiment désolé d'avoir embêté le monde avec mon faux problème et un sincère merci pour votre aide.

#3 Réseau » [resolu] isc-dhcp-server » 11-04-2023 12:48:52

Lolo_D
Réponses : 5
bonjour,

Je suis quelque peu dubitatif quant à une situation qui devait être relativement simple...
Pour mieux comprendre les réseaux, je me suis senti l'âme d'installer isc-dhcp-server sur une machine virtuelle tournant sous VMWare.
La machine virtuelle tourne bien et fait les actions que je lui demande :
-ping vers un pare-feu pfsense ;
-ping vers une autre machine du réseau ;
-ping vers google.fr.
je parviens à me connecter en "ssh" sur une machine virtuelle sur le même réseau mais avec interface graphique...c'est mon coté feignant.
J'en conclue donc que ma résolution de nom et ma carte réseau sont fonctionnels.

J'ai essayé de configurer en suivant les informations présentes sur https://neptunet.fr/dhcp-linux/
En synthèse, j'ai notamment modifié :
- /etc/default/isc-dhcp-server
- /etc/dhcp/dhcpd.conf
La configuration est basique mais le service isc-dhcp-server refuse de démarrer. Il me souligne des erreurs étranges.
Je vous donne l'extrait du journal des erreurs :

journalctl -xe


avril 11 13:10:24 srv-deb isc-dhcp-server[1687]: Launching IPv4 server only.
avril 11 13:10:24 srv-deb dhcpd[1696]: /etc/dhcp/dhcpd.conf line 10: semicolon expected.
avril 11 13:10:24 srv-deb dhcpd[1696]: default-lease-time
avril 11 13:10:24 srv-deb dhcpd[1696]:  ^
avril 11 13:10:24 srv-deb dhcpd[1696]: Configuration file errors encountered -- exiting
avril 11 13:10:24 srv-deb dhcpd[1696]:
avril 11 13:10:24 srv-deb dhcpd[1696]: If you think you have received this message due to a bug rather
avril 11 13:10:24 srv-deb dhcpd[1696]: than a configuration issue please read the section on submitting
avril 11 13:10:24 srv-deb dhcpd[1696]: bugs on either our web page at www.isc.org or in the README file
avril 11 13:10:24 srv-deb dhcpd[1696]: before submitting a bug.  These pages explain the proper
avril 11 13:10:24 srv-deb dhcpd[1696]: process and the information we find helpful for debugging.
avril 11 13:10:24 srv-deb dhcpd[1696]:
avril 11 13:10:24 srv-deb dhcpd[1696]: exiting.
avril 11 13:10:24 srv-deb isc-dhcp-server[1687]: dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf.
avril 11 13:10:24 srv-deb isc-dhcp-server[1687]: The error was:
avril 11 13:10:24 srv-deb dhcpd[1700]: Internet Systems Consortium DHCP Server 4.4.1
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: Internet Systems Consortium DHCP Server 4.4.1
avril 11 13:10:24 srv-deb dhcpd[1700]: Copyright 2004-2018 Internet Systems Consortium.
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: Copyright 2004-2018 Internet Systems Consortium.
avril 11 13:10:24 srv-deb dhcpd[1700]: All rights reserved.
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: All rights reserved.
avril 11 13:10:24 srv-deb dhcpd[1700]: For info, please visit https://www.isc.org/software/dhcp/
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: For info, please visit https://www.isc.org/software/dhcp/
avril 11 13:10:24 srv-deb dhcpd[1700]: /etc/dhcp/dhcpd.conf line 10: semicolon expected.
avril 11 13:10:24 srv-deb dhcpd[1700]: default-lease-time
avril 11 13:10:24 srv-deb dhcpd[1700]:  ^
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: /etc/dhcp/dhcpd.conf line 10: semicolon expected.
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: default-lease-time
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]:  ^
avril 11 13:10:24 srv-deb dhcpd[1700]: Configuration file errors encountered -- exiting
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: Configuration file errors encountered -- exiting
avril 11 13:10:24 srv-deb dhcpd[1700]:
avril 11 13:10:24 srv-deb dhcpd[1700]: If you think you have received this message due to a bug rather
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: If you think you have received this message due to a bug rather
avril 11 13:10:24 srv-deb dhcpd[1700]: than a configuration issue please read the section on submitting
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: than a configuration issue please read the section on submitting
avril 11 13:10:24 srv-deb dhcpd[1700]: bugs on either our web page at www.isc.org or in the README file
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: bugs on either our web page at www.isc.org or in the README file
avril 11 13:10:24 srv-deb dhcpd[1700]: before submitting a bug.  These pages explain the proper
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: before submitting a bug.  These pages explain the proper
avril 11 13:10:24 srv-deb dhcpd[1700]: process and the information we find helpful for debugging.
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: process and the information we find helpful for debugging.
avril 11 13:10:24 srv-deb dhcpd[1700]:
avril 11 13:10:24 srv-deb dhcpd[1700]: exiting.
avril 11 13:10:24 srv-deb isc-dhcp-server[1700]: exiting.
avril 11 13:10:24 srv-deb systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status=1/FAILURE
░░ An ExecStart= process belonging to unit isc-dhcp-server.service has exited.
avril 11 13:10:24 srv-deb systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
░░ The unit isc-dhcp-server.service has entered the 'failed' state with result 'exit-code'.
░░ Subject: L'unité (unit) isc-dhcp-server.service a échoué
░░ L'unité (unit) isc-dhcp-server.service a échoué, avec le résultat failed.



Ma configuration me parait normal à l'endroit indiqué comme "cause d'erreur". C'est à dire la ligne default-lease-time. J'ai essayé de changer la valeur pour voir si ça avait un impact mais rien n'y fait.

 sudo vim /etc/dhcp/dhcpd


# Sample configuration file for ISC dhcpd

# option definitions common to all supported networks...
#option domain-name "example.org";
option domain-name-servers 8.8.8.8
 
default-lease-time 3600;
max-lease-time 7200;
 
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
 
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
 
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
 
# No service will be given on this subnet, but declaring it helps the  
# DHCP server to understand the network topology.
 
#subnet 10.152.187.0 netmask 255.255.255.0 {
#}
 
# This is a very basic subnet declaration.
 
#LAN_test
subnet 192.168.3.0 netmask 255.255.255.0 {
option routers 192.168.3.254;
range 192.168.3.10 192.168.3.150;
}



Pour l'écoute de la carte réseau :

cat /etc/default/isc-dhcp-server


# Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="ens33"
INTERFACESv6=""




Pour la configuration de l'interface ens33, tout a l'air bon.

ip a


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: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:31:42:be brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 192.168.3.200/24 brd 192.168.3.255 scope global ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fe31:42be/64 scope link
       valid_lft forever preferred_lft forever
 



 sudo nano /etc/network/interface/


# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens33
iface ens33 inet static
address 192.168.3.200
netmask 255.255.255.0
gateway 192.168.3.254



Est-ce quelqu'un a une idée? est-ce à cause de la virtualisation ?

Merci par avance,

#4 Gestion des paquets Debian » compréhension des paquets... » 03-02-2023 12:05:56

Lolo_D
Réponses : 0
bonjour

je me permets de poser une question totalement bête...ce n'est pas un problème matériel, de code ou autre mais bien de compréhension et de clarification...
je vais prendre un exemple bête pour illustrer ce que je ne comprends pas :
GLPI 10.0.6, je l'ai installé sur apache2/mariadb/php7.4 et j'ai essayé de faire mon malin en me disant bah pourquoi pas installer une version plus récente de php.
j'ai donc naturellement téléchargé php8.1 et tout un tas de paquets, il s'est avéré qu'il m'en manquait certains pour faire fonctionner correctement glpi.
J'étais dans un cas de figure où je n'étais pas en mesure d'identifier si les paquets existaient, comment les trouver.
Cette situation est nécessairement ridicule et doit pouvoir trouver des réponses plus simples que je ne parviens pas à saisir.

=> j'ai essayé apt search json mais le résultat n'était pas trop probant...
Il me manquait également d'autres paquets...
=> j'ai essayé de fouiller sur les sites debian mais sans succès...

bref si quelqu'un a des conseils ou une méthode, je suis preneur.
Merci par avance,


Cordialement,

#5 Re : Réseau » débutant sur samba » 28-10-2022 09:33:45

Lolo_D
Woooo merci pour ce retour hyper complet ! j'ai beaucoup de boulot à reprendre ! merci en tout cas, je vais essayer tout ça et prendre le temps de lire calmement (#survolté)
J'ai des choses à tester et des impératifs familiaux... je reviens vers vous, sans faute mercredi ou jeudi dans le courant de la semaine prochaine avec un résultat disant "problème résolu" !

normalement pour windows, j'avais check le pare-feu justement ^^' je commence à avoir des réflexes à force de me heurter aux murs ^^

#6 Re : Réseau » débutant sur samba » 20-10-2022 08:01:38

Lolo_D
...bon, ce sujet n'attire pas les foules hmm
j'ai essayé de faire évoluer ma configuration sans succès...

#7 Re : Réseau » débutant sur samba » 14-10-2022 07:16:40

Lolo_D
bonjour,

petite question, est-ce que cela pourrait venir du fait que l'utilisateur noté dans linux ne porte pas le même nom que celui sur le serveur linux ? idem pour linux client ?
je suis preneur d'une info complémentaire...d'une piste à chercher ! je vous remercie par avance,

cordialement,

#8 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 10-10-2022 09:06:27

Lolo_D
Problème résolu, c'est un problème "physique"...
J'ai installé sur une autre machine. Tout fonctionne à merveille.
Je pense que le PC n'a pas aimé le poids du gamin qui lui tombe dessus...c'est un argument un peu plus lourd qu'un disque dur.
Je mets en résolu.

bien à vous,

#9 Réseau » débutant sur samba » 07-10-2022 12:54:48

Lolo_D
Réponses : 5
bonjour à vous,

Après avoir un peu travaillé mes lignes de commande et mon petit pc linux, j'essaye de développer un peu le sujet !
j'essaye d'installer un petit labo virtuel pour travailler sur des tâches de base linux...
mon labo comprend :
- un pare-feu pfsense
- un pc debian 11
- un pc windows 10 pro
- un serveur debian 11.

J'essaye de faciliter les transferts entre les clients et le serveur en installant un samba mais j'ai un petit souci technique.
J'ai installé samba sur le serveur debian 11 depuis apt.

cat /etc/samba/smb.conf




# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
   logging = file

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = classic
# primary domain controller', 'server role = classic backup domain controller'
# or 'domain logons' is set
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap config * :              backend = tdb
;   idmap config * :              range   = 3000-7999
;   idmap config YOURDOMAINHERE : backend = tdb
;   idmap config YOURDOMAINHERE : range   = 100000-999999
;   template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 means that usershare is disabled.
#   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

#[homes]
#   comment = Home Directories
#   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
  read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[partage]
        comment = Partage de données
        path = /srv/partagesmb
        guest ok = no
        read only = no
        browseable = yes
        valid users = laurenttech, charlotte, @tech
        create mask = 0660
        directory mask = 0770
        force groupe = partage

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

laurenttech@srvdeb11:~$ cat /etc/samba/smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
   logging = file

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
   server role = standalone server

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
   map to guest = bad user

########## Domains ###########

#
# The following settings only takes effect if 'server role = classic
# primary domain controller', 'server role = classic backup domain controller'
# or 'domain logons' is set
#

# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap config * :              backend = tdb
;   idmap config * :              range   = 3000-7999
;   idmap config YOURDOMAINHERE : backend = tdb
;   idmap config YOURDOMAINHERE : range   = 100000-999999
;   template shell = /bin/bash

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 means that usershare is disabled.
#   usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
   usershare allow guests = yes

#======================= Share Definitions =======================

#[homes]
#   comment = Home Directories
#   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
  read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# The following parameter makes sure that only "username" can connect
# to \\server\username
# This might need tweaking when using external authentication schemes
   valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[partage]
        comment = Partage de données
        path = /srv/partagesmb
        guest ok = no
        read only = no
        browseable = yes
        valid users = laurenttech, charlotte, @tech
        create mask = 0660
        directory mask = 0770
        force groupe = grppartage

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin



pour les droits, ils sont ci-dessous :

ls -l /srv/


total 4
drwxrwxr-x 2 root grppartagesmb 4096  7 oct.  10:13 partagesmb



Les utilisateurs concernés par le partage sont dans le groupe grppartagesmb :

cat /etc/group |grep grppartagesmb


grppartagesmb:x:1003:laurenttech,charlotte



Le mot de passe : laurenttech a été fait avec la commande suivante :

smbpasswd -a laurenttech



Je ne parviens pas à me connecter depuis mes pc...

Le PC windows ne reconnait pas. J'ai fait Win+R puis j'ai saisi \\192.168.31.200\srv\partagesmb\ et je n'ai rien pu faire...l'emplacement réseau n'existe pas.

Le partage et côté linux :
Depuis mon bureau Gnome, je m'étais rendu dans : Fichiers>Connexion à un serveur : smb://192.168.31.200/srv/partagesmb/
Le résultat est ci-dessous...

impossible d'accéder à l'emplacement
impossible de monter le partage Windows :aucun fichier ou dossier de ce type



Normalement, je n'ai aucun domaine d'actif. sur le serveur mon PC. Néamoins, lorsque je tape

cat /etc/resolve.conf


search mondomaine.lan
nameserver 8.8.8.8



Si quelqu'un a quelques éléments de compréhension, je suis preneur...j'ai dû faire des sotistes quelque part mais je ne vois pas où.

bien à vous,

#10 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 07-07-2022 14:38:00

Lolo_D
Bonjour Raleur,

 apt install firmware-misc-nonfree


Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
firmware-misc-nonfree est déjà la version la plus récente (20210315-3).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 



nano /etc/apt/sources.list


deb http://deb.debian.org/debian/bullseye main contrib non-free
deb-scr http://deb.debian.org/debian/bullseye main contrib non-free



J'ai tout le fichier sources.list sur ce format.

Qu'en pensez-vous ?

#11 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 05-07-2022 15:18:24

Lolo_D
bonjour Raleur,

Je me suis dit que le problème venait peut être de la machine ...comme j'ai une tendance à expérimenter...j'ai un peu de mal à comprendre le fonctionnement de linux avec ces différents dossiers/répertoires.
bref on n'est pas là pour ça.


[code][03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
    Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
    Kernel modules: mt76x0e
/code]
[code=user]ip a[/code]
[code]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: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 54:a0:50:a9:89:26 brd ff:ff:ff:ff:ff:ff
[/code]
[code=root]dmesg | grep firmware[/code]
[code]
[   12.641131] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[   12.843078] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[   13.798152] mt76x0e 0000:03:00.0: firmware: failed to load mediatek/mt7650e.bin (-2)
[   13.798268] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   13.798377] mt76x0e 0000:03:00.0: Direct firmware load for mediatek/mt7650e.bin failed with error -2
[   23.120575] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168g-3.fw (-2)
[   23.123317] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168g-3.fw failed with error -2
[   23.123347] r8169 0000:02:00.0: Unable to load firmware rtl_nic/rtl8168g-3.fw (-2)
[  845.152598] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[  845.152614] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[  845.205089] mt76x0e 0000:03:00.0: firmware: failed to load mediatek/mt7650e.bin (-2)
[  845.205092] mt76x0e 0000:03:00.0: Direct firmware load for mediatek/mt7650e.bin failed with error -2
[/code]

[code=root]rfkill list[/code]
Résultat vide ... mais pas de message d'erreur.
J'ai dû installer rfkill en utilisant la commande : [code=root]apt -y install rfkill [/code]
J'ai ensuite tapé la commande rfkill list

[code=root]dmesg | egrep "mt76x0e|wl" [/code]
[code][   13.798023] mt76x0e 0000:03:00.0: ASIC revision: 76300002
[   13.798152] mt76x0e 0000:03:00.0: firmware: failed to load mediatek/mt7650e.bin (-2)
[   13.798377] mt76x0e 0000:03:00.0: Direct firmware load for mediatek/mt7650e.bin failed with error -2
[   13.798553] mt76x0e: probe of 0000:03:00.0 failed with error -2
[  845.205017] mt76x0e 0000:03:00.0: ASIC revision: 76300002
[  845.205089] mt76x0e 0000:03:00.0: firmware: failed to load mediatek/mt7650e.bin (-2)
[  845.205092] mt76x0e 0000:03:00.0: Direct firmware load for mediatek/mt7650e.bin failed with error -2
[  845.205168] mt76x0e: probe of 0000:03:00.0 failed with error -2[/code]

La connexion avait fonctionné après avoir installée et effectuer la commande apt-get install build essential...
bon là depuis, je n'ai rien refait car ça n'avait pas empêcher de replanter par la suite.
Aujourd'hui j'ai bien un pc portable brancher à la box par un câble ethernet ...[code=user]lspci -nnkd ::280[/code]

#12 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 29-06-2022 15:28:36

Lolo_D
Bonjour raleur,

Je suppose que le problème vient d'ailleurs...j'ai tout réinstallé et ma connexion a, à nouveau fonctionné puis disparue.
J'ai pu noter que wlan0 n'est plus affiché..

 ip address


 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: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 54:a0:50:a9:89:26 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.95/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
       valid_lft 84840sec preferred_lft 84840sec
    inet6 2001:861:4980:df00:444a:efc9:5ff4:82ca/64 scope global temporary dynamic
       valid_lft 86124sec preferred_lft 14124sec
    inet6 2001:861:4980:df00:56a0:50ff:fea9:8926/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 86124sec preferred_lft 14124sec
    inet6 fe80::56a0:50ff:fea9:8926/64 scope link noprefixroute
       valid_lft forever preferred_lft forever



rfkill list

aucun retour... je tape la commande mais rien n'apparaît.

voilà...c'est particulièrement étrange.

#13 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 28-06-2022 15:11:29

Lolo_D
bonjour Raleur,

J'ai copier/coller l'intégralité des résultats qui sont apparus dans la console.Si il manque des choses, navré...
Aucune carte réseau détectée, en gros : lorsque je clique sur la petite icône réseau. J'ai bien la case wifi mais quand je clique sur cette dernière aucun réseau n’apparaît que ce soit avec une recherche ou non. En outre, après un redémarrage de plus, il s'avère que la carte "n'est plus détectée".

#14 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 26-06-2022 20:32:04

Lolo_D
Bonjour raleur,

merci pour ton retour !

La carte Wi-fi fonctionnait très bien jusqu'à une panne de courant... le pc s'est éteint de façon brutal.
J'ai rallumé la machine, le Wi-fi était connecté. J'ai fait ce que j'avais à faire puis j'ai éteint la machine. Je l'ai rallumée et la carte Wi-fi n'était plus détectée.


J'ai tapé les commandes notées :

lspci -nnkd ::0280


03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
  Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
  Kernel driver in use: mt76x0e
  Kernel modules: mt76x0e
 



dmesg | egrep "mt76x0e|wl


[   19.851376] mt76x0e 0000:03:00.0: ASIC revision: 76300002
[   20.127620] mt76x0e 0000:03:00.0: firmware: direct-loading firmware mediatek/mt7650e.bin
[   20.127628] mt76x0e 0000:03:00.0: Firmware Version: 1.0.07
[   21.101970] mt76x0e 0000:03:00.0: EEPROM ver:01 fae:05
[   21.102011] mt76x0e 0000:03:00.0: driver does not support HW RF ctrl
[   21.153582] mt76x0e 0000:03:00.0 wlp3s0f0: renamed from wlan0
[   42.363278] wlp3s0f0: authenticate with 38:a6:59:05:61:40
[   42.726315] wlp3s0f0: send auth to 38:a6:59:05:61:40 (try 1/3)
[   42.735158] wlp3s0f0: authenticated
[   42.741942] wlp3s0f0: associate with 38:a6:59:05:61:40 (try 1/3)
[   42.755288] wlp3s0f0: RX AssocResp from 38:a6:59:05:61:40 (capab=0x411 status=0 aid=1)
[   42.755354] wlp3s0f0: associated
[   43.317539] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0f0: link becomes ready
 

#15 Re : Réseau » [résolu] Problème bug erreur - carte MT7630e » 25-06-2022 13:43:34

Lolo_D
Bonjour raleur, 

désolé... en effet, il manque le problème. Ma carte réseau n'est plus détectée...du coup je n'ai plus de Wi-fi sur un pc portable c'est dommage.
J'ai essayé de réinstaller deux trois petites choses sans succès.
J'ai vu des erreurs dans les logs sur le firmware, je me suis dit que vous pourriez m'aider à comprendre comment les résoudre...

#16 Réseau » [résolu] Problème bug erreur - carte MT7630e » 24-06-2022 09:41:06

Lolo_D
Réponses : 15
bonjour à tous,

J'ai un petit souci suite à une extinction involontaire de ma machine.
Pour précision, ma machine est un debian 5.10.0-13-amd64 x86_64

[code][   28.718144] VBoxNetAdp: Successfully started.
[   31.389132] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168g-3.fw (-2)
[   31.391349] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   31.393537] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168g-3.fw failed with error -2
[   31.393580] r8169 0000:02:00.0: Unable to load firmware rtl_nic/rtl8168g-3.fw (-2)
[   31.421967] Generic FE-GE Realtek PHY r8169-0-200:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-0-200:00, irq=IGNORE)
[   31.491503] kauditd_printk_skb: 10 callbacks suppressed
[   31.491506] audit: type=1400 audit(1656056328.318:22): apparmor="DENIED" operation="capable" profile="/usr/sbin/cupsd" pid=720 comm="cupsd" capability=12  capname="net_admin"
[   31.545954] r8169 0000:02:00.0 enp2s0: Link is Down
[   33.307144] audit: type=1400 audit(1656056330.134:23): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=769 comm="cups-browsed" capability=23  capname="sys_nice"
[   34.495700] r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control rx/tx
[   34.495719] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[   56.129967] nouveau 0000:04:00.0: Enabling HDA controller
[   61.772578] nouveau 0000:04:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ IBUS ]
[   64.000493] nouveau 0000:04:00.0: bus: MMIO read of 00000000 FAULT at 619444 [ IBUS ]
[   71.190720] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[   74.417965] nouveau 0000:04:00.0: Enabling HDA controller
[   74.519926] nouveau 0000:04:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ IBUS ]
[   74.585301] rfkill: input handler disabled
[   80.278326] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[  199.028556] nouveau 0000:04:00.0: Enabling HDA controller
[  199.130279] nouveau 0000:04:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ IBUS ]
[  199.137682] rfkill: input handler enabled
[  204.120836] rfkill: input handler disabled
[  212.900722] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[  215.686426] r8169 0000:02:00.0 enp2s0: Link is Down
[  547.488571] r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control rx/tx
[code=root][/code]

J'ai essayé de faire :
[code=root]apt-get install git build essential[/code]
[code]des choses se sont installées[/code]
[code]Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait     
build-essential est déjà la version la plus récente (12.9).
dkms est déjà la version la plus récente (2.8.4-3).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
2 partiellement installés ou enlevés.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Paramétrage de linux-image-5.10.0-15-amd64 (5.10.120-1) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-15-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-15-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 5.10.0-15-amd64:.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-15-amd64
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125b-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8125a-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8107e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168fp-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168h-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168g-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8106e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8411-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8402-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168f-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-3.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for module r8169
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-5.10.0-15-amd64
Found initrd image: /boot/initrd.img-5.10.0-15-amd64
Found linux image: /boot/vmlinuz-5.10.0-13-amd64
Found initrd image: /boot/initrd.img-5.10.0-13-amd64
Found Ubuntu 20.04.4 LTS (20.04) on /dev/sdb3
done
Paramétrage de linux-image-amd64 (5.10.120-1) ...
[/code]

[code=root]root@Host-001:~# dmesg | grep firmware[/code]
[code][   19.476896] platform regulatory.0: firmware: direct-loading firmware regulatory.db
[   19.490197] platform regulatory.0: firmware: direct-loading firmware regulatory.db.p7s
[   20.098556] mt76x0e 0000:03:00.0: firmware: direct-loading firmware mediatek/mt7650e.bin
[   31.389132] r8169 0000:02:00.0: firmware: failed to load rtl_nic/rtl8168g-3.fw (-2)
[   31.391349] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   31.393537] r8169 0000:02:00.0: Direct firmware load for rtl_nic/rtl8168g-3.fw failed with error -2
[   31.393580] r8169 0000:02:00.0: Unable to load firmware rtl_nic/rtl8168g-3.fw (-2)[/code][code=root][/code]

#17 Re : Réseau » [résolu] problème activation wifi après installation debian » 20-04-2022 17:35:28

Lolo_D
Merci à vous !

Face à l'échec, j'ai fait face...je me suis dit "bon si vous m'avez dit que ça devait fonctionner, c'est qu'il y a bien quelque chose que je n'ai pas fait comme il faut ou que la machine n'a pas compris.".
Je me suis dit, je vais relancer la machine et refaire les opérations pour m'assurer que tout est bien été chargé et bim !
=> "apt install firmware-misc-nonfree"
bilan, la commande a fonctionné et la solution est apparue !

Je vous remercie pour votre aide.  J'en conclue donc que :
- mon debian n'était pas à jour et ne pouvait pas mettre à jour firmware-misc.
- la maj de debian a permis d'effectuer l'opération : install firmware-misc-nonfree
- le problème est donc résolu.

note personnelle : mettre à jour avant de se dire que ce qu'on a fait "merde".

#18 Re : Réseau » [résolu] problème activation wifi après installation debian » 20-04-2022 16:12:29

Lolo_D
bonjour messieurs,

Avec un gros retard, je me permets de revenir vers vous. J'ai essayé plusieurs solutions mais je n'ai pas réussi à obtenir la collaboration de ma machine...
J'ai installé virtualbox sur ma machine...jusque là ça fonctionne mais pour le wifi : échec total.

nano /etc/apt/sources.list


# deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 NETINST 20220326-11:22]/ bullseye main

deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bullseye contrib  non-free

#deb cdrom:[Debian GNU/Linux 11.3.0 _Bullseye_ - Official amd64 NETINST 20220326-11:22]/ bullseye main

deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free



bref... problème non résolu >.<

#19 Re : Réseau » [résolu] problème activation wifi après installation debian » 15-04-2022 11:21:15

Lolo_D
bonjour à tous, merci pour votre réactivité.

@croutons
J'ai tapé la commande donnée

apt policy firmware-misc-nonfree


firmware-misc-nonfree:
Installé : (aucun)
Candidat (aucun)
Table de version :
 



comme le résultat était peu probant...j'ai exécuté la seconde

 apt install firmware-misc-nonfree


 Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
Aucune version du paquet firmware-misc-nonfree n'est disponible, mais il existe dans la base
de données. Cela signifie en général que le paquet est manquant, qu'il est devenu obsolète
ou qu'il n'est disponible que sur une autre source



@raleur
j'ai effectivement fait une faute en recopiant la commande sur le forum...
le résultat figure ci-dessous et sans faute :

lspci -nnkd ::280


03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]
  Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter [105b:e074]
  Kernel modules: mt76x0e



@phlinux
j'ai effectivement vu ce "problème" mais je n'ai pas tout compris dedans...et j'avoue avoir pris un peu peur de faire une "sottise" sans solution autre que reformater la machine...
bref, je n'ai pas osé suivre cette résolution.
sommes-nous sûrs que le problème est le même ?

#20 Réseau » [résolu] problème activation wifi après installation debian » 15-04-2022 09:12:20

Lolo_D
Réponses : 12
bonjour à tous,

j'aimerai utiliser mon ordinateur en wifi...cela me permettrait de débrancher l'ordinateur qui est à l'étage de la box qui est au rez de chaussée...le cable dans l'escalier n'est pas l'idée la plus sage.
Pour ce faire, j'ai bien une carte wifi sur ma machine. Elle fonctionnait lorsque cette dernière était sur ubuntu et sur windows.
J'ai lu plusieurs sujets sur ce "problème de wifi" mais malheureusement
1° je n'y comprends pas grand chose
2° j'ai tenté des manoeuvres dont les résultats n'ont pas été très probant puisque je comprends à peine ce que je fais ...


/sbin/iwconfig


lo no wireless extensions.
enp2s0 no wireless extensions.




j'ai vérifiée la présence du module noyau

lspci -nnk | grep -i netork -A 3



03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]




j'ai vérifié la présence du firmware et là ça sent l'échec...

ip a


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: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 54:a0:50:a9:89:26 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.95/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
       valid_lft 85273sec preferred_lft 85273sec
    inet6 2001:861:4980:df00:9c54:7e99:e68e:7956/64 scope global temporary dynamic
       valid_lft 86329sec preferred_lft 14329sec
    inet6 2001:861:4980:df00:56a0:50ff:fea9:8926/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 86329sec preferred_lft 14329sec
    inet6 fe80::56a0:50ff:fea9:8926/64 scope link noprefixroute
       valid_lft forever preferred_lft forever




j'ai essayé de faire la commande en root : dmesg | grep firmware mais sans résultat.

Avant de faire n'importe quoi, avez-vous la même compréhension que moi pour le firmware manquant ? Est-ce bien ça le problème ?

Merci par avance,

Laurent

Pied de page des forums

Propulsé par FluxBB