Skip to content

u/thom311

In this archive from Nov 2018 to Dec 2023

0
posts
45
comments
0
media
109
score

Top comments

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.

24 points

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.

11 points

There are several ways.

  1. 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.
  2. you could chattr +i the file to make it immutable.
  3. 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).

Maybe just do 1).

5 points

Very nice, thank you. Two minor comments:

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

3 points

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.

3 points

Subreddits

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.