<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="https://diaryproducts.net">
<channel>
 <title>Diary Products - Hannes Schmidt - Administrator</title>
 <link>https://diaryproducts.net/taxonomy/term/2/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Install Squid 3.2.x on Ubuntu 12.04 (Precise) LTS</title>
 <link>https://diaryproducts.net/install_squid_3_2_x_on_ubuntu_12_04_precise_lts</link>
 <description>&lt;p&gt;This is how I upgraded the Squid package from 3.1.19 to 3.2.6 on my Ubuntu 12.04 installations. The 3.2.x branch contains support for multiple cores, so that&amp;#39;s a pretty important update to have. 12.04 is an LTS release, so I&amp;#39;m really not sure why 3.2.6 hasn&amp;#39;t been backported to it. Anyhow, here&amp;#39;s how I did it:&lt;/p&gt;

&lt;p&gt;Set up the &lt;code&gt;dquilt&lt;/code&gt; shell alias as described in the &lt;a href=&quot;http://www.debian.org/doc/manuals/maint-guide/modify.en.html&quot;&gt;Debian New Maintainer&amp;#39;s Guide&lt;/a&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;alias dquilt=&amp;quot;quilt --quiltrc=${HOME}/.quiltrc-dpkg&amp;quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Create &lt;code&gt;~/.quiltrc-dpkg&lt;/code&gt; containing&lt;/p&gt;</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Fri, 25 Jan 2013 00:51:21 +0000</pubDate>
</item>
<item>
 <title>Lightweight and fast HTTP proxies</title>
 <link>https://diaryproducts.net/about/operating_systems/unix/lightweight_and_fast_http_proxies</link>
 <description>&lt;p&gt;I recently evaluated several open-source HTTP proxy servers. I was looking for something lightweight and fast, without a persistent cache or with no cache at all.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Sun, 20 Jan 2013 00:24:10 +0000</pubDate>
</item>
<item>
 <title>Installing Mosh on Ubuntu Hardy</title>
 <link>https://diaryproducts.net/about/operating_systems/unix/installing_mosh_on_ubuntu_hardy</link>
 <description>&lt;p&gt;I recently had to get into the &lt;a href=&quot;http://mosh.mit.edu&quot;&gt;Mosh&lt;/a&gt; pit with my good old friend Hardy Heron aka Ubuntu 8.04 TLS.&lt;/p&gt;
&lt;pre&gt;
wget --no-check-certificate https://github.com/keithw/mosh/zipball/mosh-1.2.2
mv mosh-1.2.2 mosh-1.2.2.zip
unzip mosh-1.2.2.zip
cd keithw-mosh-df955aa
sudo sed -i -r &#039;s/#\s*(.*hardy-backports.*)/\1/&#039; /etc/apt/sources.list
sudo apt-get update
sudo apt-get install build-essential autoconf automake libprotobuf-dev \
                     protobuf-compiler libncurses5-dev zlib1g-dev libio-pty-perl
./autogen.sh
protobuf_CFLAGS=&quot; &quot; protobuf_LIBS=&quot;-lprotobuf&quot; ./configure --prefix=&quot;/usr&quot;
sed -i s/LITE_RUNTIME/SPEED/ src/protobufs/*.proto
make
sudo make install
&lt;/pre&gt;&lt;br /&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Fri, 27 Jul 2012 06:24:46 +0000</pubDate>
</item>
<item>
 <title>Domain Name (Dis)service</title>
 <link>https://diaryproducts.net/domain_name_dis_service</link>
 <description>&lt;p&gt;There are plenty of openly accessible DNS servers available that do name resolution for you. Most Internet providers run them for their customers. There are also DNS providers that encourage you to replace your ISP&#039;s name server with theirs. OpenDNS is one example. They even do it without charging you! But remember, hardly anything on the Internet is free. Someone will have to pay the bill. AFAIK, OpenDNS&#039; business model is based on advertising revenue, so the advertiser pays the bill. This is how it works: If you accidentally type a URL with a nonexistent domain name, OpenDNS will resolve it to one of their web servers instead of returning an NXDOMAIN error. The web server will then serve a page with web search results related to the mistyped domain name and some advertisements.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Fri, 18 Sep 2009 16:41:07 +0000</pubDate>
</item>
<item>
 <title>Installing dbd-mysql for 64-bit binary installation of MySQL</title>
 <link>https://diaryproducts.net/installing_dbd_mysql_for_64_bit_binary_installation_of_mysql</link>
 <description>&lt;p&gt;The dbd-mysql gem assumes (?) an i386 architecture when building the native component of the driver. You&#039;ll need to set ARCHFLAGS appropriately and point the build at the installation of MySQL.&lt;/p&gt;
&lt;pre&gt;
sudo env ARCHFLAGS=&quot;-arch x86_64&quot; \
     gem install mysql -- \
     --with-mysql-config=/usr/local/mysql/bin/mysql_config
&lt;/pre&gt;&lt;p&gt;
That should fix it.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/mac_os_x">Mac OS X</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Sun, 21 Jun 2009 01:02:44 +0000</pubDate>
</item>
<item>
 <title>Overriding DHCP- or VPN-assigned DNS servers in Mac OS X Leopard</title>
 <link>https://diaryproducts.net/about/operating_systems/mac_os_x/overriding_dhcp_or_vpn_assigned_dns_servers_in_mac_os_x_leopard</link>
 <description>&lt;p&gt;I&#039;ll have to break sad news to you: /etc/resolv.conf has been made redundant in Mac OS X. The dig and nslookup utilities still read it but most applications use a different mechanism for picking DNS servers when resolving host names. They generally go through Darwin&#039;s resolver library which instead of reading /etc/resolv.conf looks up DNS servers via the SystemConfiguration framework backed by configd. Survival of the fittest, I guess, or, Darwin&#039;s intelligent design.&lt;/p&gt; 

&lt;p&gt;Ok, ok, I&#039;ll stop trying to be funny ... Anyways, this would be all swell if there wasn&#039;t the occasional need for manually specifying DNS servers. For me this need typically arises when I connect to a VPN managed by an operator from hell. After hours and hours of hard work (my fingertips still hurt from all the googling) I present to you a solution:&lt;p&gt;

&lt;p&gt;With the VPN connected, launch scutil with root privileges:&lt;p&gt;

&lt;pre&gt;hannes-mbp:~ Sysop$ sudo scutil
Password:&lt;/pre&gt;

List all network services with DNS configuration:

&lt;pre&gt;&amp;gt; list State:/Network/Service/[^/]+/DNS
  subKey [0] = State:/Network/Service/A3551F2D-62CE-1234-B79A-6EE50CA7AE30/DNS
  subKey [1] = State:/Network/Service/F194302A-846C-4321-9325-6813DAE148F2/DNS&lt;/pre&gt;

Pick one and show its contents.

&lt;pre&gt;&amp;gt; show State:/Network/Service/A3551F2D-62CE-1234-B79A-6EE50CA7AE30/DNS
&amp;lt;dictionary&amp;gt; {
  SupplementalMatchDomains : &amp;lt;array&amp;gt; {
    0 : 
  }
  ServerAddresses : &amp;lt;array&amp;gt; {
    0 : 192.168.1.74
    1 : 217.0.43.81
  }
  SupplementalMatchOrders : &amp;lt;array&amp;gt; {
    0 : 100000
  }
}&lt;/pre&gt;

Ahh, this is the one! So let&#039;s get rid of those pesky servers. Obtain a working copy of the DNS configuration entry. It&#039;s called ... drum roll ... well, obviously: &quot;d&quot; (rolls eyes).

&lt;pre&gt;&amp;gt; d.init
&amp;gt; get State:/Network/Service/A3551F2D-62CE-1234-B79A-6EE50CA7AE30/DNS
&amp;gt; d.show
&amp;lt;dictionary&amp;gt; {
  SupplementalMatchDomains : &amp;lt;array&amp;gt; {
    0 : 
  }
  ServerAddresses : &amp;lt;array&amp;gt; {
    0 : 192.168.1.74
    1 : 217.0.43.81
  }
  SupplementalMatchOrders : &amp;lt;array&amp;gt; {
    0 : 100000
  }
}&lt;/pre&gt;

Reset the ServerAddresses entry to an empty array: 

&lt;pre&gt;&amp;gt; d.add ServerAddresses *
&amp;gt; d.show
&amp;lt;dictionary&amp;gt; {
  ServerAddresses : &amp;lt;array&amp;gt; {
  }
  SupplementalMatchDomains : &amp;lt;array&amp;gt; {
    0 : 
  }
  SupplementalMatchOrders : &amp;lt;array&amp;gt; {
    0 : 100000
  }
}&lt;/pre&gt;

Write the working copy back:

&lt;pre&gt;&amp;gt; set State:/Network/Service/A3551F2D-62CE-1234-B79A-6EE50CA7AE30/DNS&lt;/pre&gt;

Note, that the line

&lt;pre&gt;d.add ServerAddresses *&lt;/pre&gt;

clears the ServerAddresses array, thereby removing all DNS-servers tied to that particular connection (&quot;service&quot; in Apple-talk). Without service-specific DNS servers, Mac OS will fall back to DNS servers from other network services. Not sure how exactly that works. If you want to specify particular DNS servers, use

&lt;pre&gt;d.add ServerAddresses * 10.0.1.2 112.21.44.66&lt;/pre&gt;

&lt;p&gt;By the way, the &quot;*&quot; signifies array values, so it&#039;s not some kind of wild card.&lt;/p&gt;</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/mac_os_x">Mac OS X</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Sun, 03 May 2009 20:13:55 +0000</pubDate>
</item>
<item>
 <title>Increase Wireshark Font Size on Mac OS X</title>
 <link>https://diaryproducts.net/for/administrator/increase_wireshark_font_size_on_mac_os_x</link>
 <description>&lt;p&gt;Wireshark has a preference setting for the font of the capture display but it won&#039;t let you change the main font used for other UI elements such as like menu, toolbar and dialog windows. The default for the main font is illegibly small on my Mac OS X Leopard system -- I used Macports to install Wireshark and its dependencies. To fix it you need to add the &lt;code&gt;gtk-font-name&lt;/code&gt; setting to your &lt;code&gt;.gtkrc-2.0&lt;/code&gt; preference file:&lt;/p&gt;
&lt;pre&gt;echo &#039;gtk-font-name = &quot;Sans 14&quot;&#039; &gt;&gt; ~/.gtkrc-2.0&lt;/pre&gt;
&lt;p&gt;This will affect all applications using the GTK 2.0 toolkit but I guess that&#039;s ok.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/mac_os_x">Mac OS X</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <category domain="https://diaryproducts.net/exactly/for/geek">Geek</category>
 <pubDate>Mon, 08 Dec 2008 01:58:21 +0000</pubDate>
</item>
<item>
 <title>&quot;No DBD Authn configured!&quot; with Apache, Digest Auth and DBD</title>
 <link>https://diaryproducts.net/no_dbd_authn_configured</link>
 <description>&lt;p&gt;I use mod_authn_dbd to check HTTP authentication credentials against a MySQL database. After switching from Basic to Digest authentication I got 500 errors and &lt;code&gt;No DBD Authn configured!&lt;/code&gt; in the server&#039;s error log. It took me a while to realize that it wasn&#039;t enough to change&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/about/web_servers">Web Servers</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Sat, 02 Feb 2008 21:10:26 +0000</pubDate>
</item>
<item>
 <title>Quickly enable/disable default gateway for VPN on Windows</title>
 <link>https://diaryproducts.net/about/operating_systems/windows/enable_disable_default_gateway_vpn_windows</link>
 <description>&lt;p&gt;Whether a VPN connection has the &quot;Use default gateway on remote network&quot; option enabled has big impact on how network traffic from your machine is routed.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/windows">Windows</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <category domain="https://diaryproducts.net/exactly/for/dummy">Dummy</category>
 <pubDate>Thu, 10 Jan 2008 21:53:46 +0000</pubDate>
</item>
<item>
 <title>Windows Vista&#039;s DNS server priority issues in VPNs</title>
 <link>https://diaryproducts.net/about/operating_systems/windows/vista_dns_name_server_priority_vpn_tunnel</link>
 <description>&lt;p&gt;Today I ran into a subtle issue regarding the order in which Windows Vista queries connection-specific DNS servers. I tested a setup with a PPTP VPN server that also provides DNS name resolution services to its VPN clients. For that purpose I ran both a BIND 9 name server and a Poptop PPPD daemon on the same box. It is dual-homed, i.e. one interface is the private interface of the VPN tunnel endpoint and the other one is the public Ethernet interface through which the server is linked to the internet. I configured BIND to listen on both interfaces. &lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/windows">Windows</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Fri, 28 Dec 2007 01:27:31 +0000</pubDate>
</item>
<item>
 <title>Ubuntu 6.01.1 &quot;Dapper Drake&quot; DVD Torrents</title>
 <link>https://diaryproducts.net/about/operating_systems/unix/ubuntu_6_01_1_dapper_drake_dvd_torrents</link>
 <description>&lt;p&gt;It took me sometime to find Ubuntu torrents that work. I noticed that the .torrent files on the official Ubuntu server and its mirrors point to dead torrents. After some digging, I found &lt;a href=&quot;http://torrent.ubuntu.com:6969/&quot;&gt;this tracker&lt;/a&gt; to be most up to date. In case you&#039;re stumbling over this problem too, give it a try. It seems to be the official Ubuntu tracker.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <category domain="https://diaryproducts.net/exactly/for/geek">Geek</category>
 <pubDate>Sat, 02 Sep 2006 07:57:27 +0000</pubDate>
</item>
<item>
 <title>Installing VMware Server on Gentoo Linux (Version 3)</title>
 <link>https://diaryproducts.net/about/operating_systems/unix/installing_vmware_server_on_gentoo_linux_part_3</link>
 <description>&lt;p class=&quot;meta&quot;&gt;[This article is now somewhat obsolete because vmware-server have been included the official portage tree. There is no need for a separate overlay. The bug reports still apply. This is an updated version of a &lt;a href=&quot;http://diaryproducts.net/about/operating_systems/unix/installing_vmware_server_on_gentoo_linux_part_2&quot;&gt;two previous article&lt;/a&gt; on the subject.]&lt;/p&gt;
&lt;p&gt;The new VMware Server is going to replace VMware&#039;s GSX Server product. And it&#039;s more than just a new name: VMware will supposedly release it free of charge. Being still in beta testing, there are currently no stable ebuilds available for it on Gentoo Linux. Fortunately, Mike Auty and others are working on one and they are doing a fine job. They also seem to be streamlining and consolidating other related VMware ebuilds. You can keep track of their progress on these Bugzilla bugs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Problems regarding the vmware-module ebuild:            &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=137422&quot;&gt;137422&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Problems regarding the vmware-player ebuild:            &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=137423&quot;&gt;137423&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Problems regarding the vmware-server ebuild:            &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=137424&quot;&gt;137424&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Problems regarding the vmware-server-console ebuild:    &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=137425&quot;&gt;137425&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Problems regarding the vmware-workstation ebuild:       &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=137426&quot;&gt;137426&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Problems regarding the vmware-workstation-tools ebuild: &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=137428&quot;&gt;137428&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Problems regarding the vmware overlay in general:       &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=122500&quot;&gt;122500&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The VMware Server ebuilds are not part of the official stable Gentoo portage tree so if you want to install them on your system you will have to jump through a few extra hoops. Fortunately this process has become very convenient and straight-forward thanks to Gunnar Wrobel&#039;s &lt;a href=&quot;http://projects.gunnarwrobel.de/scripts/wiki/layman&quot;&gt;layman&lt;/a&gt;. &lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/about/vmware">VMware</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Mon, 10 Jul 2006 04:49:52 +0000</pubDate>
</item>
<item>
 <title>Installing VMware Server on Gentoo Linux (Version 2)</title>
 <link>https://diaryproducts.net/about/operating_systems/unix/installing_vmware_server_on_gentoo_linux_part_2</link>
 <description>&lt;p class=&quot;meta&quot;&gt;[This is an updated version of &lt;a href=&quot;/about/operating_systems/unix/installing_vmware_server_on_gentoo_linux&quot;&gt;a previous article&lt;/a&gt; on the subject.]&lt;/p&gt;
&lt;p&gt;VMWare is going to replace its GSX Server product with the new VMware Server. And it&#039;s going to be more than just a new name: the best thing about it is that VMware releases it free of charge. Being still in beta testing, there are currently no stable ebuilds available for it on Gentoo Linux. Fortunately, Mike Auty is working on one and he is doing a fine job. You should keep track of his progress on &lt;a href=&quot;http://bugs.gentoo.org/show_bug.cgi?id=122500&quot;&gt;Gentoo Bugzilla bug #122500&lt;/a&gt;. For people with little Portage experience (author included) it can be a bit complicated to throw together an ebuild from bugzilla attachments.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/about/vmware">VMware</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Wed, 15 Mar 2006 16:17:49 +0000</pubDate>
</item>
<item>
 <title>Per-directory configuration (.htaccess) in LightTPD</title>
 <link>https://diaryproducts.net/about/web_servers/lighttpd/htaccess_lighttpd</link>
 <description>&lt;p&gt;The frequent visitor of Diary Products knows that it runs on the LightTPD aka Lighty web server. The machine that hosts Diary Products is serving other sites as well so it needs to have some kind of virtual hosting mechanism in place. I use LightTPD&#039;s very straight-forward and easy to use mod_simple_vhost module. The only draw-back with LightTPD is that it doesn&#039;t support directory specific configuration files similar to Apache&#039;s .htaccess files. But this is not such a big deal for me because as much as I liked the convenience of .htaccess, I always considered it a waste of cycles and a security issue. The ideal solution in my opinion would be one which&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/web_servers/lighttpd">LightTPD</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Thu, 02 Mar 2006 17:56:59 +0000</pubDate>
</item>
<item>
 <title>Filtered: NMAP Port Scanner Sees Through IPtables Firewall</title>
 <link>https://diaryproducts.net/about/operating_systems/unix/nmap_port_scanner_iptables_firewall</link>
 <description>&lt;p&gt;Ever wondered why port scanners like &lt;a href=&quot;http://www.insecure.org/nmap/&quot;&gt;nmap&lt;/a&gt; are able to tell that some of the ports on your server are protected by a firewall? Have a peek at this nmap transcript:&lt;/p&gt;
&lt;pre&gt;
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2006-02-23 22:54 CET
Interesting ports on doodah.com (12.34.56.78):
(The 1658 ports scanned but not shown below are in state: closed)
PORT     STATE    SERVICE
21/tcp   open     ftp
22/tcp   open     ssh
53/tcp   open     domain
80/tcp   open     http
3306/tcp filtered mysql
&lt;/pre&gt;&lt;p&gt;
I&#039;m quite sure my firewall blocks access to the mysql port. Yet it bugs me that it is possible to tell that I have MySQL installed on my system simply by performing a port scan.&lt;/p&gt;
</description>
 <category domain="https://diaryproducts.net/exactly/about/operating_systems/unix">Unix</category>
 <category domain="https://diaryproducts.net/exactly/for/administrator">Administrator</category>
 <pubDate>Thu, 23 Feb 2006 22:02:44 +0000</pubDate>
</item>
</channel>
</rss>
