This page has links to a number of BASH scripts that you can download and use on your own system. This page is for more advanced Linux users who already are familiar with BASH. Scroll down to see what’ts available.
Have fun with these! Feel free to do with them as you will but keep in mind that I have not tested them on every other Linux distribution available and I cannot offer support to you if they don’t work on yours. I would love to hear your comments and I will happily look at any suggestions for new features or code fixes but I do not have the time or inclination to run and test your modified versions, act as a beta tester or even offer useful advice if your changes are not working. I am NOT an expert; I am simply sharing tools that I use everyday.
CYA (Cover Your Ass(ets))
CYA is a joint project with Jeremy O’Connell at CyberwebSolutions that offers users a way to backup and restore the state of their Linux systems. CYA is designed to work on most Linux distributions and is great for Desktops, Server and IoT applications. It can be easily automated so you can “set it and forget it.” CYA is a very advanced tool and will appeal to System Admins but installation and setup is highly automated so even a novice can use it.
To learn more about CYA and download a Zip archive file click here:
Watch the video where Jeremy and I talk about the development and theory behind CYA:
XBT — External Backup Tool (Version 3.0)
The latest version of XBT offers many new features and it’s integrated with your desktop so it’s super easy to point and click your way to making reliable backups. XBT will restore your entire /home directory in an emergency and it now sets up the dedicated XBT Drive for you. XBT is designed to work with CYA. Your CYA operating system snapshots are backed up by XBT so rebiuilding a broken system is just a matter of putting everything back with XBT and using CYA to restore your system settings and installed programs.
XBT is designed for use with Linux Mint’s 18.x series and Ubunttu 16.04 and up. It also works with Debian 9,MX Linux, LMDE 3 and just about every Debian/Ubuntu based distribution of Linux. Thanks for all your kind feedback and interest in XBT!
Version 3.0 includes many small fixes but looks and works pretty much like version 2.0. New features include better command line operation and the ability to call XBT within a script. XBT now comes in a .deb file for super easy installation. Users who already have XBT installed can simply install the new deb package. Your old version of XBT should be detected and removed automatically.
Watch the video to learn how to install and use XBT:
Up — Debian/Ubuntu Update Tool (Version 1.0)
Up is a script that makes keeping Debian/Ubuntu based systems up to date super easy. This is a great tool for working with remote systems that you update through SSH. There is a much earlier version of Up included with the EzeeLinux Bash Script Collection offered further down on this page. This is a more sophisticated script that gives more options at the command line and is now openly developed on GitHub.
From the README:
Up is a tool that automates the update procedure for Debian and Ubuntu based
Unzip the “up” bash script from the zip archive and move it to either /usr/local/bin or ~/bin. You can either do this from a command line or simply drag the file out of Archive Manager to wherever you’d like it to go.
Note: scripts that are run from the ~/bin directory cannot be prefixed with ‘sudo’ as the system will fail to find them. Those who intend to run up from a script for cron, anacron or systemd timers should place it in /usr/local/bin This is also the best practice if there are more than one administrator accounts on the machine.
Watch the video about Up:
Show — Terminal Text Display Tool
Show displays text files in a terminal and formats to the terminal emulator
display window but adds no other characters on the screen. Show is great for
screencasts and presentations.
You can give show as many files to work with as you like, just list one
after another in the order you’d like to display them. Pressing any key
will advance to the next file. The screen will be cleared but the user can
scroll up to see the contents of the last file displayed. Pressing any key
after the files have all been displayed will add a line to the bottom of
the screen letting you know that there are no more files. Press any key
once again to clear the screen and exit the program.
PreShrink-VM — VirtualBox Linux Guest Shrink Preparation Tool
Preshrink-VM is a tool that prepares Linux VirtualBox VM’s to be shrunk with
the vboxmanage modifyhd </path/to/thedisk.vdi> –compact command. All free
space must be set to “zeros” for the command to work most efficiently.
VirtualBox users can install this script into their VMs and use it to prepare virtual drives for shrinking.
EzeeLinux BASH Script Collection
(SFTPin – SSHin – SyncIt – Up – XBT (External Backup Tool) 1.7 – Z-Clean – Z-Defrag)
This file contains seven tools that I have created for my own use. They have been featured in videos on my YouTube channel. Be sure to take the time to look through the included README file for explanations and tips on using them.
Note: XBT now allows users to backup more than one machine on the same drive! Version 1.6 and up creates a directory called XBT_Backups and then places directories with the machines names within it. The log file also is tucked in to XBT-Backups making for a neater layout. If you have been using an earlier version of XBT, you should delete the old backups or reformat your XBT_Drive before using the new version 1.7
Watch the video about XBT 1.7:
EzeeLinux Tweaks and Tricks
This is not a script but a text file with a collection of useful commands. You can use these to clean things up, boast performance or just have fun with Linux. Watch the video for a more in-depth explanation of many of the commands.
Ubuntu/Linux Mint Installation Scripts
Here are a couple of scripts I use to speed up installing 3rd party software on Ubuntu and Linux Mint. Feel freee to change these to fit you’re setup. The idea is to keep a copy with you data backup and if you have to reload it will make it a quick and relatively painless operation.
More to come…
DISCIAIMER: THIS SOFTWARE IS PROVIDED BY EZEELINUX “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL EZEELINUX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.