You are not logged in.

#1 2015-08-24 13:05:21

chdslv
Member
Registered: 2015-08-24
Posts: 51

[SOLVED] cannot connect to internet through wireless

Installed Arch i686 through wifi. Everything worked on live.
Before moving out of arch-chroot, I wrote #systemctl enable dhcpcd@wlp4s0.service
I don't have a way to connect to ethernet, so have to use wifi.
Checked with systemctl --type service
dhcpcd@enp3s0.service loaded failed
dhcpcd@service.srvice loaded inactive dead start dhcpcd on service
dhcpcd@wlp4s0.service loaded activating start start dhcpcd on wlp4s0

There is no mention of a NetworkManager service

How do I get internet?

Last edited by chdslv (2015-08-25 19:08:42)

Offline

#2 2015-08-24 16:54:03

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Went back to live iso, booted it, then arch-chrooted to the partition, where Arch was installed. Installed wifi-menu, wpa-supplicant. Rebooted back to the installed Arch. Tried to call wifi-menu as user, but couldn't. Only could do that as root. Wifi-menu found my wireless service, gave my passphrase.
Checked with ip link, found my wifi service wlp4s0 was down.
Tried ip link set wlan0 up
got, Cannot find device "wlan0"
Tried ip link set wlp4s0 up
Nothing happened.
Checked in /etc/netctl, the file wlp4s0-mdm61 is there. (mdm61 is my_network_name)
Did netctl start profile
got answer Failed to startnetctl@profile.service

Is there a way to get wifi on, after installing Arch from netinstall? The netinstall was done through wifi, I can go back and install any app through the live iso to the mounted Arch install. What app should I install to get the wifi on?
Thanks!

Last edited by chdslv (2015-08-24 17:02:19)

Offline

#3 2015-08-24 18:07:24

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [SOLVED] cannot connect to internet through wireless

You should only have one networking .service enabled at a time.

You will have to disable (& stop) the dhcpcd@wlp4s0.service and dhcpcd.service before you attempt to enable & start netctl.

Check which .services are enabled with:

ls -l /etc/systemd/system/multi-user.target.wants

Jin, Jîyan, Azadî

Offline

#4 2015-08-24 18:57:23

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Head_on_a_Stick wrote:

You should only have one networking .service enabled at a time.

You will have to disable (& stop) the dhcpcd@wlp4s0.service and dhcpcd.service before you attempt to enable & start netctl.

Check which .services are enabled with:

ls -l /etc/systemd/system/multi-user.target.wants

I am writing this from a paper.
These are the files in that folder.
dhcpcd.service, dhcpcd@enp3s0.service, dhcpcd@service.service, dhcpcd@wlp4s0.service, remote-fs.target.

I have only wireless, even though enp3s0 is showing, I cannot connect to the ethernet.

Which services should I disable and stop? How do I do that? Can I simply delete those files in netctl folder, leave only the ones needed? Can you let me know point-wise, what I should do to get the Arch install connect to internet with wifi? I have wifi-menu and wpa-supplicant installed. Thanks.

Offline

#5 2015-08-24 19:04:27

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [SOLVED] cannot connect to internet through wireless

Disable all the dhcpcd stuff and try again with netctl.

man systemctl

https://wiki.archlinux.org/index.php/Sy … sing_units
https://wiki.archlinux.org/index.php/Netctl


Jin, Jîyan, Azadî

Offline

#6 2015-08-24 21:41:41

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Head_on_a_Stick wrote:

Disable all the dhcpcd stuff and try again with netctl.

man systemctl

https://wiki.archlinux.org/index.php/Sy … sing_units
https://wiki.archlinux.org/index.php/Netctl

Thanks for the links. Took some time to read, but don't know, whether I understood everything.
Disabled all the dhcpcd services, but the file dhcpcd@service won't get deleted from /etc/systemd/system/multi-user.target.wants.

Created the file wlp4s0 by copying the sample file as per https://wiki.archlinux.org/index.php/Netctl
netctl start wlp4s0 didn't do anything as user, so tried as root. This is the result;
Loaded : loaded (/usr/lib/systemd/system/netctl@service : static : vendor preset : disabled)
Active : inactive (dead)

(Wifi switch is on always. I am using another distro to write this.)
Is some driver missing in the Arch install for wifi?

My wifi details;
description: Wireless interface
       product: Centrino Wireless-N 1000 [Condor Peak]
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: wlp4s0
-----
configuration: broadcast=yes driver=iwlwifi driverversion=4.1.0-3-generic firmware=39.31.5.1 build 35138 ip=192.168.100.3 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
(checked this in this distro)

Last edited by chdslv (2015-08-24 21:42:45)

Offline

#7 2015-08-24 21:56:04

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [SOLVED] cannot connect to internet through wireless

chdslv wrote:

the file dhcpcd@service won't get deleted from /etc/systemd/system/multi-user.target.wants.

Which command did you use to attempt to remove this?

chdslv wrote:

Created the file wlp4s0 by copying the sample file as per https://wiki.archlinux.org/index.php/Netctl
netctl start wlp4s0 didn't do anything as user, so tried as root. This is the result;
Loaded : loaded (/usr/lib/systemd/system/netctl@service : static : vendor preset : disabled)
Active : inactive (dead)

Did you modify the profile to suit your system?

ArchWiki netctl page wrote:

For wireless settings, you can use wifi-menu -o as root to generate the profile file in /etc/netctl/


Jin, Jîyan, Azadî

Offline

#8 2015-08-24 22:27:31

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Head_on_a_Stick wrote:
chdslv wrote:

the file dhcpcd@service won't get deleted from /etc/systemd/system/multi-user.target.wants.

Which command did you use to attempt to remove this?

I did;
systemctl disable dhcpcd@service
Nothing happened.
As all other dhcpcd services had been deleted from that folder I physically deleted it too, using another linux distro.

chdslv wrote:

Created the file wlp4s0 by copying the sample file as per https://wiki.archlinux.org/index.php/Netctl
netctl start wlp4s0 didn't do anything as user, so tried as root. This is the result;
Loaded : loaded (/usr/lib/systemd/system/netctl@service : static : vendor preset : disabled)
Active : inactive (dead)

Did you modify the profile to suit your system?

Yes.

Description='A simple WPA encrypted wireless connection'
Interface=wlp4s0
Connection=wireless

Security=wpa
IP=dhcp

ESSID=I put here my network name
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key=I put here my passphrase
# Uncomment this if your ssid is hidden
#Hidden=yes
# Set a priority for automatic profile selection
#Priority=10

I named this file wlp4s0

netctl start wlp4s0 fails.

I read through the journal -xe (or --xe, I can't remember)
Somewhere it said that it can't parse wpa_supplicant.conf
I checked, there is nothing there.

(Sorry, its past midnight, and I have to go to sleep. Could you look into this H_o_a_S?)

Offline

#9 2015-08-24 22:30:47

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [SOLVED] cannot connect to internet through wireless

chdslv wrote:

I read through the journal -xe (or --xe, I can't remember)
Somewhere it said that it can't parse wpa_supplicant.conf
I checked, there is nothing there.

https://bbs.archlinux.org/viewtopic.php?id=57855


Jin, Jîyan, Azadî

Offline

#10 2015-08-25 05:44:55

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Head_on_a_Stick wrote:
chdslv wrote:

I read through the journalctl -xe (or --xe, I can't remember)
Somewhere it said that it can't parse wpa_supplicant.conf
I checked, there is nothing there.

https://bbs.archlinux.org/viewtopic.php?id=57855

You are right. I should give the entire message, but the problem is I am in cli mode there, and there are 3 screens of lines. I'd go back to live mode, chroot and install a file manager, a terminal and try to copy the whole thing.

Offline

#11 2015-08-25 06:41:03

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Tried through this; https://wiki.archlinux.org/index.php/WPA_supplicant

in

#wpa_cli

up to

> add_network

everything goes well, but

> set_network 0 ssid "MYSSID"
FAIL.

ls /usr/lib/modules/4.1.5-1-ARCH/kernel/drivers/net/wireless/iwlwifi :

dvm
iwlwifi.ko.gz
mvm

sudo modprobe iwlwifi
No reply, neither works nor fatal.

Last edited by chdslv (2015-08-25 07:14:50)

Offline

#12 2015-08-25 08:30:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [SOLVED] cannot connect to internet through wireless

chdslv wrote:

I should give the entire message, but the problem is I am in cli mode

Use a pastebin client to generate a URL which can be posted here.
https://wiki.archlinux.org/index.php/Li … in_clients


Jin, Jîyan, Azadî

Offline

#13 2015-08-25 09:58:15

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Head_on_a_Stick wrote:
chdslv wrote:

I should give the entire message, but the problem is I am in cli mode

Use a pastebin client to generate a URL which can be posted here.
https://wiki.archlinux.org/index.php/Li … in_clients

Thank you for the above link, but that doesn't help me to connect to the internet through wifi.
To use pastebin, I have to have an internet connection, I suppose.

I wrote earlier that I cannot connect to the internet through ethernet. I am writing this from another distro, not an Arch installation. All dhcpcd services are disabled, wpa_cli can't set_network to myssid, sudo modprobe iwlwifi doesn't even do/say anything, the interface is down.

Can any other Arch user help on how to get the wifi connected to an already installed Arch installation, when I can only connect to the internet through wifi? I explained everything possible in the last few posts.

I can't be jumping from one distro to another, just to get the Arch installation connect to internet through wifi. The next action would be formatting that partition. Everything done according to the Arch wiki, and on wifi, but on booting, wifi is gone.

Last edited by chdslv (2015-08-25 10:02:34)

Offline

#14 2015-08-25 19:07:38

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

I found the solution.

I installed Arch through wifi, and I used wifi-menu to connect to wifi, so it might be the same wifi-menu that would connect the installed. So, I went back to the live iso, booted it, mounted my Arch partition, chrooted in, and installed wifi-menu and wp_supplicant (I wrote about this earlier). Tried many ways to get the wifi working. It would've been a pity to format the partition and delete Arch install. So, went on digging. Installed iw, which was the missing app.

Back to my Arch install.

# wifi-menu device_name

And, I am in.

Conclusion: If you have to install Arch through wifi, you can. https://wiki.archlinux.org/index.php/Be … e#Wireless
But, before you exit from arch-chroot, don't forget to install  dialog, iw, wifi-menu and wpa_supplicant.
I had missed one app, and that was iw.

Offline

#15 2015-08-25 19:51:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,778
Website

Re: [SOLVED] cannot connect to internet through wireless

chdslv wrote:

don't forget to install  dialog, iw, wifi-menu and wpa_supplicant.

That information is already in the Beginner's Guide.

Last edited by Head_on_a_Stick (2015-08-25 19:53:27)


Jin, Jîyan, Azadî

Offline

#16 2015-08-25 21:44:43

chdslv
Member
Registered: 2015-08-24
Posts: 51

Re: [SOLVED] cannot connect to internet through wireless

Head_on_a_Stick wrote:
chdslv wrote:

don't forget to install  dialog, iw, wifi-menu and wpa_supplicant.

That information is already in the Beginner's Guide.

True enough, my friend, you should've told me that, without sending me round the corner. You just played the brainy chap, but that's OK. The problem is solved. smile

Just look at your post #12...

Last edited by chdslv (2015-08-25 21:47:44)

Offline

Board footer

Powered by FluxBB