Category: Linux

Unregister a Host from RHN Spacewalk

If yum updates or yum anything provides a network error or if you simply want to unregister the system from a managed server like RHN Classic, Red Hat Satellite, Katello, or Spacewalk, there is a only one file in the way. If presented with an error similar to this: To resolve delete one file. or gzip them temporarily. To revert…

Read More »

How to increase yum download speeds

A method to increase the yum download speed is to install the yum-plugin-fastestmirror yum plugin. While this in itself increases the download speeds and decreases the download times, there is yet another plugin to be added. An article titled, Turbo Charge Yum with Fastest Mirror and AxelGet Plugins, provided the foundation for this script to simplify the installation and configuration…

Read More »

Create a service for JIRA for Linux

Atlassian JIRA is a bug and issue tracker. Atlassian JIRA lets you priorities, assign, track, report and audit issues from software bugs, helpdesk tickets, project tasks to change requests. On a CentOS 6.5 Linux install, an instance of JIRA was installed. Upon completion, a service to automate the start, stop, restart, and status needed to be created manually. One of…

Read More »

Use blkid or lsblk to display UUID

Knowing the UUID (“Universally Unique Identifier”) of a device is important in the event of creating a permanent mount point using /etc/fstab. Of course, the name of the device may be used, however, using the UUID is the current trend. There are benefits to this trend. The identifier will likely not be used by anything else so that there will…

Read More »

The yum grouplist command

The yum grouplist command can identify available package groups from the configured repositories. However, through a terminal window, the list is considerable when the language support is factored into the equation. For a Linux CentOS 6.4 x86_64 install, there are 206 package groups. Here are a few commands that may help. To determine the number of package groups that exist….

Read More »

Configure sftp with /home chroot

While there are many resources dedicated to this very configuration, it was difficult to make any one of them work. The current configuration is CentOS 6.5. Here is the script to get a fully-functional sFTP server with chroot using the /home directories.

Read More »

Linux List Partitions with fdisk

There are several commands that may be used to list the partitions of a Linux computer. Likely the most common one is the fdisk command. While it fdisk command is capable of just about anything, I am not always in the need to see all the information that listing the partitions provides, particularly when there are many partitions. So, I…

Read More »

Match empty lines and commented lines using grep

An example of a configuration file with many commented lines is /etc/sysctl.conf. If you wanted to display the contents of the file without the commented lines, the following command may be issued. However the resulting contents will be displayed with the remaining blank lines. To get around this one of a couple of commands may be issued. Source(s) http://stackoverflow.com/questions/18566169/match-empty-lines-in-a-file-grep http://stackoverflow.com/questions/3432555/remove-blank-lines-with-grep

Read More »

Install Adobe Reader on CentOS 6.5

While perusing through the Internet, I found this site called iF !1 0 “If Not True then False“. I found this write-up on how to install Adobe Reader on one of many different flavors on Linux. I couldn’t pass up on this, since I was in the hunt for Adobe Reader. The process worked great, so here is my slight…

Read More »

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 »

Embed an Image Into A Shell Script

Instead of having to distribute an image file with a shell script that called for the file, an idea came to mind to embed the image into the shell script. Although one way was found, I devised an alternate simpler method to distribute the image file embedded in the script. The first method uses four lines of code. This method…

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 »

Hyperic Server init Script to Autostart

Hyperic is a tool that offers visibility into applications and infrastructure across physical, virtual, and cloud environments. It consolidates discovery, monitoring, analysis and control of application, system, and network assets. Hyperic is available as vFabric Hyperic, the commercial version, and as Hyperic HQ, the open-source version. While similar, vFabric Hyperic offers additional features over the open source version. What this…

Read More »