Tyleo-Scripts/irp-rocky-rdp

47 lines
1.6 KiB
Text
Raw Normal View History

2024-02-18 18:06:30 +00:00
#!/usr/bin/env bash
if ! command -v rpm &> /dev/null
then
echo "Systéme non RPM - Lancement annulé"
echo "Utilisez irp-deb pour DEB."
echo "https://tyleodev.fr/scripts-crees-par-tyleo/"
exit
fi
echo -------------------------------------------------------------
curl https://static.tyleodev.fr/astra/banner-rhel
echo "Version 2.3 - Script de Déploiement Public avec DUF 0.8.1"
echo "Ajout support pour Rocky Linux 9.1+"
echo "Ajout support Docker Compose, Version Validée : v2.17.3"
sudo dnf config-manager --set-enabled plus
sudo dnf update -y
sudo dnf install -y wget
wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.rpm
wget https://github.com/xxxserxxx/gotop/releases/download/v4.1.4/gotop_v4.1.4_linux_amd64.rpm
sudo rpm -i gotop_v4.1.4_linux_amd64.rpm
sudo rpm -i duf_0.8.1_linux_amd64.rpm
sudo dnf install epel-release -y
sudo dnf install -y xrdp
sudo dnf install -y nano htop btop
sudo dnf install cockpit cockpit-machines virt-manager libvirt curl nano fish zsh git davfs2 curl wget mc htop nethogs figlet nano util-linux-user ntfs-3g -y
sudo dnf install -y https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.8/cockpit-navigator-0.5.8-1.el8.noarch.rpm
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER
# SERVICES ENABLING
sudo systemctl enable cockpit.socket
# START
sudo systemctl start cockpit.socket
sudo systemctl start cockpit
## XRDP
sudo systemctl enable xrdp
sudo systemctl enable xrdp-sesman
### FIREWALLD DISABLING
sudo systemctl disable firewalld
sudo systemctl stop firewalld
sudo timedatectl set-timezone Europe/Paris
# Final Update
sudo dnf update -y