<?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>The Linux Noob &#187; SSH</title>
	<atom:link href="http://thelinuxnoob.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin&#039; issues one ticket at a time</description>
	<lastBuildDate>Tue, 19 Jul 2011 12:43:53 +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>Session.save_path error</title>
		<link>http://thelinuxnoob.com/linux/session-save_path-error/</link>
		<comments>http://thelinuxnoob.com/linux/session-save_path-error/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 10:28:27 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Php.ini]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[session.save_path]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=71</guid>
		<description><![CDATA[So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script. The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify [...]]]></description>
			<content:encoded><![CDATA[<p>So&#8230;I came across this error on a clients site which he was receiving when trying to install a 3rd party script.</p>
<blockquote><p>The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.</p></blockquote>
<p>It&#8217;s a pretty simple fix in the servers php.ini.<span id="more-71"></span> First thing you need to do is locate your servers copy of the php.ini by running the following command via SSH.</p>
<blockquote><p>root@lolwut [~]# php -i | grep php.ini<br />
Configuration File (php.ini) Path =&gt; /usr/local/lib<br />
Loaded Configuration File =&gt; /usr/local/lib/php.ini<br />
root@lolwut [~]#</p></blockquote>
<p>Once you&#8217;ve found the php.ini, use your favorite editor and locate the following line.</p>
<blockquote><p>root@lolwut [~]# grep &#8216;session.save_path&#8217; /usr/local/lib/php.ini<br />
;     session.save_path = &#8220;N;/path&#8221;<br />
;session.save_path = /tmp<br />
;       (see session.save_path above), then garbage collection does *not*<br />
root@lolwut [~]#</p></blockquote>
<p>In this case, simply remove &#8220;;&#8221; which will uncomment the line. If you are missing the &#8220;/tmp&#8221; part of the line, you will need to add it. Make these changes and save the file, then restart apache and you&#8217;re good to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/session-save_path-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install fantastico on cPanel</title>
		<link>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/</link>
		<comments>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 06:07:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[fantastico]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[makecpphp]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=51</guid>
		<description><![CDATA[A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from Netenburg. One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may [...]]]></description>
			<content:encoded><![CDATA[<p>A fantastico installation is pretty straight forward. First thing you need to do is obtain a Fantastico license from <a href="http://www.netenberg.com/fantastico.php" target="_blank">Netenburg</a>.</p>
<p>One of the most common issues when installing fantastico is a buggy wget install on the server, so a working wget version will need to be installed. Another common issue is cPanels internal php may break, but we will discuss the fix to that later on. <span id="more-51"></span>To install the working version of wget run the following commands:</p>
<blockquote><p>rpm -qa wget ;<br />
wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/wget-1.10.2-3.2.1.i386.rpm<br />
chattr -ia /usr/bin/wget<br />
rpm -e wget ;<br />
rpm -ivh &#8211;force wget-1.10.2-3.2.1.i386.rpm ;<br />
rpm -qa wget ;</p></blockquote>
<p>First thing is downloading the Fantastico files to the server.</p>
<blockquote><p>/scripts/upcp<br />
cd /usr/local/cpanel/whostmgr/docroot/cgi<br />
wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz<br />
tar -xzpf fantastico_whm_admin.tgz<br />
rm -rf fantastico_whm_admin.tgz</p></blockquote>
<p>Once the files have been downloaded, log into WHM with your root account and select <strong>&#8220;F</strong>antastico De Luxe WHM Admin&#8221; under the plugin section on the left side of WHM at the bottom.<br />
<!-- br--></p>
<p style="text-align: center;"><img class="aligncenter" title="Fantstico side" src="/tutorials/fantastico/1.jpg" alt="" width="201" height="96" /></p>
<p><!-- br--><br />
You will then go the Fantastico main page, where you will select &#8220;Click here&#8221; under &#8216;Version Information&#8217; in the middle. Now select the stable version from the drop down menu.<br />
<!-- br--></p>
<p style="text-align: center;"><img class="aligncenter" title="Fantastico tut" src="/tutorials/fantastico/2.jpg" alt="" width="360" height="154" /></p>
<p><!-- br--><br />
Now follow the remaining steps using the default information, as all of it should be correct, though you may want to double check. Be sure to select &#8220;enable&#8221; next to suexec if it is installed on the server and also check the VPS section if you have installed this on a VPS.</p>
<p>If you receive cpanel_phpengine errors when logged into Fantastico as end user, run the following command via SSH.</p>
<blockquote>
<p style="text-align: left;">/scripts/makecpphp</p>
</blockquote>
<p>You may also run into an ioncube error when trying to log into Fantastico, which can be fixed by logging into WHM as root -&gt; Tweak Settings -&gt; Loader to use for internal cPanel PHP -&gt; IonCube -&gt; Save</p>
<p>If you have any issues with your install, feel free to comment this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/install-fantastico-on-cpanel/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Exim Error: Ratelimit database not available</title>
		<link>http://thelinuxnoob.com/linux/ratelimit-database-not-available/</link>
		<comments>http://thelinuxnoob.com/linux/ratelimit-database-not-available/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:17:50 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail Issues]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[ratelimit]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=44</guid>
		<description><![CDATA[2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out 2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available To fix such an error , the exim cache database on the server side needs to be clear off to stop this message. Run the folllowing command on root : root@lolwut [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>2009-07-20 21:58:07 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out<br />
2008-07-20 21:58:07 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available</p>
<p>To fix such an error , the exim cache database on the server side needs to be clear off to stop this message.<span id="more-44"></span></p>
<p>Run the folllowing command on root :</p>
<blockquote><p>root@lolwut [~]# rm -fv /var/spool/exim/db/*</p></blockquote>
<p>Output :</p>
<blockquote><p>removed `/var/spool/exim/db/ratelimit’<br />
removed `/var/spool/exim/db/ratelimit.lockfile’<br />
removed `/var/spool/exim/db/retry’<br />
removed `/var/spool/exim/db/retry.lockfile’<br />
removed `/var/spool/exim/db/wait-dk_remote_smtp’<br />
removed `/var/spool/exim/db/wait-dk_remote_smtp.lockfile’<br />
removed `/var/spool/exim/db/wait-remote_smtp’<br />
removed `/var/spool/exim/db/wait-remote_smtp.lockfile’</p></blockquote>
<p>Then run the following command on root:</p>
<blockquote><p>root@lolwut [~]# service exim restart</p></blockquote>
<p>If this doesn’t work , then run  /scripts/upcp –force on the server and then check exim_mainlog for the changes.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/ratelimit-database-not-available/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Creating an extracting tar files</title>
		<link>http://thelinuxnoob.com/linux/create-and-extract-tar-files/</link>
		<comments>http://thelinuxnoob.com/linux/create-and-extract-tar-files/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:37:28 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[compress folder]]></category>
		<category><![CDATA[decompress folder]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[tar.gz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=36</guid>
		<description><![CDATA[The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. Tar.gz is a compressed tar file. How to create a compressed tar.gz file from a folder or file in Linux? In order to create a compressed tar.gz archive from a folder/file we need to run [...]]]></description>
			<content:encoded><![CDATA[<p>The most common compressed archive file format in Linux is the tar.gz format. Tar file is an archive file format. <a href="http://en.wikipedia.org/wiki/Tar_(file_format)">Tar.gz</a> is a compressed tar file.</p>
<h3>How to create a compressed tar.gz file from a folder or file in Linux?</h3>
<p>In order to create a compressed tar.gz archive from a folder/file we need to run the following tar command:</p>
<p><code>tar -czf new-tar-file-name.tar.gz file-or-folder-to-archive</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>c &#8211; create new archive.</li>
<li>z &#8211; compress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>new-tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
<li>file-or-folder-to-archive &#8211; the name of the folder we want to archive.</li>
</ul>
<h3><span id="more-36"></span></h3>
<h3>How to create a compressed tar.gz file from multiple files and folders in Linux?</h3>
<p>In order to create a compressed tar.gz file from multiple files or/and folders we need to run the same tar command we used when we archived a single file/folder and to append the rest of the files/folders&#8217; names to it.</p>
<p><code>tar -czf new-tar-file-name.tar.gz file1 file2 folder1 folder2</code></p>
<h3>How to extract a compressed tar.gz file in Linux?</h3>
<p><code>tar -xzf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>z &#8211; uncompress the archive using gzip.</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
<h3>How to extract a compressed tar.bz2 file in Linux?</h3>
<p>Extracting tar.bz2 (bzip2 file) is very similar to the way you extract tar.gz file. Instead of using the -z flag you need to use the -j flag for the bzip2 format</p>
<p><code>tar -xjf tar-file-name.tar.gz</code></p>
<p>Here is the command explanation:</p>
<ul>
<li>tar &#8211; the tar command.</li>
<li>x &#8211; extract the archive.</li>
<li>j - filter the archive through bzip2</li>
<li>f &#8211; use archive file.</li>
<li>tar-file-name.tar.gz &#8211; the name of the tar.gz to create.</li>
</ul>
<p>The tar command will extract all the files/folders in the archive to the current directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/create-and-extract-tar-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>pty, ptyp, and tty errors</title>
		<link>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/</link>
		<comments>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 16:49:31 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=25</guid>
		<description><![CDATA[So I came across this error for the first time today when trying to SSH directly into a clients VPS. login as: root root@server&#8217;s password: Server refused to allocate pty stdin: is not a tty After a quick google search I came across the fix. [root@node /]# vzlist -a VEID      NPROC STATUS  IP_ADDR         HOSTNAME 1337 [...]]]></description>
			<content:encoded><![CDATA[<p>So I came across this error for the first time today when trying to SSH directly into a clients VPS.</p>
<blockquote><p>login as: root<br />
root@server&#8217;s password:<br />
Server refused to allocate pty<br />
stdin: is not a tty</p></blockquote>
<p>After a quick google search I came across the fix.</p>
<blockquote><p>[root@node /]# vzlist -a<br />
VEID      NPROC STATUS  IP_ADDR         HOSTNAME<br />
1337         78 running 69.10.59.80     grumpy.thelinuxnoob.com<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV ptyp<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV tty<br />
[root@node /]# vzctl exec 1337 /sbin/MAKEDEV pty</p></blockquote>
<p>The issue should now be resolved and you can SSH into the VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/pty-ptyp-and-tty-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Perl</title>
		<link>http://thelinuxnoob.com/linux/install-perl/</link>
		<comments>http://thelinuxnoob.com/linux/install-perl/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 07:54:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=21</guid>
		<description><![CDATA[Very simple install, only 4 commands via SSH and takes about 20 minutes for the install to complete. wget http://layer1.cpanel.net/perl588installer.tar.gz tar -xvzf perl588installer.tar.gz cd perl588installer ./install]]></description>
			<content:encoded><![CDATA[<p>Very simple install, only 4 commands via SSH and takes about 20 minutes for the install to complete.</p>
<blockquote><p>wget http://layer1.cpanel.net/perl588installer.tar.gz<br />
tar -xvzf perl588installer.tar.gz<br />
cd perl588installer<br />
./install</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/install-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade MySQL4 to MySQL5 on cPanel server</title>
		<link>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/</link>
		<comments>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 03:22:01 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=18</guid>
		<description><![CDATA[Upgrading MySQL versions is a quick and easy process, not much work involved. Always be sure to make a backup before you start though, just in case the upgrade fails or some other unforeseen issue arises. cp -Rpf /var/lib/mysql /var/lib/mysql.BAK Login to WHM –&#62; Tweak Settings –&#62; MySQL -&#62; 5.0  and Save settings /scripts/mysqlup &#8211;force [...]]]></description>
			<content:encoded><![CDATA[<p>Upgrading MySQL versions is a quick and easy process, not much work involved. Always be sure to make a backup before you start though, just in case the upgrade fails or some other unforeseen issue arises.</p>
<blockquote><p>cp -Rpf /var/lib/mysql /var/lib/mysql.BAK<br />
Login to WHM –&gt; Tweak Settings –&gt; MySQL -&gt; 5.0  and Save settings<br />
/scripts/mysqlup &#8211;force<br />
/scripts/perlinstaller &#8211;force Bundle::DBD::mysql<br />
/scripts/realperlinstaller &#8211;force DBD::mysql<br />
Recompile PHP</p></blockquote>
<p>You&#8217;re done <img src='http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/upgrade-mysql4-to-mysql5-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Disable root SSH access</title>
		<link>http://thelinuxnoob.com/linux/disable-root-ssh-access/</link>
		<comments>http://thelinuxnoob.com/linux/disable-root-ssh-access/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 02:38:05 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[su]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=16</guid>
		<description><![CDATA[Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue. This will force a hacker to have to guess 2 seperate passwords to gain root access. (you do have 2 seperate [...]]]></description>
			<content:encoded><![CDATA[<p>Allowing the root user to login directly is a major security issue, we’ll show you how to disable it so you can still login as root but just not directly, reducing the security issue.</p>
<p>This will force a hacker to have to guess 2 seperate passwords to gain root access.<br />
(you do have 2 seperate passwords for admin and root right?)<br />
What happens is you’ll first need to login as your <em>admin </em>user in <abbr title="Secure Shell">SSH</abbr>, then switch to the super user with the <em>su</em> command to get root.</p>
<p>We also will be forcing the use of <abbr title="Secure Shell">SSH</abbr> protocol 2, which is a newer, more secure <abbr title="Secure Shell">SSH</abbr> protocol<br />
Just a couple more ways to help your server stay safe from the bad guys. If you’re using cPanel make sure you add your admin user to the ‘<em>wheel</em>‘ group so that you will be able to ‘<em>su -</em>‘ to root, otherwise you may lock yourself out of root.</p>
<blockquote><p><strong>1.</strong> <abbr title="Secure Shell">SSH</abbr> into your server as ‘<em>admin</em>‘ and gain root access by <em>su</em></p>
<p><strong>2.</strong> Copy and paste this line to edit the file for <abbr title="Secure Shell">SSH</abbr> logins<br />
<em>pico -w /etc/<abbr title="Secure Shell">ssh</abbr>/sshd_config</em></p>
<p><em></em><strong>3.</strong> Find the line<br />
<em>Protocol 2, 1</em></p>
<p><strong>4.</strong> Uncomment it and change it to look like<br />
<em>Protocol 2</em></p>
<p><em></em><strong>5.</strong> Next, find the line<br />
<em>PermitRootLogin yes</em></p>
<p><em></em><strong>6.</strong> Uncomment it and make it look like <em>PermitRootLogin no</em></p>
<p><em></em><strong>7.</strong> Save the file <em>Ctrl+X</em> then <em>Y</em> then <em>enter</em></p>
<p><strong>8.</strong> Now you can restart <abbr title="Secure Shell">SSH</abbr><br />
<em>/etc/rc.d/init.d/sshd restart</em></p></blockquote>
<p><em></em>Now, no one will be able to login to root with out first loggin in as admin and ’su -’ to root, and you will be forcing the use of a more secure protocol. Just make sure you remember both passwords!</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/disable-root-ssh-access/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Screen in SSH</title>
		<link>http://thelinuxnoob.com/linux/screen-in-ssh/</link>
		<comments>http://thelinuxnoob.com/linux/screen-in-ssh/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 02:37:07 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=14</guid>
		<description><![CDATA[I’m short on time, but here’s a nice little tutorial on screen in SSH courtesy of Aperiodic.net. Getting in start a new screen session: screen .. with session name: screen -S &#60;name&#62; attach to a running session: screen -r .. to session with name: screen -r &#60;name&#62; the “ultimate attach”: screen -dRR (Attaches to a [...]]]></description>
			<content:encoded><![CDATA[<p>I’m short on time, but here’s a nice little tutorial on screen in SSH courtesy of Aperiodic.net.</p>
<blockquote>
<h3><a id="getting_in" name="getting_in">Getting in</a></h3>
<div class="level3">
<p>start a new screen session: <code>screen</code><br />
.. with session name: <code>screen -S <em>&lt;name&gt;</em></code><br />
attach to a running session: <code>screen -r</code><br />
.. to session with name: <code>screen -r <em>&lt;name&gt;</em></code><br />
the “ultimate attach”: <code>screen -dRR</code> (Attaches to a screen session. If the session is attached elsewhere, detaches that other display. If no session exists, creates one. If multiple sessions exist, uses the first one.)</div>
<h3><a id="escape_key" name="escape_key">Escape key</a></h3>
<div class="level3">
<p>All screen commands are prefixed by an escape key, by default C-a (that’s Control-a, sometimes written ^A). To send a literal C-a to the programs in screen, use <code>C-a a</code>.</p>
<h3><a id="getting_out" name="getting_out">Getting out</a></h3>
<p>detach: <code>C-a d</code><br />
detach and logout (quick exit): <code>C-a D D</code><br />
exit screen: exit all of the programs in screen.<br />
force-exit screen: <code>C-a C-</code> (<em>not</em> recommended)</div>
<h3><a id="help" name="help">Help</a></h3>
<div class="level3">
<p>See help: <code>C-a ?</code> (lists keybindings)</div>
<h3><a id="window_management" name="window_management">Window Management</a></h3>
<div class="level3">
<p>create new window: <code>C-a c</code><br />
change to last-visited active window: <code>C-a C-a</code> (commonly used to flip-flop between two windows)<br />
change to window by number: <code>C-a &lt;number&gt;</code> (only for windows 0 to 9)<br />
change to window by number or name: <code>C-a ' &lt;number or title&gt;</code><br />
change to next window in list: <code>C-a n</code> or <code>C-a &lt;space&gt;</code><br />
change to previous window in list: <code>C-a p</code><br />
see window list: <code>C-a ”</code> (allows you to select a window to change to)<br />
show window bar <code>C-a w</code> (if you don’t have window bar)<br />
close current window: Close all applications in the current window (including shell)<br />
kill current window: <code>C-a k</code> (not recommended)<br />
rename current window: <code>C-a A</code></div>
<h3><a id="split_screen" name="split_screen">Split screen</a></h3>
<div class="level3">
<p>split display: <code>C-a S</code><br />
jump to next display region: <code>C-a tab</code><br />
remove current region: <code>C-a X</code><br />
remove all regions but the current one: <code>C-a Q</code></div>
<h3><a id="misc" name="misc">Misc</a></h3>
<p>redraw window: <code>C-a C-l</code><br />
enter copy mode: <code>C-a [</code> (also used for viewing scrollback buffer)<br />
paste: <code>C-a ]</code><br />
monitor window for activity: <code>C-a M</code><br />
monitor window for silence: <code>C-a _</code><br />
enter digraph: <code>C-a C-v</code><br />
lock (password protect) display: <code>C-a x</code><br />
enter screen command: <code>C-a :</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/screen-in-ssh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Server time keeps resetting</title>
		<link>http://thelinuxnoob.com/linux/server-time-keeps-resetting/</link>
		<comments>http://thelinuxnoob.com/linux/server-time-keeps-resetting/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 02:32:48 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://69.10.59.80/~thelinux/?p=11</guid>
		<description><![CDATA[Last night I came across a ticket where a customers time kept resetting on their dedicated server. Typically I would fix the time by using the date command because most of issues I came across the servers were only minutes off. After reading through the clients ticket history I realized that the timezone and minutes [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I came across a ticket where a customers time kept resetting on their dedicated server. Typically I would fix the time by using the date command because most of issues I came across the servers were only minutes off. After reading through the clients ticket history I realized that the timezone and minutes were correct, but the hour was still off. After a nice little google search I came across a post on a popular linux forum, where a member had the same issue the client was having. In the post a member suggested creating a symlink for /etc/localtime to point to the clients timezone in the /usr/share/zoneinfo folder. I figured it was worth a shot and tried this fix out, and it worked perfectly <img class="wp-smiley" src="http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
<p>Since the client was located in Pakistan, he needed the server to be set to the Asai/Karachi time zone.</p>
<blockquote><p>root@server [/]# ln -sf /usr/share/zoneinfo/Asia/Karachi /etc/localtime</p></blockquote>
<p>Before the symlink the time showed in EST but listed the timezone as GMT +5</p>
<blockquote><p>root@server[/]# date<br />
Mon Jan 26 02:46:24 GMT+5 2009<br />
root@server[/]#</p></blockquote>
<p>After the symlink the time showed in Asia/Karachi (or GMT +5)</p>
<blockquote><p>root@server [/]# date<br />
Mon Jan 26 12:48:14 PKT 2009<br />
root@server[/]#</p></blockquote>
<p>Your localtime file should look like this now:</p>
<blockquote><p>lrwxrwxrwx  1 root   root       32 Jan 26 12:47 localtime -&gt; /usr/share/zoneinfo/Asia/Karachi</p></blockquote>
<p>I’m not entirely sure why the date wasn’t correct to begin with as the timezone was correct (+5GMT) when checking with the date command. But, things are fixed now so I really can’t complain since the customer is happy <img class="wp-smiley" src="http://thelinuxnoob.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" /></p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/server-time-keeps-resetting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

