Applications, problèmes de configuration réseau
sz120
Daikyu
Messages : 66 Inscription : mar. 03 juil. 2012, 21:44
Message
par sz120 » dim. 20 oct. 2013, 23:55
Bonjour, je ne parviens pas à automatiser ma connexion wifi:
Code : Tout sélectionner
# systemctl start netctl
# systemctl enable netctl
ln -s '/usr/lib/systemd/system/netctl.service' '/etc/systemd/system/multi-user.target.wants/netctl.service'
# netctl start wifi
Job for netctl@wifi.service failed. See 'systemctl status netctl@wifi.service' and 'journalctl -xn' for details.
# systemctl -l status netctl@wifi.service
netctl@wifi.service - Networking for netctl profile wifi
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: failed (Result: exit-code) since dim. 2013-10-20 23:43:39 CEST; 8min ago
Docs: man:netctl.profile(5)
Process: 1299 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 1299 (code=exited, status=1/FAILURE)
oct. 20 23:43:39 pc network[1299]: Starting network profile 'wifi'...
oct. 20 23:43:39 pc network[1299]: Interface 'wlan0' does not exist
oct. 20 23:43:39 pc network[1299]: Failed to bring the network up for profile 'wifi'
oct. 20 23:43:39 pc systemd[1]: netctl@wifi.service: main process exited, code=exited, status=1/FAILURE
oct. 20 23:43:39 pc systemd[1]: Failed to start Networking for netctl profile wifi.
oct. 20 23:43:39 pc systemd[1]: Unit netctl@wifi.service entered failed state.
# journalctl -xn
-- Logs begin at mer. 2013-05-08 16:28:26 CEST, end at dim. 2013-10-20 23:49:35
oct. 20 23:43:39 pc systemd[1]: Unit netctl@wifi.service entered failed state.
oct. 20 23:47:49 pc gnome-session[604]: [257B blob data]
oct. 20 23:47:49 pc gnome-session[604]: [119B blob data]
oct. 20 23:47:49 pc gnome-session[604]: [119B blob data]
oct. 20 23:49:34 pc gnome-session[604]: (gedit:1370): Gtk-WARNING **: Theme file
oct. 20 23:49:34 pc gnome-session[604]: [155B blob data]
oct. 20 23:49:34 pc gnome-session[604]: [145B blob data]
oct. 20 23:49:35 pc systemd[1]: Starting Cleanup of Temporary Directories...
-- Subject: Unit systemd-tmpfiles-clean.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has begun starting up.
oct. 20 23:49:35 pc systemd-tmpfiles[1376]: stat(/run/user/1000/gvfs) failed: Pe
oct. 20 23:49:35 pc systemd[1]: Started Cleanup of Temporary Directories.
-- Subject: Unit systemd-tmpfiles-clean.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit systemd-tmpfiles-clean.service has finished starting up.
--
-- The start-up result is done.
lines 1-23
Code : Tout sélectionner
(1/1) installation de wpa_actiond [######################] 100%
# netctl start wifi
Job for netctl@wifi.service failed. See 'systemctl status netctl@wifi.service' and 'journalctl -xn' for details.
# systemctl enable netctl-auto@wlp0s26f7u6.service
ln -s '/usr/lib/systemd/system/netctl-auto@.service' '/etc/systemd/system/multi-user.target.wants/netctl-auto@wlp0s26f7u6.service'
# netctl start wifi
Job for netctl@wifi.service failed. See 'systemctl status netctl@wifi.service' and 'journalctl -xn' for details.
Merci de votre aide.
Dernière modification par
sz120 le lun. 21 oct. 2013, 14:28, modifié 1 fois.
benjarobin
Maître du Kyudo
Messages : 17596 Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon
Message
par benjarobin » lun. 21 oct. 2013, 00:30
Bonjour,
Ou as tu lu qu'il fallait faire ceci ?
Sinon le message d'erreur est très explicite non ?
Ton interface se nommerait pas autrement ?
Peux tu donner la sortie de
sz120
Daikyu
Messages : 66 Inscription : mar. 03 juil. 2012, 21:44
Message
par sz120 » lun. 21 oct. 2013, 00:40
Code : Tout sélectionner
# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000
link/ether 00:1d:60:a6:b8:e3 brd ff:ff:ff:ff:ff:ff
3: wlp0s26f7u6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
link/ether 00:60:b3:f6:5c:02 brd ff:ff:ff:ff:ff:ff
# tree /etc/systemd/system/
/etc/systemd/system/
|-- display-manager.service -> /usr/lib/systemd/system/gdm.service
|-- getty.target.wants
| `-- getty@tty1.service -> /usr/lib/systemd/system/getty@.service
|-- multi-user.target.wants
| |-- cups.path -> /usr/lib/systemd/system/cups.path
| |-- dhcpcd.service -> /usr/lib/systemd/system/dhcpcd.service
| |-- netctl-auto@wlp0s26f7u6.service -> /usr/lib/systemd/system/netctl-auto@.service
| |-- netctl.service -> /usr/lib/systemd/system/netctl.service
| |-- oss.service -> /usr/lib/systemd/system/oss.service
| `-- remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
|-- printer.target.wants
| `-- cups.service -> /usr/lib/systemd/system/cups.service
`-- sockets.target.wants
`-- cups.socket -> /usr/lib/systemd/system/cups.socket
4 directories, 10 files
Oui, l'interface est wlp0s26f7u6 et non wlan0 comme avant, je sais ça, pour le reste j'ai tenté de reproduire les étapes du wiki netctl.
benjarobin
Maître du Kyudo
Messages : 17596 Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon
Message
par benjarobin » lun. 21 oct. 2013, 13:12
dhcpcd.service doit être désactivé si tu utilises netctl
Tu n'as pas vraiment suivi le Wiki... Il y a des choses étranges dans ta configuration
Qu'est ce que tu cherche à faire ?
sz120
Daikyu
Messages : 66 Inscription : mar. 03 juil. 2012, 21:44
Message
par sz120 » lun. 21 oct. 2013, 13:38
Bon, manip du jour:
Code : Tout sélectionner
# systemctl disable dhcpcd.service
rm '/etc/systemd/system/multi-user.target.wants/dhcpcd.service'
Dans l'idée, je cherche à connecter mon pc en wifi sans fioriture particulière. J'y ai juste passé la soirée et ça ne marche toujours pas...
En fait je veux que mon pc se connecte à internet automatiquement au démarrage, voilà pourquoi j'ai activé dhcpcd. Ensuite je me suis embrouillé.
A la limite si ça pouvait marcher en dhcp sans netctl je serais tout aussi content!
J'avais d'ailleurs précédemment réussi ma connexion, et au redémarrage plus rien.
benjarobin
Maître du Kyudo
Messages : 17596 Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon
Message
par benjarobin » lun. 21 oct. 2013, 14:02
Dans ce cas, supprime aussi
netctl-auto@wlp0s26f7u6.service et netctl.service
Et refait la configuration en suivant le Wiki
En gros les étapes :
* écriture dans
/etc/netctl/
de la configuration, par exemple
/etc/netctl/wifihome
* Puis
netctl start wifihome
* Et enfin
netctl enable wifihome
sz120
Daikyu
Messages : 66 Inscription : mar. 03 juil. 2012, 21:44
Message
par sz120 » lun. 21 oct. 2013, 14:28
C'est bon , ça marche. Je vois ce qui n'allait pas: j'avais laissé wlan0 au lieu du nom réel de l'interface dans le fichier de conf du réseau dans /etc/netctl. J'ai mon wifi, je suis content! Merci!