<?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>Tequila Fish &#187; FreeBSD</title>
	<atom:link href="http://www.tequilafish.com/category/tech/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tequilafish.com</link>
	<description>Ran-dumb ramblings of me...</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:58:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>vi: Get rid of Windows formatted linebreaks (^M)</title>
		<link>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/</link>
		<comments>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/#comments</comments>
		<pubDate>Tue, 03 Jul 2007 19:10:54 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[linebreak]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/</guid>
		<description><![CDATA[If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "^M" characters. There is an easy search/replace you can use in vi/vim to format the file Unix-style: :%s/\r/\r/g]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F03%2Fvi-get-rid-of-windows-formatted-linebreaks-m%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2007%2F07%2F03%2Fvi-get-rid-of-windows-formatted-linebreaks-m%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you've ever tried to edit a Windows-created file in Unix or OSX, you've probably encountered a messy translation in line breaks: A file full of "<tt>^M</tt>" characters.  There is an easy search/replace you can use in vi/vim to format the file Unix-style:</p>
<p><code>:%s/\r/\r/g</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2007/07/03/vi-get-rid-of-windows-formatted-linebreaks-m/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: SSH logins hang after install of openssh-portable</title>
		<link>http://www.tequilafish.com/2005/10/05/freebsd-ssh-logins-hang-after-install-of-openssh-portable/</link>
		<comments>http://www.tequilafish.com/2005/10/05/freebsd-ssh-logins-hang-after-install-of-openssh-portable/#comments</comments>
		<pubDate>Thu, 06 Oct 2005 01:29:28 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2005/10/05/freebsd-ssh-logins-hang-after-install-of-openssh-portable/</guid>
		<description><![CDATA[I needed to upgrade my OpenSSL installation on FreeBSD without having to recompile everything (make installworld), and found out that you can do so by installing the openssh-portable port. You must force it to replace the base OpenSSL install, so you pass in the proper options: cd /usr/ports/security/openssh-portable make -DOPENSSH_OVERWRITE_BASE install This went great, however, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F10%2F05%2Ffreebsd-ssh-logins-hang-after-install-of-openssh-portable%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F10%2F05%2Ffreebsd-ssh-logins-hang-after-install-of-openssh-portable%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I needed to upgrade my OpenSSL installation on FreeBSD without having to recompile everything (<tt>make installworld</tt>), and found out that you can do so by installing the <strong><tt>openssh-portable</tt></strong> port.  You must force it to replace the base OpenSSL install, so you pass in the proper options:<br />
<code>cd /usr/ports/security/openssh-portable<br />
make -DOPENSSH_OVERWRITE_BASE install</code><br />
This went great, however, I could no longer log in remotely.  It would prompt me for username and password then just hang until it timed out.</p>
<p>This happens because newer versions of sshd have "<strong><tt>UsePrivilegeSeparation</tt></strong>" (privsep)  set to YES by default, so sshd will always try to verify the remote host name and check that the resolved host name for the remote IP address maps back to the very same IP address.</p>
<p>Because sshd is chrooted to <tt>/usr/local/empty</tt>, it is unable to read <tt>/etc/resolv.conf</tt> and fails any DNS lookups.  This is why we are hanging!  To fix it, I found some people suggesting to copy <tt>/etc/resolv.conf</tt> to <tt>/var/empty/etc/resolv.conf</tt>.  I decided to try a symbolic link instead, but got the following error.<br />
<code>mkdir /var/empty/etc<br />
mkdir: /var/empty/etc: Operation not permitted</code><br />
This is probably caused by some flags or the schg bit on the dir, and I didn't want to deal with it.  Instead I decided to take the easy (even though probably unsafe) way out: disable privsep.  Open up your <tt>/etc/ssh/ssd_config</tt> file and add the following:<br />
<code ">UsePrivilegeSeparation no</code><br />
Restart your sshd with <strong><tt>/etc/rc.d/sshd restart</tt></strong> and you should be good to go!  I know it's probably not a good idea to run with privsep off, but with it on, NOBODY could log into the server via ssh, including myself, and that's no good.  Hopefully OpenSSH and the FreeBSD ports people will find a way to make things work with privsep enabled in the near future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/10/05/freebsd-ssh-logins-hang-after-install-of-openssh-portable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xdebug &amp; phpize for PHP on FreeBSD</title>
		<link>http://www.tequilafish.com/2005/08/22/xdebug-phpize-for-php-on-freebsd/</link>
		<comments>http://www.tequilafish.com/2005/08/22/xdebug-phpize-for-php-on-freebsd/#comments</comments>
		<pubDate>Mon, 22 Aug 2005 23:41:53 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2005/08/22/xdebug-phpize-for-php-on-freebsd/</guid>
		<description><![CDATA[I ran into a few problems trying to install Xdebug into PHP on both FreeBSD 5.2 and FreeBSD 5.4. My research led me to this PHP bug thread and the proper solution. Here's a quick summary to get you going with Xdebug: Xdebug is installed via phpize, and phpize has some requirements: autoconf: 2.13 automake: [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F08%2F22%2Fxdebug-phpize-for-php-on-freebsd%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F08%2F22%2Fxdebug-phpize-for-php-on-freebsd%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I ran into a few problems trying to install Xdebug into PHP on both FreeBSD 5.2 and FreeBSD 5.4.  My research led me to <a href="http://pecl.php.net/bugs/bug.php?id=3538">this PHP bug thread</a> and the proper solution.  Here's a quick summary to get you going with Xdebug:</p>
<p>Xdebug is installed via phpize, and phpize has some <a href="http://www.php.net/anoncvs.php">requirements</a>:</p>
<ul>
<li>autoconf: 2.13</li>
<li>automake: 1.4+</li>
<li>libtool: 1.4.x+ (except 1.4.2)</li>
<li>bison: 1.28 (preferred), 1.35, or 1.75</li>
<li>flex: 2.5.4</li>
</ul>
<p>I was able to get mine up and running with the following versions:</p>
<ul>
<li>autoconf: 2.59_2</li>
<li>automake: 1.9.5</li>
<li>libtool: 1.5.10_1</li>
<li>bison: 1.75_2</li>
<li>flex: 2.5.4</li>
</ul>
<p>However, the ports packages for autoconf, automake, and libtool that come with FreeBSD are installed into non-standard locations, so phpize is unable to find them.  This is easily fixed with symlinks (NOTE: symlinks will vary depending on which versions you have installed):<br />
<code>ln -s /usr/local/bin/aclocal19 /usr/local/bin/aclocal<br />
ln -s /usr/local/bin/automake19 /usr/local/bin/automake<br />
ln -s /usr/local/bin/autoconf259 /usr/local/bin/autoconf<br />
ln -s /usr/local/bin/autoheader259 /usr/local/bin/autoheader<br />
ln -s /usr/local/bin/libtool15 /usr/local/bin/libtool<br />
ln -s /usr/local/bin/libtoolize15 /usr/local/bin/libtoolize<br />
ln -s /usr/local/share/aclocal19/ /usr/local/share/aclocal<br />
ln -s /usr/local/share/aclocal19/libtool15.m4 /usr/local/share/aclocal19/libtool.m4</code><br />
Now, assuming you have all the correct versions installed and paths present, phpize should be able to find everything and Xdebug should install as expected:<br />
<code># phpize<br />
# ./configure --enable-xdebug<br />
# make<br />
# cp modules/xdebug.so /usr/local/lib/php/extensions</code></p>
<ul>
<li>Add the following to <tt>php.ini</tt>:<br />
   <code>zend_extension=&quot;/usr/local/lib/php/extensions/xdebug.so&quot;</code></li>
<li>Restart your webserver</li>
<li>Check the output of <tt>phpinfo()</tt> to make sure Xdebug is properly loaded</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/08/22/xdebug-phpize-for-php-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD: HOWTO install vim from ports WITHOUT X-Windows.</title>
		<link>http://www.tequilafish.com/2005/08/12/freebsd-howto-install-vim-from-ports-without-x-windows/</link>
		<comments>http://www.tequilafish.com/2005/08/12/freebsd-howto-install-vim-from-ports-without-x-windows/#comments</comments>
		<pubDate>Fri, 12 Aug 2005 20:36:45 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[portupgrade]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[x-windows]]></category>
		<category><![CDATA[x11]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/2005/08/12/freebsd-howto-install-vim-from-ports-without-x-windows/</guid>
		<description><![CDATA[I'm normally a manually-compile-from-source type of guy, but I thought I'd give FreeBSD's ports system a try. Right away I ran into an annoyance, and something that underscores a constant battle: trading customizability for ease-of-use. Yes, ports makes installing things easier, but you lose a certain level of control and customizability. Installing vim from ports [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F08%2F12%2Ffreebsd-howto-install-vim-from-ports-without-x-windows%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F08%2F12%2Ffreebsd-howto-install-vim-from-ports-without-x-windows%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I'm normally a manually-compile-from-source type of guy, but I thought I'd give FreeBSD's ports system a try.  Right away I ran into an annoyance, and something that underscores a constant battle: trading customizability for ease-of-use.  Yes, ports makes installing things easier, but you lose a certain level of control and customizability.</p>
<p>Installing vim from ports seems easy enough, right?  Sure, if you want tons of bloat included!  A simple <tt>make; make install</tt> in <tt>/usr/ports/editors/vim</tt> started a flurry of downloads for things like X11toolkits, X11R6.8.2, etc, etc.. in other words, installing vim from ports was trying to also install X-Windows on my machine!!  This is a server, I do NOT need the bloat of X-Windows simply to run a frickin' text editor like vim.</p>
<p>So, after some research, I discovered that you can in fact control port installs with various arguments.  Here's how I installed vim:<br />
<code>cd /usr/ports/editors/vim<br />
make WITHOUT_X11=yes<br />
make WITHOUT_X11=yes install</code><br />
PRESTO, a nice, clean, bloat-free, non-X-Windows install of vim.  As a general tip, you can look inside the port's Makefile to see various arguments that you can pass in.</p>
<p>A caveat though, if you ever upgrade all your ports with <tt>portupgrade</tt>, all of your ports will upgrade with the default arguments.  So if I ran portupgrade and a new version of vim was available, it would install vim and all the X-Windows crap along with it.</p>
<p>Luckily, FreeBSD provides a way to automatically provide arguments to auto-upgrades via portupgrade:  Simply open up <tt>/usr/local/etc/pkgtools.conf</tt> and fill in the <tt>MAKE_ARGS</tt> tag like so:<br />
<code>MAKE_ARGS = {<br />
'editors/vim' => 'WITHOUT_X11=YES',<br />
}</code><br />
Now the next time you upgrade vim using portupgrade, the <tt>WITHOUT_X11</tt> argument will be automatically included, so you won't have to worry about all that extra X11 crap being included in your install.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/08/12/freebsd-howto-install-vim-from-ports-without-x-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RealTek RTL8100S LAN on FreeBSD 5.4: no carrier</title>
		<link>http://www.tequilafish.com/2005/08/09/realtek-rtl8100s-lan-on-freebsd-54-no-carrier/</link>
		<comments>http://www.tequilafish.com/2005/08/09/realtek-rtl8100s-lan-on-freebsd-54-no-carrier/#comments</comments>
		<pubDate>Wed, 10 Aug 2005 06:00:21 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[realtek]]></category>
		<category><![CDATA[rtl8100s]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=18</guid>
		<description><![CDATA[I just installed FreeBSD 5.4 on my Abit AA8-DuraMax, but I've run into some troubles with my networking. It seems that the on-board NIC doesn't properly detect when a cable is plugged in. ifconfig shows it as "status: no carrier" I know it's not the router or the cable, because they both work fine on [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F08%2F09%2Frealtek-rtl8100s-lan-on-freebsd-54-no-carrier%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F08%2F09%2Frealtek-rtl8100s-lan-on-freebsd-54-no-carrier%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I just installed FreeBSD 5.4 on my <a href="http://www.abit-usa.com/products/mb/products.php?categories=1&#038;model=199">Abit AA8-DuraMax</a>, but I've run into some troubles with my networking.  It seems that the on-board NIC doesn't properly detect when a cable is plugged in.  ifconfig shows it as "<tt>status: no carrier</tt>"</p>
<p>I know it's not the router or the cable, because they both work fine on other machines.  The 8100S chipset is listed as supported on the <a href="http://www.freebsd.org/releases/5.4R/hardware-i386.html">FreeBSD 5.4 Hardware compatibility list</a>, as well as the <a href="http://www.freebsd.org/cgi/man.cgi?query=re&#038;sektion=4&#038;manpath=FreeBSD+5.4-RELEASE">man pages for the re driver</a>.</p>
<p>Some other weirdness:  If I plug the ethernet cable from the BSD machine to another machine's NIC, it is properly detected.  It only doesn't detect when connected to my router.  Also, if I manually set the card to 10baseT/UTP using ifconfig's media parameter, it also works.  It doesn't work on autoselect, or any other media setting besides 10baseT/UTP.</p>
<p>Anyone have any ideas?  Some info:<br />
<code>ifconfig:<br />
--------------------------------------<br />
re0: flags=8843&lt;up ,BROADCAST,RUNNING,SIMPLEX,MULTICAST&gt; mtu 1500<br />
options=18&lt;vlan_mtu ,VLAN_HWTAAGGING&gt;<br />
inet 192.168.1.31 netmask 0xffffff00 broadcast 192.168.1.255<br />
inet6 ...<br />
ether 00:50:8d:eb:e5:be<br />
media: Ethernet autoselect (none)<br />
status: no carrier<br />
lo0: flags=8049&lt;up ,LOOPBACK,RUNNING,MULTICAST&gt; mtu 16384<br />
inet 127.0.0.1 netmask 0xff000000<br />
inet6 ::1 prefixlen 128<br />
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4Relevant dmesg:<br />
--------------------------------------<br />
re0: &lt;realtek 8169S Single-chip Gigabit Ethernet&gt; port 0xee00-0xeeff mem 0xfbfff000-0xfbfff0ff irc 16 at device 1.0 on pci1<br />
miibus0: &lt;mii bus&gt; on re0<br />
rgephy0: &lt;rtl8169s /8110S media interface&gt; on miibus0<br />
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto<br />
re0: Ethernet address: 00:50:8d:eb:e5:bepciconf -lv:<br />
--------------------------------------<br />
re0@pci1:1:0: class=0x020000 card=0x1039147b chip=0x816910ec rev=0x10 hdr=0x00<br />
vendor = 'Realtek Semiconductor'<br />
device = 'RTL8169 Gigabit Ethernet Adapter'<br />
class = network<br />
subclass = ethernet<br />
&nbsp;<br />
pciconf -r pci1:1:0 0:0xff<br />
--------------------------------------<br />
816910ec 02b00007 02000010 00002008<br />
0000ee01 fbfff000 00000000 00000000<br />
00000000 00000000 00000000 1039147b<br />
00000000 000000dc 00000000 40200110<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 f7c20001<br />
00000000 00000000 00000000 00000000<br />
00000000 00000000 00000000 00000000</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/08/09/realtek-rtl8100s-lan-on-freebsd-54-no-carrier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phplist/Sendmail/FreeBSD: X-Authentication-Warning</title>
		<link>http://www.tequilafish.com/2005/06/30/phplistsendmailfreebsd-x-authentication-warning/</link>
		<comments>http://www.tequilafish.com/2005/06/30/phplistsendmailfreebsd-x-authentication-warning/#comments</comments>
		<pubDate>Fri, 01 Jul 2005 01:40:59 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Postfix/Sendmail]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[phpList]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[x-authentication-warning]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=14</guid>
		<description><![CDATA[If you enable the $message_envelope variable in the config.php file of phplist for processing bounces, sendmail will probably complain with the following header in your email: X-Authentication-Warning: your.domain.com: httpd set sender to account@domain.com using -f This is because only "trusted users" are allowed to change the message envelope. By default, sendmail only considers root, daemon, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F06%2F30%2Fphplistsendmailfreebsd-x-authentication-warning%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F06%2F30%2Fphplistsendmailfreebsd-x-authentication-warning%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>If you enable the <tt>$message_envelope</tt> variable in the <tt>config.php</tt> file of phplist for processing bounces, sendmail will probably complain with the following header in your email:<br />
<code>X-Authentication-Warning: your.domain.com: httpd set sender to account@domain.com using -f</code><br />
This is because only "trusted users" are allowed to change the message envelope.  By default, sendmail only considers root, daemon, and uucp as trusted users, so if you try changing the message envelope as the user Apache is running under (in my case httpd) sendmail will attach that nasty warning header to all your outgoing mails.  Spam blockers don't like this!</p>
<p>There are a couple of ways to fix this:</p>
<ol>
<li>Add httpd (or whatever user Apache is running under) to the daemon group:<br />
<code>pw groupmod daemon -M httpd</code>
</li>
<li>Add httpd (or whatever user Apache is running under) to Sendmail's trusted-users file.  Open up <strong><tt>/etc/mail/your.domain.com.submit.mc</tt></strong> in vi and insert the following line:<br />
<code>FEATURE(`use_ct_file') dnl  # Trusted users</code><br />
Save &#038; Exit.<br />
Now you must create the <tt>trusted-users</tt> file in <tt>/etc/mail</tt>:<br />
<code>touch /etc/mail/trusted-users</code><br />
Open <strong><tt>/etc/mail/trusted-users</tt></strong> with vi and on one line simply add the name of the user under which Apache is running:<br />
<code>httpd</code><br />
Save &#038; Exit.  Run the following commands in <strong><tt>/etc/mail</tt></strong> to commit the changes to Sendmail and restart the server:<br />
<code>make install<br />
make restart</code>
</li>
</ol>
<p>That's it, you should be good to go.  Mail sent via PHP/Apache will no longer contain the <tt>X-Authentication-Warning</tt> header.</p>
<p>Note that there is a downside to this.  Any user on your system can now use PHP to send email with "forged" headers.  You basically just gave everyone on your system "Trusted User" status to Sendmail, so be sure that you trust your users before actually doing this!</p>
<p><strong>UPDATE:</strong> <a href="http://www.tequilafish.com/2005/11/18/phplistsendmaillinux-x-authentication-warning/">How to do the same in Linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/06/30/phplistsendmailfreebsd-x-authentication-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>libpng on FreeBSD: &#8220;ld: invalid BFD target&#8221;</title>
		<link>http://www.tequilafish.com/2005/06/13/libpng-on-freebsd-ld-invalid-bfd-target/</link>
		<comments>http://www.tequilafish.com/2005/06/13/libpng-on-freebsd-ld-invalid-bfd-target/#comments</comments>
		<pubDate>Mon, 13 Jun 2005 17:08:10 +0000</pubDate>
		<dc:creator>Administrator</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bfd]]></category>
		<category><![CDATA[libpng]]></category>

		<guid isPermaLink="false">http://www.tequilafish.com/?p=12</guid>
		<description><![CDATA[Ran into a little problem installing libpng 1.2.8 on FreeBSD 5.4. Running make gives the following: ld -b +s +h libpng12.sl.0 -o libpng12.sl.0.1.2.8 png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o pngtrans.pic.o pngwutil.pic.o pngread.pic.o pngrio.pic.o pngwio.pic.o pngwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o pngpread.pic.o ld: invalid BFD target `+s' *** Error code 1Stop in /usr/src/libpng-1.2.8-config. I found out that there is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F06%2F13%2Flibpng-on-freebsd-ld-invalid-bfd-target%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.tequilafish.com%2F2005%2F06%2F13%2Flibpng-on-freebsd-ld-invalid-bfd-target%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Ran into a little problem installing libpng 1.2.8 on FreeBSD 5.4.  Running <strong><tt>make</tt></strong> gives the following:<br />
<code>ld -b +s  +h libpng12.sl.0 -o libpng12.sl.0.1.2.8 png.pic.o pngset.pic.o pngget.pic.o pngrutil.pic.o pngtrans.pic.o pngwutil.pic.o pngread.pic.o pngrio.pic.o pngwio.pic.o pngwrite.pic.o pngrtran.pic.o pngwtran.pic.o pngmem.pic.o pngerror.pic.o pngpread.pic.o<br />
ld: invalid BFD target `+s'<br />
*** Error code 1Stop in /usr/src/libpng-1.2.8-config.</code><br />
I found out that there is a typo in the <tt>INSTALL</tt> file that tells you to use the wrong makefile.  It tells you to <strong><tt>cp scripts/makefile.hpgcc makefile</tt></strong> when in fact you should <strong><tt>cp scripts/makefile.freebsd makefile</tt></strong>.  Using the correct makefile, of course, make works as expected!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tequilafish.com/2005/06/13/libpng-on-freebsd-ld-invalid-bfd-target/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
