Linux

lspci stands for list pci. Think of this command as “ls” + “pci”.

This will display information about all the PCI bus in your server.

Apart from displaying information about the bus, it will also display information about all the hardware devices that are connected to your PCI and PCIe bus.

For example, it will display information about Ethernet cards, RAID controllers, Video cards, etc.
(more…)

MTR stands for My Traceroute.

It is a powerful network diagnostic tool which combines the power of both Ping and Traceroute commands.

It enables administrator to diagnose and isolate network errors and provide helpful network status reports.
(more…)

Git LogoCreating a patch in GIT is a great way to share changes that you are not yet ready to push to a public branch of a project.

To better understand how we will create a patch, lets first discuss a little about how GIT stores changes.

If you are new to GIT, install git and get a jumpstart from this GIT introduction article.

The first time a file is committed to a project in GIT, a copy is stored. For all commits after that, GIT essentially stores instructions telling it how to transform the previous version of the project to the newly committed version.
(more…)

Synergy is an open source network utility which can be used to share one keyboard and mouse with multiple systems.

Synergy utility works on client-server model.

The system whose keyboard and mouse you want to share, runs the synergy server service (synergys), and all the other systems runs the synergy client service (synergyc) to connect to server.
(more…)

If you are developing Java web application, you should consider deploying it on open source JBoss AS Java application server.

This tutorial explains how to install JBoss with SSL support on Linux.
(more…)

How to Create Filesystem Snapshots using Snapper Command on Linux

by Karthikeyan Sadhasivam on March 12, 2014

Snapper is a Linux command-line tool to create and manage snapshots of your filesystems.

Using snapper command, you can create read-only snapshots. You can use these snapshots to restore specific files or all files during any disaster situation.

You can also use it to compare multiple snapshots and revert back to a specific old snapshots.
(more…)

Few GDB Commands – Debug Core, Disassemble, Load Shared Library

by Lakshmanan Ganapathy on March 11, 2014

GDB is an essential tool for programmers to debug their code.

This article explains how you can use gdb to debug a program with the core file, how to display assembly language instructions of your program, and how to load shared library programs for debugging.
(more…)

AppArmor is a Mandatory Access Control or MAC system.

It uses Linux Security Module to restrict programs. AppArmor sets up a collection of default application profiles to protect Linux services.

You can also protect any other applications running on your system by creating profile files yourself.

In Ubuntu, AppArmor is installed and enabled by default. The apparmor profiles get loaded when system starts.
(more…)