#!/bin/bash

#Setup Hostname
hostnamectl set-hostname jump.tux.local

#Disabler SELinux
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config

#Opretter pingu
useradd pingu
echo 'Pa$$w0rd' | passwd --stdin pingu
usermod -aG wheel pingu

#Setup internal firewall zone
firewall-cmd --permanent --zone=internal --change-interface=enp1s0
firewall-cmd --permanent --zone=internal --remove-service={mdns,dhcpv6-client,cockpit,samba-client}

#SSH setup
sed -i 's/#PermitRootLogin.*/PermitRootLogin no/g' /etc/ssh/sshd_config
echo AllowUsers pingu >> /etc/ssh/sshd_config

#Install common programs and upgrade
dnf install vim nano mc -y
dnf upgrade -y






