Tag: Linux

Automated Scripted Install of WordPress on CentOS/RHEL Linux

Many WordPress users have enjoyed WordPress using an Internet host provider or on an XAMPP installation on a Windows installation. This exercise is a combination of several guides with some personal tweaks to install WordPress 3.5.1 on a fresh install of of CentOS 5/6 or Red Hat Enterprise Linux (RHEL) 5/6 using PHP 5.2.4+. Install Packages Using yum install MySQL,…

Read More »

Linux: Count the number of processes running.

There was a need to determine the number of processes that was running on a Linux installation, specifically CentOS 5.6. I can’t find the source of this again, however, did use Google to find this information. Anyway, here is the command line needed. This command returned the desired results. The result will be a number, the number of processes that…

Read More »

Upgrade Java JDK on CentOS RHEL 5.5

This guide will detail the upgrade of the Java Development Kit (JDK) on a Red Hat Enterprise Linux (RHEL) 5.54 and CentOS 5.5 operating system. This example is accomplished through the use of PuTTY and XMing. In our example the following guide was used to install the original JAVA JDK. Install Java and Set Environment Variables Download JDK6 Note: The…

Read More »

How To Backup an SVN Server for Windows

Being relatively novice to SVN, I needed to backup a recent installation. I found a couple of great scripts that was described for Linux, however, will work for Windows with additional software that is described in this article. Dump the repository to a file. Or dump the repository to a compressed file. This requires gzip for Windows. Or dump the…

Read More »

Apache Logs Fail to Logrotate – RESOLVED

A server running Red Hat Enterprise Linux (RHEL) 5.5 after a period of time of successful log rotation, failed to logrotate the Apache logs. The Apache logs grew into the GBs. There didn’t seem to be any apparent or logical reason for this behavior, as the log rotation scripts were identical to other comparable servers. However, a command to debug…

Read More »

SARDU, the Antivirus Rescue Disk Utility

When it comes to the removal of a virus, Trojan, pest, or some other malicious application, it has been my practice to isolate the problem by removing it from the equation. What is meant by that is that there are cases where the system is inoperable or where several applications have been hijacked like Task Manager, Registry Editor, and other…

Read More »

Linux: Recursively Unzip All Files Into Their Existing Directory

A backup of every file in every sub-directory created zipped archives of each individual file. This was not the intended result. To resolve this each file must be restored to it’s original location and remove the created archive. Research directed me into a couple of different routes, that didn’t really work for me or produce the desired result. Here is…

Read More »

Automatic JBoss log compression using Linux

JBoss logs can take up gigabytes of space. The log rotation works well, however, there is no (not that I could find) means to compress in real-time. However, with a little work, this may be accomplished with a cron job. I am not going to go into too much detail or background, there are many sites that do this well….

Read More »

SendEmail on Linux – Send SMTP Mail from the Command Line

SendEmail is a lightweight, command line SMTP email client. It was designed to be used in bash scripts, batch files, Perl programs and web sites, but is quite adaptable. SendEmail is written in Perl and requires no modules. SendEmail is licensed under the GNU GPL, either version 2 of the License or (at your option) any later version. Although it…

Read More »

MySQL Commands

There are many sites that will provide far greater detail and comment than this one. However, this is a list of basic commands that I have found repeatedly useful. MySQL Commands Create a database List all databases Switch to a database Show tables in a database Delete a database Delete a table Show data in a table Find a specific…

Read More »

Install JDK on RHEL5/CentOS5 Using PuTTY and XMing

This is yet another way that I had pieced together to install the Java Development Kit (JDK) on a Red Hat Enterprise Linux (RHEL) 5.4 and CentOS 5.4 system. This time, the process is accomplished through the use of PuTTY and XMing. Install Java and Set Environment Variables Download JDK6 Note: If this link doesn’t work, it may be a…

Read More »

Linux Command Tips – Nautilus

This is part of my series, useful Linux commands and tips. Nautilus is the official file manager for the GNOME desktop. The name is a play on words, evoking the shell of a nautilus to represent an operating system shell. Like all applications that run under Linux, Nautilus has it’s own command line options. To view the command-line options A…

Read More »

Linux command tips – How to Start and Stop Services in RHEL 5 and CentOS 5

This is part of my series, useful Linux commands and tips. Although there is a great GUI utility to simplify service administration, called Service Confiuration tool, in an environment that favors the command line equivalent, it would also be good to know those commands. These commands will require root level access. Here are the commands: starts the background service stops…

Read More »

Linux command tips – ifconfig

This is part of my series, useful Linux commands and tips. The ifconfig (short for interface configurator), a system administration utility to configure, control, and query TCP/IP network interface parameters, is located in the system’s /sbin directory. /sbin is not usually included in the user’s PATH environment variable. For this reason, when you attempt to execute ifconfig, bash can not…

Read More »

Handling X11 Forwarding Using SSH

This will guide you through the steps to access a Linux server, specifically, a Red hat Enterprise Linux 5.4 or CentOS 5.4 server, through the use of PuTTy and Xming. It is a relatively simple setup that will require only two freeware products and a quick verificatino of setting on the Linux server. With the use of these two tools…

Read More »

Enable the root user in Ubuntu 8.1.0

Many Linux distributions permit the use of the root user as a primary login, however, the dominant and popular Ubuntu has left some users in a conundrum. In order to perform tasks as a root user, this must be performed within a terminal window with the sudo command. However, here are a set of instructions that will allow the root…

Read More »

Use netstat in Linux to determine port conflicts

I installed an application that required port 8080. I was unable to execute the application as port 8080 was already in use. Unable to determine which application, I changed the setting for the application I had just installed to port 8090. Success. However, I still wanted to know if anything was running on port 8080. Like Windows, Linux has a…

Read More »