Skip to content

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?
2 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 100% up
Kind
Text
ID
6151i2

Author

1
posts
1
comments
0
media
View profile

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

1 points

Thanks for the reply, 1011001010101, but that's what I tried when I copied the wireless-open file out of the examples folder and modified it. The contents of the file are just this:

Description='Cambria hotel wireless'
Interface=wlp3s0
Connection=wireless
Security=none
ESSID='Cambria_GUEST'
IP=dhcp
# Uncomment this if your ssid is hidden
#Hidden=yes

Is there anything in this file that needs to be added/removed?

1 points

just run wifi-menu as root, it will create a netctl profile and keep you connected when it drops and comes back.

1 points

wifi-menu is too easy to miss and does a very good job a speedy connection setup

1 points

2 Things:

  1. 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)

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

1 points

I'm on crappy wireless network too and networkmanager is working just fine. Also has nmcli and nmtui for the terminal.

1 points

Could be leftover settings. Try sudo netctl stop-all, or try rebooting. Also are you using sudo or root for netctl?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.