With the Fedora Community Challenge underway, one of the first things you’ll encounter is that burning question of what to do next. What software should you install? How should you install it? Do you need to enable additional repositories? Fortunately, a Fedora admin (Tobias) has removed a significant amount of grunt work and saved us a ridiculous amount of time with his handy Fedora post-install bash script.
It’s easy to edit. It’s even easier to execute. Most importantly to me, this little script makes life much simpler if you plan to test Fedora 29 on multiple machines. Or if you just want to get a jump-start on your new installation. Tobias describes this script as “four years of Fedora installs condensed into my best experience / best effort setup.”
Sidenote: This script is intended for Fedora Workstation users running Gnome.
What Does It Do?
In a nutshell, this script installs wget, forces a refresh of all available packages, adds the free and (optionally) non-free RPM Fusion repos, completely updates your system, and then installs an extensive and useful variety of software — including developer goodies, desktop themes and audio/video codecs.
Sidenote: “Non-free” refers to software that is distributed with a non-free license, such as Nvidia’s proprietary graphics driver.
Moreover, customizing it to your specific needs is effortless because every single line of code is commented with clear descriptions. Even if you’re not a code junkie, you’ll understand what the script is doing and when it’s doing it.
For example, I’ve added a wget command to download the Standard Notes AppImage because I can’t live without my to-do lists and random ideas syncing to all my devices. I also added Lutris and OBS Studio to the mix. Shotwell too, because I get crop-happy with my photos and screenshots.
But here’s a very small sampling of the apps that get installed by default:
- Steam (FlatPak version)
- Gnome Tweaks
Where Do You Get It?
The New Install script is available from Tobias on his project page. You can download it and customize it if desired, but there’s a rather elegant solution if you want to dive right in. My advice though: view the actual script here and ensure you’re satisfied with the software being installed.
Sidenote: As stated in the script, do not run this process as root.
Option 1: If you want strictly open source software, run this code in Terminal (it’s a single command):
sudo dnf install -y wget && wget “https://git.furworks.de/tobias/fedora-install/raw/branch/master/install.sh” && chmod +x ./install.sh && ./install.sh
It’s never a good idea to just blindly copy and paste commands, so here’s what this line does: First, it installs wget so that the script can be downloaded. Then it pulls down the script, makes it executable, and runs it.
Option 2: What if you want both open source and non-free software, including the FlatPak version of Steam? Execute this code in Terminal:
sudo dnf install -y wget && wget “https://git.furworks.de/tobias/fedora-install/raw/branch/master/install.sh” && chmod +x ./install.sh && ./install.sh –nonfree –steam
This option adds the RPM Fusion non-free repository and an additional selection of software. If you want the full buffet, this is for you.
Now just sit back and watch the magic happen. You’ll need to enter your password a few times for either option, but beyond that it’s all automated.
Customizing The Script
More discriminating users may not be eager to install dozens of new applications. So why not tailor it to your needs?
First, go ahead and download the installer.sh script file from here. Save it to your Downloads folder.
Next, let’s make the script executable. There are two ways to do that. You can navigate to the file, right click it, select “Properties” and then click the Permission tab. Now check the box that says “allow executing file as a program.”
The easiest way, though (I can’t believe I’m saying this!), is by firing up a Terminal since you’ll use it in the next step anyway. Enter these two commands:
- cd Downloads (this changes your working directory to your Downloads folder, assuming you saved it there.)
- chmod +x install.sh (this assumes the filename install.sh. If you’re not sure, type ls to list the contents of the current directory)
Now we’ll execute the script:
I still consider myself a newbie in Linux land, but the code in this script is so straightforward that it’s easy to understand even if you’re not a code junkie. A description precedes each action, and a single “#” next to a command indicates that it’s “commented out.”
If you want to remove something, simply delete the line or add the “#” directly in front of it to comment it out. I bet you’ll catch on just by looking at the code.
Aside from removing software I’m sure I won’t need and adding a handful that I rely on daily, I didn’t get too adventurous with customizing this excellent script. But the sky is the limit. Having this on hand for simultaneous installs or future clean installs is glorious. And its simplicity is something easily reproducible across other Linux distributions, too!
Have fun with Fedora 29, and don’t forget to join our Telegram group to keep in touch with fellow distro challengers!
>> Source Link