<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Redhat Linux Blog&#039;s Blog</title>
	<atom:link href="http://redhatlinuxblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://redhatlinuxblog.wordpress.com</link>
	<description>Get Information about Tips &#38; Tricks related to all operating systems like Windows,Unix,Linux etc. Also Know more about amazing things, new innovations &#38; creative ideas.</description>
	<lastBuildDate>Wed, 16 Sep 2009 17:46:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='redhatlinuxblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Redhat Linux Blog&#039;s Blog</title>
		<link>http://redhatlinuxblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://redhatlinuxblog.wordpress.com/osd.xml" title="Redhat Linux Blog&#039;s Blog" />
	<atom:link rel='hub' href='http://redhatlinuxblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Basic commands in Linux &amp; Unix</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/basic-commands-in-linux-unix/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/basic-commands-in-linux-unix/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:46:56 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/2009/09/16/basic-commands-in-linux-unix/</guid>
		<description><![CDATA[adduser ::&#8211; Add a new user arch ::&#8211; Print machine architecture awk ::&#8211; Find and Replace text within file(s) bc ::&#8211; An arbitrary precision calculator language cal ::&#8211;Display a calendar cat ::&#8211;Concatenate files and print on the standard output chdir ::&#8211;Change working directory chgrp ::&#8211;Change the group ownership of files chkconfig ::&#8211;Tool for maintaining the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=40&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>adduser ::&#8211; Add a new user<br />
arch ::&#8211; Print machine architecture<br />
awk ::&#8211; Find and Replace text within file(s)<br />
bc ::&#8211; An arbitrary precision calculator language<br />
cal ::&#8211;Display a calendar<br />
cat ::&#8211;Concatenate files and print on the standard output<br />
chdir ::&#8211;Change working directory<br />
chgrp ::&#8211;Change the group ownership of files<br />
chkconfig ::&#8211;Tool for maintaining the /etc/rc[0-6].d directory hierarchy<br />
chmod ::&#8211;Change the access permissions of files and directories<br />
chown ::&#8211;Change the user and group ownership of files<br />
chroot ::&#8211;Change root directory<br />
cksum ::&#8211;Print CRC checksum and byte counts<br />
clear ::&#8211;Clear terminal screen<br />
cmp ::&#8211;Compare two files<br />
comm ::&#8211;Compare two sorted files line by line<br />
cp ::&#8211;Copy one or more files to another location<br />
cron ::&#8211;Daemon to execute scheduled commands<br />
crontab ::&#8211;Schedule a command to run at a later time<br />
csplit ::&#8211;Split a file into context-determined pieces<br />
cut ::&#8211;Divide a file into several parts<br />
date ::&#8211;Display or change the date &amp; time<br />
dc ::&#8211;Desk Calculator<br />
dd ::&#8211;Data Dump &#8211; Convert and copy a file<br />
df ::&#8211;Display free disk space<br />
diff ::&#8211; Display the differences between two files<br />
diff3 ::&#8211;Show differences among three files<br />
dir ::&#8211;Briefly list directory contents<br />
dircolors ::&#8211; Colour setup for `ls&#8217;<br />
dirname ::&#8211;Convert a full pathname to just a path<br />
du ::&#8211;Estimate file space usage<br />
echo ::&#8211; Display message on screen<br />
ed ::&#8211; A line-oriented text editor (edlin)<br />
egrep ::&#8211;Search file(s) for lines that match an extended expression<br />
eject ::&#8211;Eject CD-ROM<br />
env ::&#8211; Display, set, or remove environment variables<br />
expand ::&#8211; Convert tabs to spaces<br />
expr ::&#8211; Evaluate expressions<br />
factor ::&#8211; Print prime factors<br />
false ::&#8211; Do nothing, unsuccessfully<br />
fdformat ::&#8211; Low-level format a floppy disk<br />
fdisk ::&#8211; Partition table manipulator for Linux<br />
fgrep ::&#8211; Search file(s) for lines that match a fixed string<br />
find ::&#8211; Search for files that meet a desired criteria<br />
fmt ::&#8211; Reformat paragraph text<br />
fold ::&#8211; Wrap text to fit a specified width<br />
format ::&#8211; Format disks or tapes<br />
free ::&#8211; Display memory usage<br />
fsck ::&#8211; Filesystem consistency check and repair<br />
gawk ::&#8211; Find and Replace text within file(s)<br />
grep ::&#8211; Search file(s) for lines that match a given pattern<br />
groups ::&#8211; Print group names a user is in<br />
gzip ::&#8211; Compress or decompress named file(s)<br />
head ::&#8211; Output the first part of file(s)<br />
hostname ::&#8211; Print or set system name<br />
id ::&#8211; Print user and group id&#8217;s<br />
info ::&#8211; Help info<br />
install ::&#8211; Copy files and set attributes<br />
join ::&#8211; Join lines on a common field<br />
kill ::&#8211; Stop a process from running<br />
less ::&#8211; Display output one screen at a time<br />
ln ::&#8211; Make links between files<br />
locate ::&#8211; Find files<br />
logname ::&#8211; Print current login name<br />
lpc ::&#8211; Line printer control program<br />
lpr ::&#8211; Off line print<br />
lprm ::&#8211; Remove jobs from the print queue<br />
ls ::&#8211; List information about file(s)<br />
man ::&#8211; Help manual<br />
mkdir ::&#8211; Create new folder(s)<br />
mkfifo ::&#8211; Make FIFOs (named pipes)<br />
mknod ::&#8211; Make block or character special files<br />
more ::&#8211; Display output one screen at a time<br />
mount ::&#8211; Mount a file system<br />
mv ::&#8211; Move or rename files or directories<br />
nice ::&#8211; Set the priority of a command or job<br />
nl ::&#8211; Number lines and write files<br />
nohup ::&#8211; Run a command immune to hangups<br />
passwd ::&#8211; Modify a user password<br />
paste ::&#8211; Merge lines of files<br />
pathchk ::&#8211; Check file name portability<br />
pr ::&#8211; Convert text files for printing<br />
Printcap ::&#8211; Printer capability database<br />
printenv ::&#8211; Print environment variables<br />
printf ::&#8211; Format and print data<br />
ps ::&#8211; Process status<br />
pwd ::&#8211; Print Working Directory<br />
quota ::&#8211; Display disk usage and limits<br />
quotacheck ::&#8211; Scan a file system for disk usage<br />
quotactl ::&#8211; Set disk quotas<br />
ram ::&#8211; ram disk device<br />
rcp ::&#8211; Copy files between two machines<br />
rm ::&#8211; Remove files<br />
rmdir Remove folder(s)<br />
rpm ::&#8211; Remote Package Manager<br />
rsync ::&#8211; Remote file copy (Synchronize file trees)<br />
screen ::&#8211; Terminal window manager<br />
sdiff ::&#8211; Merge two files interactively<br />
sed ::&#8211; Stream Editor<br />
select ::&#8211; Accept keyboard input<br />
seq ::&#8211; Print numeric sequences<br />
shutdown ::&#8211; Shutdown or restart linux<br />
sleep ::&#8211; Delay for a specified time<br />
sort ::&#8211; Sort text files<br />
split ::&#8211; Split a file into fixed-size pieces<br />
su ::&#8211; Substitute user identity<br />
sum ::&#8211; Print a checksum for a file<br />
symlink ::&#8211; Make a new name for a file<br />
sync ::&#8211; Synchronize data on disk with memory<br />
tac ::&#8211; Concatenate and write files in reverse<br />
tail ::&#8211; Output the last part of files<br />
tar ::&#8211; Tape Archiver<br />
tee ::&#8211; Redirect output to multiple files<br />
test ::&#8211; Evaluate a conditional expression<br />
time ::&#8211; Measure Program Resource Use<br />
touch ::&#8211; Change file timestamps<br />
top ::&#8211; List processes running on the system<br />
traceroute ::&#8211; Trace Route to Host<br />
tr ::&#8211; Translate, squeeze, and/or delete characters<br />
true ::&#8211; Do nothing, successfully<br />
tsort ::&#8211; Topological sort<br />
tty ::&#8211; Print filename of terminal on stdin<br />
umount ::&#8211; Unmount a device<br />
uname ::&#8211; Print system information<br />
unexpand ::&#8211; Convert spaces to tabs<br />
uniq ::&#8211; Uniquify files<br />
units ::&#8211; Convert units from one scale to another<br />
unshar ::&#8211; Unpack shell archive scripts<br />
useradd ::&#8211; Create new user account<br />
usermod ::&#8211; Modify user account<br />
users ::&#8211; List users currently logged in<br />
uuencode ::&#8211; Encode a binary file<br />
uudecode ::&#8211; Decode a file created by uuencode<br />
vdir ::&#8211; Verbosely list directory contents (`ls -l -b&#8217;)<br />
watch ::&#8211; Execute/display a program periodically<br />
wc ::&#8211; Print byte, word, and line counts<br />
whereis ::&#8211; Report all known instances of a command<br />
which ::&#8211; Locate a program file in the user&#8217;s path<br />
who ::&#8211; Print all usernames currently logged in<br />
whoami ::&#8211; Print the current user name<br />
xargs ::&#8211; Execute utility, passing constructed argument list(s)<br />
yes ::&#8211; Print a string until interrupted</p>
<p>From the Desk of Amit Maheshwari</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/40/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/40/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/40/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=40&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/basic-commands-in-linux-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>Booting Process in LINUX, REDHAT, FEDORA</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/booting-process-in-linux-redhat-fedora/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/booting-process-in-linux-redhat-fedora/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:44:07 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/2009/09/16/booting-process-in-linux-redhat-fedora/</guid>
		<description><![CDATA[Understanding Booting Process in LINUX The Booting process is the first process that is executed when you start a Linux system. This process is executed in the following steps: 1. The processor searches for the Basic Input/Output System (BIOS) program in the memory and executes it. BIOS is a program that provides the lowest level [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=39&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Understanding Booting Process in LINUX</p>
<p>The Booting process is the first process that is executed when you start a Linux system.<br />
This process is executed in the following steps: </p>
<p>1. The processor searches for the Basic Input/Output System (BIOS) program in the<br />
memory and executes it. BIOS is a program that provides the lowest level interface to<br />
the devices, such as the hard disk, monitor, and mouse, of the system.  </p>
<p>2. BIOS runs the Power-On Self Test (POST) program, which checks the system<br />
hardware by verifying the hardware configuration information. The program does this<br />
to ensure that all the required hardware devices are present and functioning properly.  </p>
<p>3. BIOS checks the system memory for errors and searches for a bootable device. The<br />
bootable device may either be the hard disk or other bootable devices, such as a CD-<br />
ROM or a diskette drive. The sequence in which BIOS searches for the various<br />
devices for the boot record is called the booting sequence<br />
You can specify the booting sequence by editing the booting sequence information in the<br />
BIOS setup program. To enter the BIOS setup program, you need to press the or<br />
key on the first boot up screen. The boot sequence can be specified as CD-<br />
ROM, C, A, where C represents the hard drive and A represents the diskette drive. In the<br />
preceding boot sequence, BIOS will first search the CD-ROM for the boot record, then<br />
search the hard drive and in the end search the diskette. The following list describes the<br />
sequence in which the boot loader is invoked and loaded: </p>
<p>4. BIOS checks the bootable device for the presence of the Master Boot Record (MBR),<br />
which is the first sector of the bootable device. The MBR is 512 bytes in size and<br />
consists of a boot loader and a partition table. The boot loader contains instructions in<br />
the form of machine code for booting the system. The partition table contains<br />
information about the various partitions of the storage devices, such as the size of the<br />
various partitions and the names of the partitions.  </p>
<p>5. BIOS locates and invokes the boot loader by passing the control of the system to the<br />
Initial Program Loader (IPL), also called the first stage of the boot loader, which is<br />
present in the MBR.  </p>
<p>6. IPL loads the boot loader in the system memory.  </p>
<p>The boot loader takes the control of the system from the IPL when it is loaded into the<br />
memory of the system.</p>
<p>GRUB Configuration File </p>
<p>The GRUB configuration file specifies the various commands that are used to set the<br />
global preferences of the system. The global preferences are the parameters that are not<br />
specific to any operating system and are applicable to the entire menu interface of GRUB.<br />
These preferences are followed by the commands specific to each operating system listed<br />
on the menu interface.  </p>
<p>The default location of grub.conf in the filesystem is /boot/grub/grub.conf. A sample<br />
grub.conf file of a system having RHEL5 is shown below: </p>
<p>default=0<br />
timeout=5<br />
splashimage=(hd0,0)/grub/splash.xpm.gz<br />
hiddenmenu<br />
title Red Hat Enterprise Linux ES (2.6.18-5.EL5)<br />
  root (hd0,0)<br />
  kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet<br />
  initrd /initrd-2.6.18-5.EL5.img </p>
<p>A sample grub.conf file of a system having RHEL5 and Windows XP operating systems<br />
is shown below: </p>
<p>default=0<br />
timeout=5<br />
splashimage=(hd0,0)/grub/splash.xpm.gz<br />
hiddenmenu<br />
title Red Hat Enterprise Linux ES (2.6.18-5.EL5)<br />
  root (hd0,0)<br />
  kernel /vmlinuz-2.6.18-5.EL5  ro root=LABEL=/ rhgb quiet<br />
  initrd /initrd-2.6.18-5.EL5.img<br />
title Windows<br />
rootnoverify (hd0,0)<br />
chainloader +1 </p>
<p>In the preceding grub.conf file the various configuration directives are: </p>
<p>· default: Specifies default operating system to load<br />
· timeout: Specifies the time interval, in seconds, GRUB waits for user to select an<br />
operating system from GRUB menu<br />
· splashimage: Specifies the absolute path of the image shown by GRUB on screen at bootup<br />
· hiddenmenu: Specifies GRUB to hide the menu until user presses a key<br />
· title: Specifies the OS name shown in GRUB menu<br />
· root: Specifies the partition where grub is installed<br />
· kernel: Specifies the absolute path of the kernel file to load and label of root partition<br />
· initrd: Specifies the absolute path of the initial RAM disk</p>
<p>· rootnoverify: Specifies the root partition to be used by GRUB but does not mount the partition<br />
· chainloader: Specifies GRUB to load the file as a chain loader </p>
<p>Created By Amit Maheshwari </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=39&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/booting-process-in-linux-redhat-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Identifying types of Partitions in Linux</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-identifying-types-of-partitions-in-linux/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-identifying-types-of-partitions-in-linux/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:40:02 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-identifying-types-of-partitions-in-linux/</guid>
		<description><![CDATA[Each partition on a hard disk is independent of the other partitions. For example, you can divide a hard disk into two partitions to install two different operating systems. An operating system will use its own partition to store data, independent of any other partition on a hard disk. The various types of partitions in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=38&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Each partition on a hard disk is independent of the other partitions. For example, you can divide a hard disk into two partitions to install two different operating systems. An operating system will use its own partition to store data, independent of any other partition on a hard disk.<br />
The various types of partitions in Linux are: </p>
<p>· Primary partitions<br />
· Logical and extended partitions<br />
· Swap partitions </p>
<p>Each type of partition is assigned a numeric code. This code is automatically generated and has a fixed value. For example, the numerical code of the swap partition is 0&#215;82.<br />
Primary Partitions </p>
<p>When a partition is created on a hard disk for the first time, it is called the primary partition. A hard disk can have a maximum of four primary partitions. From the primary partitions present on the hard disk, only one partition can be subdivided into logical partitions. The partition with the logical partitions is called the extended partition. You can subdivide an extended partition into a maximum of 63 subsections. </p>
<p>The MBR stores the information about all the primary partitions, such as the size of the Partitions in terms of sectors, blocks, and cylinders, and the offset from the zeroth cylinder.</p>
<p>Logical and Extended Partitions :<br />
A hard disk can be divided into a maximum of four primary partitions. Therefore, you can only install four operating systems on a computer. If you want to install more than four operating systems, divide the extended partition into logical partitions.  </p>
<p>A logical partition is similar to a primary partition. Each logical partition consists of a pointer that contains the address of the next logical partition. All the logical partitions of a hard disk need to be contiguous. </p>
<p>The first sector of an extended partition contains a block of partition descriptor, which contains the information about all the logical partitions. Linux imposes a limit on the number of types of partitions on a hard disk and on the number of logical partitions on the hard disk.  </p>
<p>For example, the maximum number of partitions is 63 on an IDE disk and 15 on a SCSI disk.</p>
<p>Swap Partitions :<br />
A process that runs on a system is allocated certain blocks of the RAM, which are known as pages. Linux identifies the pages that a process can access, and stores those pages in the RAM. When the number of processes that run on a computer increases, the kernel releases the space on the RAM. To do this, the kernel writes the inactive pages back to the hard disk. The storage area of the hard disk where the inactive pages are written back is known as the swap space.  </p>
<p>You can specify a swap space as a swap partition, swap file, or a combination of a swap partition and a swap file. A swap partition is a separate division of a hard disk used for storing the pages that are written back from the RAM. A swap file is an ordinary file and is used by an operating system to store the inactive pages from the memory</p>
<p>From the Desk of  Amit Maheshwari</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=38&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-identifying-types-of-partitions-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to install JAVA &#8211; Jre in Fedora Linux</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-install-java-jre-in-fedora-linux/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-install-java-jre-in-fedora-linux/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:37:06 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-install-java-jre-in-fedora-linux/</guid>
		<description><![CDATA[First check latest version of JAVA RUN TIME ENVIRONMENT at http://www.java.com/en/download/linux_manual.jsp Then download Linux (Self-Extracting File) it looks like this jre-6u14-linux-i586.bin (version may be change) now login as a root [root@amit]# mkdir /usr/java ### Create java directory under /usr then mv jre-6u14-linux-i586.bin file to /usr/java/ by following command [root@amit]# mv jre-6u14-linux-i586.bin /usr/java Now make it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=37&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First check latest version of JAVA RUN TIME ENVIRONMENT at http://www.java.com/en/download/linux_manual.jsp</p>
<p>Then download Linux (Self-Extracting File) it looks like this<br />
jre-6u14-linux-i586.bin (version may be change)</p>
<p>now login as a root</p>
<p>[root@amit]# mkdir /usr/java ### Create java directory under /usr</p>
<p>then mv jre-6u14-linux-i586.bin file to /usr/java/ by following command</p>
<p>[root@amit]# mv jre-6u14-linux-i586.bin /usr/java</p>
<p>Now make it executable by using following command</p>
<p>[root@amit /usr/java]# chmod u+x jre-6u14-linux-i586.bin</p>
<p>now simply execute it :</p>
<p>[root@amit /usr/java]# ./jre-6u14-linux-i586.bin</p>
<p>NOTE : it require some packages to be pre-installed like<br />
compat-libstdc++ , gcc, compat-libstdc++</p>
<p>After successfully installation make it compatible with FIREFOX by using :</p>
<p>[root@amit /usr/java]# ln -s /usr/java/jre1.6.0_14/plugin/i386/ns7/libjavaplugin_oji.so /root/.mozilla/plugins/</p>
<p>Now restart your Firefox web Browser and Enjoy&#8230;..</p>
<p>From the Desk of  Amit Maheshwari</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=37&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-install-java-jre-in-fedora-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>Using_mysqldump_Backup_&amp;_Restore_MySQL_Data</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/using_mysqldump_backup__restore_mysql_data/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/using_mysqldump_backup__restore_mysql_data/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:33:04 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/2009/09/16/using_mysqldump_backup__restore_mysql_data/</guid>
		<description><![CDATA[Using mysqldump, you can backup a local database and restore it on a remote database at the same time, using a single command. An examples on how to use mysqldump to backup and restore To backup: # mysqldump -u root -p (database_name) &#62; filename.sql To restore: # mysql -u root -p (databsae_name ) &#60; filename.sql [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=36&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using<strong> mysqldump</strong>, you can backup a local database and restore it on a remote database at the same time, using a single command.<br />
An examples on how to use mysqldump to backup and restore</p>
<p>To backup:      # mysqldump -u root -p (database_name) &gt; filename.sql</p>
<p>To restore:     # mysql -u root -p (databsae_name ) &lt; filename.sql</p>
<p>From the Desk of Amit Maheshwari</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=36&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/using_mysqldump_backup__restore_mysql_data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How do I password-protect my website using .htaccess?</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/how-do-i-password-protect-my-website-using-htaccess/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/how-do-i-password-protect-my-website-using-htaccess/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:13:15 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/2009/09/16/how-do-i-password-protect-my-website-using-htaccess/</guid>
		<description><![CDATA[Htaccess can be used to password-protect directories on your web sites. You can do this Password Protection very easily by using below steps Step 1. Change to the directory that you wish to protect In the following example we wish to protect a directory called pvt in our htdocs directory. [root@amit ]# cd /usr/local/apache2/htdocs/ [root@amit.htdocs] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=35&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Htaccess can be used to password-protect directories on your web sites.<br />
You can do this Password Protection very easily by using below steps<br />
Step 1. Change to the directory that you wish to protect</p>
<p>In the following example we wish to protect a directory called pvt in our htdocs directory.<br />
[root@amit ]# cd /usr/local/apache2/htdocs/<br />
[root@amit.htdocs] # mkdir pvt</p>
<p>Step 2. Create a file named .htaccess<br />
Use your favourite editor to create a file called .htaccess . In the below example we will use vim.<br />
[root@amit.htdocs] # vim .htaccess<br />
Add foloowing lines in .htaccess file<br />
AuthUserFile /usr/local/apache2/conf/.htpasswd #### path of .htpasswd file<br />
AuthName &#8220;My Private Password Protect Directory&#8221; ### title for the username/password input box.<br />
AuthType Basic<br />
Require valid-user amit #### vaild user name</p>
<p>Step 3. Create the .htpasswd file by adding users<br />
[root@amit.htdocs] # htpasswd -c /usr/local/apache2/conf/.htpasswd amit<br />
New password:<br />
Re-type new password:<br />
Adding password for user amit</p>
<p>This creates a file .htpasswd containing the username amit. Then it will be prompted for a password for amit, which will be stored in the .htpasswd file<br />
So, to create a new users and change the password for existing users, switch to the directory that contain .htpasswd, run this commad # htpasswd -c .htpasswd username</p>
<p>Step 4. Set the permissions on your .htaccess and .htpasswd file<br />
Now use chmod command to chage permission of .htaccess &amp; .htpasswd to make it world-readable</p>
<p>[root@amit.htdocs] # chmod 644 /usr/local/apache2/htdocs/pvt/.htaccess<br />
[root@amit.htdocs] # chmod 644 /usr/local/apache2/conf/.htpasswd</p>
<p>Now you done everything !!!!<br />
Now, anytime you attempt to view your password protected directory (pvt ), any file within it, or recursively any subdirectory of it, you will be prompted for a username and password,<br />
From the desk of Amit Maheshwari</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=35&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/how-do-i-password-protect-my-website-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Prevent Yum update of some selected packages in Redhat-Fedora</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-prevent-yum-update-of-some-selected-packages-in-redhat-fedora/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-prevent-yum-update-of-some-selected-packages-in-redhat-fedora/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 17:04:33 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/?p=32</guid>
		<description><![CDATA[It is very Simple to exclude some selected packages not to update while using yum update command All you need to do is add an exclude line to the end of your [main] section in /etc/yum.conf . Your /etc/yum.conf should look something like this: [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 exclude= [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=32&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is very Simple to exclude some selected packages not to update while using <strong>yum update command</strong></p>
<p>All you need to do is add an exclude line to the end of your [main] section in /etc/yum.conf .</p>
<p>Your /etc/yum.conf should look something like this:</p>
<p>[main]</p>
<p>cachedir=/var/cache/yum</p>
<p>keepcache=0</p>
<p>debuglevel=2</p>
<p>logfile=/var/log/yum.log</p>
<p>exactarch=1</p>
<p>obsoletes=1</p>
<p>gpgcheck=1</p>
<p>plugins=1</p>
<p>installonly_limit=3</p>
<p>exclude= hal bash*</p>
<p>This will prevent upgrades of the hal package as well as bash package while using yum update cmd. The list of apps in the exclude should be space sepeated. Shell wildcards ( * ? ) can also be included.</p>
<p>From the desk of  Amit Maheshwari</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=32&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/16/how-to-prevent-yum-update-of-some-selected-packages-in-redhat-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How to connect mssql with php using FEDORA</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/15/how-to-connect-mssql-with-php-using-fedora/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/15/how-to-connect-mssql-with-php-using-fedora/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:33:25 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/?p=24</guid>
		<description><![CDATA[In Linux Freetds Package provide libraries to connect to the MSSQL database, which can be installed with a yum command: # yum install php-mssql the above command asks to install MSSQL extension for PHP, but yum will take care of all the dependencies including Freetds. Once installed you can use a low level tool like [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=24&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:85%;"><img class="alignright" title="Fedora" src="../files/2009/09/fedora_logo.jpg?w=150" alt="Fedora" width="54" height="47" /></span></p>
<p style="text-align:justify;"><span style="font-size:85%;">In Linux Freetds Package provide libraries to connect to the</span><span style="font-size:85%;"> MSSQL database, which can be installed with a yum command:</span></p>
<p style="text-align:justify;color:#3333ff;"><span style="font-size:85%;"><code># yum install php-mssql</code></span></p>
<p style="text-align:justify;"><span style="font-size:85%;">the above command asks to install MSSQL extension for PHP, but yum will take care of all the dependenci</span><span style="font-size:85%;">es including Freetds.</span></p>
<p style="text-align:justify;"><span style="font-size:85%;">Once installed you can use a low level tool like tsql which comes with Freetds to check you setup, but before th</span><span style="font-size:85%;">at edit the Freetds config file (/etc/freetds.conf):</span></p>
<p style="text-align:justify;color:#3333ff;"><span style="font-size:85%;"><code>[root@amit]# vim /etc/freetds.conf<br />
</code></span></p>
<p style="text-align:justify;color:#3333ff;"><span style="font-size:85%;"><code>[MSSQL]</code></span><br />
<span style="font-size:85%;"><code>host = 192.168.1.1<br />
port = 1433<br />
tds version = 8.0</code></span></p>
<p style="text-align:justify;"><span style="font-size:85%;">above is a simple configuration that I use to connect to SQL2005/2000 databases. The braces contain a name (any name you like) to refer to the connection from Linux, and host is the IP of the MSSQL Server, port is the port MSSQL is listening on and the tds version is the TDS Protocol Version to use when connecting with database. Now regarding the port, MAKE SURE that you are connecting to the correct MSSQL port. OK, Lets check with tsql now:</span></p>
<p style="text-align:justify;color:#000099;"><span style="font-size:85%;"><code># tsql -S MSSQL -U user -P pass</code></span></p>
<p style="text-align:justify;"><span style="font-size:85%;">that should give u a prompt like “1&gt;”</span></p>
<p style="text-align:justify;"><span style="font-size:85%;">Now check whether PHP can connect:</span></p>
<p style="text-align:justify;color:#000099;"><span style="font-size:85%;"><code># php -r 'echo mssql_connect("MSSQL","user","pass");'<span style="font-family:Georgia,serif;"><br />
</span></code></span></p>
<p><span style="font-size:85%;">From the desk of <span style="color:#006600;font-style:italic;">Amit Maheshwari</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=24&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/15/how-to-connect-mssql-with-php-using-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
		<item>
		<title>How To Add a Welcome Message for SSH Users</title>
		<link>http://redhatlinuxblog.wordpress.com/2009/09/15/how-to-add-a-welcome-message_for_ssh_users/</link>
		<comments>http://redhatlinuxblog.wordpress.com/2009/09/15/how-to-add-a-welcome-message_for_ssh_users/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 13:14:27 +0000</pubDate>
		<dc:creator>redhatlinuxblog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://redhatlinuxblog.wordpress.com/?p=21</guid>
		<description><![CDATA[Here is a very easy tip on how to add a welcome message for your SSH users If you want that when users connect to your SSH server, they see a banner welcome message after connecting. Then you need to turn on the banner configuration of SSHd in its config file and then create a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=21&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3><a href="http://new-innovation.blogspot.com/2009/09/how-to-add-welcome-message-for-ssh.html"><br />
</a></h3>
<p><span style="font-family:verdana;font-size:85%;">Here is a very easy tip on <span style="font-weight:bold;">how to add a welcome message for your SSH users</span></p>
<p>If you want that when users connect to your SSH server, they see a banner welcome message after connecting. Then you need to turn on the banner configuration of SSHd in its config file and then create a banner file.</p>
<p></span></p>
<p style="font-family:verdana;"><span style="font-size:85%;"><strong><span style="color:#000066;">Step 1</span>:</strong></span></p>
<p style="font-family:verdana;"><span style="font-size:85%;">Create a banner file that contains text you want people to see when connecting to your SSH server.</span></p>
<p style="font-family:verdana;"><span style="font-size:85%;">Create and open the banner file:</span></p>
<p style="color:#000099;font-family:verdana;"><span style="font-size:100%;"><code>[root@amit]# vim /home/username/banner</code></span></p>
<p><span style="font-family:verdana;font-size:85%;">put your message inside it</p>
<p><code>*****************************************************************<br />
*This is a private SSH Server. You are not supposed to be here. *<br />
*Your information has </code><code>been logged and a report</code><code> </code><code>has been emailed </code><code>*<br />
*to the admin </code><code>concerning your unauthorized attempts.</code><code> *<br />
*****************************************************************</p>
<p>then save &amp; quit by using <span style="color:#3333ff;"><span style="font-size:100%;">:wq!</span></p>
<p></span></code></span></p>
<p style="font-family:verdana;color:#000099;"><span style="font-size:85%;"><strong>Step 2:</strong></span></p>
<p style="font-family:verdana;"><span style="font-size:85%;">Edit  /etc/ssh/sshd_config to set a default banner path.</span></p>
<p style="font-family:verdana;color:#000099;"><span style="font-size:100%;"><code>[root@amit]# vi /etc/ssh/sshd_config</code></span></p>
<p style="font-family:verdana;"><span style="font-size:85%;">then add the following to the config file:</span></p>
<p style="font-family:verdana;color:#000099;"><span style="font-size:100%;"><code>Banner /path/to/banner</code></span></p>
<p style="font-family:verdana;"><span style="font-size:85%;">Save the file and quit:<code> <span style="color:#3333ff;font-size:100%;">:wq</span></code></span></p>
<p style="font-family:verdana;color:#000099;"><span style="font-size:85%;"><strong>Step 3:</strong></span></p>
<p style="font-family:verdana;"><span style="font-size:85%;">Restart the sshd server.</span></p>
<p style="font-family:verdana;color:#000099;"><span style="font-size:100%;"><code>[root@amit] # /etc/init.d/sshd restart</code></span></p>
<p style="font-family:verdana;color:#000099;"><span style="font-size:85%;"><strong>Step 4:</strong></span></p>
<p><span style="font-family:verdana;font-size:85%;">Try SSH to your server and check Welcome  banner on login</p>
<p>From the desk of <span style="color:#006600;font-style:italic;">Amit Maheshwari</span></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/redhatlinuxblog.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/redhatlinuxblog.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/redhatlinuxblog.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/redhatlinuxblog.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/redhatlinuxblog.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/redhatlinuxblog.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/redhatlinuxblog.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/redhatlinuxblog.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=redhatlinuxblog.wordpress.com&amp;blog=6981769&amp;post=21&amp;subd=redhatlinuxblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://redhatlinuxblog.wordpress.com/2009/09/15/how-to-add-a-welcome-message_for_ssh_users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7ccee4cb7a3b0cb812dff7a1b1ddaff8?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">redhatlinuxblog</media:title>
		</media:content>
	</item>
	</channel>
</rss>
