netctl for open wifi wireless network
Hi, all,
I am able to connect to a hotel's wireless network by manually issuing the following commands:
ip link set wlp3s0 up
iw dev wlp3s0 connect Cambria_GUEST
dhcpcd wlp3s0
But the hotel wireless is inconsistent and every few minutes I get a message in journalctl from dhcpcd: "carrier lost." Issuing iw dev wlp3s0 connect Cambria_GUEST again reconnects, but I have to do it every time I lose the signal.
I am currently under the impression that netctl would handle reconnecting when the signal is lost, so I am trying to get it to work. The hotel's wireless is open, so to set up netctl, I did this: cp /etc/netctl/examples/wireless-open /etc/netctl/Cambria_GUEST. I then modified the config file to fix the device name and ESSID, but when I use netctl start Cambria_GUEST, I get the following error in journal -xe:
network[31579]: Could not create a wpa config file for interface 'wlp3s0'
network[31579]: Failed to bring the network up for profile 'Cambria_GUEST'
I'm not sure what is looking for a wpa config or why, considering it says Security=none in the config file, but can someone answer any of the following:
- How do I configure my computer to automatically reconnect to my wifi after I lose signal?
- How do I configure my netctl to use an open network?
- How do I use any other CLI-driven tool to connect to this wireless network?
About this post
- Posted
- Archived
- Score
- 2 · 100% up
- Kind
- Text
- ID
- 6151i2
8 comments
On Mobile but. You need to create a netctl profile first if you want to use netctl. Look in /etc/netctl for example profiles. There should be one that is open. Fill In the appropriate fields. Then run sudo netctl start the name of the profile you started. I find it pretty reliable
Thanks for the reply, 1011001010101, but that's what I tried when I copied the
wireless-openfile out of the examples folder and modified it. The contents of the file are just this:Is there anything in this file that needs to be added/removed?
Are you getting any error messages when you start the netctl profile?
just run wifi-menu as root, it will create a netctl profile and keep you connected when it drops and comes back.
wifi-menu is too easy to miss and does a very good job a speedy connection setup
2 Things:
use "wifi-menu -o" in terminal to generate a profile, I wouldn't even try to use one of the examples unless it's your last resort. Then you just "netctl start profile_name." (ex: netctl start Cambria_GUEST or whatever you name it in wifi-menu)
This is why i switched to NetworkManager, using the applet in the DE, is so much easier when you need to jump wifi spots.
2cents.
I'm on crappy wireless network too and networkmanager is working just fine. Also has nmcli and nmtui for the terminal.
Could be leftover settings. Try sudo netctl stop-all, or try rebooting. Also are you using sudo or root for netctl?