<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for 5p.dk</title>
	<atom:link href="http://www.5p.dk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.5p.dk</link>
	<description>Random thoughts and programming</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:59:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on Requests by Tobias</title>
		<link>http://www.5p.dk/tinyshell/requests/comment-page-1/#comment-681</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Wed, 25 Jan 2012 19:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-681</guid>
		<description>I uses TinyShell on a Server with debian Squeeze and Apache browsing with Firefox 9.0 and become this Error:
&lt;code&gt;Notice: Undefined index: tssid in /var/www/tinyshell/header.php on line 26&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I uses TinyShell on a Server with debian Squeeze and Apache browsing with Firefox 9.0 and become this Error:</p>
<pre>Notice: Undefined index: tssid in /var/www/tinyshell/header.php on line 26</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on TinyShell by Theis Mackeprang</title>
		<link>http://www.5p.dk/tinyshell/comment-page-1/#comment-378</link>
		<dc:creator>Theis Mackeprang</dc:creator>
		<pubDate>Mon, 24 Oct 2011 08:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-378</guid>
		<description>Sorry, I cannot remember what program I used. But it was freeware.</description>
		<content:encoded><![CDATA[<p>Sorry, I cannot remember what program I used. But it was freeware.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on TinyShell by Insane User</title>
		<link>http://www.5p.dk/tinyshell/comment-page-1/#comment-369</link>
		<dc:creator>Insane User</dc:creator>
		<pubDate>Mon, 17 Oct 2011 23:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-369</guid>
		<description>Off topic question, what did you use to record the screen to create the demo above? 

It was used in, &quot;http://www.youtube.com/v/BvPcwhqcmTk?fs=1&amp;hl=da_DK&amp;rel=0&quot;</description>
		<content:encoded><![CDATA[<p>Off topic question, what did you use to record the screen to create the demo above? </p>
<p>It was used in, &#8220;http://www.youtube.com/v/BvPcwhqcmTk?fs=1&amp;hl=da_DK&amp;rel=0&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FAQ by TinyShell, ssh like access to your website &#124; Wildeng TechDad</title>
		<link>http://www.5p.dk/tinyshell/faq/comment-page-1/#comment-368</link>
		<dc:creator>TinyShell, ssh like access to your website &#124; Wildeng TechDad</dc:creator>
		<pubDate>Mon, 17 Oct 2011 20:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-368</guid>
		<description>[...] Download it from here [...]</description>
		<content:encoded><![CDATA[<p>[...] Download it from here [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Localhost Slow on Windows 7 by JC</title>
		<link>http://www.5p.dk/localhost-slow-on-windows-7/comment-page-1/#comment-193</link>
		<dc:creator>JC</dc:creator>
		<pubDate>Sat, 12 Mar 2011 19:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/?p=534#comment-193</guid>
		<description>This is because it&#039;s trying IPv6 before IPv4. Disabling the IPv6 stack or just configuring your browser to not use IPv6 also works for this problem.</description>
		<content:encoded><![CDATA[<p>This is because it&#8217;s trying IPv6 before IPv4. Disabling the IPv6 stack or just configuring your browser to not use IPv6 also works for this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FAQ by Theis Mackeprang</title>
		<link>http://www.5p.dk/tinyshell/faq/comment-page-1/#comment-190</link>
		<dc:creator>Theis Mackeprang</dc:creator>
		<pubDate>Wed, 23 Feb 2011 13:00:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-190</guid>
		<description>Regarding SSH, you might want to copy the sys plugin to an ssh plugin and have a look at this: http://www.php.net/manual/en/function.ssh2-exec.php Unfortunately I do not have think most users have a need to create an SSH connection from the web server to another server through TinyShell, or even have enabled the requirements in PHP to do so, so I have not considered making such a plugin. And again, if you feel like doing some development on TinyShell, please tell me ;-)</description>
		<content:encoded><![CDATA[<p>Regarding SSH, you might want to copy the sys plugin to an ssh plugin and have a look at this: <a href="http://www.php.net/manual/en/function.ssh2-exec.php" rel="nofollow">http://www.php.net/manual/en/function.ssh2-exec.php</a> Unfortunately I do not have think most users have a need to create an SSH connection from the web server to another server through TinyShell, or even have enabled the requirements in PHP to do so, so I have not considered making such a plugin. And again, if you feel like doing some development on TinyShell, please tell me ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FAQ by Theis Mackeprang</title>
		<link>http://www.5p.dk/tinyshell/faq/comment-page-1/#comment-189</link>
		<dc:creator>Theis Mackeprang</dc:creator>
		<pubDate>Wed, 23 Feb 2011 12:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-189</guid>
		<description>I never realized that PHP would actually wait forever for the command to execute and then also cause the web server to hang. I made a few tests, and it seems that system calls are not affected by the PHP max_execution_time/set_time_limit functions. Actually I also thought that web servers like Apache was configured by default to kill the PHP process after an amount of time, but I see that this is not always the case. But for now I suggest that you open sys.php in the plugin folder and either:

1. Create a black-list of unsupported commands you type by mistake.
2. Alter the shell_exec command, such that output is piped into a file and force a new process by adding an ampersand (&amp;) in the end all commands (where it now already redirects the error stream to standard out). Then cat or tail this file for output after each system call. Problem is that you need to kill all the open process at some time if the do not terminate, but you will probably figure out a way to do this, or maybe do it when you have physical access to the server.
3. Modify the sys plugin to use proc_open instead of shell_exec, in order to gain control over the process that is started.

I think I will look at implementing the last solution in the near feature, and if you do, please share. Thanks for bringing up the problem :-)</description>
		<content:encoded><![CDATA[<p>I never realized that PHP would actually wait forever for the command to execute and then also cause the web server to hang. I made a few tests, and it seems that system calls are not affected by the PHP max_execution_time/set_time_limit functions. Actually I also thought that web servers like Apache was configured by default to kill the PHP process after an amount of time, but I see that this is not always the case. But for now I suggest that you open sys.php in the plugin folder and either:</p>
<p>1. Create a black-list of unsupported commands you type by mistake.<br />
2. Alter the shell_exec command, such that output is piped into a file and force a new process by adding an ampersand (&amp;) in the end all commands (where it now already redirects the error stream to standard out). Then cat or tail this file for output after each system call. Problem is that you need to kill all the open process at some time if the do not terminate, but you will probably figure out a way to do this, or maybe do it when you have physical access to the server.<br />
3. Modify the sys plugin to use proc_open instead of shell_exec, in order to gain control over the process that is started.</p>
<p>I think I will look at implementing the last solution in the near feature, and if you do, please share. Thanks for bringing up the problem :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FAQ by Peter Valdemar Mørch</title>
		<link>http://www.5p.dk/tinyshell/faq/comment-page-1/#comment-188</link>
		<dc:creator>Peter Valdemar Mørch</dc:creator>
		<pubDate>Mon, 21 Feb 2011 21:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-188</guid>
		<description>Hi, I understand and accept that I can&#039;t use vi or top or whatever. That they won&#039;t work. But TinyShell should survive if I by mistake try to use them anyway. I should be able to get my prompt back somehow. The problem is that I if I by mistake type &quot;vi file&quot; I&#039;m toast. I cannot CTRL-C, or reload the browser or anything.  I need to restart the web server (by some other means) to get anything working again. That means I cannot rely on it. If TinyShell access is all I have, &quot;vi file&quot; means I loose connection to the server forever. A &lt;a href=&quot;http://www.google.com/search?q=truck%20roll&quot; rel=&quot;nofollow&quot;&gt;truck roll&lt;/a&gt; is required.

Here in my debug environment I do have normal terminal access. But once we&#039;ve gone live, I won&#039;t have that. Only HTTP access to serverA. For some reason that I don&#039;t understand it isn&#039;t possible from a TinyShell on serverA to ssh to serverB. Once live I won&#039;t have terminal access to any of them - only TinyShell access. And its a shame I won&#039;t be able to get anywhere from serverA via SSH, don&#039;t you think?

I hope I&#039;ve been more clear this time! :-)</description>
		<content:encoded><![CDATA[<p>Hi, I understand and accept that I can&#8217;t use vi or top or whatever. That they won&#8217;t work. But TinyShell should survive if I by mistake try to use them anyway. I should be able to get my prompt back somehow. The problem is that I if I by mistake type &#8220;vi file&#8221; I&#8217;m toast. I cannot CTRL-C, or reload the browser or anything.  I need to restart the web server (by some other means) to get anything working again. That means I cannot rely on it. If TinyShell access is all I have, &#8220;vi file&#8221; means I loose connection to the server forever. A <a href="http://www.google.com/search?q=truck%20roll" rel="nofollow">truck roll</a> is required.</p>
<p>Here in my debug environment I do have normal terminal access. But once we&#8217;ve gone live, I won&#8217;t have that. Only HTTP access to serverA. For some reason that I don&#8217;t understand it isn&#8217;t possible from a TinyShell on serverA to ssh to serverB. Once live I won&#8217;t have terminal access to any of them &#8211; only TinyShell access. And its a shame I won&#8217;t be able to get anywhere from serverA via SSH, don&#8217;t you think?</p>
<p>I hope I&#8217;ve been more clear this time! :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FAQ by Theis Mackeprang</title>
		<link>http://www.5p.dk/tinyshell/faq/comment-page-1/#comment-186</link>
		<dc:creator>Theis Mackeprang</dc:creator>
		<pubDate>Mon, 14 Feb 2011 17:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-186</guid>
		<description>Hi, you are right ;-) TinyShell is not a real terminal, it does not support (n)curses programs, like top, vi, vim, etc. But you can use the plugin called tiny to edit files. Regarding SSH and top, unfortunately you will have to make a new plugin to support this. But if you have access to do this already, why don&#039;t you use SSH directly instead of TinyShell? TinyShell is more ment to upload to FTP servers, where one does not have shell access. You should be able to call $apache restart though, but it requires that PHP has the right access to perform the command.</description>
		<content:encoded><![CDATA[<p>Hi, you are right ;-) TinyShell is not a real terminal, it does not support (n)curses programs, like top, vi, vim, etc. But you can use the plugin called tiny to edit files. Regarding SSH and top, unfortunately you will have to make a new plugin to support this. But if you have access to do this already, why don&#8217;t you use SSH directly instead of TinyShell? TinyShell is more ment to upload to FTP servers, where one does not have shell access. You should be able to call $apache restart though, but it requires that PHP has the right access to perform the command.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on FAQ by Peter Valdemar Mørch</title>
		<link>http://www.5p.dk/tinyshell/faq/comment-page-1/#comment-185</link>
		<dc:creator>Peter Valdemar Mørch</dc:creator>
		<pubDate>Mon, 14 Feb 2011 10:43:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.5p.dk/#comment-185</guid>
		<description>Hejsa,

I&#039;ve just given TinyShell a quick spin. Great! 

I&#039;m having trouble with vi/vim and ssh though; two important tools...

I have discovered that it doesn&#039;t give me a real terminal:
&lt;code&gt;
$ top
TERM environment variable not set.
&lt;/code&gt;
Fair enough. Worse, though, is that if I try to launch vim (from vim-gtk), the prompt just disappears and I can&#039;t seem to get it back. Refreshing the browser page also doesn&#039;t work. I have to restart apache. Which is only possible if I have a command line to the server. A chicken-and-egg situation.

I also would like to be able to use ssh to get from that server to another. But:
&lt;code&gt;
$ ssh -l pvm otherserver
Host key verification failed.
&lt;/code&gt;
I&#039;m not sure why that is. If I try this from a real terminal, it works fine.
&lt;code&gt;
&gt; sudo -H -u www-data sh
server@www-data:~/path&gt; ssh -l pvm otherserver
The authenticity of host &#039;otherserver (172.22.216.60)&#039; can&#039;t be established.
RSA key fingerprint is (hidden).
Are you sure you want to continue connecting (yes/no)? 
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hejsa,</p>
<p>I&#8217;ve just given TinyShell a quick spin. Great! </p>
<p>I&#8217;m having trouble with vi/vim and ssh though; two important tools&#8230;</p>
<p>I have discovered that it doesn&#8217;t give me a real terminal:</p>
<pre>
$ top
TERM environment variable not set.
</pre>
<p>Fair enough. Worse, though, is that if I try to launch vim (from vim-gtk), the prompt just disappears and I can&#8217;t seem to get it back. Refreshing the browser page also doesn&#8217;t work. I have to restart apache. Which is only possible if I have a command line to the server. A chicken-and-egg situation.</p>
<p>I also would like to be able to use ssh to get from that server to another. But:</p>
<pre>
$ ssh -l pvm otherserver
Host key verification failed.
</pre>
<p>I&#8217;m not sure why that is. If I try this from a real terminal, it works fine.</p>
<pre>
&amp;gt; sudo -H -u www-data sh
server@www-data:~/path&amp;gt; ssh -l pvm otherserver
The authenticity of host 'otherserver (172.22.216.60)' can't be established.
RSA key fingerprint is (hidden).
Are you sure you want to continue connecting (yes/no)?
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

