The output device is not chosen based on the order in which devices are added, but based on the routing table.
In particular, configure the route metric of the ethernet device to be lower than the one of the Wi-Fi device. That should already happen by default, so it's not clear what problem you have.
This is a "captive portal", like often in hotels or public places.
You connect to the Wi-Fi (e.g. nmcli device wifi connect "$SSID" or by clicking the network in the GUI). This network is usually unencrypted and open. But you are not really on the internet yet.
Then, if you had connectivity check enabled in NetworkManager, it can detect that you don't have real internet but are behind such a captive portal. Then your desktop environment (like GNOME) can pick that up, and present you a browser window to login.
But that is only convenience. You don't need connectivity check or the desktop environment to present you a browser to login. Just open a webbrowser yourself, and try to access any website. The portal would redirect you to the login page, where you can login. You don't need any commands, enter your login data in the browser.
Actually, take care to use HTTP and not HTTPS, otherwise the redirect won't work properly. While you can try to open any wesite via HTTP, try for example this one: http://fedoraproject.org/static/hotspot.txt
Btw, your browser might also do captive portal detection. So maybe when you open the browser it will also tell you and redirect you to the login page.
you could replace /etc/resolv.conf with a symlink (NetworkManager defaults to [main].rc-manager=symlink which will not touch symlinks). This seems the simplest, because your act of creating a symlink is taken as configuration and nothing else is needed.
you could chattr +i the file to make it immutable.
you could configure either [main].dns=none or [main].rc-manager=unmanaged in NetworkManager.conf. Best by dropping a snippet to /etc/NetworkManager/conf.d/90-my-resolvconf.conf. See man NetworkManager.conf.
(after doing 2) or 3), issue a systemctl reload NetworkManager).
you don't need sudo nmcli because usually a non-root user has permissions to control NetworkManager. This is controlled via policykit rules. You can see your user's permissions with nmcli general permissions
when you add a profile with autoconnect enabled (the default), then the profile will start autoconnecting right away. So after nmcli connection add type bridge, the profile is already up, but with incomplete settings. So it's better to specify all parameters of a profile in one go. nmcli connection add and nmcli connection modify accept the same parameters so you can completely specify the profile while creating it.
A crash is almost always a bug in an application (or a library that the application uses). You can investigate a crash by looking at the backtrace/coredump.
You should see the crash in coredumpctl. As root, run coredumpctl to get a list of all crashes. Then run coredumpctl show $PROCESS_ID, where $PROCESS_ID is the process ID you see listed before.
Make sure to have debugging symbols installed, otherwise the backtrace is not very helpful. I don't know how to do that on Arch.
The output device is not chosen based on the order in which devices are added, but based on the routing table.
In particular, configure the route metric of the ethernet device to be lower than the one of the Wi-Fi device. That should already happen by default, so it's not clear what problem you have.
Look at `ip route` output.
This is a "captive portal", like often in hotels or public places.
You connect to the Wi-Fi (e.g.
nmcli device wifi connect "$SSID"or by clicking the network in the GUI). This network is usually unencrypted and open. But you are not really on the internet yet.Then, if you had connectivity check enabled in NetworkManager, it can detect that you don't have real internet but are behind such a captive portal. Then your desktop environment (like GNOME) can pick that up, and present you a browser window to login.
But that is only convenience. You don't need connectivity check or the desktop environment to present you a browser to login. Just open a webbrowser yourself, and try to access any website. The portal would redirect you to the login page, where you can login. You don't need any commands, enter your login data in the browser.
Actually, take care to use HTTP and not HTTPS, otherwise the redirect won't work properly. While you can try to open any wesite via HTTP, try for example this one: http://fedoraproject.org/static/hotspot.txt
Btw, your browser might also do captive portal detection. So maybe when you open the browser it will also tell you and redirect you to the login page.
There are several ways.
/etc/resolv.confwith a symlink (NetworkManager defaults to[main].rc-manager=symlinkwhich will not touch symlinks). This seems the simplest, because your act of creating a symlink is taken as configuration and nothing else is needed.chattr +ithe file to make it immutable.[main].dns=noneor[main].rc-manager=unmanagedinNetworkManager.conf. Best by dropping a snippet to/etc/NetworkManager/conf.d/90-my-resolvconf.conf. Seeman NetworkManager.conf.(after doing 2) or 3), issue a
systemctl reload NetworkManager).Maybe just do 1).
Very nice, thank you. Two minor comments:
you don't need
sudo nmclibecause usually a non-root user has permissions to control NetworkManager. This is controlled via policykit rules. You can see your user's permissions withnmcli general permissionswhen you add a profile with autoconnect enabled (the default), then the profile will start autoconnecting right away. So after
nmcli connection add type bridge, the profile is already up, but with incomplete settings. So it's better to specify all parameters of a profile in one go.nmcli connection addandnmcli connection modifyaccept the same parameters so you can completely specify the profile while creating it.A crash is almost always a bug in an application (or a library that the application uses). You can investigate a crash by looking at the backtrace/coredump.
You should see the crash in
coredumpctl. As root, runcoredumpctlto get a list of all crashes. Then runcoredumpctl show $PROCESS_ID, where$PROCESS_IDis the process ID you see listed before.Make sure to have debugging symbols installed, otherwise the backtrace is not very helpful. I don't know how to do that on Arch.