Unlike previous versions, VMs do not have a visible property in the GUI allowing autostart, which kinda sucks big time. This has been claimed to interfere with High Availability (HA) and produced unexpected results during HA functions. So, what we are going to do?! First approach is to set auto_poweron parameter to true at the pool and VM … Continue reading Autostart VM in free version of XenServer 6.x →
In case you don’t have nagios installed, you need to install it as described here After installing nagios, please install the following packages: [codesyntax lang=”bash”] apt-get install autoconf rrdtool perl perl-base perl-modules libcalendar-simple-perl libgd-gd2-perl perlmagick librrds-perl liburi-perl [/codesyntax] Download Nagios Grapher source code: [codesyntax lang=”bash”] wget -c http://downloads.sourceforge.net/project/nagiosgrapher/nagiosgrapher/NagiosGrapher-1.7.1/NagiosGrapher-1.7.1.tar.gz [/codesyntax] Extract the archive [codesyntax lang=”bash”] tar … Continue reading How to install Nagios Grapher on debian squeeze →
1. First we will need to install the prereq’s by running: [codesyntax lang=”bash”] apt-get install apache2 build-essential libgd2-xpm-dev libperl-dev openssl gcc make autoconf automake mailutils libssl-dev libmysqld-dev libmysqlclient-dev libldap2-dev libradiusclient-ng-dev libapache2-mod-php5 libsnmp-perl nfs-common nfs-kernel-server libnet-dns-perl libnet-snmp-perl libdbi-perl libapache2-request-perl libdbd-mysql-perl libcrypt-ssleay-perl mysql-client libnet-tftp-perl snmp [/codesyntax] 2. Adding the Nagios user: [codesyntax lang=”bash”] groupadd -g 9000 nagios … Continue reading How to install nagios3 from source on debian squeeze →
This document describes how boot a Knoppix from PXE Server. I am assuming that you already setup PXE booting BEFORE you start doing this. If you don’t, and you have CentOS please read this page or if you have a Debian/Ubuntu please read this page. We are going to use Knoppix and a NFS server … Continue reading Knoppix – PXE boot install rescue →
This document describes how to configure your CentOS 6.x linux to act as a NFS Server to share any directories on your Network Install required software [codesyntax lang=”bash”] yum install nfs-utils [/codesyntax] Configure NFS server [codesyntax lang=”bash”] vim /etc/idmapd.conf [/codesyntax] # line 5: uncomment and change to your domain name Domain = test.org Configure NFS … Continue reading How to setup a NFS server on CentOS 6 →
This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). On the target machine: [codesyntax lang=”bash”] nc -p 2222 -l | bzip2 -d | dd of=/dev/hdb [/codesyntax] On the source machine: [codesyntax lang=”bash”] bzip2 -c /dev/hda | nc 10.111.1.206 2222 … Continue reading How to clone a running Linux system over network using netcat →
If you can’t login to a server via serial console and you got login: pam_securetty(login:auth): access denied: tty ‘ttyS0’ is not secure ! in logs then you have to add at the end of the file /etc/securetty the following lines: # Standard serial ports ttyS0 ttyS1 For production server I am using a securetty file … Continue reading Enable/Disable login on serial console →
Power [codesyntax lang=”bash”] Lock screen: ctrl + shift + eject Sleep: command + control + eject [/codesyntax] Screen [codesyntax lang=”bash”] Screen capture (whole screen): command + shift + 3 Screen capture (selection): command + shift + 4 Screen capture to clipboard (whole screen): command + control + shift + 3 Screen capture to clipboard (selection): … Continue reading Useful shortcuts →
Assumptions I am assuming that we have two networks linked with a vpn connection (net1: 10.99.0.0/24 and net2: 10.34.132.0/24). Also I am assuming that on net1 is a functional NIS master server. NIS MASTER: nis1.test.org 10.99.0.10 NIS SERVER: nis2.test.org 10.34.132.195 How to setup a NIS client If you put a servername in /etc/yp.conf, make sure … Continue reading How to setup a NIS Slave server on Debian Squeeze →
When you want to install linux on a large number of servers kickstart approach is a very good one. But what about hostname?! You have many choices: A kickstart file for each server, but come on… what kind the choice is this?! A kickstart file for all servers and set hostname after installation (manually on … Continue reading Automatically set the hostname during Kickstart Installation →
I can't memorize much, so I take notes!