<?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>Server Monkey &#187; Shell</title>
	<atom:link href="http://server-monkey.com/category/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://server-monkey.com</link>
	<description></description>
	<lastBuildDate>Sat, 22 Jan 2011 18:59:14 +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>Verify Email Password With Telnet</title>
		<link>http://server-monkey.com/2009/08/29/verify-email-password-with-telnet/</link>
		<comments>http://server-monkey.com/2009/08/29/verify-email-password-with-telnet/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 05:45:16 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=115</guid>
		<description><![CDATA[The quickest way to verify an email password is by using telnet. The few steps below will show you how to do so; telnet server-monkey.com 110 +OK Hello there. USER tut@server-monkey.com +OK Password required. PASS testpassword +OK logged in. quit +OK Bye-bye. Connection closed by foreign host.]]></description>
			<content:encoded><![CDATA[<p>The quickest way to verify an email password is by using telnet. The few steps below will show you how to do so;</p>
<p><strong>telnet server-monkey.com 110</strong></p>
<p>+OK Hello there.<br />
USER tut@server-monkey.com<br />
+OK Password required.<br />
PASS testpassword<br />
+OK logged in.<br />
quit<br />
+OK Bye-bye.<br />
Connection closed by foreign host.</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/29/verify-email-password-with-telnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install IonCube Loader on WHM/Cpanel</title>
		<link>http://server-monkey.com/2009/08/29/how-to-install-ioncube-loader-on-whmcpanel/</link>
		<comments>http://server-monkey.com/2009/08/29/how-to-install-ioncube-loader-on-whmcpanel/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 05:37:08 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=111</guid>
		<description><![CDATA[Download It; wget http://downloads.ioncube.com/loader_download /ioncube_loaders_lin_x86.tar.gz tar zfx ioncube_loaders_lin_x86.tar.gz mv ioncube /usr/local Find PHP.ini php -i &#124; grep php.ini Edit your php.ini pico /usr/local/lib/php.ini or nano /usr/local/lib/php.ini Add Extension to PHP.ini zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so Restart Apache service httpd restart Check php -v PHP 5.2.10 (cli) (built: Aug 10 2009 05:47:14) Copyright (c) 1997-2009 The PHP Group Zend Engine [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Download It;<br />
</strong></p>
<p>wget http://downloads.ioncube.com/loader_download /ioncube_loaders_lin_x86.tar.gz<br />
tar zfx ioncube_loaders_lin_x86.tar.gz<br />
mv ioncube /usr/local</p>
<p><strong>Find PHP.ini</strong><br />
php -i | grep php.ini</p>
<p><strong>Edit your php.ini</strong><br />
pico /usr/local/lib/php.ini or nano /usr/local/lib/php.ini</p>
<p><strong>Add Extension to PHP.ini</strong><br />
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so</p>
<p><strong>Restart Apache</strong><br />
service httpd restart</p>
<p><strong>Check</strong><br />
php -v<br />
PHP 5.2.10 (cli) (built: Aug 10 2009 05:47:14)<br />
Copyright (c) 1997-2009 The PHP Group<br />
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies<br />
with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd.<br />
with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/29/how-to-install-ioncube-loader-on-whmcpanel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Exim Cheatsheet</title>
		<link>http://server-monkey.com/2009/08/16/exim-cheatsheet/</link>
		<comments>http://server-monkey.com/2009/08/16/exim-cheatsheet/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 05:20:37 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=83</guid>
		<description><![CDATA[While surfing the web, I discovered this great cheat sheet for troubleshoot mail issues in cPanel/DirectAdmin or any exim mail server. You can check it out at; http://bradthemad.org/tech/notes/exim_cheatsheet.php]]></description>
			<content:encoded><![CDATA[<p>While surfing the web, I discovered this great cheat sheet for troubleshoot mail issues in cPanel/DirectAdmin or any exim mail server.</p>
<p>You can check it out at;<br />
<a href="http://bradthemad.org/tech/notes/exim_cheatsheet.php">http://bradthemad.org/tech/notes/exim_cheatsheet.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/16/exim-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chattr, a more indepth look</title>
		<link>http://server-monkey.com/2009/08/16/chattr-a-more-indepth-look/</link>
		<comments>http://server-monkey.com/2009/08/16/chattr-a-more-indepth-look/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 20:21:53 +0000</pubDate>
		<dc:creator>Thor Erik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=78</guid>
		<description><![CDATA[Chatter is a utility you&#8217;d find on most Linux systems, it&#8217;s sole purpose is to change file attributes. when you use Chattr you&#8217;ll probably use it in symbolic mode, this means you will be using +, &#8211; and =(plus, minus and equals) plus either of the attributes: A, S, a, c, D, d, I, i, [...]]]></description>
			<content:encoded><![CDATA[<p>Chatter is a utility you&#8217;d find on most Linux systems, it&#8217;s sole purpose is to change file attributes.</p>
<p>when you use Chattr you&#8217;ll probably use it in symbolic mode, this means you will be using +, &#8211; and =(plus, minus and equals) plus either of the attributes: A, S, a, c, D, d, I, i, j, s, T, t, u.</p>
<p><strong>Symbols</strong></p>
<p>+ adds a attribute</p>
<p>- removes a attribute</p>
<p>= causes the attribute to be the only</p>
<p><strong>Attributes</strong></p>
<p>a (small A) is append only, this only allows someone to add to a file.</p>
<p>c (small C) is compressed</p>
<p>d (small D) is no dump</p>
<p>i (small I) is immutable, meaning no delete for anyone, not even root</p>
<p>j (small J) is journaling</p>
<p>s (small S) is secure deletion, incase you want to remove a file completely with no way of recovery(except IBAS)</p>
<p>t (small T) is no tailing</p>
<p>u (small U) is undeleteable</p>
<p>A (capital A) is no atime updates</p>
<p>D (capital D) is synchronousdirectory updates</p>
<p>S (capital S) is synchronous updates</p>
<p>T (capital T) is top of directory hierarchy, useful for important files</p>
<p><strong>Options</strong></p>
<p>As with most commands you got options as well</p>
<p>chattr got most of the common ones:</p>
<p>-R, recursive</p>
<p>-V, verbose</p>
<p>-f, suppress most errors</p>
<p>-v, version</p>
<p>options go first of course</p>
<p><strong>Common use</strong></p>
<p>most of the time you won&#8217;t use all of these options, but some you will run into quite often would be</p>
<p>chattr +i/chattr =i to protect files from accidental deletion</p>
<p>chattr +T to make a important file top of the file listings</p>
<p>chattr +d to prevent dumping of a file</p>
<p>and in some rare cases<br />
chattr +ad to  only allowing appending and prevent backup using</p>
<pre>dump</pre>
<p>, this could be useful for log files etc. that you only want to be appended to and not backed up</p>
<h5><em>Source: man chattr</em></h5>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/16/chattr-a-more-indepth-look/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep your clocks in sync</title>
		<link>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/</link>
		<comments>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:13:32 +0000</pubDate>
		<dc:creator>Thor Erik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=59</guid>
		<description><![CDATA[An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230; Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol. Setting it up is easy: on RHEL/Fedora/CentOS: centos ~ # yum install ntp on Debian and debian based distributions: debian ~ [...]]]></description>
			<content:encoded><![CDATA[<p>An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230;</p>
<p>Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol.</p>
<p>Setting it up is easy:</p>
<p>on RHEL/Fedora/CentOS:</p>
<p>centos ~ # <em>yum install ntp</em></p>
<p>on Debian and debian based distributions:</p>
<p>debian ~ # <em>apt-get install ntp</em></p>
<p>(everything is root of course)</p>
<p>on debian you are done now, NTPD should be started, of course if you want to specify your own NTP server or NTP pool, you just edit /etc/ntp.conf</p>
<p>on RHEL it&#8217;s just a few more steps:</p>
<p><em>chkconfig ntpd on</em></p>
<p><em>ntpdate pool.ntp.org</em></p>
<p><em>/etc/init.d/ntpd start</em></p>
<p>and that should be it, please do know that if it&#8217;s a VPS forget about NTP, the system time is inherited from the host, unless you run it on a windows host(ex. Windows 2008 or in my debian server&#8217;s case, Windows 2008 R2 and using Hyper-V)</p>
<p>The error you get will be something like this:</p>
<p><em>ntpdate[18411]: step-systime: Operation not permitted</em></p>
<p>after trying to run <em>ntpdate pool.ntp.org</em></p>
<p>On Windows it&#8217;s all a hell lot easier(in gui that is)</p>
<p>Right click on the clock and choose Adjust time and date</p>
<p>go to the Internet time tab.</p>
<p>then click the button saying Change settings.</p>
<p>make sure the checkbox is checked, and if you prefer a different ntp server, change it from time.microsoft.com (but it&#8217;s good as well, NTP takes latency into account when setting clock)</p>
<p>Windows does not support ntp pools, so please define a proper NTP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>cPanel and DomainKeys</title>
		<link>http://server-monkey.com/2009/08/01/cpanel-and-domainkeys/</link>
		<comments>http://server-monkey.com/2009/08/01/cpanel-and-domainkeys/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 03:16:25 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=36</guid>
		<description><![CDATA[Lets face it. Sending mail to some domains such as yahoo and hotmail can become a pain in the ass. Installing DomainKeys can help with the delivery of mail. Installation on a single domain; /usr/local/cpanel/bin/domain_keys_installer user Where user is the user&#8217;s cPanel username If running this command gives you an error, then your more then [...]]]></description>
			<content:encoded><![CDATA[<p>Lets face it. Sending mail to some domains such as yahoo and hotmail can become a pain in the ass. Installing DomainKeys can help with the delivery of mail.</p>
<p>Installation on a single domain;<br />
/usr/local/cpanel/bin/domain_keys_installer user</p>
<p>Where user is the user&#8217;s cPanel username<br />
If running this command gives you an error, then your more then likely not running the latest version of cPanel or you have not converted to maildir.</p>
<p>Installing on all domains;<br />
for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done</p>
<p>Bash script to parse all cPanel users and run the command.</p>
<p>Now, what about when you add new account;<br />
Modify cPanel&#8217;s PostWWW script &#8220;/scripts/postwwwacct&#8221;<br />
add;</p>
<p>my %OPTS = @ARGV;<br />
my $user = $OPTS{’user’};<br />
/usr/local/cpanel/bin/domain_keys_installer $user</p>
<p>Done. </p>
<p>More Info on DomainKeys; http://domainkeys.sourceforge.net/</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/01/cpanel-and-domainkeys/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Screen?</title>
		<link>http://server-monkey.com/2009/08/01/what-is-screen/</link>
		<comments>http://server-monkey.com/2009/08/01/what-is-screen/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 20:33:25 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=27</guid>
		<description><![CDATA[Screen allows you 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. First off, install screen; yum install screen Now, type; screen This will allow you to start a new screen. You can also use the -S option to [...]]]></description>
			<content:encoded><![CDATA[<p>Screen allows you 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>First off, install screen;<br />
yum install screen</p>
<p>Now, type;<br />
screen</p>
<p>This will allow you to start a new screen. You can also use the -S option to name your screen like so;<br />
screen -S 1</p>
<p>So your in a new screen now, awesome. Run your dang commands now.</p>
<p>To detach your screen while still leaving it running, you may push ctrl+a and then d.</p>
<p>To attach back to the screen;<br />
screen -r</p>
<p>That&#8217;s about it. Screen For Dummies.</p>
<p>Other Commands;<br />
Ctrl+a and then C; create a new screen<br />
Ctrl+a and then N; switches between screens</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/01/what-is-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing cPanel in 3 Quick Steps</title>
		<link>http://server-monkey.com/2009/07/26/installing-cpanel-in-3-quick-steps/</link>
		<comments>http://server-monkey.com/2009/07/26/installing-cpanel-in-3-quick-steps/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 05:01:49 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=23</guid>
		<description><![CDATA[Installing cPanel is as easy as&#8230; 1) cd /home 2) wget http://layer1.cpanel.net/latest 3) sh latest and then wait while massive text scrolls your screen!]]></description>
			<content:encoded><![CDATA[<p>Installing cPanel is as easy as&#8230;</p>
<p>   1) cd /home<br />
   2) wget http://layer1.cpanel.net/latest<br />
   3) sh latest </p>
<p>and then wait while massive text scrolls your screen!</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/installing-cpanel-in-3-quick-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To: Install and Configure a GUI on your Linux VPS</title>
		<link>http://server-monkey.com/2009/07/26/how-to-install-and-configure-a-gui-on-your-linux-vps/</link>
		<comments>http://server-monkey.com/2009/07/26/how-to-install-and-configure-a-gui-on-your-linux-vps/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 03:41:03 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=19</guid>
		<description><![CDATA[Have you ever wanted to VNC into your server and be able to access a GUI remotely? Well here&#8217;s a simple to follow tutorial that I have personally used several times! Courtesy of WebHostingTalk.com; http://www.webhostingtalk.com/showthread.php?t=589702]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to VNC into your server and be able to access a GUI remotely? Well here&#8217;s a simple to follow tutorial that I have personally used several times!</p>
<p>Courtesy of WebHostingTalk.com;<br />
<a href="http://www.webhostingtalk.com/showthread.php?t=589702">http://www.webhostingtalk.com/showthread.php?t=589702</a></p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/how-to-install-and-configure-a-gui-on-your-linux-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Plesk Admin Password from Shell</title>
		<link>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/</link>
		<comments>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 02:53:15 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=11</guid>
		<description><![CDATA[./ch_admin_passwd is Plesk&#8217;s utility to set the admin password. &#8220;Gets password from the environment variable PSA_PASSWORDPassword should be from 5 to 16 symbols and should not contain login name, whitespace, quotes or national characters&#8221; [root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’ [root@ServerMonkey bin]# echo $PSA_PASSWORD newpass [root@ServerMonkey bin]# ./ch_admin_passwd [root@ServerMonkey bin]# export PSA_PASSWORD= [root@ServerMonkey bin]# cat /etc/psa/.psa.shadow newpass [...]]]></description>
			<content:encoded><![CDATA[<p>./ch_admin_passwd is Plesk&#8217;s utility to set the admin password.</p>
<p>&#8220;<span style="font-weight: bold;">Gets password from the environment variable PSA_PASSWORD</span><br style="font-weight: bold;" /><span style="font-weight: bold;">Password should be from 5 to 16 symbols and should not contain login name,</span><span style="font-weight: bold;"> whitespace, quotes or national characters&#8221;</span></p>
<p>[root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’</p>
<p>[root@ServerMonkey bin]# echo $PSA_PASSWORD</p>
<p>newpass</p>
<p>[root@ServerMonkey bin]# ./ch_admin_passwd</p>
<p>[root@ServerMonkey bin]# export PSA_PASSWORD=</p>
<p>[root@ServerMonkey bin]# cat /etc/psa/.psa.shadow</p>
<p>newpass</p>
<p>[root@ServerMonkey bin]#</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

