Linux Tip | Use a Script to Make Re-installing Easier

Video is ready, Click Here to View ×

I create and test a Bash script to automate software installation and do some system tweaks. Watch the whole video to see if it works or not.

To learn more about Bash scripting:

Here’s the solution to the problem I had with the command to change swappiness:

Please be sure to give EzeeLinux a ‘Like’ on Facebook! Thanks!
Check out…


  1. Joe just thought I'd drop you a note. I've been on and off Linux for a few years now. Still stuck with mac and windows due to work. But lately been moving to Linux more and more. I have a few backup servers and proxmox vm Server mostly running debian. So I finally took the full plunge and loaded Debian with a kde desktop. It's a dual boot with windows via a hot swap bay. After seeing this video I played around with writing a similar script. Tweaked it in vm's till I got it 100% saves me hours of typing apt-get install xxx. I have it updating my fstab file and write all of my crontab scripts. About the only thing I need to do after the script I only need to make my cron entries and make all my visual tweaks. Awesome job with this video. As well as many others. 👍

  2. I got inspired to write my own setup scripts to get my virtual machines ready for java developing (i'm testing the scripts on the virtual machines, the final scripts are used for my workingstations ofc).
    What i did was setting up a Github Repository and manage my Scripts there. That way i have always access to them from whereever i need to run the script, the script is always up-to-date and can be editted whenever i encounter a deprecated url or something similar.

  3. What I hate is how I HAVE to reinstall my Linux distro so often. Sooner or later something becomes hopelessly broken and the use case scenario is so specific that there's no fixing it. At this point a reinstall is necessary. is there a way to create a script that brings the system to a fresh install state without uninstalling all of its programs?

  4. I used to do that, and unless you are a guy installing every week, that's more a loss of time than a real useful thing:

    – First, you have to be organized enough to have the script backed up properly, that's a pity if you spend more time to find it rather than typing the code directly. 🙂
    – Then you have to be a non-distro hopper, because the install commands are different whether you are DEB based or RPM or anything else.
    – You have to work only with repositories, no software downloaded from source (or even pre-packaged) as those have usually the version number in the download URL, when you re-install a system, you want the latest version.
    – Finally, you have to be using only long-term software and stick with it. Personally, I go back and forth with the browsers (Chrome, Firefox), same goes with other software. a good example I just faced, for my webserver, since the update to PHP5, all install command changed. They now changed again with PHP7.

    Last but not least : if you use the script to install different PC, then likelyhood that you have different usernames is high, your script won't be useful.

  5. Hey, cool video. I too use a script for reinstalling and found useful to use "set -e" at the beginning so the script will stop at the first error, which can be better if the following commands expect that everything went fine before them

Leave a Reply

Your email address will not be published.