Category: Tips and Tricks

WordPress: Display Recently Updated Posts with Shortcode

Floating around the Internet is a piece of PHP code that is designed to display recently updated posts/pages in WordPress. For some reason or another, I was unable to get the code to work with the expected results. I attempted to convert the code for use with functions.php and shortcodes with little success. After submitting a request to experts-exchange for…

Read More »

VNC Server Autostart on RHEL5 / CentOS5

The following steps will autostart a VNC server on a Red Hat Enterprise Linux 5.x or CentOS 5.x operating system after a reboot. The Linux user account that needs VNC server to automatically start up after system reboot, must have a VNC password. To create a new (or reset a forgotten) VNC password, just login as root or su (switch…

Read More »

Using YUM package via CentOS online sources in RHEL5

This guide provides the steps to use the YUM package for CentOS on a Red Hat Enterprise Linux 5 installation. Delete current YUM package Find all the YUM packages Delete all yum package,if error cause by dependence ,add –nodeps Download the relative packages Install, verbose, and print hash marks (ivh) Download the CentOS Base Repository Update your system Source: http://www.linuxcream.com/blog/linux-system/linux_redhat/using-yum-package-via-centos-online-sources-in-rhel5/

Read More »

Active@ KILLDISK for DOS

There are a few hard drives that needed to be wiped. I had tested DBAN, a freeware product that has worked successfully over the years and on practically everything I threw at it. There was a situation, once, where I was unable to wipe the hard disk with DBAN. I don’t remember exactly the cause for this inability, however, I…

Read More »

Media Player – How to delete the database

The media library is outdated or the source is no longer available, you would want to delete all the files in the C:\Users\username\AppData\Local\Microsoft\Media Player. However, all but a couple of them remain, one being the likely rather large database. This was the situation on a Windows Vista workstation with SP2. To resolve this, go to your Services through Control Panel…

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

Install MySQL on RHEL5 or CentOS5

To install MySQL server on the Red Hat Enterprise Linux 5 or CentOS5 operating systems is quite simple if you happen to know the correct yum packages. After a little research, this is the quickest and easiest path to get MySQL server up and running. Install MySQL server yum install mysql-server Autostart MySQL server chkconfig –level 2345 mysqld on service…

Read More »

Install Tomcat 5.5.28 on RHEL5 / CentOS5

A recent attempt to install Tomcat5 through the RPM repositories with the statement yum install tomcat5 failed to be as successful to run the application. Also there is a need to run Tomcat with Sun Java JDK not the openJDK that is available through the channels. These are the steps to get Tomcat up and running on a Red Hat…

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 »

A MySql ibdata1 Optimization Technique

A MySql database needed to be removed and upon deletion of that single database, the extremely large three gigabite ibdata1 (data) file remained. Here are the steps I took to reduce or shrink the file once the database was removed. Since there was no other use for this MySql installation, there remained the MySql system databases. Show Databases Backup Databases…

Read More »

IIS 6 Compression – The Quick Way

There are many articles that I’ve come across that detail how to enable gzip compression within IIS 6 on a Windows Server 2003 with the Application Server option enabled nder the Configure My Server 2003 wizard. Gzip compression can compress the output of dynamic webpages (.aspx) and webservices (.asmx). It can reduce the filesize significantly. Here is a series of…

Read More »

Add missing FSMOs the Active Directory

There was a situation where one of the primary domain controllers would not boot and we were forced to upgrade the other domain controller to the primary controller position. This is an AD domain operating on Windows 2003. All references to the failed server were removed from AD. The AD domain seemed to be functioning correctly, until an attempt was…

Read More »