User Tools

Site Tools


linux:troubleshooting

## Linux Troubleshooting ##

## SELinux

sudo dnf install setroubleshoot policycoreutils-python-utils
journalctl -t setroubleshoot

ausearch -m AVC,USER_AVC,SELINUX_ERR,USER_SELINUX_ERR -ts recent

sudo fixfiles -F onboot

## Setting Time

sudo timedatectl set-ntp no
sudo timedatectl set-time 07:44:00
sudo timedatectl set-ntp yes

## SNMP Ubuntu fix

sudo vi /usr/lib/systemd/system/snmpd.service

[Unit]
Description=Simple Network Management Protocol (SNMP) Daemon.
#After=network.target
After=network-online.target
ConditionPathExists=/etc/snmp/snmpd.conf

sudo systemctl daemon-reload ##Finding Pi Hardware Version
cat /proc/device-tree/model

##Fixing apt advertisements from Ubuntu 22 and up##
mkdir -p relocated_apt
sudo mv /etc/apt/apt.conf.d/20apt-esm-hook.conf ~/relocated_apt/.

linux/troubleshooting.txt · Last modified: 2024/10/01 13:58 by 127.0.0.1