<?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>Anthony Lopez &#187; RHCE</title>
	<atom:link href="http://anthonyl.us/category/rhce/feed/" rel="self" type="application/rss+xml" />
	<link>http://anthonyl.us</link>
	<description>"I'd rather see a sermon than hear one any day;"</description>
	<lastBuildDate>Fri, 04 Nov 2011 22:47:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='anthonyl.us' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Anthony Lopez &#187; RHCE</title>
		<link>http://anthonyl.us</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://anthonyl.us/osd.xml" title="Anthony Lopez" />
	<atom:link rel='hub' href='http://anthonyl.us/?pushpress=hub'/>
		<item>
		<title>Setting up DKIMproxy</title>
		<link>http://anthonyl.us/2009/08/21/setting-up-dkimproxy/</link>
		<comments>http://anthonyl.us/2009/08/21/setting-up-dkimproxy/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 15:50:23 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://anthonyl.us/?p=191</guid>
		<description><![CDATA[One day I was asked to make our email deliverabilty more reliable.  I found the Yahoo domain keys and DKIM were additional ways to help with some email providers besides SPF.  I setup DK and DKIM milters and found that when sending bulk loads of emails (100k+) the time it took to sign and send [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=191&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One day I was asked to make our email deliverabilty more reliable.  I found the Yahoo domain keys and DKIM were additional ways to help with some email providers besides SPF.  I setup DK and DKIM milters and found that when sending bulk loads of emails (100k+) the time it took to sign and send was well over 7 seconds per email.  I am sure there are tweaks that we could have done to modify the sending script to deal with this but we just wanted something simple and easy to use.  Later I decided to install DKIM proxy and make submitting email to an email server easy and requiring no scripting change.  After testing I found that our email blasting was fast and our deliverability for sending email had gone up about 27%.  We still continue relationships with email providers to gain trust but that is too an everchanging process.  Below I documented what I did to get DKIMproxy and postfix configured on a RHEL 5 server.  I believe it should be the same for CentOs 5 as well.   Good Luck on your setup!</p>
<p><a href="http://dkimproxy.sourceforge.net/">Website &#8211; http://dkimproxy.sourceforge.net/</a> </p>
<p><strong>Installing DKIMproxy</strong></p>
<p><a href="http://dkimproxy.sourceforge.net/download.html">http://dkimproxy.sourceforge.net/download.html</a><br />
Prerequisites</p>
<blockquote><p>cpan install Mail::DKIM<br />
cpan install Crypt::OpenSSL::RSA<br />
cpan install Digest::SHA<br />
cpan install Mail::Address<br />
cpan install MIME::Base64<br />
cpan install Net::DNS<br />
cpan install Net::Server<br />
cpan install Error</p></blockquote>
<p>Installing DKIMproxy Service:</p>
<blockquote><p>cd /home/admin/<br />
wget http://downloads.sourceforge.net/dkimproxy/dkimproxy-1.2.tar.gz<br />
tar -xzvf dkimproxy-1.2.tar.gz<br />
cd dkimproxy-1.2<br />
./configure &#8211;prefix=/usr/local/dkimproxy<br />
make install<br />
useradd <em>dkimuser</em><br />
passwd <em>dkimuser</em><br />
cp sample-dkim-init-script.sh /etc/init.d/dkimproxy<br />
chkconfig &#8211;add dkimproxy<br />
chkconfig dkimproxy on</p></blockquote>
<p><strong>Installing DKIMproxy to sign outbound messages</strong></p>
<p><a href="http://dkimproxy.sourceforge.net/usage.html">http://dkimproxy.sourceforge.net/usage.html</a><br />
Generate a private/public key pair using OpenSSL:</p>
<blockquote><p>cd /usr/local/dkim/<br />
openssl genrsa -out private.key 1024<br />
openssl rsa -in private.key -pubout -out public.key<br />
chown dkimuser.root private.key<br />
chmod 640 private.key</p></blockquote>
<p>Pick a selector name&#8230; e.g. selector1<br />
Put the public-key data in DNS, in your domain, using the selector name you picked. Take the contents of the public.key file and remove the PEM header and footer, and concatenate the lines of the file into one big line. Then create a TXT entry, like this:</p>
<blockquote><p>selector1._domainkey IN TXT &#8220;k=rsa; t=s; p=MHwwDQYJK &#8230; OprwIDAQAB&#8221;</p></blockquote>
<p>where selector1 is the name of the selector chosen in the last step and the p= parameter contains the public-key as one long string of characters.</p>
<p><strong>Configure DKIMproxy</strong></p>
<p>Create a file named /usr/local/dkimproxy/etc/dkimproxy_out.conf and give it the following content:</p>
<blockquote><p># specify what address/port DKIMproxy should listen on<br />
listen    127.0.0.1:10027</p>
<p># specify what address/port DKIMproxy forwards mail to<br />
relay     127.0.0.1:10028</p>
<p># specify what domains DKIMproxy can sign for (comma-separated, no spaces)<br />
domain    clubmom.com</p>
<p># specify what signatures to add<br />
signature dkim(c=relaxed)<br />
signature domainkeys(c=nofws)</p>
<p># specify location of the private key<br />
keyfile   /usr/local/dkimproxy/private.key</p>
<p># specify the selector (i.e. the name of the key record put in DNS)<br />
selector  clubmomdkim</p></blockquote>
<p>Start DKIMproxy</p>
<blockquote><p>service dkimproxy start</p></blockquote>
<p><strong>Setting up the outbound proxy with Postfix</strong></p>
<p><a href="http://dkimproxy.sourceforge.net/postfix-outbound-howto.html">http://dkimproxy.sourceforge.net/postfix-outbound-howto.html</a><br />
Edit the /etc/postfix/master.cf with the the following:</p>
<blockquote><p>#<br />
# modify the default submission service to specify a content filter<br />
# and restrict it to local clients and SASL authenticated clients only<br />
#<br />
submission  inet  n     &#8211;       n       &#8211;       &#8211;       smtpd<br />
    -o smtpd_etrn_restrictions=reject<br />
    -o smtpd_sasl_auth_enable=yes<br />
    -o content_filter=dksign:[127.0.0.1]:10027<br />
    -o receive_override_options=no_address_mappings<br />
    -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject</p>
<p>#<br />
# specify the location of the DKIM signing proxy<br />
# Note: we allow &#8220;4&#8243; simultaneous deliveries here; high-volume sites may<br />
#   want a number higher than 4.<br />
# Note: the smtp_discard_ehlo_keywords option requires Postfix 2.2 or<br />
#   better. Leave it off if your version does not support it.<br />
#<br />
dksign    unix  &#8211;       &#8211;       n       &#8211;       4       smtp<br />
    -o smtp_send_xforward_command=yes<br />
    -o smtp_discard_ehlo_keywords=8bitmime,starttls</p>
<p>#<br />
# service for accepting messages FROM the DKIM signing proxy<br />
#<br />
127.0.0.1:10028 inet  n  &#8211;      n       &#8211;       10      smtpd<br />
    -o content_filter=<br />
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks<br />
    -o smtpd_helo_restrictions=<br />
    -o smtpd_client_restrictions=<br />
    -o smtpd_sender_restrictions=<br />
    -o smtpd_recipient_restrictions=permit_mynetworks,reject<br />
    -o mynetworks=127.0.0.0/8<br />
    -o smtpd_authorized_xforward_hosts=127.0.0.0/8</p></blockquote>
<p>reload postfix</p>
<p><strong>Setup your mail server to send to dkimproxy</strong></p>
<p>A dev environment is setup on office1 using dev04 as an outbound mailserver using dkimproxy on port 587</p>
<p>To use sendmail and configure a smarthost onto a port other than 25. Modify /etc/mail/sendmail.mc</p>
<blockquote><p>define(`SMART_HOST&#8217;,`relay:dev04.clubmom.local&#8217;)dnl<br />
define(`RELAY_MAILER&#8217;,`esmtp&#8217;)dnl<br />
define(`RELAY_MAILER_ARGS&#8217;, `TCP $h 587&#8242;)dnl<br />
#make -C /etc/mail<br />
#service sendmail restart</p></blockquote>
<br />Posted in Linux, RHCE  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/191/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/191/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/191/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=191&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2009/08/21/setting-up-dkimproxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing oracle 9 on rhel 5</title>
		<link>http://anthonyl.us/2009/01/15/installing-oracle-9-on-rhel-5/</link>
		<comments>http://anthonyl.us/2009/01/15/installing-oracle-9-on-rhel-5/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 18:41:29 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://anthonyl.us/?p=86</guid>
		<description><![CDATA[I had to install Oracle on a RHEL 5 and after some troubles all works good.  Be sure to review all links and verify all paths on your specific system before creating the links. The following are the steps that I used. Add oracle user and some other stuff # groupadd dba # useradd -g [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=86&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had to install Oracle on a RHEL 5 and after some troubles all works good.  Be sure to review all links and verify all paths on your specific system before creating the links.</p>
<p>The following are the steps that I used.</p>
<ol>
<li>Add oracle user and some other stuff
<pre class="wiki"># groupadd dba
# useradd -g dba oracle
# cd /opt
# mkdir oracle
# chown oracle:dba oracle
# cd /opt
# ln -s path/to/jre1.6.0_11
(Edit the Disk1/install/linux/oraparam.ini and modify JRE_LOCATION
variable and set path to our JRE installation from Step 2.
JRE_LOCATION=/opt/jre1.6.0_11)</pre>
</li>
<li>Kernel settings &#8211; Edit the /etc/sysctl.conf and add following lines (I decided to leave default values and did not modify any of these.  These have to be verified)
<pre class="wiki">kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb = 65536
kernel.msgmni = 2878
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000</pre>
</li>
</ol>
<p>Note: You need execute &#8220;sysctl -p&#8221; or reboot system to apply above settings.</p>
<ol>
<li>create access list for oracle to use xwindows
<pre class="wiki"><code># xhost +local: oracle (with no space inbetween oracle)</code></pre>
</li>
<li>Check for required packages:
<pre class="wiki">rpm -q compat-db compat-gcc-34 compat-gcc-34-c++ compat-libgcc-296 compat-libstdc++-296 compat-libstdc++-33 gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libgcc make libXp</pre>
</li>
<li>Set environment &#8211; add these to /home/oracle/.bash_profile
<pre class="wiki">ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/920
ORACLE_SID=ORCL
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/binexport ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH</pre>
</li>
<li>First Workaround
<pre class="wiki">su -
cd /usr/lib
ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2</pre>
</li>
<li>Download and Install:
<pre class="wiki">rpm -ivh http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-libcwait-2.1-1.i386.rpm
rpm -ivh http://oss.oracle.com/projects/compat-oracle/dist/files/RedHat/compat-oracle-rhel4-1.0-5.i386.rpm -nodeps</pre>
</li>
<li>Second Workaround
<pre class="wiki">su -
cd /usr/bin
ln -s gcc34 gcc32</pre>
</li>
<li>Third Workaround
<pre class="wiki">su -
cd /usr/lib
ln -s libgdbm.so.2.0.0 libdb.so.2</pre>
</li>
<li>Run installer
<pre class="wiki">./runInstaller</pre>
</li>
<li>When NETCA/DBCA will fail</li>
<li>Fourth Workaround
<pre class="wiki">I suggest to apply 9.2.0.8 patchset before.
cd $ORACLE_HOME
rm JRE
ln -s $ORACLE_BASE/jre/1.3.1 JRE
cd JRE/bin
ln -s java jre
cd i386/native_threads/
ln -s java jre</pre>
</li>
</ol>
<br />Posted in Oracle, RHCE  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/86/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/86/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/86/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=86&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2009/01/15/installing-oracle-9-on-rhel-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>Samba server on RHEL 5.2 with Active Directory Authentication</title>
		<link>http://anthonyl.us/2008/12/05/samba-server-on-rhel-52-with-active-directory-authentication/</link>
		<comments>http://anthonyl.us/2008/12/05/samba-server-on-rhel-52-with-active-directory-authentication/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 15:46:06 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[RHCE]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[winbind]]></category>

		<guid isPermaLink="false">http://anthonyl.us/?p=58</guid>
		<description><![CDATA[A quick and easy way. There are probably hundreds of ways to configure so make sure to look around. # yum install samba Backup your original smb.conf file # cp /etc/samba/smb.conf /etc/samba/smb.conf.orig My smb.conf file which connects to an windows 2003 active directory [global] workgroup = YOURDOMAIN netbios name = YOURHOSTNAME server string = YOURHOSTNAME [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=58&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>A quick and easy way.</strong><br />
There are probably hundreds of ways to configure so make sure to look around.<br />
<code><br />
# yum install samba<br />
</code><br />
Backup your original smb.conf file<br />
<code><br />
# cp /etc/samba/smb.conf /etc/samba/smb.conf.orig<br />
</code><br />
My smb.conf file which connects to an windows 2003 active directory<br />
<code><br />
[global]<br />
workgroup = YOURDOMAIN<br />
netbios name = YOURHOSTNAME<br />
server string = YOURHOSTNAME<br />
security = ads<br />
realm = YOURDOMAINFQDN<br />
password server = YOURDOMAINCONTROLLER<br />
encrypt passwords = yes</p>
<p>log file = /var/log/samba/%m.log<br />
max log size = 1024<br />
#log level = 1</p>
<p>name resolve order = wins hosts lmhosts bcast<br />
client signing = Yes<br />
server signing = Yes<br />
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192</p>
<p>local master = no<br />
domain master = no<br />
preferred master = dc01<br />
wins server = dc01<br />
dns proxy = no</p>
<p>#To add support for winbind, I added these lines to the global section:<br />
winbind separator = +<br />
winbind uid = 10000-20000<br />
winbind gid = 10000-20000<br />
winbind enum users = yes<br />
winbind enum groups = yes<br />
winbind use default domain = yes</p>
<p>#===Share Definitions ===<br />
[public]<br />
# Any authenticated user can view or download files from this share<br />
path = /storage/public<br />
browseable = yes<br />
writeable = yes<br />
guest ok = no<br />
valid users = CLUBMOM+AD_USERSGROUP AD_USER<br />
force group = CLUBMOM+AD_USERSGROUP<br />
create mask = 0666<br />
directory mask = 0777</p>
<p>[TESTSHARE]<br />
# Any authenticated user can view or download files from this share<br />
path = /PATH/TO/SHARE<br />
browseable = yes<br />
writeable = yes<br />
guest ok = no<br />
valid users = CLUBMOM+AD_USERSGROUP AS_USER<br />
force group = CLUBMOM+AD_USERSGROUP<br />
create mask = 0666<br />
directory mask = 0777<br />
</code><br />
Modify the /etc/nsswitch.conf file<br />
<code><br />
passwd:     files winbind<br />
shadow:     files<br />
group:      files winbind<br />
</code><br />
Hostname lookup (to play it safe I added it directly into /etc/hosts)<br />
<code><br />
192.168.x.xxx           HOSTNAME.YOURDOMAIN HOSTNAME<br />
</code><br />
Add the realm to /etc/krb5.conf<br />
<code> YOURDOMAIN = {<br />
        kdc = YOURDOMAIN.CONTROLLER<br />
        kdc = YOURSECONDDOMAIN.CONTROLLER<br />
 }<br />
</code><br />
These next commands get you started<br />
<code><br />
service smb restart<br />
service winbind restart<br />
net ads join -U Administrator<br />
kinit Administrator@YOURDOMAIN<br />
service smb restart<br />
service winbind restart<br />
</code><br />
Remember to restart smb and winbind every time you modify smb.conf.</p>
<br />Posted in RHCE Tagged: samba, winbind <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/58/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/58/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/58/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=58&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2008/12/05/samba-server-on-rhel-52-with-active-directory-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>How do I determine whether the number of open files is exceeding the limit set in the kernel?</title>
		<link>http://anthonyl.us/2008/12/02/how-do-i-determine-whether-the-number-of-open-files-is-exceeding-the-limit-set-in-the-kernel/</link>
		<comments>http://anthonyl.us/2008/12/02/how-do-i-determine-whether-the-number-of-open-files-is-exceeding-the-limit-set-in-the-kernel/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 16:25:49 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://lopeza.wordpress.com/?p=52</guid>
		<description><![CDATA[First place I thought of looking is lsof, but quickly I realized that the result may not be accurate. # lsof -n &#124; wc -l 3233  A better way to find the value would be to use # cat /proc/sys/fs/file-nr &#124; awk '{print $1-$2}' 3060 If you wanted to list and change your values # [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=52&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First place I thought of looking is lsof, but quickly I realized that the result may not be accurate.</p>
<table border="0" width="99%" bgcolor="#E0E0E0">
<tbody>
<tr>
<td>
<pre># <strong>lsof -n | wc -l</strong>
3233 </pre>
</td>
</tr>
</tbody>
</table>
<p>A better way to find the value would be to use</p>
<table border="0" width="99%" bgcolor="#E0E0E0">
<tbody>
<tr>
<td>
<pre># <strong>cat /proc/sys/fs/file-nr | awk '{print $1-$2}'</strong>
3060</pre>
</td>
</tr>
</tbody>
</table>
<p>If you wanted to list and change your values</p>
<table border="0" width="99%" bgcolor="#E0E0E0">
<tbody>
<tr>
<td>
<pre># <strong>cat /proc/sys/fs/file-max</strong>
767479
# <strong>echo "104854" &gt; /proc/sys/fs/file-max</strong></pre>
</td>
</tr>
</tbody>
</table>
<p> </p>
<table border="0" width="99%" bgcolor="#E0E0E0">
<tbody>
<tr>
<td>
<pre># <strong>cat /proc/sys/fs/file-nr</strong>
2550     0       767479
|	 |       |
|	 |       |
|        |       maximum open file descriptors
|        total free allocated file descriptors
total allocated file descriptors
(the number of file descriptors allocated since boot)</pre>
</td>
</tr>
</tbody>
</table>
<p>The number of open file descriptors is column 1 &#8211; column 2; (Note: we have read contradictory definitions of the second column in newsgroups. Some people say it is the number of used allocated file descriptors &#8211; just the opposite of what we&#8217;ve stated here. Luckily, we can prove that the second number is free descriptors. Just launch an xterm or any new process and watch the second number go down.)</p>
<br />Posted in RHCE  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=52&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2008/12/02/how-do-i-determine-whether-the-number-of-open-files-is-exceeding-the-limit-set-in-the-kernel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>rhn updates with yum</title>
		<link>http://anthonyl.us/2008/07/07/rhn-updates-with-yum/</link>
		<comments>http://anthonyl.us/2008/07/07/rhn-updates-with-yum/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 18:26:36 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[RHCE]]></category>
		<category><![CDATA[anthonyl]]></category>
		<category><![CDATA[rhn]]></category>

		<guid isPermaLink="false">http://lopeza.wordpress.com/?p=16</guid>
		<description><![CDATA[Weird thing happened with rhn and one of my systems. I added a new system to rhn and began recieving 404 errors when trying to install packages with yum. I manually went to rhn and downloaded all the packages successfully. All I could think of is that my system is getting the wrong package location [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=16&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Weird thing happened with rhn and one of my systems.  I added a new system to rhn and began recieving 404 errors when trying to install packages with yum.  I manually went to rhn and downloaded all the packages successfully.  All I could think of is that my system is getting the wrong package location from rhn.  I ran rhn-profile-sync before rhn_registering again and it fixed the issue.</p>
<p>Just hope this helps someone else at some time.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lopeza.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lopeza.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=16&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2008/07/07/rhn-updates-with-yum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
		<item>
		<title>First Entry</title>
		<link>http://anthonyl.us/2008/04/17/first-entry/</link>
		<comments>http://anthonyl.us/2008/04/17/first-entry/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 22:33:32 +0000</pubDate>
		<dc:creator>lopeza</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[RHCE]]></category>

		<guid isPermaLink="false">http://lopeza.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi World, I have been thinking about starting a blog for a really long time and never actually thought I&#8217;d have something worth writing that people would actually want to read. Until a close friend of mine told me that I have a great deal of experience in technology that would be awesome to share. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=3&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi World,</p>
<p>I have been thinking about starting a blog for a really long time and never actually thought I&#8217;d have something worth writing that people would actually want to read.  Until a close friend of mine told me that I have a great deal of experience in technology that would be awesome to share.  He also believed that my positive attitude would reflect well in my writing.  So here it goes&#8230;  Soon I will post my first entry, about what I don&#8217;t know yet, but rest assured it will be about my experiences in technology.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/lopeza.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/lopeza.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/lopeza.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/lopeza.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/lopeza.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/lopeza.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/lopeza.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/lopeza.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/lopeza.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/lopeza.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=anthonyl.us&amp;blog=3504033&amp;post=3&amp;subd=lopeza&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://anthonyl.us/2008/04/17/first-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b170149b19e484222a2827733d95c917?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">lopeza</media:title>
		</media:content>
	</item>
	</channel>
</rss>
