<?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>Vicky's server guides &#187; General linux admin</title>
	<atom:link href="http://www.vickysguide.com/category/general-linux-admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vickysguide.com</link>
	<description>Linux server administration tips and tricks</description>
	<lastBuildDate>Fri, 13 Jan 2012 16:50:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Perl update conflict in yum</title>
		<link>http://www.vickysguide.com/perl-update-yum-conflict/</link>
		<comments>http://www.vickysguide.com/perl-update-yum-conflict/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 16:50:44 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[perl update]]></category>
		<category><![CDATA[yum conflict]]></category>
		<category><![CDATA[yum problem]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=112</guid>
		<description><![CDATA[Have you ever had problem updating perl via yum and yum spitting a conflict error message at you?  I&#8217;ve met this problem on few CentOS 5 boxes of mine and thought I share the solution. I happens on 64bit boxes and the error is for example like this file /usr/share/man/man1/splain.1.gz from install of perl-5.8.8-32.el5_7.6.x86_64 conflicts [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever had problem updating perl via yum and yum spitting a conflict error message at you?  I&#8217;ve met this problem on few CentOS 5 boxes of mine and thought I share the solution.</p>
<p>I happens on 64bit boxes and the error is for example like this</p>
<blockquote><p>file /usr/share/man/man1/splain.1.gz from install of perl-5.8.8-32.el5_7.6.x86_64 conflicts with file from package perl-5.8.8-32.el5_6.3.i386<br />
file /usr/share/man/man1/xsubpp.1.gz from install of perl-5.8.8-32.el5_7.6.x86_64 conflicts with file from package perl-5.8.8-32.el5_6.3.i386<br />
file /usr/share/man/man3/CGI.3pm.gz from install of perl-5.8.8-32.el5_7.6.x86_64 conflicts with file from package perl-5.8.8-32.el5_6.3.i386</p></blockquote>
<p>Obviously it is a problem of having a i386 version along the 64bit. First you need to remove the i386 version and then install perl again. You can do it by executing this command:</p>
<p>yum -y remove perl.i386 &amp;&amp; yum -y install perl</p>
<p>It should work and you end up with a correct installation of perl. Until the next update <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/perl-update-yum-conflict/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add user to wheel group</title>
		<link>http://www.vickysguide.com/add-user-to-wheel-group/</link>
		<comments>http://www.vickysguide.com/add-user-to-wheel-group/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 07:37:12 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[add user]]></category>
		<category><![CDATA[disable root login]]></category>
		<category><![CDATA[wheel group]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=93</guid>
		<description><![CDATA[If you are on cpanel (or any other centos server) and need the security feature that root cannot log in via ssh (I will cover this elsewhere) you can do it by adding new user by using these commands: # adduser testuser # passwd testuser that will create the user &#8220;testuser&#8221; and prompts you to [...]]]></description>
			<content:encoded><![CDATA[<p>If you are on cpanel (or any other centos server) and need the security feature that root cannot log in via ssh (I will cover this elsewhere) you can do it by adding new user by using these commands:</p>
<p># adduser testuser<br />
# passwd testuser</p>
<p>that will create the user &#8220;testuser&#8221; and prompts you to enter his password</p>
<p>With this you would not be able to su to root, therefore you need to add this user to wheel group by using command:</p>
<p># usermod -f wheel testuser</p>
<p>Voila, now user &#8220;testuser&#8221; will be able to su &#8211; to root and you can disable direct root login in your ssh configuration.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/add-user-to-wheel-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>boincmgr: error while loading shared libraries</title>
		<link>http://www.vickysguide.com/boincmgr-error-while-loading-shared-libraries/</link>
		<comments>http://www.vickysguide.com/boincmgr-error-while-loading-shared-libraries/#comments</comments>
		<pubDate>Sun, 21 Nov 2010 13:13:35 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=89</guid>
		<description><![CDATA[Do you use your spare server power to compute BOINC projects? Seti@Home or MilkyWay or some others ? You surely encountered error on CentOS 5 or RHEL 5 these errors: ./boincmgr: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory ./boincmgr: error while loading shared libraries: libXdamage.so.1: cannot [...]]]></description>
			<content:encoded><![CDATA[<p>Do you use your spare server power to compute BOINC projects? Seti@Home or MilkyWay or some others ?</p>
<p>You surely encountered error on CentOS 5 or RHEL 5 these errors:</p>
<p><em>./boincmgr: error while loading shared libraries: <strong>libXcomposite.so.1</strong>: cannot open shared object file: No such file or directory<br />
./boincmgr: error while loading shared libraries: <strong>libXdamage.so.1</strong>: cannot open shared object file: No such file or directory</em><br />
The cure is actually pretty easy, you just need to install the missing libraries</p>
<p>yum install libXcomposite libXdamage</p>
<p>And your problem should be vanished.. Also, you may need these libraries, but those should be installed by default: zlib, openssl, curl-devel</p>
<p>Happy computing <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/boincmgr-error-while-loading-shared-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My nginx installation procedure</title>
		<link>http://www.vickysguide.com/my-nginx-installation-procedure/</link>
		<comments>http://www.vickysguide.com/my-nginx-installation-procedure/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 16:47:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=72</guid>
		<description><![CDATA[I really started to like nginx web server, and here is my procedure step by step how to install this server on CentOS 5.4 yum install gcc pcre-devel openssl-devel wget http://nginx.org/download/nginx-0.7.65.tar.gz &#38;&#38; tar xvfz nginx-0.7.65.tar.gz ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module make make install ln -s /usr/local/nginx/conf /etc/nginx ln -s /usr/local/nginx/logs /var/log/nginx ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx Then grab [...]]]></description>
			<content:encoded><![CDATA[<p>I really started to like nginx web server, and here is my procedure step by step how to install this server on CentOS 5.4</p>
<p><code>yum install gcc pcre-devel openssl-devel<br />
wget http://nginx.org/download/nginx-0.7.65.tar.gz &amp;&amp; tar xvfz nginx-0.7.65.tar.gz<br />
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module<code><br />
make<br />
make install<br />
ln -s /usr/local/nginx/conf  /etc/nginx<br />
ln -s /usr/local/nginx/logs  /var/log/nginx<br />
ln -s /usr/local/nginx/sbin/nginx /usr/sbin/nginx</code></code></p>
<p>Then grab this init script for red hat from http://wiki.nginx.org/RedHatNginxInitScript and put it in /etc/init.d/nginx file. Chmod 755 the file and you are ready.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/my-nginx-installation-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audit still logging even when stoped</title>
		<link>http://www.vickysguide.com/audit-still-logging-even-when-stoped/</link>
		<comments>http://www.vickysguide.com/audit-still-logging-even-when-stoped/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 17:36:08 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[auditd]]></category>
		<category><![CDATA[logging]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=61</guid>
		<description><![CDATA[I had strange problem on one of my CentOS 5.4 servers. I stoped auditd service and disables SElinux, the server, however, was still logging all those annoying things like Nov 10 18:27:01 server kernel: type=1105 audit(1257874021.909:87975): user pid=27986 uid=0 auid=0 msg=&#8217;PAM: session open acct=&#8221;root&#8221; : exe=&#8221;/usr/sbin/crond&#8221; (hostname=?, addr=?, terminal=cron res=success)&#8217; Nov 10 18:27:02 server kernel: [...]]]></description>
			<content:encoded><![CDATA[<p>I had strange problem on one of my CentOS 5.4 servers. I stoped auditd service and disables SElinux, the server, however, was still logging all those annoying things like</p>
<p>Nov 10 18:27:01 server kernel: type=1105 audit(1257874021.909:87975): user pid=27986 uid=0 auid=0 msg=&#8217;PAM: session open acct=&#8221;root&#8221; : exe=&#8221;/usr/sbin/crond&#8221; (hostname=?, addr=?, terminal=cron res=success)&#8217;<br />
Nov 10 18:27:02 server kernel: type=1104 audit(1257874022.828:87976): user pid=27986 uid=0 auid=0 msg=&#8217;PAM: setcred acct=&#8221;root&#8221; : exe=&#8221;/usr/sbin/crond&#8221; (hostname=?, addr=?, terminal=cron res=success)&#8217;</p>
<p>into /var/log/messages log, filling it up with garbage.</p>
<p>After some time spent investigating I  fixed it. I edited /etc/audit/audit.rules  and replaced line</p>
<blockquote><p>-D</p></blockquote>
<p>with this line</p>
<blockquote><p>-e 0</p></blockquote>
<p>After that I started auditd service, stopped it and no more logs in /var/log/messages</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/audit-still-logging-even-when-stoped/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Show line numbers in vi or vim</title>
		<link>http://www.vickysguide.com/show-line-numbers-in-vi-or-vim/</link>
		<comments>http://www.vickysguide.com/show-line-numbers-in-vi-or-vim/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 14:19:00 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[show line numbers]]></category>
		<category><![CDATA[vi/vim]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=58</guid>
		<description><![CDATA[Have you ever wondered how to show line numbers in vi or vim while editing file? I do that always when I patch some software or install MODs that come with &#8220;go to line xxx and rewrite this&#8230;&#8221;. And the solution is really simple. In vi/vim type :set number to show line numbers and :set [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered how to show line numbers in vi or vim while editing file? I do that always when I patch some software or install MODs that come with &#8220;go to line xxx and rewrite this&#8230;&#8221;. And the solution is really simple.</p>
<p>In vi/vim type <strong>:set number</strong> to show line numbers and <strong>:set nonumber</strong> to hide line numbers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/show-line-numbers-in-vi-or-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>proftpd show hidden files</title>
		<link>http://www.vickysguide.com/proftpd-show-hidden-files/</link>
		<comments>http://www.vickysguide.com/proftpd-show-hidden-files/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 19:04:38 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=41</guid>
		<description><![CDATA[Not seeing hidden linux files ( dot beginning files) in your ftp you can enable this option in your ftp client. (show linux hidden files). It it does not work you can force your linux ftp server to show them via this command in /etc/proftpd.conf ListOptions -a Put it into the conf file and restart [...]]]></description>
			<content:encoded><![CDATA[<div class="entry">
<p>Not seeing hidden linux files ( dot beginning files) in your ftp you can enable this option in your ftp client. (show linux hidden files). It it does not work you can force your linux ftp server to show them via this command in /etc/proftpd.conf</p>
<p><code>ListOptions -a</code></p>
<p>Put it into the conf file and restart proftpd service.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/proftpd-show-hidden-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turn on syntax highlighting in vi/vim</title>
		<link>http://www.vickysguide.com/turn-on-syntax-highlighting-in-vivim/</link>
		<comments>http://www.vickysguide.com/turn-on-syntax-highlighting-in-vivim/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 23:27:34 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[colors in vi]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=39</guid>
		<description><![CDATA[I recently got to administer a few linux boxes and wondered why vi does not show colors when I edit files. Some servers did it, some did not. It was differently set up by datacenter images and I really did not have time to investigate. Now it just annoyed me because I could not find [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got to administer a few linux boxes and wondered why vi does not show colors when I edit files. Some servers did it, some did not. It was differently set up by datacenter images and I really did not have time to investigate.</p>
<p>Now it just annoyed me because I could not find few syntax errors on one server and here is the solution.</p>
<p>Open up some file in vi or vim and hit ESC, then type &#8220;:syntax on&#8221;  and the magic happens&#8230; let there be color <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>If you do like it without color, type &#8220;:syntax off&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/turn-on-syntax-highlighting-in-vivim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speeding up apache by mod_deflate and mod_expires</title>
		<link>http://www.vickysguide.com/speeding-up-apache-by-mod_deflate-and-mod_expires/</link>
		<comments>http://www.vickysguide.com/speeding-up-apache-by-mod_deflate-and-mod_expires/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 11:40:24 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>
		<category><![CDATA[apache speed up]]></category>
		<category><![CDATA[apache tunning]]></category>
		<category><![CDATA[mod_deflate]]></category>
		<category><![CDATA[mod_expires]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=31</guid>
		<description><![CDATA[Here is how I speed up apache by compressing pages with mod_deflate module and setting higher cache expiration times in mod_expires module. Here is how&#8230; put this in your apache config: &#60;IfModule mod_deflate.c&#62; # compress html, plain text, css and javascript AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/x-javascript # avoid problems in known-to-be-problematic browsers BrowserMatch [...]]]></description>
			<content:encoded><![CDATA[<p>Here is how I speed up apache by compressing pages with mod_deflate module and setting higher cache expiration times in mod_expires module. Here is how&#8230;<span id="more-31"></span></p>
<p>put this in your apache config:</p>
<p>&lt;IfModule mod_deflate.c&gt;<br />
# compress html, plain text, css and javascript<br />
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/x-javascript<br />
# avoid problems in known-to-be-problematic browsers<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
&lt;/IfModule&gt;</p>
<p>&lt;IfModule mod_expires.c&gt;<br />
ExpiresActive On<br />
ExpiresDefault A300<br />
ExpiresByType image/x-icon A2592000<br />
ExpiresByType application/x-javascript A3600<br />
ExpiresByType text/css A3600<br />
ExpiresByType image/gif A604800<br />
ExpiresByType image/png A604800<br />
ExpiresByType image/jpeg A604800<br />
ExpiresByType text/plain A300<br />
ExpiresByType application/x-shockwave-flash A604800<br />
ExpiresByType video/x-flv A2592000<br />
ExpiresByType application/pdf A300<br />
ExpiresByType text/html A300<br />
&lt;/IfModule&gt;</p>
<p>Times are in seconds. There are many variations how to set the time, read apache manual for further info.</p>
<p>Hope it helps to speed up your sites and save some bandwidth.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/speeding-up-apache-by-mod_deflate-and-mod_expires/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable cron email alert</title>
		<link>http://www.vickysguide.com/disable-cron-email-alert/</link>
		<comments>http://www.vickysguide.com/disable-cron-email-alert/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 14:12:35 +0000</pubDate>
		<dc:creator>vicky</dc:creator>
				<category><![CDATA[General linux admin]]></category>

		<guid isPermaLink="false">http://www.vickysguide.com/?p=23</guid>
		<description><![CDATA[Ever wondered how to disable the email alert sent when cron is executed? Easy help, there are various ways to achieve this, so feel free to use the one you like the best. They all work, though. However, there are two principles &#8211; one to send the email to /dev/null and other one disable it [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how to disable the email alert sent when cron is executed? Easy help, there are various ways to achieve this, so feel free to use the one you like the best. <img src='http://www.vickysguide.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  They all work, though.<span id="more-23"></span></p>
<p>However, there are two principles &#8211; one to send the email to /dev/null and other one disable it by cron EMAILTO directive.</p>
<p>Redirect to /dev/null is used in these ways:</p>
<blockquote><p><strong>&gt;/dev/null 2&gt;&amp;1.</strong><br />
or<br />
<strong>&amp;&gt; /dev/null</strong></p></blockquote>
<p>Those need to be added at the end of your crontab entry, like this:</p>
<p><code>0 1 * * * /path/yourscript.sh &gt;/dev/null 2&gt;&amp;1</code></p>
<p><strong>Or,</strong> as I said using <code>EMAILTO would look in your crontab file like this:</code></p>
<blockquote><p><code>EMAILTO=""</code></p></blockquote>
<p>It should be placed on top of either /etc/crontab or you can define cron entries by executing: crontab -e</p>
<p>I hope this was helpfull&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vickysguide.com/disable-cron-email-alert/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

