<?xml version="1.0" encoding="utf-8" ?>

<?xml-stylesheet type="text/xsl" href="/templates/2k11/rss.xsl" media="screen" ?>
<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as config)</title>
    <link>http://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6.0 - http://www.s9y.org/</generator>
    <pubDate>Mon, 07 Jan 2019 09:37:24 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>http://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Xfce 4.12 not suspending on laptop-lid close</title>
    <link>http://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html</link>
            <category>Linux</category>
    
    <comments>http://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=154</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=154</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Xfce 4.12 as default in Ubuntu/Xubuntu 18.04 LTS did not suspend a laptop after closing the lid. In fact running
&lt;code&gt;xfce4-power-manager --quit ; xfce4-power-manager --no-daemon --debug&lt;/code&gt; showed that xfce4 wasn&#039;t seeing a laptop lid close event at all.&lt;/p&gt;

&lt;p&gt;To the contrary &lt;code&gt;acpi_listen&lt;/code&gt; nicely finds &lt;code&gt;button/lid LID close&lt;/code&gt; and &lt;code&gt;button/lid LID open&lt;/code&gt; events when folding the screen and opening it up again.&lt;/p&gt;

&lt;p&gt;As so often the wonderful docs / community of Arch Linux to the rescue. This &lt;a href=&quot;https://bbs.archlinux.org/viewtopic.php?id=206840&quot;&gt;forum thread&lt;/a&gt; from 2015 received the correct answer in 2017:&lt;/p&gt;

&lt;p&gt;Xfce4 basically recognizes systemd and thus disables its built-in power-management options for handling these &quot;button events&quot; (but doesn&#039;t tell you so in the config UI for power-manager). Systemd is configured to handle these events by default (&lt;code&gt;/etc/systemd/logind.conf&lt;/code&gt; has &lt;code&gt;HandleLidSwitch=suspend&lt;/code&gt; but for unknown reasons decides not to honor that).&lt;/p&gt;

&lt;p&gt;So best is to teach Xfce4 to handle the events again as in pre-systemd times:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now the UI options will work again as intended and the laptop suspends on lid close and resumes on lid open.&lt;/p&gt;

&lt;h3&gt;Update:&lt;/h3&gt;

&lt;p&gt;07.01.19: Changed XFCE -&gt; Xfce as per Corsac&#039;s suggestion in the comments below. Thank you!&lt;/p&gt;

&lt;p&gt;Background info:&lt;/p&gt;

&lt;blockquote&gt;
The name &quot;XFCE&quot; was originally an acronym for &quot;XForms Common Environment&quot;, but since that time it has been rewritten twice and no longer uses the XForms toolkit. The name survived, but it is no longer capitalized as &quot;XFCE&quot;, but rather as &quot;Xfce&quot;. The developers&#039; current stance is that the initialism no longer stands for anything specific. After noting this, the FAQ on the Xfce Wiki comments &quot;(suggestion: X Freakin&#039; Cool Environment)&quot;.
&lt;/blockquote&gt;

&lt;p&gt;(quoted from &lt;a href=&quot;https://en.wikipedia.org/wiki/Xfce#History&quot;&gt;Wikipedia&#039;s Xfce article&lt;/a&gt; also found in the &lt;a href=&quot;https://docs.xfce.org/faq&quot;&gt;Xfce docs FAQ&lt;/a&gt;).&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sat, 05 Jan 2019 15:15:00 +0000</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/154-guid.html</guid>
    <category>config</category>
<category>hibernate</category>
<category>suspend</category>
<category>systemd</category>
<category>ubuntu</category>
<category>updated</category>
<category>xfce</category>

</item>
<item>
    <title>Firefox asking to be made the default browser again and again</title>
    <link>http://daniel-lange.com/archives/148-Firefox-asking-to-be-made-the-default-browser-again-and-again.html</link>
            <category>Linux</category>
    
    <comments>http://daniel-lange.com/archives/148-Firefox-asking-to-be-made-the-default-browser-again-and-again.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=148</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=148</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Firefox on Linux can develop the habit to (rather randomly) ask again and again to be made the default browser. E.g. when started from Thunderbird by clicking a link it asks but when starting from a shell all is fine.&lt;/p&gt;

&lt;p&gt;The reason to this is often two (or more) &lt;code&gt;.desktop&lt;/code&gt; entries competing with each other.&lt;/p&gt;

&lt;p&gt;So, walkthrough: (&lt;a href=&quot;#label_10&quot;&gt;GOTO 10&lt;/a&gt; in case you are sure to have all the basics right)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;update-alternatives &lt;span style=&quot;color: #660033;&quot;&gt;--display&lt;/span&gt; x-www-browser&lt;br /&gt;update-alternatives &lt;span style=&quot;color: #660033;&quot;&gt;--display&lt;/span&gt; gnome-www-browser&lt;/div&gt;

&lt;p&gt;should both show firefox for you. If not&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;update-alternatives &lt;span style=&quot;color: #660033;&quot;&gt;--config&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;entry&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;the entry to fix the preference on &lt;code&gt;/usr/bin/firefox&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Check (where available)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;exo-preferred-applications&lt;/div&gt;

&lt;p&gt;that the &quot;Internet Browser&quot; is &quot;Firefox&quot;.&lt;/p&gt;

&lt;p&gt;Check (where available)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xfce4-mime-settings&lt;/div&gt;

&lt;p&gt;that anything containing &quot;html&quot; points to Firefox (or is left at a non-user set default).&lt;/p&gt;

&lt;p&gt;Check (where available)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xdg-settings get default-web-browser&lt;/div&gt;

&lt;p&gt;that you get &lt;code&gt;firefox.desktop&lt;/code&gt;. If not run&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xdg-settings check default-web-browser firefox.desktop&lt;/div&gt;

&lt;p&gt;If you are running Gnome, check&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xdg-settings get default-url-scheme-handler http&lt;/div&gt;

&lt;p&gt;and the same for &lt;code&gt;https&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;label_10&quot;&gt;LABEL 10&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;Run&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;sensible-editor ~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.config&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;mimeapps.list&lt;/div&gt;

&lt;p&gt;and remove all entries that contain something like &lt;code&gt;userapp-Firefox-&amp;lt;random&amp;gt;.desktop&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Run&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;find&lt;/span&gt; ~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.local&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;applications &lt;span style=&quot;color: #660033;&quot;&gt;-iname&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;userapp-firefox*.desktop&amp;quot;&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;and delete these files or move them away.&lt;/p&gt;

&lt;p&gt;Done.&lt;/p&gt;

&lt;p&gt;Once you have it working again consider &lt;em&gt;disabling&lt;/em&gt; the option for  Firefox to check whether it is the default browser. Because it will otherwise create those pesky &lt;code&gt;userapp-Firefox-&amp;lt;random&amp;gt;.desktop&lt;/code&gt; files again.&lt;/p&gt;

&lt;p&gt;Configuring Linux is easy, innit?&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sat, 03 Nov 2018 08:55:00 +0000</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/148-guid.html</guid>
    <category>bug</category>
<category>chrome</category>
<category>config</category>
<category>debian</category>
<category>firefox</category>
<category>gnome</category>
<category>thunderbird</category>
<category>ubuntu</category>
<category>xfce</category>

</item>
<item>
    <title>Dovecot segfaulting (Ubuntu 14.04 LTS, CentOS 6 and 7)</title>
    <link>http://daniel-lange.com/archives/117-Dovecot-segfaulting-Ubuntu-14.04-LTS,-CentOS-6-and-7.html</link>
            <category>Open Source</category>
    
    <comments>http://daniel-lange.com/archives/117-Dovecot-segfaulting-Ubuntu-14.04-LTS,-CentOS-6-and-7.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=117</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=117</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;We&#039;re currently installing a solution including dovecot for a company to go into production in April. So we kick this off with a development box for integrating parts that different suppliers to our customer are working on.&lt;/p&gt;

&lt;p&gt;But after installing dovecot on the new joint development machine it just didn&#039;t start.
It worked on our local development boxes but the install for the customer has been scripted with (what we call) &quot;poor man&#039;s puppet&quot; so it is somewhat hard to compare the setups. Same Ubuntu 14.04 LTS under the hood but on top of that things (like config layout, directory structures etc.) are quite different.&lt;/p&gt;

&lt;p&gt;Back on topic: &lt;code&gt;ps aux | grep d[o]ve&lt;/code&gt; returned empty.&lt;/p&gt;

&lt;p&gt;Looking at &lt;code&gt;/var/log/mail.log&lt;/code&gt; did not show anything relevant.&lt;/p&gt;

&lt;p&gt;But syslog (&lt;code&gt;/var/log/syslog&lt;/code&gt;) had some worrying lines like:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Mar 16 03:16:17 dev-new kernel: [ 3222.339365] doveconf[6420]: segfault at 200 ip 00007fa041b25a03 sp 00007ffe7881e070 error 4 in libc-2.19.so[7fa041ada000+1bb000]&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Manually running the daemon resulted in:&lt;/p&gt;

&lt;blockquote&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf&lt;/span&gt;&lt;br /&gt;Segmentation fault&lt;/div&gt;
&lt;/blockquote&gt;

&lt;p&gt;So&lt;/p&gt;

&lt;blockquote&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;var&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;core&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;chmod&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;1777&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;var&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;core&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/var/core/%p&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;proc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sys&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;kernel&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;core_pattern&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;ulimit&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-c&lt;/span&gt; unlimited&lt;br /&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sbin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dovecot &lt;span style=&quot;color: #660033;&quot;&gt;-F&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-c&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dovecot&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dovecot.conf&lt;br /&gt;Segmentation fault &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;core dumped&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;

&lt;p&gt;Better. We have a core file now.&lt;/p&gt;

&lt;p&gt;But:&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;http://daniel-lange.com/archives/117-Dovecot-segfaulting-Ubuntu-14.04-LTS,-CentOS-6-and-7.html#extended&quot;&gt;Continue reading &quot;Dovecot segfaulting (Ubuntu 14.04 LTS, CentOS 6 and 7)&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 16 Mar 2016 11:30:00 +0000</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/117-guid.html</guid>
    <category>bug</category>
<category>config</category>
<category>dovecot</category>
<category>segfault</category>

</item>
<item>
    <title>Replicating BIND DNS slave configurations from BIND DNS master servers</title>
    <link>http://daniel-lange.com/archives/76-Replicating-BIND-DNS-slave-configurations-from-BIND-DNS-master-servers.html</link>
            <category>Internet</category>
    
    <comments>http://daniel-lange.com/archives/76-Replicating-BIND-DNS-slave-configurations-from-BIND-DNS-master-servers.html#comments</comments>
    <wfw:comment>http://daniel-lange.com/wfwcomment.php?cid=76</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=76</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Manually copying the &lt;a href=&quot;https://www.isc.org/software/bind&quot; title=&quot;BIND DNS server homepage&quot;&gt;BIND&lt;/a&gt; master zone configuration to slave servers is a tedious and error-prone process.
There are configuration management systems available for large deployments and BIND can support database backends as well which allow synchronization virtually behind the scenes.&lt;/p&gt;

&lt;p&gt;For my use these options are overly complex and have unwanted risks associated with it.&lt;/p&gt;

&lt;p&gt;The better option is to automate generating the BIND slave configuration from the BIND master  &lt;code&gt;named.conf.local&lt;/code&gt;.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;http://daniel-lange.com/archives/76-Replicating-BIND-DNS-slave-configurations-from-BIND-DNS-master-servers.html#extended&quot;&gt;Continue reading &quot;Replicating BIND DNS slave configurations from BIND DNS master servers&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 23 Jan 2013 17:00:00 +0000</pubDate>
    <guid isPermaLink="false">http://daniel-lange.com/archives/76-guid.html</guid>
    <category>awk</category>
<category>bind</category>
<category>config</category>
<category>convert</category>
<category>dns</category>
<category>isc</category>
<category>named</category>

</item>

</channel>
</rss>
