I have an old PC which I wanted to make into a linux server.
I downloaded Linux Server 20.04 LTS onto my USB and installed it normally without any issues. Then, when trying to connect to the internet via Wi-Fi I discovered that apparently its not possible right away from the system itself, so I followed this tutorial https://www.youtube.com/watch?v=Dacn58kgMXA&t=402s&ab_channel=DrewHowdenTech
Which basically told me to download supplicant and some dependencies, then create netplan file and apply that plan.
Everything worked fine.
I pinged google, downloaded all the updates and rebooted my machine only to find out that I don't have access to internet anymore ("Temporary failure in name resolution" when trying to ping google). After long and PAINFULL troubleshooting I discovered that my internet connection disappeared because my network plan wasn't applied. I had to do "sudo netplan apply" to bring back my internet connection.
There's no way I'm doing that every time I turn that PC on, so I started searching the internet but nothing helped me.
I tried:
changing the file to be accessible to anyone (I thought it can't apply my netplan because my user doesn't have permission)
copy pasting the file from "/etc/netplan/" to "/run/netplan/" (https://netplan.io/faq told me that those folders have hierarchy, so i thought it can help)
removing "optional: true" from my netplan file (to force it to be waited for at boot)
On netplan website I found an information that "If the interface is not configured in a .yaml file in /etc/netplan, it will not be configured at boot. " but my configuration IS a .yaml file and it indeed IS placed in /etc/netplan
How do I force that file to apply at startup?