Spacewalk Installation Step by Step


To evaluate Spacewalk, I have installed it in my lab. Spacewalk Server: RHEL01 (RHEL5.5/ 1vCPU/ 2G vRAM/ 20G vHDD) Spacewalk Client:  RHEL02 (RHEL5.5/ 1vCPU/ 1G vRAM/ 8G vHDD) Install Spacewalk Server 1) Install the Spacewalk Server yum repo rpm -Uvh http://spacewalk.redhat.com/yum/1.8/RHEL/5/i386/spacewalk-repo-1.8-4.el5.noarch.rpm 2) Install EPEL yum repo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm 3) Install Spacewalk server and its dependencies yum … Continue reading Spacewalk Installation Step by Step

Compile Linux Kernel in Ubuntu


The new Linux kernel 3.7.9 has been released last week. Here is how I compiled it in my Ubuntu laptop.1) Install the prerequisites.jchen@JC:~$ sudo apt-get install git-core libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev linux-source libncurses5 libncurses5-dev fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge kernel-package2) Check the current kernel version.jchen@JC:~$ uname -r3.5.0-25-generic3) Download the kernel 3.7.9jchen@JC:~/Downloads$ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.7.9.tar.bz24) … Continue reading Compile Linux Kernel in Ubuntu

Puppet Remote Execution Configuration Example


1) Download a file node "UT-9c8e99e3959e"{ exec { "download": command => "/usr/bin/wget http://jackiechen.org -O /tmp/test_directory/jc"} } Example: generic@UT-9c8e99e3959e:/tmp/test_directory$ ls generic@UT-9c8e99e3959e:/tmp/test_directory$ sudo puppet agent --test info: Caching catalog for ut-9c8e99e3959e info: Applying configuration version '1361676600' notice: /Stage[main]//Node[ut-9c8e99e3959e]/Exec[download]/returns: executed successfully notice: Finished catalog run in 1.83 seconds generic@UT-9c8e99e3959e:/tmp/test_directory$ ls jc 2) Output to a file node "UT-9c8e99e3959e"{ … Continue reading Puppet Remote Execution Configuration Example

Puppet Host File Configuration Example


1) Add a new host entry node "UT-9c8e99e3959e"{ host { 'ntp.my.lab': ip => '1.1.1.1', host_aliases => 'time',} } Example: generic@UT-9c8e99e3959e:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.0.1 UT-9c8e99e3959e generic@UT-9c8e99e3959e:~$ sudo puppet agent --test info: Caching catalog for ut-9c8e99e3959e info: Applying configuration version '1361667399' notice: /Stage[main]//Node[ut-9c8e99e3959e]/Host[ntp.my.lab]/ensure: created info: FileBucket adding {md5}4a09e9bcef41c5b11f2f9cd84d4226df notice: Finished catalog run in 0.02 seconds … Continue reading Puppet Host File Configuration Example