<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; CentOS</title> <atom:link href="http://www.ghacks.net/tag/centos/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Configure Samba shares in CentOS</title><link>http://www.ghacks.net/2010/12/13/configure-samba-shares-in-centos/</link> <comments>http://www.ghacks.net/2010/12/13/configure-samba-shares-in-centos/#comments</comments> <pubDate>Sun, 12 Dec 2010 23:13:01 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Desktop Manager]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[samba]]></category> <category><![CDATA[samba shares]]></category> <category><![CDATA[Windows Shares]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=37893</guid> <description><![CDATA[Server OSes, such as CentOS, Red Hat Enterprise Linux, and SUSE Linux Enterprise do not enjoy the same simplicity as does the modern Linux desktop when it comes to issues like sharing out directories (even though they share the same default desktops). You can see how easy it is to share out folders in my [...]]]></description> <content:encoded><![CDATA[<p>Server OSes, such as CentOS, Red Hat Enterprise Linux, and SUSE Linux Enterprise do not enjoy the same simplicity as does the modern Linux desktop when it comes to issues like sharing out directories (even though they share the same default desktops). You can see how easy it is to share out folders in my article &#8220;<a
title="Easy folder sharing in GNOME" href="http://www.ghacks.net/2010/02/23/easy-folder-sharing-in-gnome/" target="_blank">Easy folder sharing in GNOME</a>&#8220;.</p><p>The server OSes justifiably make this task a bit more challenging to keep administrators from inadvertently sharing out folders that shouldn&#8217;t be shared or causing security holes to pop up on their servers. But that does not mean the task is impossible&#8230;in fact it&#8217;s not that much more difficult than it is on their brethren desktop. Let&#8217;s take a look at how this is done on CentOS.</p><p><span
id="more-37893"></span><strong>The tool</strong></p><div
id="attachment_37896" class="wp-caption alignleft" style="width: 340px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/system_config_samba.png"><img
class="size-medium wp-image-37896 " src="http://www.ghacks.net/wp-content/uploads/2010/12/system_config_samba-550x386.png" alt="" width="330" height="232" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Fortunately, there is a GUI tool for just about everything. This too goes for configuring Samba. In the CentOS distribution, the task of administering Samba shares is handled by <em>system-config-samba</em>. This tool is easy to use, but must be run as the root user. If you do not have access to the root user, you will have no luck starting the tool. But with that coveted root user password you can start up the Samba admin tool with the command <em>system-config-samba</em>.</p><p>Once the tool has started you will find a very user-friendly GUI (see Figure 1). By default nothing has been shared out&#8230;and before you do share anything, you will need to configure Samba. To do this click <strong>Preferences &gt; Server Settings</strong>. This new window has two tabs:</p><ul><li>Basic: Configure the name of your workgroup and a description of said workgroup.</li><li>Security: Configure the security of your Samba server.</li></ul><p>NOTE: The more important tab is the security tab. Here  you will configure the authentication mode.</p><div
id="attachment_37897" class="wp-caption alignright" style="width: 368px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/samba_users.png"><img
class="size-full wp-image-37897" src="http://www.ghacks.net/wp-content/uploads/2010/12/samba_users.png" alt="" width="358" height="237" /></a><p
class="wp-caption-text">Figure 2</p></div><p>Once you have the server configured click on <strong>Preferences &gt; Users</strong>. You must add users here before anyone can authenticate (if you select Security = users). Figure 2 shows how users are added. Make sure you select the correct Unix username from the dropdown. After you add that username click OK to be returned to the original window.</p><p>You are now ready to connect to your newly added share. You might, however find that you can not connect to that share. If so, the most likely reason is the firewall. Click on <strong>System &gt; Administration &gt; Security Level and Firewall</strong>. In this window (see Figure 3) you will need to make sure that Samba is checked, but also add ports 137 – 139 and 445.</p><div
id="attachment_37898" class="wp-caption alignleft" style="width: 237px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/12/samba_firewall.png"><img
class="size-full wp-image-37898 " src="http://www.ghacks.net/wp-content/uploads/2010/12/samba_firewall.png" alt="" width="227" height="287" /></a><p
class="wp-caption-text">Figure 3</p></div><p>After you have added all the necessary ports you should be able to connect to that share without a problem. Although you may be tempted to drop your firewall all together (in order to let Samba connections through) it is imperative that you do not simply drop your firewall. Remember, CentOS is a server OS and should be protected.</p><p><strong>Final thoughts</strong></p><p>It&#8217;s nice to see that even on the server distributions that Samba has become an incredibly easy system to administer. The system-config-samba tool makes sharing out server directories as easy as if you were on the desktop. Kudos to CentOS, Red Hat, and GNOME!</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/12/13/configure-samba-shares-in-centos/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Add SSL to CentOS web server</title><link>http://www.ghacks.net/2010/12/05/add-ssl-to-centos-web-server/</link> <comments>http://www.ghacks.net/2010/12/05/add-ssl-to-centos-web-server/#comments</comments> <pubDate>Sun, 05 Dec 2010 20:10:02 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[The Web]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[ssl]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=37618</guid> <description><![CDATA[CentOS might well be one of the finest Linux distributions for a server environment. It is basically a mimic of Red Hat Enterprise Linux without the proprietary software and the price attached to it. With that in mind, it makes perfect sense to set CentOS up as your go-to Web server. It&#8217;s reliable, it&#8217;s stable, [...]]]></description> <content:encoded><![CDATA[<p>CentOS might well be one of the finest Linux distributions for a server environment. It is basically a mimic of Red Hat Enterprise Linux without the proprietary software and the price attached to it. With that in mind, it makes perfect sense to set CentOS up as your go-to Web server. It&#8217;s reliable, it&#8217;s stable, it&#8217;s extensible, and it&#8217;s secure.</p><p>But setting up a secure web server isn&#8217;t complete without the inclusion of SSL and certificates. If you are wanting to serve up sercure web pages you will certainly want your audience to be able to send them to https instead of http. So&#8230;with CentOS how do you do that? I will show you how.</p><p><span
id="more-37618"></span><strong>Installing all of the packages</strong></p><p>I will assume you already have CentOS installed as well as the Apache Web Server. Make sure you are able to go to the default Apache web page (or any web page on your CentOS web server), before you set up SSL. When you have all of that working you will need to install a couple of packages. This is done with the following steps:</p><ol><li>Open up a terminal window.</li><li>Su to the root user.</li><li>Issue the command <code>yum install mod_ssl openssl</code>.</li><li>Let the installation complete.</li></ol><p>With SSL installed and ready, it&#8217;s time to create your certificates for usage.</p><p><strong>Creating your certificate</strong></p><p>You will now have everything on your server to create CAs. You need to generate a private key, a csr, a self-signed key, and then you need to copy these files to the correct location. This is done with the following steps.</p><ol><li>Open up a terminal window.</li><li>Su to the root user.</li><li>Generate the private key with the command <code>openssl genrsa -out ca.key 1024</code>.</li><li>Generate the csr with the command <code>openssl req -new -key ca.key -out ca.csr</code>.</li><li>Generate the self-signed key with the command <code>openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt</code>.</li><li>Move the self-signed key with the command <code>cp ca.crt /etc/pki/tls/certs</code>.</li><li>Move the private key with the command <code>cp ca.key /etc/pki/tls/private/ca.key</code>.</li><li>Move the csr with the command <code>cp ca.csr /etc/pki/tls/private/ca.csr</code>.</li></ol><p><strong>Edit the Apache SSL configuration</strong></p><p>Open the file <strong>/etc/httpd/conf.d/ssl.conf </strong>and look for the section <em>SSLCertificateFile. </em>Make sure that line reads:</p><p><code>SSLCertificateFile /etc/pki/tls/certs/ca.crt</code></p><p>Now look for the <em>SSLCertificateKeyFile</em> and make sure that section reads:</p><p><code>SSLCertificateKeyFile /etc/pki/tls/private/ca.key</code></p><p>Save that file and you are ready to restart Apache.</p><p><strong>Restart and test</strong></p><p>Before you try to test Apache&#8217;s new SSL feature, you must restart the daemon. To do this issue the command <em>/etc/rc.d/init.d/httpd restart</em>. Hopefully you will see no warnings or errors. If not, then point your browser to https://ADDRESS_TO_SERVER Where ADDRESS_TO_SERVER is either the IP Address or the domain. You should then see a warning from your browser about the certificate for the site. If you see this warning congratulations, your Apache server is now ready for secure connections.</p><p>Remember, though, you created a self-signed certificate. To get the most out of SSL you might want to purchase a CA from a trusted name like <a
href="http://www.verisign.com/" target="_blank">Verisign</a> (There are, of course, plenty of other places where you can purchase those certifiacates).</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/12/05/add-ssl-to-centos-web-server/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Add SASL to your Postfix server</title><link>http://www.ghacks.net/2010/07/27/add-sasl-to-your-postfix-server/</link> <comments>http://www.ghacks.net/2010/07/27/add-sasl-to-your-postfix-server/#comments</comments> <pubDate>Tue, 27 Jul 2010 11:32:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Email]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Networks]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[Dovecot]]></category> <category><![CDATA[Posfix]]></category> <category><![CDATA[SASL]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=28755</guid> <description><![CDATA[Some time ago I did a series on the Postfix email server here on Ghacks (see the Postfix content on Ghacks for more information). Hopefully you found this outstanding mail server as easy to set up and maintain as I do. But you might have noticed a bit of a challenge using your smtp server [...]]]></description> <content:encoded><![CDATA[<p>Some time ago I did a series on the Postfix email server here on Ghacks (see the <a
title="Postfix content on Ghacks" href="http://www.ghacks.net/index.php?s=postfix" target="_blank">Postfix content</a> on Ghacks for more information). Hopefully you found this outstanding mail server as easy to set up and maintain as I do. But you might have noticed a bit of a challenge using your smtp server outside of your network. Why is that? It is because, by default, Postfix will not authentic untrusted hosts &#8211; and any network outside of yours is an untrusted network. This is done by design &#8211; to keep others from using your SMTP server as a relay for SPAM. So how in the world do you set that Postfix server up so it can be connected to from the outside world? You will probably have users who need to do this.</p><p>When you have users that need access to your SMTP server from outside of your LAN you have to enable SASL (Simple Authentication and Security Layer). In this article I am going to show you how to do just that.</p><p><span
id="more-28755"></span><strong>Assumptions</strong></p><p>Naturally this article will assume you already have a working Postfix server that is both sending and receiving email. This article will describe the process as related to a CentOS 5 server (which makes an outstanding mail server for any size company). I will also assume you have root access to this server (as everything done in this article will need administrative privileges).</p><p><strong>First step</strong></p><p>The first thing you need to do is add a few lines to your <strong>/etc/postfix/main.cf </strong>file. What is needed is the following (add it to the end of the file):</p><p><code>smtpd_sasl_auth_enable = yes<br
/> broken_sasl_auth_clients = yes<br
/> smtpd_sasl_type = dovecot<br
/> smtpd_sasl_path = private/auth<br
/> smtpd_sasl_security_options = noanonymous</code></p><p>The next step is to add <em>permit_sasl_authenticated</em> to the <em>smtpd_recipient_restrictions</em> section of the same file. If you do not have an <em>smtpd_recipient_restrictions </em>section, just create the section like this:</p><p><code>smtpd_recipient_restrictions =<br
/> permit_mynetworks,<br
/> permit_sasl_authenticated,<br
/> reject_unauth_destination</code></p><p><strong>Second step</strong></p><div
id="attachment_28757" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/07/postfix.png"><img
class="size-medium wp-image-28757 " src="http://www.ghacks.net/wp-content/uploads/2010/07/postfix-500x331.png" alt="" width="300" height="199" /></a><p
class="wp-caption-text">Figure 1</p></div><p>The next step is to configure <em>auth default</em> in the authentication processes section (around line 778)  of <strong>/etc/dovecot.conf</strong>. This one is really tricky &#8211; only because this section of the <strong>dovecot.conf </strong>file is heavily commented and already contains some of the lines you will see Figure 1 and below. The code in figure 1 gives an easier representation of what needs to be added to the <strong>dovecot.conf </strong> file. The copy/paste-able text is below:</p><p><code>auth default {<br
/> mechanisms = plain login<br
/> passdb pam {<br
/> }<br
/> userdb passwd {<br
/> }<br
/> user = root<br
/> socket listen {<br
/> client {<br
/> path = /var/spool/postfix/private/auth<br
/> mode = 0660<br
/> user = postfix<br
/> group = postfix<br
/> }<br
/> }<br
/> }</code></p><p>Now it&#8217;s time to restart Postfix with the commands:<br
/> <code>service dovecot restart<br
/> postfix reload</code></p><p><strong>Testing</strong></p><p>It&#8217;s time to see if your setup works. To do this you will need to telnet to your mail server on port 25 like so:</p><p><code>telnet ADDRESS_OF_SERVER 25</code></p><p>Where ADDRESS_OF_SERVER is the actual address of your mail server. Now you need to generate a Base64 username/passcode to do so. This is possible with the help of Perl like so:<br
/> <code>perl -MMIME::Base64 -e 'print encode_base64("00USERNAME00PASSWORD");'</code></p><p>You can insert an actual username/password combination that exists on your server if you like in the command aboe (where you see USERNAME and PASSWORD).</p><p>This will print out a string of characters for you to use in the testing. The testing will look like this:<br
/> <code>telnet ADDRESS_OF_SERVER 25<br
/> Trying 127.0.0.1...<br
/> Connected to localhost.localdomain (127.0.0.1).<br
/> Escape character is '^]'.<br
/> 220 mail.example.com ESMTP Postfix<br
/> <strong>EHLO example.com</strong><br
/> 250-mail.example.com<br
/> 250-PIPELINING<br
/> 250-SIZE 20480000<br
/> 250-VRFY<br
/> 250-ETRN<br
/> 250-AUTH PLAIN LOGIN<br
/> 250-AUTH=PLAIN LOGIN<br
/> 250-ENHANCEDSTATUSCODES<br
/> 250-8BITMIME<br
/> 250 DSN<br
/> <strong>AUTH PLAIN STRING_OF_CHARACTERS</strong><br
/> 235 2.0.0 Authentication successful<br
/> <strong>quit</strong><br
/> 221 2.0.0 Bye<br
/> Connection closed by foreign host.</code><br
/> Where everything in <strong>bold</strong> is what you must enter and STRING_OF_CHARACTERS is the string generated by the earlier Perl command.</p><p><strong>Final thoughts</strong></p><p>If all is good you should have seen <em>Authentication successful</em> in your test. Congratulations, you can now access your SMTP server from outside of your LAN.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/07/27/add-sasl-to-your-postfix-server/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to choose a Linux distribution flow chart</title><link>http://www.ghacks.net/2010/01/02/how-to-choose-a-linux-distribution-flow-chart/</link> <comments>http://www.ghacks.net/2010/01/02/how-to-choose-a-linux-distribution-flow-chart/#comments</comments> <pubDate>Sat, 02 Jan 2010 20:36:24 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[ask the readers]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[choosing linux]]></category> <category><![CDATA[Fedora]]></category> <category><![CDATA[flow chart]]></category> <category><![CDATA[gentoo]]></category> <category><![CDATA[linux distributions]]></category> <category><![CDATA[Mandriva]]></category> <category><![CDATA[PCLinuxOS]]></category> <category><![CDATA[red hat enterprise linux]]></category> <category><![CDATA[slackware]]></category> <category><![CDATA[SuSE]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21990</guid> <description><![CDATA[The new year is here and you have made a resolution to give Linux a try. A noble resolution and one that will be met, initially, with much confusion. Why? Linux isn&#8217;t like Windows where your choice is limited to a single release with different features (depending upon how much you want to spend) or [...]]]></description> <content:encoded><![CDATA[<p>The new year is here and you have made a resolution to give Linux a try. A noble resolution and one that will be met, initially, with much confusion. Why? Linux isn&#8217;t like Windows where your choice is limited to a single release with different features (depending upon how much you want to spend) or OS X where you have no choice but to take what Apple gives you. No. Linux has a multitude of choices. In fact, if you go to <a
title="Distrowatch" href="http://distrowatch.com/">Distrowatch</a> you will see at least 100 distributions listed in the page hits ranking section. Think about it, 100 different versions of Linux. And that&#8217;s not all of them. There are many more variations out there, and more coming every day. And then, you add into the mix the enterprise level distributions that not only come with a price, but support, and the ever-staggering number continues to grow.</p><p>So how does a new-to-Linux user decide? With so many choices, how is it possible to start off on the right path? Without help, it&#8217;s not easy. My first Linux distribution was Caldera Open Linux 1. It was rough and nearly pushed me back to Windows. It wasn&#8217;t until I found Red Hat (4.2 at the time) that I found the right distribution for the right purpose. That was ten years ago and the choices were much more limited.</p><p><span
id="more-21990"></span></p><p>Because the new year is here, and I am always one to want to help people make the move to Linux, I thought I would create a flow chart to help Linux users make the right choice. Is it perfect? Probably not. Do I include every possible choice? No way. The distributions I have included are:</p><ul><li>Ubuntu</li><li>Ubuntu Server</li><li>Ubuntu Studio</li><li>Slackware</li><li>Fedora</li><li>Red Hat Enterprise Linux Desktop</li><li>Red Hat Enterprise Linux Server</li><li>SuSE Enterprise Linux Server</li><li>SuSE Enterprise Linux</li><li>Gentoo</li><li>Mandriva Power Pack</li><li>CentOS</li><li>PCLinuxOS</li><li>Linux Mint</li><li>Debian</li></ul><p>It&#8217;s still a healthy list of distributions, but not everyone. And I&#8217;m sure there will be those that disagree with my approach. That is understandable. So much so, that I am (in the spirit of open source) including my <a
title="Choosing Linux .dia file" href="http://www.monkeypantz.net/choosing_linux.dia" target="_blank">.dia file for the flowchart</a>. NOTE: The .dia file is hosted on my domain (outside of ghacks). I would love to see how readers change my flowchart to better fit their opinions/experiences.</p><div
id="attachment_21992" class="wp-caption alignleft" style="width: 510px"><a
href="http://www.ghacks.net/wp-content/uploads/2010/01/choosing_linux.jpg"><img
class="size-medium wp-image-21992" src="http://www.ghacks.net/wp-content/uploads/2010/01/choosing_linux-500x298.jpg" alt="" width="500" height="298" /></a><p
class="wp-caption-text">Figure 1</p></div><p>But for those that do not want to bother messing with editing the flowchart, and just want to see it in all its scattered &#8220;glory&#8221;, take a look at Figure 1.</p><p>One of the first things you might notice is the predestination paradox (temporal causality loop) I created for those unsure of their purpose for choosing Linux.</p><p>There might also be some initial confusion as to why I have included, in some choices, distributions that are rather similar. For example: The difference between Mandriva and PCLinuxOS might not be that great, but notice I have included the Mandriva Power Pack which includes pre-installed flash, various codecs, and Mandriva support.</p><p><strong>Final thoughts</strong></p><p>I hope this flowchart makes your choice of Linux an easier one. Even more, I hope this flow chart helps you to start your new year off on an open source foot, and that you find this path a rewarding one.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2010/01/02/how-to-choose-a-linux-distribution-flow-chart/feed/</wfw:commentRss> <slash:comments>37</slash:comments> </item> <item><title>Installing CentOS 5.4</title><link>http://www.ghacks.net/2009/11/02/installing-centos-5-4/</link> <comments>http://www.ghacks.net/2009/11/02/installing-centos-5-4/#comments</comments> <pubDate>Mon, 02 Nov 2009 14:55:52 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Operating Systems]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[CentOS]]></category> <category><![CDATA[enterprise linux]]></category> <category><![CDATA[KDE]]></category> <category><![CDATA[Red Hat Linux]]></category> <category><![CDATA[RHEL]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=17980</guid> <description><![CDATA[CentOS has not received much attention here on Ghacks, so I thought I would remedy that by introducing this outstanding flavor of Linux not by way of a Live CD (CentOS does have a Live CD, but you can not install from that CD), but by way of traditional means. Because of this you will [...]]]></description> <content:encoded><![CDATA[<p><a
title="CentOS" href="http://centos.org/" target="_blank">CentOS</a> has not received much attention here on Ghacks, so I thought I would remedy that by introducing this outstanding flavor of Linux not by way of a Live CD (CentOS does have a Live CD, but you can not install from that CD), but by way of traditional means. Because of this you will have  tutorial. But first, a little history (which might divulge reason for you to use CentOS).</p><p>CentOS is a community-driven spin off of Red Hat Enterprise Linux. This is different from Fedora in that it is not: 1) Not bleeding edge and 2) Geared toward Enterprise and not average desktop usage. CentOS is built to be 100% compatible with its bigger brother Red Hat Enterprise Linux while remaining a completely free operating system. In a nutshell CentOS is Red Hat Enterprise Linux without the branding and graphics. So, if you&#8217;re looking for an enterprise-class desktop operating system, and you do not want to spend the cash necessary for RHEL, CentOS is the distribution you&#8217;ve been looking for.</p><p>But how easily does it install? If you have ever installed Linux using the traditional installation disk method you will be just fine. It will, however, require some patience &#8211; and a torrent client.</p><p><span
id="more-17980"></span><strong>Download and burn</strong></p><p>The first, and arguably the lengthiest, step is to download the installation DVD (or you can download the 6 installation CDs if you do not have a DVD burner. Navigate your browser to the <a
title="CentOS Downloads" href="http://mirror.centos.org/centos/5/isos/" target="_blank">CentOS download page</a> and navigate to the architecture you want to download. Once there you will click on the DVD torrent link which should hopefully open up your torrent client to begin the download. Once the torrent download is done (and the DVD is pieced together) burn the image to disk and you are ready to install.</p><p><strong>Begin the installation</strong></p><p>Obviously the first thing you will need to do is insert the DVD into the machine you wish to install CentOS on and then reboot. When you do you will be greeted with a text-based screen offering a few choices, since we are just going to go straight to the installation, hit Enter when prompted for installation. Anaconda will start up and the first graphical window will appear &#8211; the ever-pointless &#8220;Welcome&#8221; screen. Hit Next to finally begin your installation.</p><p>The next two windows are all self-explanatory (and not worth wasting screenshots on). You have:</p><ul><li>Language selection</li><li>Keyboard selection</li></ul><div
id="attachment_18022" class="wp-caption alignleft" style="width: 190px"><a
rel="attachment wp-att-18022" href="http://www.ghacks.net/2009/11/02/installing-centos-5-4/centos_1/"><img
class="size-thumbnail wp-image-18022" src="http://www.ghacks.net/wp-content/uploads/2009/11/centOS_1-300x300.png" alt="Figure 1" width="180" height="180" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Now we get to the meat of the installation: The partitioner. The first phase of the partitioner (see Figure 1) requires you to:</p><ul><li>Choose a partition layout.</li><li>Decide if you want the system encrypted.</li><li>Select the drive(s) to use.</li><li>Choose advanced storage options (Add iSCSI or disable dmraid).</li><li>Review the partitioning layout.</li></ul><p>When you select Next, depending on your choice of partition layout, you may be warned about deleting data. If you are unsure, make sure you go over the choices and dismiss the warning.</p><p>The next window requires you to set up networking. You have two choices: DHCP or Manual. The configuration of either choice is very simple. If you do set up your networking manually take note of the hostname. You can leave the default (localhost.localdomain) or you can be creative and add a descriptive hostname. Just don&#8217;t use an FQDN here as that could cause networking issues.</p><p>The new few windows are also self explanatory:</p><ul><li>Timezone</li><li>Root password</li></ul><p>Remember, this is not a Ubuntu-based installation. The root password is very important. Do NOT base this on a dictionary word. Use your best judgement for administrator passwords here.</p><div
id="attachment_18023" class="wp-caption alignright" style="width: 190px"><a
rel="attachment wp-att-18023" href="http://www.ghacks.net/2009/11/02/installing-centos-5-4/centos_2/"><img
class="size-thumbnail wp-image-18023" src="http://www.ghacks.net/wp-content/uploads/2009/11/centOS_2-300x300.png" alt="Figure 2" width="180" height="180" /></a><p
class="wp-caption-text">Figure 2</p></div><p>The next screen (see Figure 2) is the package selection screen. You can go with the default, which will create a standard GNOME-based desktop installation. Your choices in this window are:</p><ul><li>Desktop &#8211; GNOME</li><li>Desktop &#8211; KDE</li><li>Server</li><li>Server &#8211; GUI</li><li>Virtualization</li><li>Clustering</li><li>Clustering &#8211; Storage</li></ul><p>I will opt to shy away from the standard install and go with a KDE desktop (later I will deal with other options). You can also add additional repositories at this point and choose to customize now or later.  If you choose to add new repositories you will have to have an active network connection.</p><p>When you click Next the installation will check all dependencies and then move on with the install. When the dependency check passes (and it should), click Next and the installation of packages will begin. Depending upon how many packages you have selected (as well as the power of your machine) the installation time will vary.</p><p>Finally, once all packages are installed, you will be asked to Reboot your system. Click the Reboot button and remove the install DVD (the installer will auto-eject when able). The system will then reboot and you will have a working CentOS 5.4 installation. Oddly enough, if you go with KDE you will be surprised to find out CentOS has not updated to KDE 4.</p><p>Of course, upon first boot, you will have to take care of some house keeping. Included in this house keeping is:</p><ul><li>Enabling/configuring a firewall</li><li>Setting up SELinux</li><li>Setting time/date</li><li>Creating a user</li><li>Sound card test</li><li>Install additional software (if applicable)</li></ul><p><strong>Final thoughts</strong></p><p>Although the CentOS installation isn&#8217;t nearly as easy as installing from a Live CD, the installation process doesn&#8217;t require a degree in engineering to get through. And when you&#8217;re done, you will have a fine (although outdated in some instances) working Linux distribution that is geared toward (but not only for) enterprise use.</p><p>We&#8217;ll deal with CentOS more in the future (as well as other distributions). But for now, enjoy your installation.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/11/02/installing-centos-5-4/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
