<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - howtos - Comments</title>
 <link>http://townx.org/howtos</link>
 <description>Comments for &quot;howtos&quot;</description>
 <language>en</language>
<item>
 <title>If you have a look in the</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn#comment-38304</link>
 <description>&lt;p&gt;If you have a look in the sample config. in the post, you should see an example path (&lt;code&gt;/usr/lib/php5/20060613+lfs/xdebug.so&lt;/code&gt;). I can&#039;t be definitive about where it&#039;s located, as the path to the extension (and in some cases, even the name of the file) depends on the version of Linux/PHP/Apache you&#039;re using. But it&#039;s likely to be called something like &lt;strong&gt;xdebug.so&lt;/strong&gt; and be located in your &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;installation&#039;s extensions directory (look for the &lt;strong&gt;extension_dir&lt;/strong&gt; setting in your php.ini file to work out what the latter is).&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 11:59:00 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 38304 at http://townx.org</guid>
</item>
<item>
 <title>Question...</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn#comment-38303</link>
 <description>&lt;p&gt;You wrote: &quot;Note you need to use zend_extension= to load the extension, and you should use the absolute path to the module (.so file) to do this. Otherwise it fails.&quot;&lt;/p&gt;

&lt;p&gt;So, what is the name of the extension? Where do I find it?&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 11:43:13 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 38303 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for clarifying.</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux#comment-38214</link>
 <description>&lt;p&gt;Thanks for clarifying.&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jun 2008 15:31:44 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 38214 at http://townx.org</guid>
</item>
<item>
 <title>Thanks, I know about Pastie.</title>
 <link>http://townx.org/blog/elliot/rake-command-completion-bash-shell#comment-38213</link>
 <description>&lt;p&gt;Thanks, I know about Pastie. Can it be used as a repository and then accessed via an &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;?&lt;/p&gt;</description>
 <pubDate>Mon, 16 Jun 2008 15:30:45 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 38213 at http://townx.org</guid>
</item>
<item>
 <title>Try Pastie for sharing code</title>
 <link>http://townx.org/blog/elliot/rake-command-completion-bash-shell#comment-38142</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://pastie.caboo.se/&quot;&gt;Pastie&lt;/a&gt; is great for sharing code. It formats, and highlights.&lt;/p&gt;</description>
 <pubDate>Tue, 20 May 2008 10:08:43 -0500</pubDate>
 <dc:creator>Michael Hale</dc:creator>
 <guid isPermaLink="false">comment 38142 at http://townx.org</guid>
</item>
<item>
 <title>But pdftk needs OWNER</title>
 <link>http://townx.org/blog/elliot/removing-password-pdf-linux#comment-38140</link>
 <description>&lt;p&gt;But pdftk needs &lt;span class=&quot;caps&quot;&gt;OWNER &lt;/span&gt;password and to use the method decribed above you only need &lt;span class=&quot;caps&quot;&gt;USER &lt;/span&gt;pass.&lt;/p&gt;</description>
 <pubDate>Mon, 19 May 2008 11:20:03 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 38140 at http://townx.org</guid>
</item>
<item>
 <title>firewall</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-38131</link>
 <description>&lt;p&gt;Hi,&lt;br /&gt;
Great script - I&#039;ve used it as the starter for my setup.&lt;/p&gt;

&lt;p&gt;ShieldsUP notes that your script shows ports 0 and 1 as closed rather than in stealth mode, and also doesn&#039;t drop &lt;span class=&quot;caps&quot;&gt;ICMP &lt;/span&gt;packets - meaning that if the machines are directly attached to the internet via ppp, or with an &lt;span class=&quot;caps&quot;&gt;ADSL &lt;/span&gt;modem with no firewall, then they can be discovered.&lt;/p&gt;

&lt;p&gt;Also your script doesn&#039;t handle dialup connections.&lt;/p&gt;

&lt;p&gt;The following changes mitigates against these:&lt;/p&gt;


&lt;ol&gt;
&lt;li&gt;drop everything else on ppp&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-i ppp+ -p udp -j &lt;span class=&quot;caps&quot;&gt;DROP&lt;/span&gt;&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-i ppp+ -p tcp -m tcp --syn -j &lt;span class=&quot;caps&quot;&gt;DROP&lt;/span&gt;&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-i ppp+ -p icmp -j &lt;span class=&quot;caps&quot;&gt;DROP&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Explcitly deal with port 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --sport 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --sport 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --dport 0&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --dport 0&lt;/li&gt;
&lt;li&gt;Explcitly deal with port 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --sport 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --sport 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p tcp --dport 1&lt;br /&gt;
iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-j &lt;span class=&quot;caps&quot;&gt;DROP &lt;/span&gt;-p udp --dport 1&lt;/li&gt;
&lt;/ol&gt;



&lt;p&gt;regards&lt;/p&gt;

&lt;p&gt;Colin&lt;/p&gt;</description>
 <pubDate>Thu, 08 May 2008 03:01:53 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 38131 at http://townx.org</guid>
</item>
<item>
 <title>Spamassassin and Spam Deletion</title>
 <link>http://townx.org/blog/elliot/simple_spamassassin_setup_with_postfix_and_dovecot_on_ubuntu_breezy#comment-38125</link>
 <description>&lt;p&gt;&quot;most of it gets stopped by the Postfix server using Spamassassin&quot;&lt;/p&gt;

&lt;p&gt;I don&#039;t think this part is right. From wiki.apache.org/spamassassin:&lt;/p&gt;

&lt;p&gt;&quot;SpamAssassin itself will not delete any emails. It&#039;s only a filter which reads email in, and passes that same email out, modified in some way. If you want to delete emails, or redirect emails, you need to do it in whatever program calls SpamAssassin. &quot;&lt;/p&gt;

&lt;p&gt;The site then goes on to explain how to set up a procmail filter to drop spam at the server, it that is what you want to do.&lt;/p&gt;

&lt;p&gt;In your case, do you think what is happening is that Thunderbird&#039;s Bayesian filter can learn what is junk instantly because of SpamAssassin headers? Thus you can achieve your end result, very little spam in the Inbox, but all the filtering is done by Thunderbird. I don&#039;t see Postfix dropping mail on the floor. Please correct me if I am wrong.&lt;/p&gt;

&lt;p&gt;Thank you for this mini-howto. I used it to set up Spamassassin  on an Ubuntu server running Courrier &lt;span class=&quot;caps&quot;&gt;IMAP &lt;/span&gt;in literally minutes, and it is working great. I also use Thunderbird. It is also easy to set a filter in Squirrelmail (web mail) to filter spamassassinated messages to the Inbox.Junk folder:&lt;/p&gt;

&lt;p&gt;options/message filtering:&lt;/p&gt;

&lt;p&gt;If Header contains X-Spam-Flag: &lt;span class=&quot;caps&quot;&gt;YES &lt;/span&gt;then move to Junk&lt;/p&gt;</description>
 <pubDate>Sat, 03 May 2008 11:03:43 -0500</pubDate>
 <dc:creator>monkster</dc:creator>
 <guid isPermaLink="false">comment 38125 at http://townx.org</guid>
</item>
<item>
 <title>Thx ;)</title>
 <link>http://townx.org/simple_firewall_for_ubuntu_using_iptables#comment-38122</link>
 <description>&lt;p&gt;thanks!though  iptables -A &lt;span class=&quot;caps&quot;&gt;INPUT &lt;/span&gt;-p tcp -s 0/0 --dport 80 -j &lt;span class=&quot;caps&quot;&gt;ACCEPT &lt;/span&gt;is needed!&lt;/p&gt;</description>
 <pubDate>Wed, 30 Apr 2008 18:18:12 -0500</pubDate>
 <dc:creator>Prakash</dc:creator>
 <guid isPermaLink="false">comment 38122 at http://townx.org</guid>
</item>
<item>
 <title>Thanks for the tips. Useful.</title>
 <link>http://townx.org/blog/elliot/rake-command-completion-bash-shell#comment-34388</link>
 <description>&lt;p&gt;Thanks for the tips. Useful.&lt;/p&gt;</description>
 <pubDate>Thu, 17 Apr 2008 18:20:19 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 34388 at http://townx.org</guid>
</item>
<item>
 <title>Some of the text has been</title>
 <link>http://townx.org/blog/elliot/rake-command-completion-bash-shell#comment-26537</link>
 <description>&lt;p&gt;Some of the text has been eaten above... Essentially the if condition to check if there is a rake file before installing completions on entering a folder is the important part. Also removing the completions on exit is handled by the &quot;else&quot; and the -r.&lt;/p&gt;

&lt;p&gt;I&#039;ve also included a completion for capistrano that I use.&lt;/p&gt;

&lt;p&gt;I&#039;ll paste again below in the hopes that it makes it this time.&lt;/p&gt;

&lt;p&gt;  cd () { &lt;br /&gt;
		command cd &quot;$@&quot;; &lt;br /&gt;
		# Add enhanced completion for a folder containing a rails app and remove it when we leave the folder&lt;br /&gt;
		if [ -f ./Rakefile ]; then		&lt;br /&gt;
			complete -W &quot;SAME AS &lt;span class=&quot;caps&quot;&gt;YOURS &lt;/span&gt;above&quot; rake&lt;br /&gt;
		else&lt;br /&gt;
			complete -r rake&lt;br /&gt;
		fi&lt;br /&gt;
		if [ -f ./Capfile ]; then		&lt;br /&gt;
			complete -W &quot;$(cap -T | grep &#039;#&#039; | awk &#039;NR != 1 {print $2}&#039;)&quot; cap&lt;br /&gt;
		else&lt;br /&gt;
			complete -r cap&lt;br /&gt;
		fi		&lt;br /&gt;
		stripe ; &lt;br /&gt;
  }&lt;/p&gt;</description>
 <pubDate>Sat, 22 Mar 2008 11:34:29 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 26537 at http://townx.org</guid>
</item>
<item>
 <title>Enhance to the above</title>
 <link>http://townx.org/blog/elliot/rake-command-completion-bash-shell#comment-26535</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Adding the following syntax to your bashrc will dynamically add and remove the completions as appropriate.&lt;/p&gt;

&lt;p&gt;  cd () { &lt;br /&gt;
		command cd &quot;$@&quot;; &lt;br /&gt;
		# Add enhanced completion for a folder containing a rails app and remove it when we leave the folder&lt;br /&gt;
		if [ -f ./Rakefile ]; then		&lt;br /&gt;
			complete -W &quot;$(rake -T | awk &#039;NR &lt;img src=&quot;=&quot; alt=&quot;&quot; /&gt;= 1 {print $2}&#039;)&quot; cap&lt;br /&gt;
		else&lt;br /&gt;
			complete -r cap&lt;br /&gt;
		fi		&lt;br /&gt;
  }&lt;/p&gt;

&lt;p&gt;Hope this helps you out.&lt;/p&gt;</description>
 <pubDate>Sat, 22 Mar 2008 11:30:21 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 26535 at http://townx.org</guid>
</item>
<item>
 <title>Hello Matt. I have to admit</title>
 <link>http://townx.org/blog/elliot/ubuntu-feisty-dell-latitude-d820#comment-14651</link>
 <description>&lt;p&gt;Hello Matt. I have to admit I&#039;m lazy, and just use Ubuntu, which has built-in scripts for this stuff. If there&#039;s anything you want me to send (e.g. scripts from particular locations), I&#039;d be happy to send you copies for reference.&lt;/p&gt;</description>
 <pubDate>Mon, 17 Dec 2007 13:11:07 -0600</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 14651 at http://townx.org</guid>
</item>
<item>
 <title>Suspend to RAM</title>
 <link>http://townx.org/blog/elliot/ubuntu-feisty-dell-latitude-d820#comment-14637</link>
 <description>&lt;p&gt;Thanks for the helpful entry.  I&#039;ve been running Debian Sid on the 820 for almost a year now and just finally got around to tackling the suspend to ram problem.  Following your tips, I&#039;ve had a good deal of success, but it doesn&#039;t always work.  About half the time when I come back from suspend I just get a mouse cursor on a black screen, the mouse moves fine so X is loaded to some degree, but my desktop never comes back.  My comment turns into a question at this point, has this ever happened to you?&lt;/p&gt;

&lt;p&gt;Also, how are you invoking the suspend?  I just echo &quot;3&quot; &amp;gt; /proc/acpi/sleep and i&#039;m wondering if that&#039;s part of the problem. &lt;/p&gt;

&lt;p&gt;Thanks again for taking the time to post about your experiences and your solutions, it really does make the web a better place.&lt;/p&gt;</description>
 <pubDate>Sun, 16 Dec 2007 21:19:07 -0600</pubDate>
 <dc:creator>Matt</dc:creator>
 <guid isPermaLink="false">comment 14637 at http://townx.org</guid>
</item>
<item>
 <title>Specifying &quot;From&quot; address in Postfix</title>
 <link>http://townx.org/blog/elliot/adding_aliases_to_postfix_on_ubuntu#comment-14617</link>
 <description>&lt;p&gt;Hi Elliot,&lt;br /&gt;
  I&#039;m having an issue on my server, which is running Postfix. The issue is that, even when my php script explicitly specifies a &quot;From&quot; address in the mail() function, when i tail the /var/spool/maillog file, I see that the email is being sent as &quot;nobody@servername.com&quot; (where &quot;servername&quot; is the hostname of the box)&lt;/p&gt;

&lt;p&gt;Is there anything i can do to force Postfix to use the &quot;From&quot; address that&#039;s specified in the script, instead of defaulting to &quot;nobody&quot; ?&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;</description>
 <pubDate>Sat, 15 Dec 2007 21:48:28 -0600</pubDate>
 <dc:creator>CalJedi</dc:creator>
 <guid isPermaLink="false">comment 14617 at http://townx.org</guid>
</item>
</channel>
</rss>
