Tag: Linux

The Easiest Method To Install Adobe Flash on CentOS/RHEL

This should be easy, install Adobe Flash on a Linux operating system to watch Youtube videos in Firefox. After an hour or so fighting with Adobe Flash, through every method I could find on the Internet, I finally found one that worked, the first time! There are many who write of downloading a compressed file and extracting the needed file…

Read More »

Linux: A Homemade script to monitor your websites

It was discovered days later that one of my websites was offline displaying only 500 error messages. As it turned out, it was as a result of the .htaccess files. The .htaccess files did not include <IfModule XXXXX> </IfModule> around the directives. Tracking down the offending lines, it was determined that the lines were all part of the mod_headers.c module….

Read More »

A Quick Guide to VNC Server on CentOS 6

After searching through several guides, all complete in one way or another, however, not complete enough, I put the pieces together into this guide. This particular configuration is a basic VNC server with two users. After creating the second user, the process can be repeated for additional users. Install the VNC Server Edit the /etc/sysconfig/vncservers file. Note that on the…

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 »

RPM –import vs GPG –import

GPG keys are stored in the /etc/pki/rpm-gpg directory, as part of the CentOS 6/RHEL 6 install. Looking though the contents of this directory, files like RPM-GPG-KEY-CentOS-release exist. To actually use the key to verify packages, it must be imported. The following command provides the contents of /etc/pki/rpm-gpg There are two seemingly independent methods to import the keys: one using gpg,…

Read More »

Vsftpd FTP Server With Virtual Users ( MySQL + PAM )

vsftpd (“Very Secure FTP Daemon”) is an FTP server for Linux and supports PAM (“pluggable authentication modules”). A virtual user cannot login to the Linux system and is considered more secure than using a “real” user whom can login to a Linux system. This guide offers a script that demonstrates yet another way to setup a vsftpd server using PAM…

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 »

Install JBoss on CentOS with Two Scripts

Several years ago, I wrote a set of instructions how to install JBoss on a RHEL / CentOS Linux operating system. Then, the procedure utilized the GUI, mouse clicks, and the terminal. Well, as my comfort level with Linux has grown, so has the instructions into a script. A prerequisite for JBoss is Java JDK. For JBoss 5.1.0.GA, I elected…

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 »

Update Multiple Linux Servers Simultaneously From Windows

Unlike Windows, Linux can be extremely flexible. Have you ever updated multiple Windows servers. It is a daunting task, even when using an automated approach like WSUS or whatever it is called these days. Linux is easier, however, to log into server, and run a simple command can become time-consuming if there are many servers. I have written a script…

Read More »

Use scp command for file transfer in Linux

The goal is to copy files from one Linux computer to another Linux computer. The scp command is the command of choice. To get help, type scp –help, the result is the following usage syntax. Basic syntax is scp source destination on a local Linux computer. However if the source is a remote computer, add the following to the syntax….

Read More »
Linux Logo

Linux server with incorrect date [FIXED]

Every now and again, a server may lose its date and time. One pesky server is continuously using the incorrect date and time. If there was only a way to change the system date. There is, and the easiest way to correct this is by using a simple little command called – date. There are a couple of ways to…

Read More »

How to uninstall Java for LInux

If the native Java for Linux has been installed and the goal is to remove it from the system and install the Oracle Java JDK. Here are the steps to do just that. This is here for reference, I have not fully tested this, in that the installation I was verifying did not have JRE as indicated in the original…

Read More »

How to mount a Windows share from Linux

To access a Microsoft Windows share from a CentOS Linux server there are a few commands that worked for this configuration: Microsoft Windows Server 2003 and CentOS 5.8. This is a quick and dirty guide assumes that a Windows share already exists and uses root. In a production environment, an alternate user would be more appropriate. From the Linux server….

Read More »

Install and Run Beyond Compare 3 on Linux

Scooter Software has a fantastic program called Beyond Compare. It is available in both Windows and Linux. Having used this in Windows, I wanted to give it a shot in Linux. All the instructions are available on the vendor’s website; however, after reading through them, here is a simplified set of instructions. This was a fresh install of CentOS 5.7…

Read More »
Linux Logo

Command to Check if Linux is Running in VMware or not

Only having terminal access to a server running CentOS 5.7, I had to determine if the server was actually a physical or virtual machine. There are a few methods to do this, however, here are a couple of the easier methods. Vendor: VMware Model: Virtual disk Rev: 1.0 Vendor: VMware Model: Virtual disk Rev: 1.0 Vendor: VMware Model: Virtual disk…

Read More »