Tag: script

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 »

Apache httpd log rotation does not compress the logs

A CentOS 7 installation with a simple yum install of httpd also creates a logrotation script.  The script does log rotate files, however, there is no compression.  A quick look at the script indicates that some compression settings are put into place, but as experience indicates, not enough to do the job. By default, this is the logroation script as…

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 »

Convert a CentOS 6 install to a Scientific Linux 6 install

CentOS, Scientific Linux (“SL”), and Oracle Linux are all based on the Red Hat Enterprise Linux (“RHEL”) code base. Though there are differences between them, the similarities are more than not. For whatever the reason, there are documented processes that permit the conversion from one of the aforementioned Linux distros to another. This conversion will document another approach based on…

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 »
VMWare Logo

Optimize VMware Virtual Machines Using a Batch File

Years ago, there was a couple of batch files that were floating around the Internet that were designed to defrag and shrink virtual machines created and used by VMware Workstation or VMware Server. Over time, the scripts became a little obsolete in that some of the command line functionality was lost from the removal of a utility, vmware-mount, from newer…

Read More »

Delete Local Printers via a Script

A case where a Microsoft Windows print server may once existed and a new print server had been put into place; the local workstations that accessed the printer shares of the original print server no longer require those shares. Here is a script to remove all local printers prior to adding new printers. Source www.experts-exchange.com

Read More »

Useful DOS Commands

From time to time a DOS batch (“bat” or “cmd”) file needs to be written to perform some task or series of tasks. There are various commands that I seem to consistantly search for on the Internet. Here is a list of some of those useful DOS batch commands. How to delete files equal to zero bytes in size. Delete…

Read More »

Use forefiles.exe and 7zip to archive files older than X number of days

On a Microsoft Windows server, there is a folder that contains 1000s of logfiles. Each logfile varies by name and size. I wanted a script that would compress all logfiles into a single zip file that were older than seven days. After the compression is completed and the zip file is created, all logs older than seven days will be…

Read More »

Perl Script to Backup Event Logs (Updated)

Years ago, I had hacked up various pieces of code to create a variant to the event logs backup scripts that are floating around the internet. There is a script that I have seen that comes with (at least) the Windows Perl releases. This is an updated script for use with Perl and Windows to backup event logs. The differences…

Read More »

How to get wp-print to display Nextgen nicely!

There are many great WordPress plugins that every site owner should consider using. Of the plugins, wp-print and Nextgen Gallery will greatly enhance any site. However, wp-print does not display the Nextgen Gallery the way that I would like it to. Instead of displaying the images in a row as displayed on the site, the printable version is a long…

Read More »

BigDump for large MySQL Databases

BigDump performs a staggered import of large and very large MySQL dumps similar to those of the phpMyAdmin 2.x dumps into a new or an existing MySQL database. Other reasons for using this script is if in the even access to the server shell is not possible or for what ever the reason the import fails using phpMyAdmin due to…

Read More »

Replace text in a text file from the command line using a vbs script

There is a need to replace a value from within a text based file from one variable to another using a command line approach, as everything else in that process was automated. There is however, no native command line support within the Microsoft Windows environment that would allow for this to be accomplished. Someone in the Microsoft forums had written,…

Read More »

Map network drive with a visual basic script

Every now and again, I have had requirements to access shared drives on other domains on which I have an account and do not want to create a permanent network connection. A couple of years ago, I stumbled upon this visual basic script that I have been using without any issues. I have tested this script using Microsoft Windows XP…

Read More »

Beyond Compare 2.5.3 INNO repack with license key

Beyond CompareĀ® is the ideal tool for comparing files and folders on your Windows or Linux system. Visualize changes in your code and carefully reconcile them. Beyond Compare is available at Scooter Software. A license was purchased to support a large user community. I wanted a means to simplify the distribution of this application with the license file. I chose…

Read More »