sudo dnf update
loginctl enable-linger
sudo loginctl enable-linger $USER
sudo dnf install epel-release
# or
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf install rpmfusion-free-release
# or
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install rpmfusion-nonfree-release
# or
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo firewall-cmd --set-default-zone=drop
firewall-cmd --zone=public --permanent --add-interface=ens192
firewall-cmd --zone=internal --permanent --add-interface=eth0
sudo firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="0.0.0.0/0" reject'
sudo firewall-cmd --zone=public --add-rich-rule='rule family="ipv6" source address="::/0" reject'
sudo firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" destination address="0.0.0.0/0" accept'
sudo firewall-cmd --zone=public --add-rich-rule='rule family="ipv6" destination address="::/0" accept'
sudo firewall-cmd --zone=internal --add-service=ssh --permanent
sudo firewall-cmd --zone=internal --add-port=22/tcp --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --list-all
firewall-cmd --get-active-zones
sudo dnf install gnome-extensions-app
sudo dnf install snapd
sudo ln -s /var/lib/snapd/snap /snap
sudo dnf install podman podman-compose
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable docker
sudo usermod -a -G docker $USER
Add cron: sudo crontab -e
@daily docker system prune --all --force
@reboot docker system prune --all --force
Edit /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "10m",
"max-file": "3"
}
}
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
dnf check-update
sudo dnf install code