<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6173438740176066307</atom:id><lastBuildDate>Fri, 30 Aug 2024 02:48:30 +0000</lastBuildDate><category>KickStart Server in RHEL 5.0</category><title>Linux Tech</title><description></description><link>http://linuxnewgen.blogspot.com/</link><managingEditor>noreply@blogger.com (Mugu)</managingEditor><generator>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6173438740176066307.post-3487517055123634533</guid><pubDate>Sun, 12 Dec 2010 18:52:00 +0000</pubDate><atom:updated>2010-12-12T10:53:53.096-08:00</atom:updated><title>enable and disable CPU in RHEL</title><description>&lt;div style="color: #0b5394;"&gt;&lt;br /&gt;
&lt;b&gt;Release:&lt;/b&gt;&lt;/div&gt;RedHat Enterprise Linux Server 5&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Problem:&lt;/b&gt;&lt;/div&gt;Need to disable and enable the processor&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;div style="color: #0b5394;"&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
1) To disable the cpu use the below command&lt;br /&gt;
&lt;br /&gt;
&lt;b style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# echo 0 &amp;gt; /sys/devices/system/cpu/cpuX/online&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Note:&lt;/u&gt; &lt;i&gt;Here X indicates the cpu number&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) To enable the cpu use the below command&lt;br /&gt;
&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;b&gt;# echo 1 &amp;gt; /sys/devices/system/cpu/cpuX/online&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;
3) To&amp;nbsp; check the number of cpu in a server use the below command&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;# grep "processor" /proc/cpuinfo | wc -l&lt;/span&gt;&lt;/b&gt;</description><link>http://linuxnewgen.blogspot.com/2010/12/enable-and-disable-cpu-in-rhel.html</link><author>noreply@blogger.com (Mugu)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6173438740176066307.post-6520598229980490955</guid><pubDate>Wed, 24 Nov 2010 19:07:00 +0000</pubDate><atom:updated>2010-11-24T11:07:22.895-08:00</atom:updated><title>Enable Telnet in RHEL</title><description>Release:&lt;br /&gt;
RedHat Enterprise Linux&lt;br /&gt;
&lt;br /&gt;
Problem:&lt;br /&gt;
Enable Telnet Service in RHEL&lt;br /&gt;
&lt;br /&gt;
Solution:&lt;br /&gt;
&lt;br /&gt;
1) Install the telnet RPMs&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #yum install telnet-server&lt;/div&gt;&lt;br /&gt;
2) Enable the telnet service from the /etc/xinetd.d/telnet file&lt;br /&gt;
&amp;nbsp;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # vi /etc/xinetd.d/telnet&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&lt;br /&gt;
&lt;/div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; In this file change &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;"disable = yes"&lt;/span&gt; to "&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;no"&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
3) Restart the service&lt;br /&gt;
&amp;nbsp; &lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # service xinetd restart&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
4) Check the connection from the client side&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;</description><link>http://linuxnewgen.blogspot.com/2010/11/enable-telnet-in-rhel.html</link><author>noreply@blogger.com (Mugu)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6173438740176066307.post-90767301773430689</guid><pubDate>Fri, 15 Jan 2010 05:14:00 +0000</pubDate><atom:updated>2010-01-14T21:18:41.078-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">KickStart Server in RHEL 5.0</category><title>KickStart</title><description>Automating Installation with Kickstart&lt;br /&gt;&lt;br /&gt;Objective:&lt;br /&gt;            operating system installations via a network connection using a Kickstart server. It is frequently much faster than using CDs and the process can be automated.&lt;br /&gt;&lt;br /&gt;OS Details:&lt;br /&gt;&lt;br /&gt;Kernel Version : 2.6.16-8.el5&lt;br /&gt;&lt;br /&gt;Pre-Requisites:&lt;br /&gt;&lt;br /&gt;1)      RHEL5.0 Installed and following services should be running.&lt;br /&gt;&lt;br /&gt;(a)  dhcpd&lt;br /&gt;(b)  nfs&lt;br /&gt;(c)  portmap&lt;br /&gt;(d)  nfslock&lt;br /&gt;     &lt;br /&gt;&lt;br /&gt;2)      The following files need to be edited&lt;br /&gt;&lt;br /&gt;(a)  /etc/dhcpd.conf&lt;br /&gt;(b)  /etc/exports&lt;br /&gt;(c)  /data/install/kickstart/ks.cfg&lt;br /&gt;&lt;br /&gt;Test Setup Details:&lt;br /&gt;IP address:       151.8.99.21&lt;br /&gt;Subnet mask:   255.255.0.0&lt;br /&gt;Hostname:        station&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Configuration:&lt;br /&gt;&lt;br /&gt;1.      Configure the network and provide the appropriate IP address and Host name. (In my case IP address: 151.8.99.21; Net mask: 255.255.0.0 hostname: station)&lt;br /&gt;&lt;br /&gt;2.      Create the directories to copy the necessary files&lt;br /&gt;&lt;br /&gt;#mkdir –p /data/install/ISO&lt;br /&gt;#mkdir /data/install/kickstart&lt;br /&gt;3.       Create ISO images of the installation CDs and place them in the /data/install/ISO directory.&lt;br /&gt;#cd /data/install/ISO&lt;br /&gt;#mount /dev/cdrom /mnt&lt;br /&gt;#mkisofs –J –r –T –o RHEL-disc1.iso /mnt&lt;br /&gt;#umount /mnt&lt;br /&gt;&lt;br /&gt;Second CD&lt;br /&gt;                        #mount /dev/cdrom /mnt&lt;br /&gt;                        #mkisofs –J –r –T –o RHEL-disc2.iso /mnt&lt;br /&gt;                        #umount /mnt&lt;br /&gt;&lt;br /&gt;Third CD&lt;br /&gt;&lt;br /&gt;                        #mount /dev/cdrom /mnt&lt;br /&gt;                        #mkisofs –J –r –T –o RHEL-disc3.iso /mnt&lt;br /&gt;                        #umount /mnt&lt;br /&gt;&lt;br /&gt;Fourth CD&lt;br /&gt;&lt;br /&gt;                        #mount /dev/cdrom /mnt&lt;br /&gt;                        #mkisofs –J –r –T –o RHEL-disc4.iso /mnt&lt;br /&gt;                        #umount /mnt&lt;br /&gt;&lt;br /&gt;Fifth CD&lt;br /&gt;&lt;br /&gt;                        #mount /dev/cdrom /mnt&lt;br /&gt;                        #mkisofs –J –r –T –o RHEL-disc5.iso /mnt&lt;br /&gt;                        #umount /mnt&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4.      Add the following entries in /etc/exports file&lt;br /&gt;&lt;br /&gt;#vi /etc/exports&lt;br /&gt;  /data/install                        *(ro,sync)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;5.      Make sure that the portmap, nfs, and nfslock daemons are all running to create an NFS server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;6.      Run the exportfs command to add this directory to the NFS database of network available directories.&lt;br /&gt;&lt;br /&gt;#exportfs –a&lt;br /&gt;&lt;br /&gt;7.      The installation client will prompt you for the IP address that should use for the installation process.  This is done by using DHCP server.&lt;br /&gt;&lt;br /&gt;#cp /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample /etc/dhcpd.conf&lt;br /&gt;&lt;br /&gt;#vi /etc/dhcpd.conf&lt;br /&gt;&lt;br /&gt;ddns-update-style interim;&lt;br /&gt;ignore client-updates;&lt;br /&gt;&lt;br /&gt;subnet &lt;span style="color:#6600cc;"&gt;151.8.0.0&lt;/span&gt; netmask &lt;span style="color:#6633ff;"&gt;255.255.0.0&lt;/span&gt; {&lt;br /&gt;&lt;br /&gt;# --- default gateway&lt;br /&gt;        option routers                                &lt;span style="color:#6633ff;"&gt;151.8.99.21&lt;/span&gt;;&lt;br /&gt;        option subnet-mask                       &lt;span style="color:#6633ff;"&gt;255.255.0.0&lt;/span&gt;;&lt;br /&gt;&lt;br /&gt;        option nis-domain                         "domain.org";&lt;br /&gt;        option domain-name                    "domain.org";&lt;br /&gt;        option domain-name-servers      192.168.1.1;&lt;br /&gt;        option time-offset                          -18000; # Eastern Standard Time&lt;br /&gt;#       option ntp-servers                        192.168.1.1;&lt;br /&gt;#       option netbios-name-servers     192.168.1.1;&lt;br /&gt;# --- Selects point-to-point node (default is hybrid). Don't change this unless&lt;br /&gt;# -- you understand Netbios very well&lt;br /&gt;#       option netbios-node-type 2;&lt;br /&gt;&lt;br /&gt;        range dynamic-bootp &lt;span style="color:#6633ff;"&gt;151.8.99.22 151.8.99.29&lt;/span&gt;;&lt;br /&gt;        default-lease-time 21600;&lt;br /&gt;        max-lease-time 43200;&lt;br /&gt;        &lt;span style="color:#6633ff;"&gt;filename "/data/install/kickstart/ks.cfg";&lt;br /&gt;        next-server 151.8.99.21;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;        # we want the nameserver to appear at a fixed address&lt;br /&gt;        host ns {&lt;br /&gt;                next-server marvin.redhat.com;&lt;br /&gt;                hardware ethernet 12:34:56:78:AB:CD;&lt;br /&gt;                fixed-address 207.175.42.254;&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8.      Create a customized kickstart configuration file by using “ Applications à Systems Tools à Kickstart”. Save this file (File à Save) to /data/install/kickstart directory.&lt;br /&gt;&lt;br /&gt;#vi /data/install/kickstart/ks.cfg&lt;br /&gt;&lt;br /&gt;#platform=x86, AMD64, or Intel EM64T&lt;br /&gt;# System authorization information&lt;br /&gt;auth  --useshadow  --enablemd5&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;key --skip&lt;/span&gt;&lt;br /&gt;# System bootloader configuration&lt;br /&gt;bootloader --location=mbr&lt;br /&gt;# Partition clearing information&lt;br /&gt;clearpart --all --initlabel&lt;br /&gt;# Use graphical install&lt;br /&gt;graphical&lt;br /&gt;# Firewall configuration&lt;br /&gt;firewall --disabled&lt;br /&gt;# Run the Setup Agent on first boot&lt;br /&gt;firstboot --disable&lt;br /&gt;# System keyboard&lt;br /&gt;keyboard us&lt;br /&gt;# System language&lt;br /&gt;lang en_US&lt;br /&gt;# Installation logging level&lt;br /&gt;logging --level=info&lt;br /&gt;# Use NFS installation media&lt;br /&gt;nfs --server=151.8.99.21 --dir=/data/install/ISO&lt;br /&gt;# Network information&lt;br /&gt;network --bootproto=dhcp --device=eth0 --onboot=on&lt;br /&gt;#Root password&lt;br /&gt;rootpw  eso123&lt;br /&gt;&lt;br /&gt;# SELinux configuration&lt;br /&gt;selinux --disabled&lt;br /&gt;# System timezone&lt;br /&gt;timezone  Asia/Calcutta&lt;br /&gt;# Install OS instead of upgrade&lt;br /&gt;install&lt;br /&gt;# X Window System configuration information&lt;br /&gt;xconfig  --defaultdesktop=GNOME --depth=8 --resolution=800x600&lt;br /&gt;# Disk partitioning information&lt;br /&gt;part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100&lt;br /&gt;part / --bytes-per-inode=4096 --fstype="ext3" --size=10000&lt;br /&gt;part swap --bytes-per-inode=4096 --fstype="swap" --size=512&lt;br /&gt;&lt;span style="color:#6633ff;"&gt;%packages&lt;br /&gt;@GNOME Desktop Environment&lt;br /&gt;@editors&lt;br /&gt;@graphics&lt;br /&gt;@Text-based Internet&lt;br /&gt;@Development Tools&lt;br /&gt;@FTP Server&lt;br /&gt;@Administration Tools&lt;br /&gt;@base&lt;br /&gt;@java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;           &lt;br /&gt;9.      Need either a bootable CD or bootable diskette for client installation. Boot from CD or diskette and start the kickstart installation by “boot: ks”.</description><link>http://linuxnewgen.blogspot.com/2010/01/kickstart.html</link><author>noreply@blogger.com (Mugu)</author><thr:total>0</thr:total></item></channel></rss>