Wednesday, October 19, 2022

Permanently set DNS in headless Debian or LXC/LXD container via CLI

 If you're like me and you've been through all those howto's that have you installing and using nmcli/resolvconf/network-manager and still don't have a permanent DNS, well you've come to the right place.

Again, I tried all that and then some. I even tried editing dhclient.conf and that didn't do anything either.

Forget installing whatever program that you don't need. 

All you need to do are three things.


1. Check if /etc/resolv.conf is a symlink to /run/systemd/resolve/stub-resolv.conf

    If it IS a symlink then ...

2. Delete the /etc/resolv.conf symlink and add a new /etc/resolv.conf

    rm /etc/resolv.conf; vi /etc/resolv.conf

    In the new /etc/resolv.conf add your nameserver

        nameserver 192.168.5.20

3. Restart your network or reboot.


The symlink is managed so anytime you edit the symlinked resolv.conf, the manager changes it back. But if you delete the symlink and create it again, the nameserver you add will be persistent.

Wednesday, October 5, 2022

[Solved] Heimdall not allowing background change after editing upload_max_filesize php.ini for NON-docker install

1. I'm not using Docker
2. I did a regular install in an LXC container with Apache

So I wanted to change Heimdall dashboard background to a file larger than 2M, but even after changing upload_max_filesize to 30M in /etc/php/7.4/apache2/php.ini, it still wouldn't take. 
After trying a bunch of other things, which of course none of them worked, I tried one more thing and that was to just peek inside /etc/php/7.4/cli. And what do you know, another php.ini file. 
I edited that, restarted Apache and also restarted heimdall. 
I was finally able to change the background to a file larger than 2M! Woot!