General-Scripts/irp-fedora-tch
2025-01-25 16:54:10 +00:00

114 lines
3.4 KiB
Bash
Executable file

#!/usr/bin/env bash
clear
sudo dnf makecache
sudo dnf up -y
sudo dnf in "https://hst.tyleo.dev/packages/rpm/ocs-url_fc20.rpm" -y
sudo dnf in cockpit timeshift pwgen ncdu htop btop glances figlet fish zsh gimp openshot distrobox docker docker-compose -y
## FLATPAK PACKAGES SETUP - CUSTOMIZE IT - DONT FORGET "\" AT THE END OF LINE (EXCEPTED THE LAST ONE)
# Downloading Keyguard
sudo wget "https://github.com/AChep/keyguard-app/releases/download/r20250110/Keyguard.flatpak" -O /tmp/keyguard.flatpak
# Installing Packages
sudo dnf in -y flatpak
sudo flatpak install "/tmp/keyguard.flatpak" -y
sudo flatpak install flathub -y \
com.github.tchx84.Flatseal \
io.github.dweymouth.supersonic \
io.github.spacingbat3.webcord \
io.github.jeffshee.Hidamari \
io.github.dvlv.boxbuddyrs \
com.visualstudio.code \
md.obsidian.Obsidian \
io.gitlab.news_flash.NewsFlash \
org.cockpit_project.CockpitClient \
org.sqlitebrowser.sqlitebrowser \
io.missioncenter.MissionCenter \
io.github.realmazharhussain.GdmSettings \
com.mattjakeman.ExtensionManager \
org.dupot.easyflatpak \
com.atlauncher.ATLauncher \
io.github.vikdevelop.SaveDesktop \
io.github.zen_browser.zen \
io.github.plrigaux.sysd-manager \
io.github.vemonet.EmojiMart \
com.github.fabiocolacio.marker \
org.gnome.DejaDup \
de.schmidhuberj.DieBahn \
dev.zelikos.rollit \
im.bernard.Memorado \
it.mijorus.gearlever \
io.github.flattool.Warehouse \
io.gitlab.adhami3310.Impression \
com.jgraph.drawio.desktop \
com.github.phase1geo.minder \
ca.desrt.dconf-editor \
page.codeberg.libre_menu_editor.LibreMenuEditor \
com.getmailspring.Mailspring \
com.github.hugolabe.Wike \
org.nickvision.tagger \
io.github.ronniedroid.concessio \
net.codelogistics.webapps \
com.usebottles.bottles
sudo tee /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]
name=Pritunl Repository
baseurl=https://repo.pritunl.com/stable/yum/fedora/41/
gpgcheck=1
enabled=1
gpgkey=https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc
EOF
sudo dnf install pritunl-client-electron -y
#!/usr/bin/env bash
# Sourcing and Parameters
SOURCE_FONT_PACKFILE="https://res.tyleo.dev/fonts/fontpack.tar.gz"
TEMP_FONT_PACKFILE="/tmp/fontpack.tar.gz"
FONTDIR="/usr/share/fonts/custom"
# Preparing Font Directory
sudo mkdir -pv $FONTDIR
# Downloading Assets and Placing Them
sudo wget $SOURCE_FONT_PACKFILE -O $TEMP_FONT_PACKFILE
sudo tar -xvf $TEMP_FONT_PACKFILE -C $FONTDIR
# Refreshing FC Cache
sudo fc-cache -r
# XRDP Setup
clear
dnf up -y
dnf in xrdp plasma-workspace-x11 -y
echo "Configuring FirewallD for XRDP Service on 0.0.0.0:3389..."
firewall-cmd --permanent --add-port=3389/tcp
firewall-cmd --reload
echo "Autorizing XRDP Processes..."
chcon --type=bin_t /usr/sbin/xrdp
chcon --type=bin_t /usr/sbin/xrdp-sesman
echo "Enabling XRDP Services Daemons..."
systemctl enable xrdp
systemctl enable xrdp-sesman
echo "Starting XRDP Services Daemons..."
systemctl start xrdp
systemctl start xrdp-sesman
# Cockpit Enablement
systemctl enable --now cockpit.socket
# Default Shell to FiSH
sudo usermod --shell /usr/bin/fish root
sudo usermod --shell /usr/bin/fish $USER
# Welcome Message
SCR_SOURCE="https://scr.tyleo.dev/runner/exec_wlcm"
SCR_LOCALS="/usr/bin/wlcm"
echo "> Downloading Script ..."
sudo wget "https://scr.tyleo.dev/runner/exec_wlcm" -O "/usr/bin/wlcm"
echo "> Allowing direct execution ... (+x)"
sudo chmod +x -v /usr/bin/wlcm
echo "> Finished, add 'wlcm' or 'bash /usr/bin/wlcm' to RC files for autorun !"