Ubuntu

Server Automatic Upgrades

Install

sudo apt install unattended-upgrades apt-listchanges bsd-mailx

Edit the auto upgrade configuration /etc/apt/apt.conf.d/20auto-upgrades:

APT::Periodic::Update-Package-Lists "1";
APT::Periodic::Unattended-Upgrade "1";
APT::Periodic::Unattended-Upgrade::Mail "your@email.com";
APT::Periodic::Unattended-Upgrade::Automatic-Reboot "true";
APT::Periodic::Unattended-Upgrade::Automatic-Reboot-Time "04:30";

In /etc/apt/listchanges.conf change the line to your email:

email_address=your@mail.com

Test with a dry run:

sudo unattended-upgrades --dry-run

Logs can be found in /var/log/unattended-upgrades/.

Nextcloud Client Snap

Problem: Nextcloud snap is asking for the password after every login.

Solution: Connect Nextcloud to the password manager

snap connect nextcloud-client:password-manager-service

For more infos, see here

Timeout for add-apt-repository

  1. Got to /etc/gai.conf
  2. Remove the # in front of precedence ::ffff:0:0/96 100. This prefer IPv4 connections instead of IPv6. IPv6 will still work.

Don't select the last audio device connected as output device automatically

in /etc/pulse/default.pa comment out

load-module module-switch-on-port-available


.ifexists module-switch-on-connect.so
load-module module-switch-on-connect
.endif

Change grub settings

Save and select the last entry booted

Open the file /etc/default/grub/

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT=3

If you've got a 1920x1080 screen, change the resolution, if grub doesn't do automatically

GRUB_GFXMODE=1920x1080

Update the grub configuration

sudo update-grub

Remove the two dashes in the signature of Evolution

Install the dconf editor and run

dconf write /org/gnome/evolution/mail/composer-no-signature-delim true

Cisco anyconnect

sudo apt install network-manager-openconnect network-manager-openconnect-gnome

Get sensors monitoring data

sudo apt install lm-sensors

Run sensors-detect. Usually it's safe to answer all questions with yes. Put the found modules in /etc/modules and load these modules with sudo systemctl restart kmod

Install nodejs

See here