<?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>Lunar Linux &#187; the daily insanity</title>
	<atom:link href="https://lunar-linux.org/category/tdi/feed/" rel="self" type="application/rss+xml" />
	<link>https://lunar-linux.org</link>
	<description>It&#039;s out of this world!</description>
	<lastBuildDate>Tue, 15 Aug 2023 07:21:25 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.3</generator>
	<item>
		<title>Services from lunar-linux.org may be disrupted</title>
		<link>https://lunar-linux.org/2014/05/19/services-from-lunar-linux-org-may-be-disrupted/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=services-from-lunar-linux-org-may-be-disrupted</link>
		<comments>https://lunar-linux.org/2014/05/19/services-from-lunar-linux-org-may-be-disrupted/#comments</comments>
		<pubDate>Mon, 19 May 2014 10:18:36 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.54</guid>
		<description><![CDATA[<p>(original message by Auke (sofar) on the maillinglist)</p> <p>as some of you know our current hosting solution will no longer be available to us in the future. We&#8217;re working on a temporary solution to prevent most services from becoming unavailable altogether, but we can&#8217;t foresee any issues with migration. So, please be prepared for any [...]]]></description>
				<content:encoded><![CDATA[<p>(original message by Auke (sofar) on the maillinglist)</p>
<p>as some of you know our current hosting solution will no longer be available to us in the future. We&#8217;re working on a temporary solution to prevent most services from becoming unavailable altogether, but we can&#8217;t foresee any issues with migration. So, please be prepared for any service outage that may affect your lunar-linux usage.</p>
<p>Our temporary hosting has a financial cost, as well, so we are looking for a new place where we could host lunar-linux and developers for less cost. If you have any ideas, please contact me or Stefan.</p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2014/05/19/services-from-lunar-linux-org-may-be-disrupted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new 32bit chroot image</title>
		<link>https://lunar-linux.org/2012/04/01/new-32bit-chroot-image/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-32bit-chroot-image</link>
		<comments>https://lunar-linux.org/2012/04/01/new-32bit-chroot-image/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 14:17:48 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.52</guid>
		<description><![CDATA[<p>Just updated and uploaded a new image for use as a 32bit chroot &#8211; This is especially for those interesting, who want to use Lunar Linux in 64bit and need to run 32bit apps as well. Lunar Linux is not multilib and will, as it looks like, never be multilib (but never say never, so). [...]]]></description>
				<content:encoded><![CDATA[<p>Just updated and uploaded a new image for use as a 32bit chroot &#8211; This is especially for those interesting, who want to use Lunar Linux in 64bit and need to run 32bit apps as well. Lunar Linux is not multilib and will, as it looks like, never be multilib (but never say never, so). </p>
<p>The image is Os, i686, mmx, sse and sse2 optimized, which means you&#8217;ll need an sse(2) capable CPU to use this image (it&#8217;s very likely that you have one if you plan on using such a chroot and if you&#8217;re running 64bit, however, you can check using cat /proc/cpuinfo) </p>
<p><a href="http://wiki.lunar-linux.org/Miscellaneous:32BitChroot">The guide and download location is here</a> </p>
<p>My aim for this image was to keep a low amount of pre-installed modules. The image comes with 101 modules:</p>
<pre>
acl                flex               libtool            psmisc
attr               gawk               libusb             Python
autoconf           gcc                libusb-compat      readline
automake           gccmakedep         Linux-PAM          rsync
bash               gettext            linux-stable       sed
bash_static        glib-2             lunar-init         shadow
bin86              glibc              lunar-tools        sysfsutils
binutils           gmp                m4                 sysvinit
bison              gperf              make               tar
bzip2              grep               modutils-wrappers  texinfo
ccache             gzip               moonbase           theedge
check              installwatch       mpfr               TimeDate
chkconfig          iproute2           nasm               timezone-data
coreutils          iputils            ncurses            udev
cpio               kbd                net-tools          unzip
cracklib           kernel-headers     openssl            usbutils
dialog             kernel-reqs        patch              util-linux
diffutils          kmod               pbzip2             vim
discover           lard               pciutils           wget
discover-data      less               pcre               which
distcc             lftp               perl               wipe
e2fsprogs          libcap             pkgconfig          xz
ethtool            libffi             polylib            zlib
expat              libidn             popt               
file               libmpc             ppl                
findutils          libtirpc           procps             
</pre>
<p>If you&#8217;re using the guide or my image, please let me know, some feedback is always welcome. Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2012/04/01/new-32bit-chroot-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Future use of MAINTAINER= in DETAILS</title>
		<link>https://lunar-linux.org/2012/03/17/future-use-of-maintainer-in-details/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=future-use-of-maintainer-in-details</link>
		<comments>https://lunar-linux.org/2012/03/17/future-use-of-maintainer-in-details/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 21:53:40 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.49</guid>
		<description><![CDATA[<p>Currently we aren&#8217;t using the MAINTAINER= flag correctly in Lunar. I&#8217;d even go that far and say, we don&#8217;t care about that flag and we simply ignore it. With the new separation (stable / unstable) this will change:</p> <p>The maintainer-flag is usually set by developers or people for a specific module; that means such people [...]]]></description>
				<content:encoded><![CDATA[<p>Currently we aren&#8217;t using the MAINTAINER= flag correctly in Lunar. I&#8217;d even go that far and say, we don&#8217;t care about that flag and we simply ignore it. With the new separation (stable / unstable) this will change:</p>
<p>The maintainer-flag is usually set by developers or people for a specific module; that means such people or developer have a special need or knowledge about that module and should be asked whenever there&#8217;s an update or modification to this specific module.</p>
<p>For example:<br />
El_Angelo is set as maintainer for xorg-server, that&#8217;s because he&#8217;s reading the maillinglists, checking their bugtracker and he knows what he&#8217;s doing regarding xorg (At least, thats my impression) &#8211; If someone else wants to update xorg-server he/she should ask El_Angelo first why he didn&#8217;t update it, yet. Because El_Angelo might have a good reason for not doing so.</p>
<p>That means from now on we will care for the MAINTAINER flag and everytime a module needs a modification or update the MAINTAINER has to be contacted first. If a Maintainer doesn&#8217;t respond within two weeks, you can update or modify the module yourself. If it&#8217;s _really_ important to update something (bugfix, security patch) you might wait less time; However: Please always try to contact the maintainer, you can assume, that the Maintainer knows better about the module than you do.</p>
<p>We&#8217;ve started some sort of mass-mailing to all set MAINTAINER&#8217;s in Lunar Linux with a list of the modules they&#8217;ve set themselves as MAINTAINER and hope to get a lot of feedback. We will remove all MAINTAINER flags from users who didn&#8217;t respond within two weeks.</p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2012/03/17/future-use-of-maintainer-in-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lunar Linux: Introducing stable / unstable</title>
		<link>https://lunar-linux.org/2012/03/17/lunar-linux-introducing-stable-unstable/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=lunar-linux-introducing-stable-unstable</link>
		<comments>https://lunar-linux.org/2012/03/17/lunar-linux-introducing-stable-unstable/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 17:49:14 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.34</guid>
		<description><![CDATA[<p>Both, developers and users awaited the ability to have Lunar Linux in stable and unstable. The last few days and in the past months we had talks and discussions about that and today we came to a solution.</p> <p>Instead of writing a lot of bla bla: Currently you can decide between stable and unstable ONLY [...]]]></description>
				<content:encoded><![CDATA[<p>Both, developers and users awaited the ability to have Lunar Linux in stable and unstable. The last few days and in the past months we had talks and discussions about that and today we came to a solution.</p>
<p>Instead of writing a lot of bla bla: Currently you can decide between stable and unstable ONLY if you use theedge &#8211; And except you&#8217;re a developer or know what you&#8217;re doing you should NOT play around with it, yet. We&#8217;ve started an ongoing process.</p>
<p>We still need to discuss a little bit more on the rules for stable and unstable; However: stable will have older modules (maximum 1month) and will be well tested by developers, where as unstable will contain the latest available stable software (updated frequently) and thus candidates for the stable-branch.</p>
<p>Thanks to all the developers making this possible!</p>
<p><b>Step 1</b> &#8211; Everything as usual<br />
<img src="http://jeanbruenn.info/lunar/lunar_moonbase_stable01.png" alt="" class="alignnone size-medium wp-image-35" /></p>
<p><b>Step 2</b> &#8211; Whoooa. There&#8217;s a new menu item!<br />
<img src="http://jeanbruenn.info/lunar/lunar_moonbase_stable02.png" alt="" class="alignnone size-medium wp-image-36" /></p>
<p><b>Step 3</b> &#8211; Cool. mkay?<br />
<img src="http://jeanbruenn.info/lunar/lunar_moonbase_stable03.png" alt="" class="alignnone size-medium wp-image-37" /></p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2012/03/17/lunar-linux-introducing-stable-unstable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Handling renamed modules &#8211; An idea</title>
		<link>https://lunar-linux.org/2011/10/15/handling-renamed-modules-an-idea/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=handling-renamed-modules-an-idea</link>
		<comments>https://lunar-linux.org/2011/10/15/handling-renamed-modules-an-idea/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 02:34:27 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.20</guid>
		<description><![CDATA[<p>A few days ago we had a little discussion on IRC how to handle renamed modules (once again). Due to the renamed KDE modules a few users had a broken Box because Lunar Linux isn’t keeping track of renamed modules – So, if a module gets renamed it looks like the module got removed and [...]]]></description>
				<content:encoded><![CDATA[<p>A few days ago we had a little discussion on IRC how to handle renamed modules (once again). Due to the renamed KDE modules a few users had a broken Box because Lunar Linux isn’t keeping track of renamed modules – So, if a module gets renamed it looks like the module got removed and nobody knows how the new module might be called, except he’s searching for that. That leads to a lot of missing modules after an update.<br />
<span id="more-100"></span><br />
zbiggy suggested the use of a table to keep track of such modules, his idea got rejected, tho. To read more about his initial idea/implementation <a href="http://foo-projects.org/pipermail/lunar-dev/2011-August/007323.html" class="broken_link" rel="nofollow">take a look at this mail</a>.</p>
<p>However, we still need a solution to handle renamed modules better than we do currently, so I came up with the following snippets:</p>
<p><strong>Patch 1 to /var/lib/lunar/functions/modules.lunar</strong></p>
<pre>368a369,381
&gt; # function : module_superseeded
&gt; # usage    : module_superseeded $MODULE
&gt; # purpose  : checks if $MODULE is superseeded by another MODULE
&gt; # return   : returns 0 if superseeded, 255 else
&gt; module_superseeded() {
&gt;   if run_details $1 &amp;&gt;/dev/null ; then
&gt;     if [ ! -z "$SUPERSEEDED" ]; then
&gt;       return 0;
&gt;     fi
&gt;   fi
&gt;   return 255
&gt; }
&gt;
546a560,572
&gt;       fi
&gt;     else
&gt;       # run_details $MODULE worked; thus the module is installed
&gt;       # let's check if it got renamed.
&gt;       if module_superseeded $MODULE ; then
&gt;         message
&gt; "${MODULE_COLOR}$MODULE${DEFAULT_COLOR}${MESSAGE_COLOR} got renamed to
&gt; ${MODULE_COLOR}$SUPERSEEDED${DEFAULT_COLOR}";
&gt;         if query "Do you want to switch to
&gt; ${MODULE_COLOR}$SUPERSEEDED${DEFAULT_COLOR}${MESSAGE_COLOR} ?" y ; then
&gt;           lrm $MODULE
&gt;           lin $SUPERSEEDED
&gt;           continue
&gt;         else
&gt;           message
&gt; "${MODULE_COLOR}$MODULE${DEFAULT_COLOR}${MESSAGE_COLOR} is kept and can
&gt; be renamed manually later${DEFAULT_COLOR}";
&gt;         fi</pre>
<p><strong>Patch 2 to /sbin/lin</strong></p>
<pre>142a143,146
&gt;           elif module_superseeded $MODULE ; then
&gt;             error_message
&gt; "${LRM_COLOR}Notice:${DEFAULT_COLOR}${MESSAGE_COLOR} The module is
&gt; superseeded by
&gt; ${MODULE_COLOR}$SUPERSEEDED${DEFAULT_COLOR}${MESSAGE_COLOR}";
&gt;             error_message "please lin that one
&gt; instead.${DEFAULT_COLOR}"
&gt;             continue</pre>
<p>Remember, the goal was to keep it very simple. The above code changes the way, developers have to handle modules (if they rename them) a little bit. They have to set the SUPERSEEDED flag in DETAILS file to get it working. The devs I talked to have been okay with this approach.</p>
<p><strong>Example:</strong><br />
renamed gcc to wdp-rulez</p>
<pre>[lunar] root@lunar /var/lib/lunar/moonbase/compilers # purge_modules
+ Discovering modules that were removed from moonbase
flash-plugin-10 was removed from /var/lib/lunar/moonbase
flash-plugin-10: Do you want to remove flash-plugin-10 ? [y] n
flash-plugin-10 is kept and can be removed manually later
gcc got renamed to wdp-rulez
gcc: Do you want to switch to wdp-rulez ? [y] n
gcc is kept and can be renamed manually later
[lunar] root@lunar /var/lib/lunar/moonbase/compilers #</pre>
<p>For devs handling of modules changes to this:</p>
<p>The proper way to handle renamed modules is now:</p>
<ol>
<li>Copy the module to it’s new place and rename the copy.<br />
<em>e.g: cp -rva compilers/gcc compilers/newgcc</em></li>
<li>Move the old one to zdeprecated<br />
<em>e.g: mv compilers/gcc zdeprecated/gcc</em></li>
<li>Remove everything _except_ DETAILS from zdeprecated/gcc/*</li>
<li>Add: SUPERSEEDED=newgcc to DETAILS<br />
<em>e.g: echo “SUPERSEEDED=newgcc” &gt;&gt; zdeprecated/gcc/DETAILS</em></li>
</ol>
<p>El_Angelo suggested that we make sure that people can’t lin/get<br />
the new module if they “lin” the old one.</p>
<p>Example:</p>
<pre>root@lunar ~ # lin gcc
+ Spawning download manager
+ download queue:   gcc
Notice: The module is superseeded by  wdp-rulez
please lin that one instead.
root@lunar ~ #</pre>
<p>That way we’re making sure, that nobody installs a package which<br />
is superseeded by another.</p>
<p>Let’s see whether this will go into Lunar <img src="https://lunar-linux.org/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2011/10/15/handling-renamed-modules-an-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Systemd &amp; Connman</title>
		<link>https://lunar-linux.org/2011/08/04/systemd-connman/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=systemd-connman</link>
		<comments>https://lunar-linux.org/2011/08/04/systemd-connman/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 02:24:15 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.11</guid>
		<description><![CDATA[<p>I wrote about a possible switch of the init-system in Lunar Linux some time ago. Today I’ll  show you how to replace your init-system with systemd and connman in Lunar Linux.<br /> <br /> First of all, systemd needs some kernel-options which you should enable. Some of them are optional, however, most of them are [...]]]></description>
				<content:encoded><![CDATA[<p>I wrote about a possible switch of the init-system in Lunar Linux some time ago. Today I’ll  show you how to replace your init-system with systemd and connman in Lunar Linux.<br />
<span id="more-85"></span><br />
First of all, systemd needs some kernel-options which you should enable. Some of them are optional, however, most of them are recommended. So I’m starting with lin -cr linux-2.6 and I’m configuring the Kernel. You should make sure you have the following things enabled:</p>
<pre>CONFIG_DEVTMPFS=y
CONFIG_CGROUPS=y
CONFIG_AUTOFS4_FS=[y|m]
CONFIG_IPV6=[y|m]
CONFIG_RTC_DRV_CMOS=y
CONFIG_FANOTIFY=y
CONFIG_AUDIT=y</pre>
<p>AUDIT is not a requirenment. IPV6 is not a requirenment i.e. it’s recommended to have them, not needed though.</p>
<p>Now we can continue by installing systemd using the following command:</p>
<pre>lin systemd</pre>
<p>The installer will ask you, whether you want sysv-compatibility, for now you should say “yes”, because of a few reasons. For example networking wouldn’t work correctly without it, as of writing this article. If it asks you whether you want cryptsetup keep in mind that this will install lvm2, which is not what I want, because I use device-mapper which would conflict with lvm2. So I’ll say “no”.</p>
<p><strong>Suggestion</strong>: If compilation fails because of some error get it compiled by saying “no” to libnotify.</p>
<p>The next step in our list is removing everything not-needed from /etc/fstab. /etc/fstab should ONLY contain your real drives. That means, comment /dev/pts comment /proc comment /var* and tmp.. My fstab looks like this:</p>
<pre>#UUID=83f6bd55-9686-46e2-b793-74a3e13332cd
/dev/sda1               /       ext4            defaults,noatime        0 1
#UUID=e66bbf62-783b-4276-b2f8-5bd05bbfd542
/dev/sda5               /home   ext4            defaults,relatime       0 2
/dev/sda2               swap    swap            defaults                0 0</pre>
<p>There’s NOTHING ELSE in /etc/fstab. Now you need to add a symlink from /proc/self/mounts to /etc/mtab. If you don’t, you’ll get:</p>
<pre>Aug  4 14:07:24 localhost kernel: systemd[1]: /etc/mtab is not a symlink or not pointing to /proc/self/mounts. This is not supported anymore. Please make sure to replace this file by a symlink to avoid incorrect or misleading mount(8) output.</pre>
<p>so just do:</p>
<pre>rm /etc/mtab &amp;&amp; ln -s /proc/self/mounts /etc/mtab</pre>
<h2>The stuff below, is already integrated into lunar linux</h2>
<p>That means, you don’t need to do this. This is just here, so you can see what I had to do when I initially tried to integrate it. However; Skip to &#8220;Migrating Services&#8221; below <img src="https://lunar-linux.org/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> </p>
<p>You can try systemd now by adding init=/sbin/systemd to your bootloader. I hope it’s starting as fine for you as for me. However. Let’s configure systemd now. First we should set a nice hostname, in case you haven’t set one yet.</p>
<pre>echo "yourhostname" &gt; /etc/hostname</pre>
<p>Now let’s configure console font and such stuff. Open /etc/vconsole.conf with your favorite editor and write something like this to it:</p>
<pre>KEYMAP=de
FONT=sun12x22
FONT_MAP=8859-15_to_uni</pre>
<p>As a little hint: You can check available keymaps in /usr/share/kbd/keymaps/. DE is german. You can check for available fonts in: /usr/share/kbd/consolefonts. I love this font. And the font maps are located in: /usr/share/kbd/consoletrans. 8859-15 is euro charset.</p>
<p>You can add the following to /etc/os-release:</p>
<pre>NAME=Lunarlinux
ID=lunar
PRETTY_NAME=Lunar Linux
ANSI_COLOR=1;34</pre>
<p>Usually you shouldn’t touch this, but as it doesn’t exist yet… Now add the locales:</p>
<pre>LANG=en_US.utf8
LC_COLLATE=C</pre>
<p>to /etc/locale.conf – I dislike german locales.. if you like them, replace en_US with de_DE. Basically this was it. You could play around with module blacklisting and loading now but that’ll be explained by me another time.</p>
<h2>Migrating services</h2>
<p>I hope you’re willing to improve Lunar Linux also – Issue:</p>
<pre>systemctl</pre>
<p>and scroll down. You’ll see some lines with “failed”. Please report them or try to find out, why they failed, try to fix them and let us know on IRC or by mail. Also take a look at those lines containing SYSV. Those are the compatibility-sysv-services which needs to be replaced i.e. we need to write a service for them. I’ll show you one example. You can help us to improve Lunar by mailing such services to us or by giving them to us on irc (using pastebin or something). Anyway. Let’s imagine we want to write a service for “slim” my favorite graphical login manager. First let’s go into /etc/systemd/system as it’s a system-service and not a user-service. Now open “slim.service” in your favorite text editor.</p>
<pre>[Unit]
Description=slim - simple login manager
Requires=dev-tty7.device
After=dev-tty7.device systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/slim -nodaemon
Restart=always
StandardOutput=syslog

[Install]
WantedBy=graphical.target</pre>
<p>I guess, the stuff is pretty self-explaining. Now issue:</p>
<pre>systemctl enable slim.service</pre>
<p>And you’re done. That was all about it.</p>
<h2>Connman</h2>
<p>Currently we’re using some bash scripts and lnet to setup networking. Using connman this can be simplified a lot. El_Angelo and me are working on some GUI for connman right now, will take some time till it’s in moonbase. However, if you got a dhcp router connman should easily configure your wired network automatically – wireless lan should work also. If you have any trouble with connman ask us on IRC and we’ll try to help.</p>
<pre>lin -cr connman
mv /etc/init.d/network /etc/init.d/network.old
/etc/init.d/network.old stop
systemctl enable connman.service
systemctl start connman.service</pre>
<p>This will install connman, make a backup of your network init script i.e. if networking fails with connman just do /etc/init.d/network.old start, enable the service and start connman.</p>
<p>Check if /etc/resolv.conf is correct, check if ifconfig is correct, check if internet connectivity/network works. If yes – Try a reboot and check if your network comes up automatically.</p>
<p>For wlan, unpack the source (/var/spool/lunar/connman*) to /usr/src, switch into that directory, and there switch into the directory “test” within that folder, you’ll find a few test-tools which are handy to configure connman:</p>
<pre>./list-services</pre>
<p>find out your service (the part after /service/ starting with wifi_)</p>
<pre>./test-connman enable service</pre>
<p>(replace service with wifi_yourservice)</p>
<p>to enable the stuff. Now you can set the Passphrase:</p>
<pre>./test-connman passphrase service the-phrase</pre>
<p>(replace service again, and put in your phrase at the-phrase)</p>
<p>and you can try to enable autoconnect:</p>
<p>./test-connman passphrase service</p>
<p><strong>hint #1</strong><br />
dveatch reported that he dislikes iptables and that connman moaned because of some xtable thingy. A simple lin of iptables solved that issue for him.</p>
<p><strong>hint #2</strong><br />
we did some work on the wpa_supplicant module, it might well be that you have to relin it, so that it uses the new dbus interface and so that it has the nl80bla-driver enabled. even if you just use wired networking, connman might moan that it wants wpa_supplicant &#8211; So just install it using lin -cr wpa_supplicant.</p>
<h2>Switching to non-sysv-compat systemd</h2>
<p>Basically you just had to do the following: install systemd. boot with systemd. Migrate your services to systemd (at least the important ones), get connman working (thus our old network init script is not used anymore and your network works without sysvinit), reboot and check for any errors, solve them if possible and if there are any, recompile systemd without sysv-compatibility, reboot &#8211; done.</p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2011/08/04/systemd-connman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating old lunar installations: Getting rid of hal</title>
		<link>https://lunar-linux.org/2011/07/29/updating-old-lunar-installations-getting-rid-of-hal/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=updating-old-lunar-installations-getting-rid-of-hal</link>
		<comments>https://lunar-linux.org/2011/07/29/updating-old-lunar-installations-getting-rid-of-hal/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 02:33:14 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.15</guid>
		<description><![CDATA[<p>As hal is deprecated now, most new-installations don’t have it anymore. My netbook still has it, so how do I get rid of it easily? Read on, if you want to know..<br /> </p> lrm hal-info hal for i in `lsh list_installed_depending hal`; do lin -cr "$i"; done lunar fixdepends lunar fix <p>lunar fixdepends might [...]]]></description>
				<content:encoded><![CDATA[<p>As hal is deprecated now, most new-installations don’t have it anymore. My netbook still has it, so how do I get rid of it easily? Read on, if you want to know..<br />
<span id="more-96"></span></p>
<pre>lrm hal-info hal
for i in `lsh list_installed_depending hal`; do lin -cr "$i"; done
lunar fixdepends
lunar fix</pre>
<p>lunar fixdepends might not be needed; however. Basically I’m removing hal-info and hal. Then I’m going through all modules which have hal as dependency and I’m relinning them using lin -cr (which will ask me everything again so I can say no to hal). Right after doing so, I’m running lunar fixdepends to re-create the dependency stuff and lunar fix to resolve any other issues which might be there due to the removal of hal.</p>
<p><strong>lsh</strong> is lunar’s internal .. well. let’s name it “lunar shell” which is just a shell with lunar functions. Those functions you’ll find in /var/lib/lunar/functions/. You can use them for quite useful stuff.</p>
<p><strong>Note</strong> for correct “dependency” order it would be better to have the dependencies in “one” line instead of doing that “for”. I.e.:</p>
<pre>MODULES=""; for i in `lsh list_installed_depending hal`; do   VAR=$(echo "$MODULES" | grep "$i"); if [ -z "$VAR" ]; then      MODULES="$MODULES $i";   fi; done</pre>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2011/07/29/updating-old-lunar-installations-getting-rid-of-hal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cache database for moonbase</title>
		<link>https://lunar-linux.org/2011/02/06/cache-database-for-moonbase/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cache-database-for-moonbase</link>
		<comments>https://lunar-linux.org/2011/02/06/cache-database-for-moonbase/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 02:12:45 +0000</pubDate>
		<dc:creator><![CDATA[wdp]]></dc:creator>
				<category><![CDATA[the daily insanity]]></category>

		<guid isPermaLink="false">http://3.5</guid>
		<description><![CDATA[<p>We&#8217;ve had a few talks regarding the use of a database to speed up some processing/end-user-tools. Let&#8217;s say &#8220;lvu search&#8221;, the module searching when issuing &#8220;lunar renew&#8221; (which should be module_expired() and run_details()). Also things like &#8220;lvu depends&#8221;. However. Lunar&#8217;s package management is as good as it is, because it&#8217;s easy. All you need to [...]]]></description>
				<content:encoded><![CDATA[<p>We&#8217;ve had a few talks regarding the use of a database to speed up some processing/end-user-tools. Let&#8217;s say &#8220;lvu search&#8221;, the module searching when issuing &#8220;lunar renew&#8221; (which should be module_expired() and run_details()). Also things like &#8220;lvu depends&#8221;. However. Lunar&#8217;s package management is as good as it is, because it&#8217;s easy. All you need to know is Bash (and not even that correctly). The moonbase (the heart of our package management) resides in /var/lib/lunar/moonbase and contains categories, modules and bash scripts like DETAILS, DEPENDS, PRE_INSTALL just to name a few. Placing all this into a database would make it more difficult to play around with the package management and thats why some people would dislike a database and others would prefer one. And as a result we only talk about it, without doing anything. A year ago (April 2010) I started to work on a cached variant of moonbase, it works by syncing moonbase into a sqlite3 database and optionally using this database instead of the slow file-operations. Yesterday (February 2011) Ratler and I were improving the script I made a lot.<br />
<span id="more-83"></span><br />
The original script (version 0.1) took 15 minutes to do the initial sync and every other sync of moonbase with the db. Currently we’re at version 0.3 and the script takes around 18 seconds per sync on our test-environment. So this is a somewhat big improvement. However – The question which remains is: Is using sqlite really faster than using lunar&#8217;s tools (which use file-operations)? Let’s see:</p>
<p>sqlite</p>
<pre>time sqlite3 cache.db " select t1.id, t1.name, t2.category from lunar_modules t1 join lunar_modules_categories t2 on t1.category_id = t2.id where t2.category = 'shells';"

real    0m0.010s</pre>
<p>lunar’s tools</p>
<pre>time lvu section shells

real    0m0.093s</pre>
<p>Looks like sqlite is 9 times faster than the lunar-tools. That’s not bad at all. However, these are just some pseudo numbers, we’re working on a patch so that everyone can test that. There’s a todo list with this db:</p>
<ol>
<li>Implement dependency tracking</li>
<li>Write functions to do usual tasks (lvu depends, lvu where, lvu search, lvu website, lvu depends, get_all_modules, lvu expired, etc)</li>
<li>Write an entry in lunar features where users can enable this cached db optionally</li>
<li>Enhance the lunar tools (lvu, lin, lunar, etc) to use this database and the file-operations as fallback</li>
</ol>
<p>The good thing about this solution is: It’s just a starting point. We can enhance this as much as we want. While just using it to improve some simple things now, we can use it also for complex things in the future. Also: Any changes made is non intrusive to the old behavior, they would co-exist and sqlite would be optional if implemented.</p>
]]></content:encoded>
			<wfw:commentRss>https://lunar-linux.org/2011/02/06/cache-database-for-moonbase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
