<?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/"
	>

<channel>
	<title>Unix Tutorial &#187; RedHat</title>
	<atom:link href="http://www.unixtutorial.org/category/linux/redhat/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.unixtutorial.org</link>
	<description>Learn UNIX</description>
	<lastBuildDate>Wed, 03 Mar 2010 22:55:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How To Disable IPv6 in Red Hat Linux</title>
		<link>http://www.unixtutorial.org/2009/12/how-to-disable-ipv6-in-red-hat-linux/</link>
		<comments>http://www.unixtutorial.org/2009/12/how-to-disable-ipv6-in-red-hat-linux/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 10:37:45 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=621</guid>
		<description><![CDATA[Since it may be a while before I'm ready to use the IPv6 on my systems, I've been disabling IPv6 on most servers so far. And since there's a particularly elegant way of doing this in Red Hat Linux, I think it's worth sharing. How to confirm if IPv6 is running on your system IPv6 [...]]]></description>
			<content:encoded><![CDATA[<p>Since it may be a while before I'm ready to use the <strong>IPv6 </strong>on my systems, I've been disabling IPv6 on most servers so far. And since there's a particularly elegant way of doing this in Red Hat Linux, I think it's worth sharing.</p>
<h3>How to confirm if IPv6 is running on your system</h3>
<p><strong>IPv6 </strong>is implemented as a kernel module, so you can use the <strong>lsmod </strong>command to confirm if it's currently running on your Red Hat system:</p>
<pre>$ <strong>lsmod | grep ip</strong>
ipv6                  410913  36</pre>
<p>If <strong>lsmod </strong>doesn't return anything, it confirms that your system isn't running IPv6.</p>
<h3>Prevent IPv6 from getting started by modprobe</h3>
<p>As you probably know, modprobe command is used for probing modules upon system boot. Probing simply means a module is loaded and an attempt is made to start it up. With any luck, the module starts successfully and its functionality becomes available to the Linux kernel.</p>
<p>For the boot stage, modprobe uses a special config file which helps you control its behavior: <strong>/etc/modprobe.conf</strong>. For now, let's just concentrate on the <strong>IPv6</strong> task at hand. To make sure modprobe doesn't load the actual module next time your OS reboots, add the following line to the top of the <strong>/etc/modprobe.con</strong>f file (yes, you're going to need root privileges for this):</p>
<pre>install ipv6 /bin/true</pre>
<p><strong>WHY THIS WORKS</strong>: just to quickly explain the line above, here's why we're using the <strong>/bin/true</strong> command. install is rule of the modprobe config file which overrides the standard way of probing a module. Effectively, it tells modprobe to just run the specified command for starting a module. In the line above, we're telling modprobe to use the <strong>/bin/true</strong> command for probing the <strong>ipv6 </strong>module. And as you remember, <strong>/bin/true</strong> is a command which doesn't do anything but still returns a successful completion code &#8211; so in effect we're doing nothing instead of loading the <strong>ipv6 </strong>module, and we're looking good while doing this too.</p>
<p>Next, add the the following two lines to the same <strong>/etc/modprobe.conf</strong> file, and they will ensure that common aliases used for starting the <strong>IPv6 </strong>module are ignored by modprobe:</p>
<pre>alias net-pf-10 off
alias ipv6 off</pre>
<p><strong>IMPORTANT</strong>: These change doesn't immediately disable <strong>IPv6 </strong>on your system. Being a pretty important module, IPv6 isn't easy to disable on a live system, and so the easiest is to always follow the changes above with a reboot.</p>
<h3>Make sure your IPv6 firewall is disabled</h3>
<p>The <strong>ip6tables </strong>service (<strong>/etc/init.d/ip6tables</strong> sciprt) is responsible for starting <strong>IPv6 </strong>firewall, and so you probably want to disable it:</p>
<pre># <strong>chkconfig ip6tables off</strong></pre>
<p>and then confirm that it won't be started next time you reboot or switch to any runlevel:</p>
<pre># <strong>chkconfig --list ip6tables</strong>
ip6tables       0:off   1:off   2:off   3:off   4:off   5:off   6:off</pre>
<p>That's it, there really is nothing else to disabling <strong>IPv6</strong>. Let me know if you have any questions, otherwise I'll talk to you soon!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/12/how-to-disable-ipv6-in-red-hat-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Confirm if Your CPU is 32bit or 64bit</title>
		<link>http://www.unixtutorial.org/2009/05/how-to-confirm-if-your-cpu-is-32bit-or-64bit/</link>
		<comments>http://www.unixtutorial.org/2009/05/how-to-confirm-if-your-cpu-is-32bit-or-64bit/#comments</comments>
		<pubDate>Fri, 08 May 2009 08:03:49 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[cpuinfo]]></category>
		<category><![CDATA[uname]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=549</guid>
		<description><![CDATA[I had to download a piece of software today for one of the servers which I haven't used in a while. A question of confirming the 64bit CPU capability came up, and I realized that I never mentioned it here on Unix Tutorial. Some of you probably remember the uname command which also shows you [...]]]></description>
			<content:encoded><![CDATA[<p>I had to download a piece of software today for one of the servers which I haven't used in a while. A question of confirming the 64bit CPU capability came up, and I realized that I never mentioned it here on <a title="Unix Tutorials" href="http://www.unixtutorial.org"><strong>Unix Tutorial</strong></a>.</p>
<p>Some of you probably remember the <a title="uname command" href="http://www.unixtutorial.org/uname"><strong>uname command</strong></a> which also shows you similar information, but <strong>uname </strong>confirms the running kernel of your OS and not the CPU capability: if you're booted into 32bit mode, it will not help you to recognize the 64bit potential of your system.</p>
<h3>Obtaining CPU information from /proc/cpuinfo</h3>
<p>Most Linux distros will have the special <strong>/proc/cpuinfo</strong> file which contains a textual description of all the features your processors have. This is a very useful file &#8211; depending on your task it may help you identify any features of your processors, as well as confirm the overall number of CPUs your system has installed.</p>
<p>Most commonly, the following information is obtained from <strong>/proc/cpuinfo</strong>:</p>
<ul>
<li>processor model name and type</li>
<li>processor speed in Mhz</li>
<li>processor cache size</li>
<li>instruction flags supported by CPU</li>
</ul>
<p>Here's how the typical output will look:</p>
<pre>processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 4
model name      :                   Intel(R) Xeon(TM) CPU 3.20GHz
stepping        : 3
cpu MHz         : 3192.320
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts
acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
bogomips        : 6388.78
clflush size    : 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:</pre>
<p>The same block of information will be shown for each CPU visible to your system. There will be 2 processor instances for each physical CPU if hyper-treading is enabled, and there will be 2 or 4 processor entries for each physical CPU on dual- and quad-core systems configurations.</p>
<h3>How to confirm the 64bit capability of your CPU in Linux</h3>
<p>Based on<strong> /proc/cpuinfo</strong> file, it is quite easy to confirm whether your CPU is capable of 64bit or not. All you have to do is look at the flags which tell you what instruction sets your CPU is capable of.</p>
<p>All  the CPUs on your system will have the same type and therefore support the same instruction sets, that's why in this example the grep command returns 4 similar lines &#8211; for the 4 CPU instances found on my system:</p>
<pre>newserver# <strong>grep flags /proc/cpuinfo</strong>
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm pni monitor ds_cpl cid cx16 xtpr</pre>
<p>What you're looking for is the following flag: <strong>lm</strong>. It stands for <strong>X86_FEATURE_LM</strong>, the Long Mode (64bit) support. If you can find the "<strong>lm</strong>" flag among your CPU flags, this means you're looking at a 64bit capable processor.</p>
<p>As you can see from the example about, the processors in question are 64bit capable.</p>
<p>And this is how <strong>/proc/cpuinfo</strong> will look on an older system with only 32bit capable CPUs, there's no lm flag as you can see:</p>
<pre>oldserver# <strong>grep flags /proc/cpuinfo</strong>
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm</pre>
<p>That's it, hope this little tip helps you next time you're puzzled about your CPU capabilities!</p>
<h3>See also:</h3>
<ul>
<li><strong><a title="32bit deb on 64bit system" href="http://www.unixtutorial.org/2008/03/install-32-bit-deb-packages-on-64-bit/">How to install and run 32bit packages on 64bit Debian system</a></strong></li>
<li><strong><a title="uname - useful information about your Unix system" href="http://www.unixtutorial.org/commands/uname/">Confirming whether you're using a 64bit OS</a></strong></li>
<li><strong><a title="Unix Glossary" href="http://www.unixtutorial.org/glossary">Unix Glossary</a><br />
</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/05/how-to-confirm-if-your-cpu-is-32bit-or-64bit/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To Check if Any Users Were Added or Deleted on Your Linux System</title>
		<link>http://www.unixtutorial.org/2009/01/how-to-check-if-any-users-were-added-or-deleted-on-your-linux-system/</link>
		<comments>http://www.unixtutorial.org/2009/01/how-to-check-if-any-users-were-added-or-deleted-on-your-linux-system/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 00:54:27 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Advanced topics]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=345</guid>
		<description><![CDATA[Yesterday in my post on numeric userids instead of usernames, I touched briefly the problem of recovering the username if you only know the userid it once had. Today I would like to show you another option which may be available to you when it comes to recovering the usernames of removed users by their [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday in my post on <a title="numeric userids i unix" href="http://www.unixtutorial.org/2009/01/what-to-do-if-numeric-id-is-shown-instead-of-unix-username/">numeric userids instead of usernames</a>, I touched briefly the problem of recovering the username if you only know the userid it once had. Today I would like to show you another option which may be available to you when it comes to recovering the usernames of removed users by their userid.</p>
<h3>useradd and userdel logs in Ubuntu</h3>
<p>Both <strong>useradd </strong>and userdel commands keep logs in many Unix-like systems. This means that every newly created user gets the whole procedure documented in appropriate logs with lines similar to this (it's an Ubuntu example, <strong>/var/log/auth.log</strong> file):</p>
<pre>Jan  6 04:24:27 simplyunix useradd[1456]: new group: name=mike, GID=1006
Jan  6 04:24:27 simplyunix useradd[1456]: new user: name=mike, UID=1006, GID=1006, home=/home/mike, shell=/bin/sh</pre>
<p>Similarly, deleting a file doesn't go unnoticed neither:</p>
<pre>Jan  6 04:29:21 simplyunix userdel[1516]: delete user `mike'
Jan  6 04:29:21 simplyunix userdel[1516]: delete `mike' from group `admin'
Jan  6 04:29:21 simplyunix userdel[1516]: removed group `mike' owned by `mike'</pre>
<p>So, there's a chance that by simply going through /var/log/auth.log you will find the userid of a local Unix user which was recently removed. But the reason I won't say "there's a really good chance" is because most of the logs in /var/log are rotated on a weekly and monthly basis, and this means the information about new users created or deleted may not be there at the time you go looking for it &#8211; anyone who was added or deleted more than few months ago will not show up.</p>
<h3>useradd and userdel in RedHat Enterprise Linux</h3>
<p>Similar to Ubuntu, you can find recent user management activity logged in RHEL system, in /var/log/secure file.</p>
<p><strong>useradd </strong>will produce something link this:</p>
<pre>Jan  8 00:18:36 rhel5 useradd[2674]: new group: name=newuser, GID=501
Jan  8 00:18:36 rhel5 useradd[2674]: new user: name=newuser, UID=501, GID=501, home=/home/newuser, shell=/bin/bash</pre>
<p>&#8230; while <strong>userdel </strong>will document its actions with the following:</p>
<pre>Jan  8 00:18:40 rhel5 userdel[2682]: delete user `newuser'
Jan  8 00:18:40 rhel5 userdel[2682]: removed group `newuser' owned by `newuser'</pre>
<h3>How to check if any users were added on your Unix system</h3>
<p>Based on the information above, all you have to do is something like this:</p>
<pre>ubuntu$ <strong>grep useradd /var/log/* </strong></pre>
<p>This is bound to return you a list of all the recently added users.</p>
<h3>How to confirm local users which were recently removed</h3>
<p>Similarly, use a command like this to find out if any users were recently removed:</p>
<pre>ubuntu$ <strong>grep userdel /var/log/* </strong></pre>
<p>Hope this helps! Enjoy!</p>
<h3>See also:</h3>
<ul>
<li><strong><a title="userids instead of usernames" href="http://www.unixtutorial.org/2009/01/what-to-do-if-numeric-id-is-shown-instead-of-unix-username/">What to do if numerid userids are shown instead of usernames in file ownership</a></strong></li>
<li><strong><a title="create unix accounts" href="http://www.unixtutorial.org/2008/12/how-to-create-user-accounts-in-unix/">Creating new users in Unix with useradd</a><br />
</strong></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2009/01/how-to-check-if-any-users-were-added-or-deleted-on-your-linux-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Show a Processes Tree in Unix</title>
		<link>http://www.unixtutorial.org/2008/05/how-to-show-a-processes-tree-in-unix/</link>
		<comments>http://www.unixtutorial.org/2008/05/how-to-show-a-processes-tree-in-unix/#comments</comments>
		<pubDate>Thu, 01 May 2008 12:30:37 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/?p=47</guid>
		<description><![CDATA[Showing your processes in a hierarchical list is very useful for confirming the relationship between every process running on your system. Today I'd like to show you how you can get tree-like processes lists using various commands. Showing processes tree with ptree In Solaris, there's quite a few commands which make the life of any [...]]]></description>
			<content:encoded><![CDATA[<p>Showing your processes in a hierarchical list is very useful for confirming the relationship between every process running on your system. Today I'd like to show you how you can get tree-like processes lists using various commands.</p>
<h3>Showing processes tree with ptree</h3>
<p>In Solaris, there's quite a few commands which make the life of any system administrator much easier, they're the process commands (p-commands). One of them which I particularly like is the ptree command which shows you a list of processes.</p>
<p>As you run the command, you get a hierarchical list of all the processes running on your Solaris system, along with process IDs (PIDs). To me, this is a very useful command, because it shows you how exactly each process relates to others in your system.</p>
<p>Here's a fragment of the ptree output:</p>
<pre>bash-3.00$ <strong>ptree</strong>
7     /lib/svc/bin/svc.startd
  250   /usr/lib/saf/sac -t 300
    268   /usr/lib/saf/ttymon
  260   -sh
    5026  -csh
9     /lib/svc/bin/svc.configd
107   /usr/lib/sysevent/syseventd
136   /usr/lib/picl/picld
140   /usr/lib/crypto/kcfd
159   /usr/sbin/nscd
227   /usr/sbin/rpcbind
234   /usr/lib/nfs/statd
235   /usr/sbin/keyserv
236   /usr/lib/netsvc/yp/ypserv -d
  237   rpc.nisd_resolv -F -C 8 -p 1073741824 -t udp
241   /usr/lib/nfs/lockd
247   /usr/lib/netsvc/yp/ypbind
263   /usr/lib/utmpd
286   /usr/sadm/lib/smc/bin/smcboot
  287   /usr/sadm/lib/smc/bin/smcboot
  288   /usr/sadm/lib/smc/bin/smcboot</pre>
<h3>Processes tree with pstree</h3>
<p>In most Linux distributions, you can find a pstree command, very similar to ptree.</p>
<p>That's how you may use it (-p is an option to show PIDs and -l uses long output format):</p>
<pre>ubuntu$ <strong>pstree -pl</strong>
init(1)─┬─NetworkManager(5427)
        ├─NetworkManagerD(5441)
        ├─acpid(5210)
        ├─apache2(6966)─┬─apache2(2890)
        │               ├─apache2(2893)
        │               ├─apache2(7163)
        │               ├─apache2(7165)
        │               ├─apache2(7166)
        │               ├─apache2(7167)
        │               └─apache2(7168)
        ├─atd(6369)
        ├─avahi-daemon(5658)───avahi-daemon(5659)
        ├─bonobo-activati(7816)───{bonobo-activati}(7817)
...</pre>
<h3>Showing processes tree with ps &#8211;forest</h3>
<p>ps command found in Linux has a &#8211;forest option, which shows you a tree structure of processes.</p>
<p>The best in my experience is to use it like this:</p>
<pre>ubuntu$ <strong>ps -aef --forest</strong>
UID        PID  PPID  C STIME TTY          TIME CMD
...
107       5473     1  0 10037  4600   0 Apr28 ?        00:00:02 /usr/sbin/hald
root      5538  5473  0  5511  1288   0 Apr28 ?        00:00:00  \_ hald-runner
root      5551  5538  0  6038  1284   0 Apr28 ?        00:00:01      \_ hald-addon-input: Listening on /dev/input
107       5566  5538  0  4167   992   1 Apr28 ?        00:00:00      \_ hald-addon-acpi: listening on acpid socke
root      5600  5538  0  6038  1272   1 Apr28 ?        00:00:15      \_ hald-addon-storage: polling /dev/scd0 (ev
root      5476     1  0 10272  2532   0 Apr28 ?        00:00:00 /usr/sbin/console-kit-daemon
root      5627     1  0 12728  1176   1 Apr28 ?        00:00:00 /usr/sbin/sshd
root      9151  5627  0 17536  3032   0 10:53 ?        00:00:00  \_ sshd: greys [priv]
greys     9162  9151  0 17538  1892   1 10:54 ?        00:00:00      \_ sshd: greys@pts/3
greys     9168  9162  0  5231  3820   1 10:54 pts/3    00:00:00          \_ -bash
greys     9584  9168  0  3802  1124   0 11:27 pts/3    00:00:00              \_ ps -aeF --forest</pre>
<p>This output is for demonstration purpose only, and so I've taken the first lines of the output out because they weren't serving the purpose of this example very well.</p>
<p>For thins fragment of the output you can see how you get all the vital information about each process. I really like this way of running the ps command.</p>
<p>That's it for today! Do you know any other neat way of looking at processes tree? Let me know!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2008/05/how-to-show-a-processes-tree-in-unix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Find Out Linux Version using Linux Standard Base (LSB) files</title>
		<link>http://www.unixtutorial.org/2008/03/find-out-linux-version-using-lsb/</link>
		<comments>http://www.unixtutorial.org/2008/03/find-out-linux-version-using-lsb/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 10:24:09 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Advanced topics]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/2008/03/find-out-linux-version-using-lsb/</guid>
		<description><![CDATA[You probably know that modern Linux distributions have many things in common. Well, one of the reasons for this is LSB &#8211; Linux Standard Base. LSB is a joint project by a number of Linux vendors to standardize the OS environment. From Linux Standard Base article on Wikipedia: The goal of the LSB is to [...]]]></description>
			<content:encoded><![CDATA[<p>You probably know that modern Linux distributions have many things in common. Well, one of the reasons for this is <strong>LSB &#8211; Linux Standard Base</strong>. LSB is a joint project by a number of Linux vendors to standardize the OS environment.</p>
<p>From <a href="http://en.wikipedia.org/wiki/Linux_Standard_Base">Linux Standard Base article on Wikipedia</a>:</p>
<blockquote><p><em>The goal of the LSB is to develop and promote a set of standards that will increase compatibility among Linux distributions and enable software applications to run on any compliant system. In addition, the LSB will help coordinate efforts to recruit software vendors to port and write products for Linux.</em></p></blockquote>
<p>One of the immediate benefits of LSB compliancy is ability to confirm the exact information about your Linux release using the <a href="http://www.unixtutorial.org/commands/lsb_release">lsb_release command</a>. By exact information I mean the release version, vendor name and most interestingly the codename of your current Linux release.</p>
<h3>Red Hat Enterprise Linux LSB information</h3>
<p>Here's how a Red Hat Enterprise Linux 4 update 4 description will look:</p>
<pre>bash-3.00$ <strong>lsb_release -a</strong>
LSB Version:    :core-3.0-amd64:core-3.0-ia32:core-3.0-noarch:graphics-3.0-amd64:graphics-3.0-ia32:graphics-3.0-noarch Distributor ID: RedHatEnterpriseWS
Description:    Red Hat Enterprise Linux WS release 4 (Nahant Update 4)
Release:        4
Codename:       NahantUpdate4</pre>
<p>And here is RHEL5 LSB information:</p>
<pre>bash-3.1$ <strong>lsb_release -a</strong>
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseClient
Description:    Red Hat Enterprise Linux Client release 5 (Tikanga)
Release:        5
Codename:       Tikanga</pre>
<h3>SUSE Linux Enterprise Desktop (SLED10) LSB</h3>
<p>For SUSE Linux Enterprise Desktop, LSB release information will look like this:</p>
<pre>sled10~&gt; <strong>lsb_release -a</strong>
LSB Version:    core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64:desktop-3.1-amd64:desktop-3.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch
Distributor ID: SUSE LINUX
Description:    SUSE Linux Enterprise Desktop 10 (x86_64)
Release:        10
Codename:       n/a</pre>
<h3>Ubuntu LSB release information</h3>
<p>In Ubuntu,  I find the lsb_release information to be most informational &#8211; it's concise but tells you everything you need:</p>
<pre>ubuntu$ <strong>lsb_release -a</strong>
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 7.04
Release:        7.04
Codename:       feisty</pre>
<h3>See also:</h3>
<ul>
<li><a href="http://www.unixtutorial.org/2007/08/how-to-find-out-the-release-version-of-your-unix/">How to Find Out the Release Version of Your Unix</a></li>
<li><a href="http://www.unixtutorial.org/2008/01/bash-find-out-version/">Bash: Find The Version of Your Shell</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2008/03/find-out-linux-version-using-lsb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Find Out RedHat Version And More</title>
		<link>http://www.unixtutorial.org/2007/12/find-redhat-version/</link>
		<comments>http://www.unixtutorial.org/2007/12/find-redhat-version/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 09:46:45 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/2007/12/find-redhat-version/</guid>
		<description><![CDATA[If you're a really curious mind, you won't be satisfied with simply knowing the current release of your RedHat Linux, that's why there's a few more commands you could use to satisfy your interest. RedHat release If you simply want to confirm whether you're using a RHEL4, RHEL5 or any of the previous RedHat Linux [...]]]></description>
			<content:encoded><![CDATA[<p>If you're a really curious mind, you won't be satisfied with simply knowing the current release of your RedHat Linux, that's why there's a few more commands you could use to satisfy your interest.</p>
<h3>RedHat release</h3>
<p>If you simply want to confirm whether you're using a RHEL4, RHEL5 or any of the previous RedHat Linux releases, this is the first place to look:</p>
<pre>bash-3.1$ <strong>cat /etc/redhat-release</strong>
Red Hat Enterprise Linux Client release 5 (Tikanga)</pre>
<h3>RedHat kernel version and type</h3>
<p>Next step is to find out the exact Linux kernel version on your system, and also confirm whether it's 64-bit or not:</p>
<pre>bash-3.1$ <strong>uname -a</strong>
Linux rhserver123 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux</pre>
<h3>RedHat kernel build</h3>
<p>For the most curious ones, here's the last command. Use it to confirm who and when compiled the RedHat kernel you're using, and what gcc compiler was used in the build process.</p>
<pre>bash-3.1$ <strong>cat /proc/version</strong>
Linux version 2.6.18-8.el5 (brewbuilder@ls20-bc1-14.build.redhat.com) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP Fri Jan 26 14:15:14 EST 2007</pre>
<h3>See also:</h3>
<ul>
<li><a href="http://www.unixtutorial.org/2007/08/how-to-find-out-the-release-version-of-your-unix/">How To Find Out the Release Version of Your Unix</a></li>
</ul>
<p><iframe src="http://www.google.com/notebook/static_files/blank.html" style="position: absolute; display: block; opacity: 0.7; z-index: 500; width: 1px; height: 1px; top: 348px; right: 485px" id="gnotes-notemagic" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2007/12/find-redhat-version/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Allow Incoming TCP Connections for X11 on a RedHat (RHEL4) System</title>
		<link>http://www.unixtutorial.org/2007/08/allow-incoming-tcp-connections-x11-redhat-rhel4/</link>
		<comments>http://www.unixtutorial.org/2007/08/allow-incoming-tcp-connections-x11-redhat-rhel4/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 07:58:36 +0000</pubDate>
		<dc:creator>Gleb Reys</dc:creator>
				<category><![CDATA[Basic stuff]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RedHat]]></category>

		<guid isPermaLink="false">http://www.unixtutorial.org/linux/allow-incoming-tcp-connections-x11-redhat-rhel4/</guid>
		<description><![CDATA[Starting with RHEL4, the system only accepts local (socket-based) X11 server connections. This means that if you go to another Unix server and try forwarding X11 output by using DISPLAY variable to point to your RHEL4 box, it will no longer work. Enabling TCP connections to X11 In order to make your RHEL4 system accept [...]]]></description>
			<content:encoded><![CDATA[<p>Starting with <a href="http://www.redhat.com/promo/rhel/">RHEL4</a>, the system only accepts local (socket-based) X11 server connections. This means that if you go to another Unix server and try forwarding X11 output by using DISPLAY variable to point to your RHEL4 box, it will no longer work.</p>
<h3>Enabling TCP connections to X11</h3>
<p>In order to make your RHEL4 system accept TCP connections for X11, here's what you need to do:</p>
<p>In <strong>/etc/X11/gdm/gdm.conf</strong>, uncomment the</p>
<blockquote><p>#DisallowTCP=true</p></blockquote>
<p>line and change it to</p>
<blockquote><p>DisallowTCP=false</p></blockquote>
<p>That's it! Restart <a href="http://www.gnome.org/projects/gdm/">gdm</a> and enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.unixtutorial.org/2007/08/allow-incoming-tcp-connections-x11-redhat-rhel4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
