≡ Menu

7 Steps to Build a RPM Package from Source on CentOS / RedHat

Sometimes you might have access to an open source application source code but might not have the RPM file to install it on your system.

In that situation, you can either compile the source code and install the application from source code, or build a RPM file from source code yourself, and use the RPM file to install the application.

There might also be a situation where you want to build a custom RPM package for the application that you developed.

This tutorial explains how to build a RPM package from the source code.
[continue reading…]

The first hands-on Linux sysadmin workshop for this year is here.

I’m excited to announce that the registration for the Los Angeles Linux Sysadmin workshop is now open.
[continue reading…]

When you start writing your code in C, C++ or any other programming language, your first objective might be to write a program that works.

After you accomplished that, the following are few things you should consider to enhance your program.

  1. Security of the program
  2. Memory consumption
  3. Speed of the program (Performance Improvement)

[continue reading…]

Question: On my DELL PowerEdge server, in the front panel, I see this error message: W1228 Raid controller battery capacity <24hr error message. But, everything seems to be working fine on the server. What should I do to fix this issue? Is this something I should be worried about?

Answer: In most situations, the solution to the problem is to replace the RAID battery, as it is dying or dead.
[continue reading…]

12 CUPS lpadmin Command Examples to Setup Printers on Linux

CUPS stands for Common UNIX Printing System.

lpadmin is a command line tool used to configure printer and class queues provided by CUPS.

A system running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer. It can also be used to set the server default printer or class.

This tutorial explains how to add a new printer, setup printer options, and manage printers on Linux environment using lpadmin command examples.
[continue reading…]

The 1st live hands-on Linux sysadmin workshop for this year is here.

This time, it will be in Los Angeles. This is two days of hands-on training, where all the participants will work on several well structured lab exercises on a Linux system.
[continue reading…]

How to Configure VMware vSwitch from ESX / ESXi Command Line

In both VMware ESX and ESXi host, vSwitches can be configured either from the GUI or from the command line.

vSwitch is also known as vSphere standard switch.

The CLI configuration are very helpful when you are installing multiple ESX servers and planning to script the vSwitch configuration.

This article explains how to configure vSwitch from CLI using esxcfg-vswitch command examples.
[continue reading…]

How to Delete Old Obsolete and Expired Oracle RMAN Backup

If you are sysadmin, sometimes you might find yourself dealing with Oracle backups.

Apart from taking oracle RMAN backup, you should also understand how to Delete the old backups from the RMAN catalog and from physical filesystem.

If you don’t properly delete obsolete and expired Oracle DB backup from the catalog, it will cause some unnecessary throw error message during backup and also it will take-up space at the filesystem level.

Also, it is not recommended to directly remove the RMAN backup files from the filesystem using Linux rm command.

This tutorial explains how to identify the backups that are obsolete and expired, and how to properly delete them from RMAN.
[continue reading…]