Skip to content

Instantly share code, notes, and snippets.

@ph33nx
Last active June 15, 2025 22:10
Show Gist options
  • Select an option

  • Save ph33nx/8e0fd321ebc0a10693a698e80b714f70 to your computer and use it in GitHub Desktop.

Select an option

Save ph33nx/8e0fd321ebc0a10693a698e80b714f70 to your computer and use it in GitHub Desktop.

Revisions

  1. ph33nx revised this gist Nov 8, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-41-desktop-setup.sh
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,4 @@ sudo dnf install @multimedia vlc gimp audacity kdenlive remmina yt-dlp thunderbi
    sudo dnf install @development-tools @c-development @system-tools @admin-tools gcc-c++ cmake python3-devel # for specific python version like python3.12, use python3.12-devel

    # WINE
    sudo dnf install wine winetricks md5sum wine64 wine-mono mingw32-wine-gecko mingw64-wine-gecko
    sudo dnf install wine winetricks md5sum wine64 wine-mono mingw32-wine-gecko mingw64-wine-gecko bottles
  2. ph33nx revised this gist Nov 8, 2024. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion fedora-41-desktop-setup.sh
    Original file line number Diff line number Diff line change
    @@ -20,4 +20,7 @@ reboot # on reboot nvidia driver will be used instead of nouveau
    sudo dnf install @multimedia vlc gimp audacity kdenlive remmina yt-dlp thunderbird libreoffice solaar

    # Build essentials
    sudo dnf install @development-tools @c-development @system-tools @admin-tools gcc-c++ cmake python3-devel # for specific python version like python3.12, use python3.12-devel
    sudo dnf install @development-tools @c-development @system-tools @admin-tools gcc-c++ cmake python3-devel # for specific python version like python3.12, use python3.12-devel

    # WINE
    sudo dnf install wine winetricks md5sum wine64 wine-mono mingw32-wine-gecko mingw64-wine-gecko
  3. ph33nx revised this gist Nov 8, 2024. 1 changed file with 3 additions and 33 deletions.
    36 changes: 3 additions & 33 deletions fedora-41-desktop-setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,38 +16,8 @@ reboot # on reboot, enroll MOK keys
    sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    reboot # on reboot nvidia driver will be used instead of nouveau

    ## Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    sudo dnf group install Multimedia

    # Media editors, tools & utilities
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird libreoffice solaar


    ## Development Tools
    # Media editors, tools & utilities. @multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    sudo dnf install @multimedia vlc gimp audacity kdenlive remmina yt-dlp thunderbird libreoffice solaar

    # Build essentials
    sudo dnf install cmake python3-devel
    sudo dnf group install "C Development Tools and Libraries" "Development Tools"

    # Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
    sudo dnf install nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib
    sudo systemctl enable redis && sudo systemctl start redis && sudo systemctl enable postgresql
    sudo postgresql-setup --initdb --unit postgresql # Init postgres db
    sudo systemctl start postgresql
    sudo -u postgres psql
    \password postgres # Set new password for user postgres in psql

    # Postgres: Allow most applications to connect with username/password: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/#user-creation-and-database-creation
    sudo nano /var/lib/pgsql/data/pg_hba.conf
    # replace -> host all all 127.0.0.1/32 ident -> host all all 127.0.0.1/32 md5
    # save the file
    sudo systemctl restart postgresql.service

    # Pgadmin: https://www.pgadmin.org/download/pgadmin-4-rpm/
    sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
    sudo dnf update && sudo dnf install pgadmin4

    # Vscodium (open source version of vscode) https://vscodium.com/#install
    sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
    printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | sudo tee -a /etc/yum.repos.d/vscodium.repo
    sudo dnf install codium
    sudo dnf install @development-tools @c-development @system-tools @admin-tools gcc-c++ cmake python3-devel # for specific python version like python3.12, use python3.12-devel
  4. ph33nx renamed this gist Nov 8, 2024. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. ph33nx revised this gist Nov 8, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ reboot # on reboot nvidia driver will be used instead of nouveau
    sudo dnf group install Multimedia

    # Media editors, tools & utilities
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird libreoffice
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird libreoffice solaar


    ## Development Tools
  6. ph33nx revised this gist Oct 29, 2024. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -46,3 +46,8 @@ sudo systemctl restart postgresql.service
    # Pgadmin: https://www.pgadmin.org/download/pgadmin-4-rpm/
    sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
    sudo dnf update && sudo dnf install pgadmin4

    # Vscodium (open source version of vscode) https://vscodium.com/#install
    sudo rpmkeys --import https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg
    printf "[gitlab.com_paulcarroty_vscodium_repo]\nname=download.vscodium.com\nbaseurl=https://download.vscodium.com/rpms/\nenabled=1\ngpgcheck=1\nrepo_gpgcheck=1\ngpgkey=https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/-/raw/master/pub.gpg\nmetadata_expire=1h" | sudo tee -a /etc/yum.repos.d/vscodium.repo
    sudo dnf install codium
  7. ph33nx revised this gist Oct 29, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ reboot # on reboot, enroll MOK keys

    ## Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    reboot # on reboot nvidia driver will be used instead of nouveau

    ## Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    sudo dnf group install Multimedia
  8. ph33nx revised this gist Oct 29, 2024. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,6 @@ sudo mokutil --import /etc/pki/akmods/certs/public_key.der
    reboot # on reboot, enroll MOK keys

    ## Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    sudo dnf install kmodtool akmods mokutil openssl
    sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

    ## Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
  9. ph33nx revised this gist Oct 29, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@ sudo dnf config-manager --enable fedora-cisco-openh264
    sudo dnf update @core

    # If secure boot
    sudo dnf install kmodtool akmods mokutil openssl
    sudo kmodgenca -a
    sudo mokutil --import /etc/pki/akmods/certs/public_key.der
    reboot # on reboot, enroll MOK keys
  10. ph33nx revised this gist Oct 28, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -28,8 +28,8 @@ sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird libreoffic
    sudo dnf install cmake python3-devel
    sudo dnf group install "C Development Tools and Libraries" "Development Tools"

    # Vscode, Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
    sudo dnf install code nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib
    # Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
    sudo dnf install nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib
    sudo systemctl enable redis && sudo systemctl start redis && sudo systemctl enable postgresql
    sudo postgresql-setup --initdb --unit postgresql # Init postgres db
    sudo systemctl start postgresql
  11. ph33nx revised this gist Oct 26, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,8 @@ sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    sudo dnf group install Multimedia

    # Media editors, tools & utilities
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird libreoffice


    ## Development Tools

  12. ph33nx revised this gist Oct 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird
    ## Development Tools

    # Build essentials
    sudo dnf install cmake
    sudo dnf install cmake python3-devel
    sudo dnf group install "C Development Tools and Libraries" "Development Tools"

    # Vscode, Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
  13. ph33nx revised this gist Oct 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ sudo systemctl start postgresql
    sudo -u postgres psql
    \password postgres # Set new password for user postgres in psql

    # Allow password connection in postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/#user-creation-and-database-creation
    # Postgres: Allow most applications to connect with username/password: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/#user-creation-and-database-creation
    sudo nano /var/lib/pgsql/data/pg_hba.conf
    # replace -> host all all 127.0.0.1/32 ident -> host all all 127.0.0.1/32 md5
    # save the file
  14. ph33nx revised this gist Oct 24, 2024. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -37,7 +37,9 @@ sudo -u postgres psql

    # Allow password connection in postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/#user-creation-and-database-creation
    sudo nano /var/lib/pgsql/data/pg_hba.conf
    # and replace -> host all all 127.0.0.1/32 ident -> host all all 127.0.0.1/32 md5
    # replace -> host all all 127.0.0.1/32 ident -> host all all 127.0.0.1/32 md5
    # save the file
    sudo systemctl restart postgresql.service

    # Pgadmin: https://www.pgadmin.org/download/pgadmin-4-rpm/
    sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
  15. ph33nx revised this gist Oct 24, 2024. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -35,6 +35,10 @@ sudo systemctl start postgresql
    sudo -u postgres psql
    \password postgres # Set new password for user postgres in psql

    # Allow password connection in postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/#user-creation-and-database-creation
    sudo nano /var/lib/pgsql/data/pg_hba.conf
    # and replace -> host all all 127.0.0.1/32 ident -> host all all 127.0.0.1/32 md5

    # Pgadmin: https://www.pgadmin.org/download/pgadmin-4-rpm/
    sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
    sudo dnf update && sudo dnf install pgadmin4
  16. ph33nx revised this gist Oct 24, 2024. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -28,9 +28,13 @@ sudo dnf install cmake
    sudo dnf group install "C Development Tools and Libraries" "Development Tools"

    # Vscode, Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
    sudo dnf install code nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib pgadmin4
    sudo dnf install code nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib
    sudo systemctl enable redis && sudo systemctl start redis && sudo systemctl enable postgresql
    sudo postgresql-setup --initdb --unit postgresql # Init postgres db
    sudo systemctl start postgresql
    sudo -u postgres psql
    \password postgres # Set new password for user postgres in psql

    # Pgadmin: https://www.pgadmin.org/download/pgadmin-4-rpm/
    sudo rpm -i https://ftp.postgresql.org/pub/pgadmin/pgadmin4/yum/pgadmin4-fedora-repo-2-1.noarch.rpm
    sudo dnf update && sudo dnf install pgadmin4
  17. ph33nx revised this gist Oct 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    sudo dnf group install Multimedia

    # Media editors, tools & utilities
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp thunderbird

    ## Development Tools

  18. ph33nx revised this gist Oct 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -19,7 +19,7 @@ sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    sudo dnf group install Multimedia

    # Media editors, tools & utilities
    sudo dnf install vlc gimp audacity shotcut remmina
    sudo dnf install vlc gimp audacity shotcut remmina yt-dlp

    ## Development Tools

  19. ph33nx revised this gist Oct 24, 2024. 1 changed file with 8 additions and 5 deletions.
    13 changes: 8 additions & 5 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -11,19 +11,22 @@ sudo kmodgenca -a
    sudo mokutil --import /etc/pki/akmods/certs/public_key.der
    reboot # on reboot, enroll MOK keys

    # Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    ## Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    sudo dnf install kmodtool akmods mokutil openssl
    sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

    # Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    ## Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    sudo dnf group install Multimedia
    # Media editors and tools
    sudo dnf install vlc gimp audacity shotcut

    # Development Tools
    # Media editors, tools & utilities
    sudo dnf install vlc gimp audacity shotcut remmina

    ## Development Tools

    # Build essentials
    sudo dnf install cmake
    sudo dnf group install "C Development Tools and Libraries" "Development Tools"

    # Vscode, Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
    sudo dnf install code nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib pgadmin4
    sudo systemctl enable redis && sudo systemctl start redis && sudo systemctl enable postgresql
  20. ph33nx revised this gist Oct 24, 2024. No changes.
  21. ph33nx revised this gist Oct 24, 2024. 1 changed file with 16 additions and 3 deletions.
    19 changes: 16 additions & 3 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,21 @@ reboot # on reboot, enroll MOK keys

    # Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    sudo dnf install kmodtool akmods mokutil openssl
    sudo dnf install akmod-nvidia
    sudo dnf install xorg-x11-drv-nvidia-cuda # (Optional) Cuda
    sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

    # Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    sudo dnf group install Multimedia
    sudo dnf group install Multimedia
    # Media editors and tools
    sudo dnf install vlc gimp audacity shotcut

    # Development Tools
    # Build essentials
    sudo dnf install cmake
    sudo dnf group install "C Development Tools and Libraries" "Development Tools"
    # Vscode, Nodejs LTS, Dotnet 8 SDK, Redis, Postgres: https://docs.fedoraproject.org/en-US/quick-docs/postgresql/
    sudo dnf install code nodejs dotnet-sdk-8.0 redis postgresql-server postgresql-contrib pgadmin4
    sudo systemctl enable redis && sudo systemctl start redis && sudo systemctl enable postgresql
    sudo postgresql-setup --initdb --unit postgresql # Init postgres db
    sudo systemctl start postgresql
    sudo -u postgres psql
    \password postgres # Set new password for user postgres in psql
  22. ph33nx revised this gist Oct 24, 2024. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ reboot # on reboot, enroll MOK keys
    # Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    sudo dnf install kmodtool akmods mokutil openssl
    sudo dnf install akmod-nvidia
    sudo dnf install xorg-x11-drv-nvidia-cuda # (Optional) Cuda

    # Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    sudo dnf group install Multimedia
  23. ph33nx revised this gist Oct 24, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ sudo dnf install kmodtool akmods mokutil openssl
    sudo dnf install akmod-nvidia

    # Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    udo dnf group install Multimedia
    sudo dnf group install Multimedia
  24. ph33nx created this gist Oct 24, 2024.
    19 changes: 19 additions & 0 deletions fedora-40-dev-setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    sudo dnf update -y && sudo dnf autoremove -y
    reboot

    # Enable RPMFusion repos: https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/
    sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
    sudo dnf config-manager --enable fedora-cisco-openh264
    sudo dnf update @core

    # If secure boot
    sudo kmodgenca -a
    sudo mokutil --import /etc/pki/akmods/certs/public_key.der
    reboot # on reboot, enroll MOK keys

    # Install Proprietory Nvidia Drivers: https://rpmfusion.org/Howto/NVIDIA
    sudo dnf install kmodtool akmods mokutil openssl
    sudo dnf install akmod-nvidia

    # Multimedia drivers for playing variety of video and audio formats: https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
    udo dnf group install Multimedia