Category: Reliable Penguin

Exclude Directroy From CPanel Backup

Create cpbackup-exclude.conf in the user’s home directory (/home/user-id) to exclude files from a cPanel backup. This file is only used if you make a complete site back up from cPanel. Here are the basic rules for the content of the file: Each item to skip must be on it’s only line in the file. Directories should not have a trailing slash. Each entry must have the full path to the file or directory.

Read More »

Mount Windows drive share on RHEL5

RHEL5 replaced the old smbmount command with mount.cifs so to mount a shared Windows drive do something like:

Read More »

Reinstall grub in MBR

Two approaches to this. The first is to use the grub-install utility:

The second approach is to use the grub command line: 1. Start the grub command line:

2. Determine the boot device:

You’ll get something like “(hd0,0)”. 3. Tell grub where the root is:

4. Install the MBR:

Read More »

Fix strange characters from pstree on RedHat.

By default on Redhat, the output from pstree is scrambled like this:

There are a couple of ways to clear this up so that it looks like this:

Here are two possible solutions: 1. Use “pstree -G” to force VT100 line drawing 2. Do “export LANG=’en_US’” to change the language from UTF-8 to English

Read More »

Here Doc

A “here document” is a method for specifying a multi-line string literal in many programming languages. Here are some examples: Perl

PHP

Bash

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.