Pages

Linux System Administration Recipes

A Problem-Solution Approach

The job of Linux systems administrator is interrupt-driven and requires constant learning in byte-wise chunks. This book gives solutions to modern problems-even some you might not have heard of-such as scripting LDAP, making Mac clients play nice with Linux servers, and backup, security, and recovery scripts. Author Juliet Kemp takes a broad approach to scripting using Perl and bash, and all scripts work on Debian or Red Hat lineage distributions. Plus, she dispenses wisdom about time management, dealing with desperate colleagues, and how to avoid reinventing the wheel!

Download E-book 



Linux Cookbook 2nd Edition

The Linux Cookbook, 2nd Edition is your guide to getting the most out of Linux. Organized by general task (such as working with text, managing files, and manipulating graphics), each section contains a series of step-by-step recipes that help you to get your work done quickly and efficiently, most often from the command line. Nearly 50 percent larger than the first edition, this new edition includes hundreds of new recipes as well as new sections on package management; file conversion; multimedia; working with sound files (including OGG and MP3); Vi text editing; advanced text manipulation; and more. Perfect as an introduction to Linux, or as a desktop reference for the seasoned user. Covers the major Linux distributions.



Introduction to Systemd




Systemd is a system and service manager for Linux operating systems. It is designed to be backwards compatible with SysV init scripts, and provides a number of features such as parallel startup of system services at boot time, on-demand activation of daemons, support for system state snapshots, or dependency-based service control logic.

How to Add / Remove Static route in a RHEL



List all the current static routes

# route -n

Add a route to the network 192.56.76.x via "eth1"

# route add -net 192.56.76.0 netmask 255.255.255.0 dev eth1

Add a route to a host 192.168.76.10 via "eth1"

How to Remove a LUN online


To remove a LUN on-line follow the below steps 

Identify the LUN that need to be removed

# lsscsi -g
[3:0:0:0]    storage HP       HSV300           1000  -         /dev/sg0
[3:0:0:1]    disk    HP       HSV300           1000  /dev/sda  /dev/sg1
[4:0:0:0]    disk    HP       HSV300           1000  /dev/sdb  /dev/sg2

Or use the Command sg_map ( sg_map is part of optional package sg3utils )