<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Knowledge Base (Posts about replacement)</title><link>https://bgstack15.ddns.net/blog/</link><description></description><atom:link href="https://bgstack15.ddns.net/blog/categories/replacement.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2022 &lt;a href="mailto:bgstack15@gmail.com"&gt;bgstack15&lt;/a&gt; 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-SA"
style="border-width:0; margin-bottom:12px;"
src="https://bgstack15.ddns.net/.images/l_by-sa_4.0_88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Sun, 27 Feb 2022 04:05:17 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Some thoughts on connman and wicd</title><link>https://bgstack15.ddns.net/blog/posts/2020/10/16/some-thoughts-on-connman-and-wicd/</link><dc:creator>bgstack15</dc:creator><description>&lt;p&gt;I discussed these thoughts in the Devuan forum[1] but wanted to publish them
on my own site as well. I was a huge fan of
&lt;a href="http://wicd.sourceforge.net/"&gt;wicd&lt;/a&gt;, origin site notwithstanding. It met my
needs and was easily configurable and understandable. But because it's python2
only (with some experimental &lt;a href="https://bugs.launchpad.net/wicd/+bug/1848020"&gt;python3
work&lt;/a&gt;), it was finally dropped
from Devuan Ceres. So I had to find an alternative. There's always the
unpopular Network Manager. So I checked out &lt;a href="https://01.org/connman"&gt;connman&lt;/a&gt;,
which seems to do everything I've asked it to do. It even includes its own gui
and trayicon implementation (connman-gtk), but Devuan also provides a separate
connman-ui trayicon utility but it duplicates the tray icon feature. So far,
to integrate connman into my workflows, I have two major notes.&lt;/p&gt;
&lt;h6&gt;Disable dns caching&lt;/h6&gt;
&lt;p&gt;I want /etc/resolv.conf to be the useful file it's always been, and not just
point to 127.0.1.1 or some ridiculousness. So run the daemon with &lt;strong&gt;-r&lt;/strong&gt; , by
setting file &lt;strong&gt;/etc/default/connman&lt;/strong&gt;.&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;DAEMON_OPTS="-r"
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;It's really nice that you can configure this utility in a traditional manner!
And it was clearly documented in the man page.&lt;/p&gt;
&lt;h6&gt;Add xdg autostart etnry&lt;/h6&gt;
&lt;p&gt;I add file &lt;strong&gt;/etc/xdg/autostart/connman-gtk.desktop&lt;/strong&gt; on all my systems, which
is in the &lt;a href="https://wiki.archlinux.org/index.php/XDG_Autostart"&gt;xdg autostart&lt;/a&gt;
directory. And xdg autostart, is, a
&lt;a href="https://specifications.freedesktop.org/"&gt;fd.o&lt;/a&gt; specification that describes a
common way desktop environments can act in similar ways.&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;[Desktop Entry]&lt;/span&gt;
&lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Application&lt;/span&gt;
&lt;span class="na"&gt;Exec&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;connman-gtk&lt;/span&gt;
&lt;span class="na"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Connman Settings&lt;/span&gt;
&lt;span class="na"&gt;Categories&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;GTK;GNOME;Settings;X-GNOME-Settings-Panel;X-Unity-Settings-Panel;HardwareSettings&lt;/span&gt;
&lt;span class="na"&gt;Keywords&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;connman;network;settings;wired;wifi;wi-fi;bluetooth;vpn;tethering&lt;/span&gt;
&lt;span class="na"&gt;X-GNOME-Settings-Panel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;connman-gtk&lt;/span&gt;
&lt;span class="na"&gt;X-Unity-Settings-Panel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;connman-gtk&lt;/span&gt;
&lt;span class="na"&gt;Icon&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;preferences-system-network&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Of course, this file has no bearing on non-xdg-compliant window managers, so I
also generally add to my user Fluxbox settings (file &lt;strong&gt;~/.fluxbox/startup&lt;/strong&gt; )
the following line.&lt;/p&gt;
&lt;pre class="code literal-block"&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;/usr/bin/connman-gtk &amp;amp;
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Final thoughts&lt;/h3&gt;
&lt;p&gt;So far I haven't discovered how connman-gtk stores its settings that appear to
be per-user, for the "prefer to load straight to tray icon." Oh dear, now that
I think about it, it's probably a gsettings or dconf or similar. Say it ain't
so!&lt;/p&gt;
&lt;h3&gt;References&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://dev1galaxy.org/viewtopic.php?pid=24641#p24641"&gt;https://dev1galaxy.org/viewtopic.php?pid=24641#p24641&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</description><category>connman</category><category>devuan</category><category>network</category><category>replacement</category><category>wicd</category><category>wireless</category><guid>https://bgstack15.ddns.net/blog/posts/2020/10/16/some-thoughts-on-connman-and-wicd/</guid><pubDate>Fri, 16 Oct 2020 13:14:12 GMT</pubDate></item></channel></rss>