You are not logged in.

#1 2015-02-17 12:34:17

arindom
Member
Registered: 2015-02-17
Posts: 8

New installations issues (Network not starting upon boot)

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

#2 2015-02-17 12:44:19

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: New installations issues (Network not starting upon boot)

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

#3 2015-02-17 13:40:31

arindom
Member
Registered: 2015-02-17
Posts: 8

Re: New installations issues (Network not starting upon boot)

tomk wrote:

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

#4 2015-02-17 13:57:30

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: New installations issues (Network not starting upon boot)

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.

Offline

#5 2015-02-17 14:15:07

arindom
Member
Registered: 2015-02-17
Posts: 8

Re: New installations issues (Network not starting upon boot)

karol wrote:
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

#6 2015-02-17 14:20:56

arindom
Member
Registered: 2015-02-17
Posts: 8

Re: New installations issues (Network not starting upon boot)

Now the problem remains with wifi only. I am still getting the same "service failed to load" error when trying :

# sudo wifi-menu

Offline

#7 2015-02-17 17:39:54

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: New installations issues (Network not starting upon boot)

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

#8 2015-02-17 18:02:52

arindom
Member
Registered: 2015-02-17
Posts: 8

Re: New installations issues (Network not starting upon boot)

tomk wrote:

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

#9 2015-02-17 20:19:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: New installations issues (Network not starting upon boot)

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

#10 2015-02-17 22:01:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: New installations issues (Network not starting upon boot)

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>.service

However, 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 smile


Jin, Jîyan, Azadî

Offline

#11 2015-02-18 03:39:11

arindom
Member
Registered: 2015-02-17
Posts: 8

Re: New installations issues (Network not starting upon boot)

tomk wrote:

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

#12 2015-02-18 03:43:53

arindom
Member
Registered: 2015-02-17
Posts: 8

Re: New installations issues (Network not starting upon boot)

Head_on_a_Stick wrote:

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>.service

However, 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 smile

Thanks for your response. This is what I was expecting. I will have to try this later.

Offline

Board footer

Powered by FluxBB