Settings for Notebooks
Ubuntu 21.04
IdeaPad 5 15ALC05
Networking
- Add driver for WiFi - Realtek 8852AE
- Follow these instructions
- Change security policy for WiFi by creating this file. Required because user credentials are not kept locally on the computer (LDAP authentication is used - NetworkManager can't handle that AFAIK)
- cd /etc/polkit-1/localauthority/50-local.d
vi 10-network-manager.pkla
[Let all users modify system settings for network]
Identity=unix-user:*
Action=org.freedesktop.NetworkManager.settings.modify.system
ResultAny=no
ResultInteractive=no
ResultActive=yes
- cd /etc/polkit-1/localauthority/50-local.d
- disable IPv6
- vi /boot/firmware/cmdline.txt
- Append "ipv6.disable=1" to the end of the line (no quotes)
- Append (docker swarm hosts) "cgroup_memory=1 audit=1 cgroup_enable=memory swapaccount=1"
- save and reboot
Install sssd to do centralised network LDAP user authentication
- apt install sssd
Install autofs
- apt install autofs
- Adjust autofs.conf set
mount_nfs_default_protocol = 4 - Make autofs use files for its maps
vi /etc/nsswitch.conf
change automount: sss to
automount: files
Purge systemd-resolved with help from this tweet:
- How to take back control of /etc/resolv.conf on Linux
ctrl.blog/entry/resolvco via
@CtrlBlog
Yeah, Ubuntu's systemd-resolved defaults to 'compiled in' 1.1.1.1, 8.8.8.8, 9.9.9.9 all of which are profiling ur dns requests. Needless to say that bypasses PiHole. So block that egress.
Uninstall baloo indexer (confirmed on 22.04)
balooctl disable
for baloo in `dpkg --list 'baloo-kf5*' 'libkf5baloo5*' 'libkf5balooengine5*' 'libkf5baloowidgets-bin*' 'libkf5baloowidgets-data*' 'libkf5baloowidgets5*' | sed -n -E '/^ii/s/^ii[\t ]+([^\t :]+).*/\1/p'`
do echo $baloo
sudo snap remove $baloo
sudo dpkg --ignore-depends=$baloo --purge $baloo
done