Skip to content

Instantly share code, notes, and snippets.

@wesleyit
Created September 25, 2022 23:30
Show Gist options
  • Save wesleyit/298d7c6cf050b626d8a6700134119fa9 to your computer and use it in GitHub Desktop.
Save wesleyit/298d7c6cf050b626d8a6700134119fa9 to your computer and use it in GitHub Desktop.
This is a basic configuration script for my fresh installed Fedora 36+
#!/bin/bash
# Define the hostname to something very cool
hostnamectl set-hostname "linuxdragon"
# Improve the default DNF config for a blazing fast one
cat > /etc/dnf/dnf.conf <<EOF
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
fastestmirror=true
deltarpm=true
max_parallel_downloads=10
EOF
# Get the shining brand new cutting edge packages
dnf update -y
# Install some very basic packs
dnf install -y vim-enhanced curl wget
# Install RPMFusion, Chrome and VS Code from their own RPM packages
cd /tmp
wget 'https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm' --output-document=chrome.rpm
wget 'https://code.visualstudio.com/sha/download?build=stable&os=linux-rpm-x64' --output-document=code.rpm
wget "http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" --output-document=fusion-free.rpm
wget "http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" --output-document=fusion-nfree.rpm
dnf localinstall -y ./*.rpm
# Install some basic software for daily tasks
dnf install -y \
android-tools autoconf binwalk cabextract cowsay \
java-latest-openjdk-devel fortune-mod ghex git-core \
gobuster gparted hashcat hashid hydra kismet medusa neofetch \
nikto nmap reaver retroarch screen socat testdisk unzip \
whois winetricks tlp tlp-rdw gnome-tweaks gnome-extensions-app htop
# Install libs for making programs, after all this is Linux
dnf groupinstall -y "Development Tools" "Development Libraries"
# Let's save some battery juice
systemctl enable tlp
# Install Flathub AMAZING software library
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
# Install some of the best available software there
cat <<EOF | xargs flatpak install -y flathub
ar.com.tuxguitar.TuxGuitar
cc.arduino.IDE2
com.github.micahflee.torbrowser-launcher
com.github.tchx84.Flatseal
com.github.unrud.VideoDownloader
com.github.xournalpp.xournalpp
com.google.AndroidStudio.Locale
com.obsproject.Studio
com.rawtherapee.RawTherapee
com.spotify.Client
com.ultimaker.cura
com.uploadedlobster.peek
com.wps.Office
de.gunibert.Hackgregator
io.dbeaver.DBeaverCommunity
io.exodus.Exodus
io.github.Qalculate
com.github.marktext.marktext
org.ardour.Ardour
org.blender.Blender
org.darktable.Darktable
org.flameshot.Flameshot
org.freecadweb.FreeCAD
org.ghidra_sre.Ghidra
org.gimp.GIMP
org.gnome.Aisleriot
org.inkscape.Inkscape
org.kde.kdenlive
org.mypaint.MyPaint
org.remmina.Remmina
org.sqlitebrowser.sqlitebrowser
org.stellarium.Stellarium
org.zaproxy.ZAP
EOF
# Fix permissions the way I like it :D
chown wesley: /opt /usr/local /usr/local/bin /usr/local/src \
/usr/share/applications /usr/share/fonts
# I Rule
echo 'wesley ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/wesley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment