Hi,
I just installed ubuntu server 24.04 LTS and come from several years of zentyal (ubuntu server based) and debian.
To be more familiar and speed up the setup process, I installed the xfce desktop environment.
However, I found that several things have changed and it is probably my fault, but I have some problems simply to configure the network. Specifically:
After changing the static IP address and DNS via GUI as usual, only IP, subnet mask and gateway work fine (correct configuration), but not DNS. Am I missing something? Is there a bug?
For DNS, simply changing the configuration file “/etc/resolve.conf” does not work since it is overwritten and every reboot. Instead, I found that I need to change the file “/etc/systemd/resolved.conf”.
During startup, the system waits for about 2 minutes on “NetworkManager-wait-online.service.” I read that I can disable it via “sudo systemctl disable systemd-networkd-wait-online.service” or “ExecStart=/lib/systemd/systemd-networkd-wait-online --timeout=10” in the file “/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service”. Do you recommend that I do that?
It is important to note that this service ensures that network-dependent processes start correctly. If you disable it, you may encounter issues with services that rely on a stable network connection during boot.
Disabling this service can be safe in certain scenarios, particularly if you are experiencing significant delays during boot.
systemctl status NetworkManager-wait-online.service
However, it is recommended to test the system after disabling the service to ensure that all network-dependent services function as expected. Additionally, if you are using a desktop environment, you may not need this service, as the network might be established after login.
I had a similar problem. Installed Ubuntu server and then kde on top of that. What I realized is during the server install ubuntu uses netplan for internet access. When the desktop is installed it installs network manager. These two different systems bang against each other. My solution was to remove Network Manager and stay with NetPlan.
ogra@styx:~$ cat /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
ogra@styx:~$ grep network-manager-all /var/lib/dpkg/info/*
...
/var/lib/dpkg/info/ubuntu-settings.postinst- if [ -e "$NM_CONF" ]; then
ogra@styx:~$
You probably want to install the ubuntu-settings package or create the file above by hand, that makes sure netplan respects that network manager handles networks …
Hi,
it seems that installing the ubuntu-settings package solved the problem. Now I can change the settings via GUI instead via “/etc/systemd/resolved.conf”.
Thank you