ā‰” Menu

How to use Smart Pointers in C++ with Example Code

In C and C++ programming, pointers are very powerful.

As we explained in C pointers example article, pointers are variables that hold address of another variable so that we can do various operations on that variable.

Sometimes a programmer can’t imagine writing a code without using pointers, whether it is a simple binary search tree program, or a complex enterprise application.

But, pointers are hard to manage, master, and they can cause many problems if not handled properly.

For example, when not properly used, it can cause core dumps, dangling pointer, null pointer exception, memory leaks, etc.
(more…)

HPSA stands for HP Server Automation.

HPSA is used to bring entire server infrastructure (both physical and virtual) under one management to gain full visibility to all your servers and operations.

It can handle multiple server management activities including provisioning on bare metal, software management, patch management, audit remediation, security management,etc.

This article explains major features within SA that can be used to automate your datacenter management.
(more…)

How to Add Memory, vCPU, Hard Disk to Linux KVM Virtual Machine

In our previous article of Linux KVM series, we explained how to Install Linux KVM and create a Guest VM.

But, once you’ve created a Guest VM, you need to know how to perform some of the routine maintenance activities on the VM.

This tutorial will explain how to perform the following Linux KVM VM activities:

  1. Add Memory to VM
  2. Add vCPU to VM
  3. Add Disk to VM
  4. Save VM Configuration
  5. Delete a VM

(more…)

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.
(more…)

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.
(more…)

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)

(more…)

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.
(more…)

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.
(more…)