Tag: bash

Automated Scripted Install of WordPress on CentOS8/RHEL8 Linux

I have written a couple of installation scripts to install WordPress throughout the years.  This is the latest in that series to install WordPress 5 on a minimal install of CentOS8. Among the differences between this script and previous ones, is that this will be installed in it’s own directory /wordpress rather than /. Basically, write the script as seen below,…

Read More »

Bash History without line numbers

The history command is a command that I use daily. It can be used to list Bash’s log of the commands that you have typed. The results of that command include line numbers. Every now and again, it would be nice to execute history to retrieve a list without line numbers. This would greatly simplify the creation of script. it…

Read More »

Using shc to compile a shell script

Not being a programmer, I do write a descent shell script from time to time.  In the Microsoft world, there are all sorts of script compilers that will compile a batch, visual basic, or any number of other scripts into an executable.  A benefit of an executable could be the files portability or even an attempt to obfuscate the code. …

Read More »

Automated Scripted Install of WordPress on CentOS7/RHEL7 Linux

Sometime ago, I wrote an automated script to install WordPress on a CentOS 5 install of Linux. Over the years, the repos and WordPress requirements changed as did CentOS upgrades through CentOS 6. The script was modified accordingly. The script had to be modified considerably for CentOS 7 which facilitates the need for a new article. Here is an automated…

Read More »

A Bash Script Shortcut to Echo Multiple Lines To A New File

Script or batch file writing can be very rewarding, especially when the script written works as planned. What is particularly rewarding is when a shortcut is found that greatly simplifies how the script is written and executed. Here is a couple of shortcuts that I picked up from the Internet. The end result all seem to be the same. This…

Read More »

How to change the IP address of a Linux computer using a script

There was a CentOS server where the IP address needed to be changed. Searches through the Internet revealed a series of commands that would do the trick. This script incorporates these commands into a single utility or bash script. This may not be all inclusive, but it did work for me on a CentOS 5.8 server. To use this script,…

Read More »

How to rename the host name of a Linux computer using a script

There was a CentOS server where the name needed to be changed. Searches through the Internet revealed a series of commands that would do the trick. This script incorporates these commands into a single utility or bash script. This may not be all inclusive, but it did work for me on a CentOS 5.8 server. To use this script, simply…

Read More »