If you need to deploy multiple Fedora-based machines, this script makes the process considerably easier.
As an admin, you know how exhausting it can be to get desktops set up and ready for users. Unless you've already automated the process, you need to install the operating system, install the necessary applications, and do any other post-install configurations. That can take a good deal of your time, time which could be better served doing more important things (like securing your network).
If you deploy Fedora desktops, a Fedora admin by the name of Tobias has created a post-install script that takes care of much of the work for you. What does this script do?
- Refreshes available packages from the repositories.
- Adds free and (optionally) non-free RPM Fusion repositories.
- Updates the system.
- Installs a large number of software packages.
SEE: Choosing your Windows 7 exit strategy: Four options (Tech Pro Research)
Even better, because this is open source, you can download and edit the script to fit your needs.
I'm going to walk you through the process of using this script on Fedora 29.
Note: With a bit of work, you can make this same script work on Fedora Server.
What you need
The only things you need to make this work is a running instance of Fedora 29 and a user account with sudo privileges.
Getting the script
The thing to do is download the necessary script. To do that, you must first install wget and nano. Open a terminal window and issue the command:
sudo dnf install wget nano -y
Once wget installs, download the script with the command:
With the script saved, open it for viewing/editing with the command:
The most important section for you to check is under the sudo dnf install \ line (Figure A).
Edit this section as needed (adding or removing applications to fit your needs). Under that section, you'll also find the Developer Niceties and advanced dev sub-sections. If you're not deploying for developers, you can comment these entire sections out.
To include an application for installation, you simply add the name of the application under the dnf install section of the script. Say you want to include Thunderbird to the mix. For this, add thunderbird under transmission (Figure B).
Running the script
After picking through the script (and editing as needed), save the file and give it executable permissions with the command:
chmod u+x install.sh
There are two ways to run the script:
- Only installing free, open source software.
- Including non-free software.
To install only free software, the command is:
To include the non-free software options, the command is:
Because this script isn't run as root (using sudo), you will be prompted for the users' sudo password a number of times. One way around this is to run a command using sudo right before issuing one of the ./install.sh commands, which would cache the password for a brief enough period to complete the script. You could simply issue the command sudo ls and then, when prompted, type your sudo password. As soon as that ls command completes, run the installation command, and you won't be prompted for the user's sudo password during the run.
When the script completes, you can reboot your desktop, and it's ready to go. If you've customized the script to fit your company needs, that desktop is all set up for a user to log in and start working. You might also want to configure the desktop to authenticate against an LDAP server (which isn't covered in that script) so that any user could log in to that machine. (See: How to authenticate a Linux client with LDAP server.)
Congratulations. Getting those Fedora desktop machines prepped for users is now considerably more efficient.
- How to enable two-factor authentication for SSH in Fedora Linux (TechRepublic)
- How to use the Fedora modular repository (TechRepublic)
- How to install Apache on Fedora server (TechRepublic)
- New features in Fedora 29 make life easier for web developers (TechRepublic)
- Pengwin: A Linux specifically for Windows Subsystem for Linux (ZDNet)
- DevOps: A cheat sheet (TechRepublic)
- 10 free alternatives to Microsoft Word and Excel (TechRepublic download)
- The 10 most important iPhone apps of all time (Download.com)
- It takes work to keep your data private online. These apps can help (CNET)
- Programming languages and developer career resources coverage (TechRepublic on Flipboard)