You are not logged in.
It seems like you have a more broad use case than myself for sure. I think if you want to get a for sure answer about whether or not you should be filing bug reports, you should ask on [arch-projects], as jouke does not seem to have posted in this thread beyond the OP. But the development of netctl seems to primarily take place on that mailing list.
I only ever use a few wireless networks, and typically my machine is sleeping between each connection. So I have not noticed all these things. But I am sure that jouke would really appreciate this input, as he has been working very hard on this project.
Maybe first though, you should install the netctl-git package from the AUR and report against that since I am fairly certain there have been commits since the netctl package in testing was put together.
Offline
So, I was setting up a machine with a fresh arch install, when I discovered netctl. I've opted to replace netcfg, and now I have a few questions.
I've managed to setup two profiles, one wired, one wireless. Now I have enabled both of them with
netctl enable pfname
I've also enabled via systemctl:
ifplugd.service
netctl-auto@.service
netctl-ifplugd@.service
netctl-sleep.service
also both
netctl@profile.services
I want my system configured in such a way, that when a cable is connected, ifplugd brings up the link, and ideally downs the wireless in case its up.
When no cable is available it should just use the wireless.
Apart from the 'auto-down' for the wireless, things seem to work.
But I'm getting timeout-error messages during/after startup regarding wired and strangely enough also the wireless connection when no cable is plugged. Both wireless and wired connect if cable is present during boot, but I still get the following message:
Timed out waiting for device sys-subsystem-net-devices-multi-user.service
[DEPEND] Dependency failed for Automatic wired/wireless network connection using netctl profiles
I'm sure this is because I've somehow misconfigured this, but I've read the man pages, and to be frank, info is pretty sparse atm.
Beetles and bacteria are vastly more successful than humans in terms of survival.
Offline
Hello,
how are the hooks supposed to work?
I want to rmmod my wireless module before suspending and modprobe it after resuming.
Should I simply place a bash file with commands in the /etc/netctl/hooks directory?
Till now - with netcfg - I had a root-suspend and root-resume systemd service file as described in the wiki.
Thanks in advance.
PS: the netctl-sleep.service works fine, though it hangs sometimes due to the ath9k_htc module which needs to be unloaded.
Last edited by DonVla (2013-04-01 13:06:36)
Offline
Here's a python script to convert netcfg profiles. It's not at all complete (just covers the stuff I needed), but could be fancied up with special handling of keys, etc.
#!/usr/bin/python2
from re import sub
ALLCAPS = '[A-Z]{5,}'
QUOTEDP = "='.*'"
def read_file(filename):
with open(filename, 'rb') as f:
return f.read()
def save_file(text, filename):
with open(filename, 'wb') as f:
f.write(text)
def camelcase(m):
text = m.group(0)
return ''.join([text[0].upper()] + [l.lower() for l in text[1:]])
def unquote(m):
text = m.group(0)
return ''.join([l for l in text if l is not "'"])
def remove_generic(text):
lines = text.split('\n')
conds = \
[ lambda l: len(l) > 0
, lambda l: not 'Automatically' in l
, lambda l: not 'A simple' in l
]
for cond in conds:
lines = [l for l in lines if cond(l)]
return '\n'.join(lines)
def convert_profile(filename):
text = read_file(filename)
text = sub(ALLCAPS, camelcase, text)
text = sub(QUOTEDP, unquote, text)
text = remove_generic(text)
text = text.strip() + '\n'
save_file(text, filename)
if __name__ == '__main__':
from sys import argv
convert_profile(argv[1])
I call it like this:
for f in $(ls /etc/netctl | grep -v interfaces | grep -v examples | grep -v hooks); do ./convert_profiles.py $f; done
But you could use the glob module instead.
Last edited by jefdaj (2013-04-05 08:12:40)
Offline
Out of curiosity; why are the example profiles stored in /etc/netctl/examples instead of somewhere in the /usr, considering that they are not "active" nor meant to be configured by the user?
Offline
Out of curiosity; why are the example profiles stored in /etc/netctl/examples instead of somewhere in the /usr, considering that they are not "active" nor meant to be configured by the user?
maybe the location was chosen based on /etc/skel? Another possible location would be soemthing like /usr/share/doc/netctl/examples/ I think.
Last edited by progandy (2013-04-07 22:54:37)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Out of curiosity; why are the example profiles stored in /etc/netctl/examples instead of somewhere in the /usr, considering that they are not "active" nor meant to be configured by the user?
It may not be standard path, but it's surely more at hand in /etc/netctl/examples than somewhere under /usr/share/...
Offline
Teho wrote:Out of curiosity; why are the example profiles stored in /etc/netctl/examples instead of somewhere in the /usr, considering that they are not "active" nor meant to be configured by the user?
It may not be standard path, but it's surely more at hand in /etc/netctl/examples than somewhere under /usr/share/...
'More at hand'? Tab-completion means the difference isn't much...
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
lahwaacz wrote:Teho wrote:Out of curiosity; why are the example profiles stored in /etc/netctl/examples instead of somewhere in the /usr, considering that they are not "active" nor meant to be configured by the user?
It may not be standard path, but it's surely more at hand in /etc/netctl/examples than somewhere under /usr/share/...
'More at hand'? Tab-completion means the difference isn't much...
Even with tab-completion, from /etc/netctl it's *much* quicker to go into ./examples than into /usr/share/doc/netctl/examples, don't you think?
Offline
Even with tab-completion, from /etc/netctl it's *much* quicker to go into ./examples than into /usr/share/doc/netctl/examples, don't you think?
In practise that hardly makes a difference considering that the file is probably copied over only once or twice in the lifetime of the system.
Offline
Examples in /etc? What savagery witchcraft pagan dark rituals are you folks cooking up here? Anything that cannot be parsed by an automation has no place in /etc.
Offline
what are the new features?
Offline
what are the new features?
Keep an eye on these, where the magic happens;
https://projects.archlinux.org/netctl.git/
https://github.com/joukewitteveen/netctl
It's all there in the manpages, etcetera.
Offline
Can someone help me? This error prevents netctl-auto from starting. When I start it manually it works fine. It might be trying to start too early.
Apr 10 19:22:37 arch network[1797]: Successfully initialized wpa_supplicant
Apr 10 19:22:37 arch network[1797]: ctrl_iface exists and seems to be in use - cannot override it
Apr 10 19:22:37 arch network[1797]: Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
Apr 10 19:22:37 arch network[1797]: Failed to initialize control interface '/run/wpa_supplicant'.
Apr 10 19:22:37 arch network[1797]: You may have another wpa_supplicant process already running or the file was
Apr 10 19:22:37 arch network[1797]: left by an unclean termination of wpa_supplicant in which case you will need
Apr 10 19:22:37 arch network[1797]: to manually remove this file before starting wpa_supplicant again.
Apr 10 19:22:38 arch network[1797]: The WPA supplicant did not start for interface 'wlan0'
Offline
Does netctl support ppp? netcfg does but I have not found any reference to ppp support for netctl
thanks
dave
Offline
Well netctl does list ppp as an optional dependency so I would guess yes it does support it.
Offline
i3status broke
Offline
Well netctl does list ppp as an optional dependency so I would guess yes it does support it.
but that seems only in reference to pppoe. with netcfg, I can use ppp for a pptp VPN connection. I would like to do the same with netctl but don't see how to do.
Offline
After migrating to netctl my Wi-Fi connection no longer automatically started at boot. But I can start it manually using command nectl start ironborn-wifi
/etc/netctl/ironborn-wifi
Description='ironborn wireless network'
Interface=wlp3s0
Connection=wireless
Security=wpa
IP=dhcp
IP6=no
TimeoutDHCP=30
ESSID='ironborn Wi-Fi'
Key='password'
TimeoutWPA=30
journalctl log
Apr 10 22:40:12 azazel network[259]: The WPA supplicant did not start for interface 'wlp3s0'
Apr 10 22:40:12 azazel network[259]: Failed to bring the network up for profile 'ironborn-wifi'
Apr 10 22:40:12 azazel systemd[1]: netctl@ironborn\x2dwifi.service: main process exited, code=exited, status=1/FAILURE
Apr 10 22:40:12 azazel systemd[1]: Failed to start ironborn wireless network.
Apr 10 22:40:12 azazel systemd[1]: Unit netctl@ironborn\x2dwifi.service entered failed state
Apr 10 22:40:12 azazel systemd[1]: netctl-auto@wlp3s0.service: control process exited, code=exited status=1
Apr 10 22:40:12 azazel systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
Apr 10 22:40:12 azazel systemd[1]: Unit netctl-auto@wlp3s0.service entered failed state
Apr 10 22:40:16 azazel network[255]: No connection on interface 'enp2s0'
Apr 10 22:40:16 azazel network[255]: Failed to bring the network up for profile 'ethernet-dhcp'
Apr 10 22:40:16 azazel systemd[1]: netctl@ethernet\x2ddhcp.service: main process exited, code=exited, status=1/FAILURE
Apr 10 22:40:16 azazel systemd[1]: Failed to start A basic dhcp ethernet connection.
Apr 10 22:40:16 azazel systemd[1]: Unit netctl@ethernet\x2ddhcp.service entered failed state
Apr 10 22:40:16 azazel systemd[1]: Starting Network.
Apr 10 22:40:16 azazel systemd[1]: Reached target Network.
Any clues and guidelines how debug it further?
Offline
i3status broke
That 1) is extremely unhelpful for anyone who would like to help you trouble-shoot your problem and 2) appears to be entirely unrelated. Care to open another thread and give a few more details?
All the best,
-HG
Offline
bel3atar wrote:i3status broke
That 1) is extremely unhelpful for anyone who would like to help you trouble-shoot your problem and 2) appears to be entirely unrelated. Care to open another thread and give a few more details?
All the best,
-HG
i3status used to show the correct nework status (wireless ESSID, signal strength, DHCP state, IP address...) when I was using NetworkManager.
Now everything went 'down'.
I know it's not a netctl problem, but I'd like you help me fix this because I don't know the internals of this...
thanks
Offline
i3status used to show the correct nework status (wireless ESSID, signal strength, DHCP state, IP address...) when I was using NetworkManager.
Now everything went 'down'.
I know it's not a netctl problem, but I'd like you help me fix this because I don't know the internals of this...thanks
We could probably help you trouble-shoot that, but you should open a new thread for this. Please post as much related info as you can in the new thread.
All the best,
-HG
Offline
2) With netcfg it was possible to list PostUp/PreDown commands in the interface/<interface> file, to e.g. start services when connecting to the network. It seems that netctl does not execute these commands. Is there a way to get the same behaviour without including PostUp/PreDown in every profile file?
Try the "ExecUpPost=" & "ExecDownPre=" commands.
Offline
My netctl-ifplugd only works once. Suppose the systemd unit is running, and I plug in my ethernet cable. The interface is successfully configured. Then I unplug the cable, and the interface is deconfigured. But now the systemd unit also STOPS! So if I plug in the cable again, nothing happens.
Basically, netctl-ifplugd has to be manually restarted every time a cable is unplugged. This can't possibly be right.
Offline
Does netctl support mtu configuration?
Offline