You are not logged in.
I have installed Arch today and noticed a few problems. The first problem among some other is that everytime I login, I have to run the command " systemctl restart dhcpcd.service" to get the Wired connection working.
For the Wifi connection I tried to start by running the command "sudo wifi-menu" but when I try to connect it shows "Failed to start netctl@...... service failed to load. No such file or directory".
Failed to start netctl ...... failed to load: No such file or directory.
I have already tried a few times to correct the issues mentioned above after going through some of the threads, but somehow it's not working.
Last edited by arindom (2015-02-17 14:15:51)
Offline
Which connection do you actually want to use?
For wired - did you enable the dhcpd service?
For wireless, I'd recommend using something other than netctl e.g. networkmanager or connman if you want a gui interface, or a combination of wpa_supplicant and systemd-networkd if you're OK on the command line.
Offline
Which connection do you actually want to use?
I want to use both at a time. Sometime I may be wired and some other time I may use the wireless one.
For wired - did you enable the dhcpd service?
It seems that during installation I didn't enable the dhcpd service, so probably that is the reason I have to enable it every time I log in. Is there any way to enable it permanently, so that I can access the network everytime I log in?
For wireless, I'd recommend using something other than netctl e.g. networkmanager or connman if you want a gui interface, or a combination of wpa_supplicant and systemd-networkd if you're OK on the command line.
So should I run the following command :
# pacman -Syu connman
followed by
#sudo connman
Thanks tomk for your quick response.
Offline
Is there any way to enable it permanently, so that I can access the network everytime I log in?
You can enable dhcpcd service like any other.
Offline
arindom wrote:Is there any way to enable it permanently, so that I can access the network everytime I log in?
You can enable dhcpcd service like any other.
Thanks Karol!
I have enabled it and it's working on reboot. Thanks everyone for your help.
Offline
Now the problem remains with wifi only. I am still getting the same "service failed to load" error when trying :
# sudo wifi-menu
Offline
Weren't you going to try connman? Maybe someone else will help you with netctl, but I stopped using it long ago, and wouldn't recommend it, as I said above.
More generally, I'd suggest you read the available documentation. You're asking how to enable services, how to use pacman, etc - this is all covered in the corresponding man and/or wiki pages.
Finally, I'd like to clarify that both networkmanager and connman can manage both wired and wireless connections for you - that wasn't completely clear in my earlier post.
Offline
Weren't you going to try connman? Maybe someone else will help you with netctl, but I stopped using it long ago, and wouldn't recommend it, as I said above.
More generally, I'd suggest you read the available documentation. You're asking how to enable services, how to use pacman, etc - this is all covered in the corresponding man and/or wiki pages.
Finally, I'd like to clarify that both networkmanager and connman can manage both wired and wireless connections for you - that wasn't completely clear in my earlier post.
Thanks for your response. I have already installed connman.
About asking regarding some "how to's ..", I thought I can get a solution by posting about the issue. Thanks for your suggestion.
Offline
You can seek solutions here, of course, but you are expected to read the docs first. The questions you were asking above indicated that you did not.
Offline
The reason why netctl fails is because it conflicts with the already running dhcpcd.service -- if you wish to use netctl for wireless, use this for dhcpcd instead:
# systemctl enable dhcpcd@<name of your ethernet interface>.serviceHowever, you can use dhcpcd.service (the generic, non-interface-specific version) to manage wireless as well as wired if you set up /etc/wpa_supplicant/wpa_supplicant.conf for your wireless connection(s) as described here:
https://wiki.archlinux.org/index.php/WP … figuration
https://wiki.archlinux.org/index.php/Dh … supplicant
This is the connection method I use: it switches automatically from wireless to wired as soon as the cable is connected and will bring the network up at boot in under a tenth of a second -- highly recommended ![]()
Jin, Jîyan, Azadî
Offline
You can seek solutions here, of course, but you are expected to read the docs first. The questions you were asking above indicated that you did not.
Actually I did went through the beginner's guide a few times but may be there were areas which I understood differently. Please note that I haven't asked for pacman commands, only wanted to confirm it. May be that was not the correct thing to do.
Anyway thanks for your help in pointing to the guide. In any case that should be helpful.
Offline
The reason why netctl fails is because it conflicts with the already running dhcpcd.service -- if you wish to use netctl for wireless, use this for dhcpcd instead:
# systemctl enable dhcpcd@<name of your ethernet interface>.serviceHowever, you can use dhcpcd.service (the generic, non-interface-specific version) to manage wireless as well as wired if you set up /etc/wpa_supplicant/wpa_supplicant.conf for your wireless connection(s) as described here:
https://wiki.archlinux.org/index.php/WP … figuration
https://wiki.archlinux.org/index.php/Dh … supplicantThis is the connection method I use: it switches automatically from wireless to wired as soon as the cable is connected and will bring the network up at boot in under a tenth of a second -- highly recommended
Thanks for your response. This is what I was expecting. I will have to try this later.
Offline