<?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>Dogsbody.org &#187; CentOS</title>
	<atom:link href="http://www.dogsbody.org/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dogsbody.org</link>
	<description>Diary of a mad man</description>
	<lastBuildDate>Mon, 16 Jan 2012 20:04:48 +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>Things to do to a blank BlueQuartz install</title>
		<link>http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/</link>
		<comments>http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 01:00:00 +0000</pubDate>
		<dc:creator>Dogsbody</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[BlueQuartz]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[After just rebuilding a BlueQuartz box I thought I would copy my install notes. This is an entirely personal list of things that I do to a vanilla install of CentOS/BlueQuartz.  I thought it may be useful to other people. Contents Change root passwords Secure SSH Apache Obscurity Install ImageMagick PHP upload settings Add Mime&#8230;<p><a href="http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/">Things to do to a blank BlueQuartz install</a> is a post from: <a href="http://www.dogsbody.org">Dogsbody.org</a></p>
]]></description>
			<content:encoded><![CDATA[<p>After just rebuilding a BlueQuartz box I thought I would copy my install notes. This is an entirely personal list of things that I do to a vanilla install of CentOS/BlueQuartz.  I thought it may be useful to other people.</p>
<p><span style="text-decoration: underline;"><strong>Contents</strong></span></p>
<ul>
<li>Change root passwords</li>
<li>Secure SSH</li>
<li>Apache Obscurity</li>
<li>Install ImageMagick</li>
<li>PHP upload settings</li>
<li>Add Mime Types</li>
<li>yum checker</li>
<li>Setup floppy drive</li>
<li>Majordomo logfile</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Change root password</strong></span></p>
<p>BQ is initially set with no root MySQL password and the systems root password is set the same as the admin user. These should be changed to something different!</p>
<ul>
<li>Change MySQL password wth `<strong>/usr/bin/mysqladmin &#8211;user=root password NEW_PASSWORD</strong>`</li>
<li>Change root password with `<strong>passwd</strong>`</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Secure SSH</strong></span></p>
<p>SSH is obviously better than telnet but did you know that the SSH protocol v1 has been cracked for quite some time now. I lock all my boxes down to only use protocol v2 and haven&#8217;t had any come back on compatability issues.</p>
<ul>
<li>Modify `<strong>/etc/ssh/sshd_config</strong>` to set `<strong>Protocol 2</strong>`</li>
<li>Run `<strong>/etc/rc.d/init.d/sshd reload</strong>`</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Apache Obscurity</strong></span></p>
<p>Yes, this is security through obscurity but everything helps. The following will remove the &#8220;signature&#8221; at the bottom of pages generated by Apache and will also only report the webserver as &#8220;Apache&#8221; instaed of the full version number and OS</p>
<ul>
<li>Modify (and add if necessary) the following lines in `<strong>/etc/httpd/conf/httpd.conf</strong>` &amp; `<strong>/etc/admserv/conf/httpd.conf</strong>`</li>
</ul>
<pre>ServerSignature Off
ServerTokens Prod</pre>
<ul>
<li>Run `<strong>/etc/rc.d/init.d/httpd reload</strong>`</li>
<li>Run `<strong>/etc/rc.d/init.d/admserv reload</strong>`</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Install ImageMagick</strong></span></p>
<p>A must for most hosting nowadays.  Simply run `<strong>yum install ImageMagick ImageMagick-perl</strong>` as root.</p>
<p><span style="text-decoration: underline;"><strong>PHP upload settings</strong></span></p>
<p>In this new broadband age people are uploading pictures and such to their sites so I change the PHP upload defaults.  Change lines in <strong>/etc/php.ini</strong> (or your own php.ini) and run `<strong>/etc/rc.d/init.d/httpd reload</strong>`</p>
<pre>post_max_size = 20M
upload_max_filesize = 10M</pre>
<p><span style="text-decoration: underline;"><strong>Add Mime Types</strong></span></p>
<p>There seem to be some common mime types missing from the default install.  Add the following to `<strong>/etc/mime.types</strong>` and run `<strong>/etc/rc.d/init.d/httpd reload</strong>`</p>
<pre>application/x-ms-wmz wmz
application/x-ms-wmd wmd
audio/x-ms-wax wax
audio/x-ms-wma wma
image/x-icon ico
text/csv csv
video/x-ms-asf asf asx
video/x-ms-wm wm
video/x-ms-wmv wmv
video/x-ms-wmx wmx
video/x-ms-wvx wvx</pre>
<p><span style="text-decoration: underline;"><strong>yum checker</strong></span></p>
<p>Now I love the Nuonce/Solarspeed automatic yum installer however I like to install patches on systems when I am there, that way if there are any problems I can fix them straight away.  I have this little script that mails me when there are packages to install.</p>
<ul>
<li>touch /etc/cron.daily/yum-check</li>
<li>chmod 755 /etc/cron.daily/yum-check</li>
<li>vi /etc/cron.daily/yum-check</li>
</ul>
<pre> #!/bin/sh
SERVER=`hostname`
OUTPUT=`/usr/bin/yum check-update`
EXITCODE=$?
if [ ${EXITCODE} != 0 ]
then
echo "${OUTPUT}" | /bin/mail -s "${SERVER}: Yum Updater" root
fi</pre>
<p><span style="text-decoration: underline;"><strong>Setup floppy drive</strong></span></p>
<p>If your system has a floppy disc drive you won&#8217;t be able to use it until you run `<strong>floppy &#8211;createrc &gt; /etc/floppy</strong>`</p>
<p><span style="text-decoration: underline;"><strong>Majordomo logfile</strong></span></p>
<p>I know it&#8217;s silly but I like all my log files to be in one place&#8230;.</p>
<ul>
<li>cd /var/log/mail</li>
<li>ln -s /usr/local/majordomo/log majordomo</li>
</ul>
<p>I hope this is of use to people</p>
<p><a href="http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/">Things to do to a blank BlueQuartz install</a> is a post from: <a href="http://www.dogsbody.org">Dogsbody.org</a></p>


<div class="shr-bookmarks shr-bookmarks-center shr-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%2524%257Btitle%257D%2B-%2B%2524%257Bshort_link%257D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-friendfeed">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=43&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on FriendFeed">Share this on FriendFeed</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-posterous">
			<a href="http://www.shareaholic.com/api/share/?title=Things+to+do+to+a+blank+BlueQuartz+install&amp;link=http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/&amp;notes=After%20just%20rebuilding%20a%20BlueQuartz%20box%20I%20thought%20I%20would%20copy%20my%20install%20notes.%20This%20is%20an%20entirely%20personal%20list%20of%20things%20that%20I%20do%20to%20a%20vanilla%20install%20of%20CentOS%2FBlueQuartz.%C2%A0%20I%20thought%20it%20may%20be%20useful%20to%20other%20people.%0D%0A%0D%0AContents%0D%0A%0D%0A%09Change%20root%20passwords%0D%0A%09Secure%20SSH%0D%0A%09Apache%20Obscurity%0D%0A%09Insta&amp;short_link=http://skate.to/1e&amp;shortener=yourls&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=210&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post this to Posterous">Post this to Posterous</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dogsbody.org/2006/08/things-to-do-to-a-blank-bluequartz-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

