<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>tg</title><link href="http://tg.gstaedtner.net/" rel="alternate"></link><link href="http://tg.gstaedtner.net/feeds/tag-gentoo.atom.xml" rel="self"></link><id>http://tg.gstaedtner.net/</id><updated>2014-05-06T23:26:43+02:00</updated><entry><title>Releasing etvdb</title><link href="http://tg.gstaedtner.net/2014/05/06/releasing-etvdb/" rel="alternate"></link><updated>2014-05-06T23:26:43+02:00</updated><author><name>Thomas Gstaedtner</name></author><id>tag:tg.gstaedtner.net,2014-05-06:2014/05/06/releasing-etvdb/</id><summary type="html">&lt;p&gt;After having used it for quite a while, I feel it is time to announce the release of &lt;em&gt;etvdb&lt;/em&gt;.&lt;/p&gt;
&lt;h2&gt;etvdb libary&lt;/h2&gt;
&lt;p&gt;etvdb is a high-level C library frontend to &lt;a href="http://thetvdb.com"&gt;The TVDB&lt;/a&gt;.
It is based on Eina and Ecore of the Enlightenment Foundation Libraries and easy to use in EFL apps, but can just as easily be used in other programs.
It does not depend on a mainloop.
Additionally it uses libcurl, so the dependencies are quite small.&lt;/p&gt;
&lt;p&gt;The current release is version 0.3.0 and you can get it from my &lt;a href="https://github.com/tg--/etvdb"&gt;Github Repo&lt;/a&gt;.
The API documentation is available on &lt;a href="//gstaedtner.net/etvdb/doc"&gt;my site&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Right now it only has a synchronous API, but I do plan to add a asynchronous one at some point in the future.
This means, that you'll have to run it in a thread for interactive applications for now.&lt;/p&gt;
&lt;h2&gt;etvdb command line tool&lt;/h2&gt;
&lt;p&gt;In addition to the library, there is etvdb_cli, which is basically a command line frontend to The TVDB based on etvdb.
It has currently 3 basic usage modes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;CSV-like output&lt;/p&gt;
&lt;p&gt;In this mode you can get a CSV-like output that you can write to a file.
This is the default mode.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;query mode&lt;/p&gt;
&lt;p&gt;In query mode you can query single properties from TV show episodes.
For example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;etvdb -n Futurama -s 1 -e 1 -q ename
Space Pilot 3000&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;rename mode&lt;/p&gt;
&lt;p&gt;In this mode you can pass files to etvdb and they will be renamed.
It supports templates so you can rename it however you'd like.
It can run without user input (in scripts e.g.) or interactive.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Try it out, it is easy to use. Just run etvdb --help to see all the options.
It currently only depends on libetvdb itself.
You can get the current 0.1.0 release from my &lt;a href="https://github.com/tg--/etvdb_cli"&gt;Github Repo&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Gentoo users can get ebuilds from my &lt;a href="https://github.com/tg--/gentoo-tg"&gt;Gentoo Overlay&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Check it out and let me know what you think, patches and comments welcome!&lt;/p&gt;</summary><category term="projects"></category><category term="enlightenment"></category><category term="gentoo"></category></entry><entry><title>Moving to systemd</title><link href="http://tg.gstaedtner.net/2011/11/10/moving-to-systemd/" rel="alternate"></link><updated>2011-11-10T00:30:00+01:00</updated><author><name>Thomas Gstaedtner</name></author><id>tag:tg.gstaedtner.net,2011-11-10:2011/11/10/moving-to-systemd/</id><summary type="html">&lt;p&gt;I'm back from Sweden, and while I was away, &lt;a href="https://events.linuxfoundation.org/events/embedded-linux-conference-europe"&gt;ELCE&lt;/a&gt; was held.
The nice people from Free Electrons luckily put up &lt;a href="http://free-electrons.com/blog/elce-2011-videos/"&gt;all the conference videos in webm format&lt;/a&gt;, so whoever missed it can catch up.
One of the first videos I watched was &lt;a href="http://free-electrons.com/pub/video/2011/elce/elce-2011-kooi-integrating-systemd.webm"&gt;Integrating systemd: Booting Userspace in Less Than 1 Second&lt;/a&gt;, held by Koen Kooi, who I remembered from the time I used Openembedded on Openmoko devices.&lt;/p&gt;
&lt;p&gt;Some know that I like to show off my neat little Thinkpad x200s for its boot time; so far under 5 seconds (from bootloader to X) using Gentoo, OpenRC, and Enlightenment.
I wanted to try systemd for a while but never really was in the mood to do the actual work. The video inspired me to actually give it a try now.&lt;/p&gt;
&lt;p&gt;Installing systemd is incredibly straight-forward, just read the gentoo-wiki articles and make sure you have your "init scripts" (or .service files in systemd jargon) ready.
Enough talk, just let me finish with this: I was utterly impressed how well systemd works and I'm looking forward to it replacing all other init systems currently out there (including OpenRC which I actually liked).
But look for yourself:&lt;/p&gt;
&lt;video width="100%" controls="controls"&gt;
 &lt;source src="//gstaedtner.net/videos/linux/x200s_fastboot.webm" type="video/webm" /&gt;
 Your browser does not support the video tag.
&lt;/video&gt;

&lt;h3&gt;Some stats:&lt;/h3&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;Linux version 3.1  
systemd version 37  
udev 175

Linux -&amp;gt; systemd: ~1s  
systemd -&amp;gt; e17: ~1s  
e17 -&amp;gt; ready: ~1.5s
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If you have questions or need config files, just ping me via mail/jabber/irc.&lt;/p&gt;</summary><category term="gentoo"></category><category term="enlightenment"></category></entry><entry><title>Pyneo for Gentoo</title><link href="http://tg.gstaedtner.net/2010/11/14/pyneo-for-gentoo/" rel="alternate"></link><updated>2010-11-14T14:10:00+01:00</updated><author><name>Thomas Gstaedtner</name></author><id>tag:tg.gstaedtner.net,2010-11-14:2010/11/14/pyneo-for-gentoo/</id><summary type="html">&lt;p&gt;Something I wanted to do for a while, but never actually got started: Get &lt;a href="http://www.pyneo.org"&gt;pyneo&lt;/a&gt; supported in gentoo.
So I finally wrote some ebuilds, starting of course with &lt;em&gt;pyneod&lt;/em&gt; and its dependencies &lt;em&gt;gsm0710muxd&lt;/em&gt; as well as &lt;em&gt;python-pyneo&lt;/em&gt;.
More to follow soon.&lt;/p&gt;
&lt;p&gt;The packages are based on the 1.32 tag in pyneo's git and pretty much identical to upstream, with the exception of the initscripts.
My ebuilds replace them by proper gentoo-style initscripts that work well in openrc.&lt;/p&gt;
&lt;h3&gt;How to use it&lt;/h3&gt;
&lt;p&gt;Using this overlay is easy.
Make sure you have layman installed, using the &lt;em&gt;git&lt;/em&gt; USE-flag, and set up, e.g. as &lt;a href="http://www.gentoo.org/proj/en/overlays/userguide.xml"&gt;described here&lt;/a&gt;.
After that you just have to add this overlay using:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;layman -o &amp;quot;https://raw.githubusercontent.com/tg--/gentoo-pyneo/master/overlay.xml&amp;quot; \
-f -a pyneo
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;That's it!&lt;/p&gt;
&lt;p&gt;Check it out on gitorious if you like!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://gitorious.org/tg/gentoo-pyneo"&gt;http://gitorious.org/tg/gentoo-pyneo&lt;/a&gt;&lt;/p&gt;</summary><category term="gentoo"></category><category term="pyneo"></category></entry><entry><title>Bluez and the Keyboard</title><link href="http://tg.gstaedtner.net/2010/11/01/bluez-and-the-keyboard/" rel="alternate"></link><updated>2010-11-01T06:28:00+01:00</updated><author><name>Thomas Gstaedtner</name></author><id>tag:tg.gstaedtner.net,2010-11-01:2010/11/01/bluez-and-the-keyboard/</id><summary type="html">&lt;p&gt;I recently bought a nice little &lt;a href="http://usb.brando.com/mini-plam-size-bluetooth-multimedia-keyboard_p01652c034d015.html"&gt;bluetooth keyboard&lt;/a&gt;.
Being bluetooth based and supporting the standard hid protocol, I didn't expect any trouble at all.&lt;/p&gt;
&lt;p&gt;But I was wrong.&lt;/p&gt;
&lt;p&gt;After charging the keyboard and putting it in pairing mode, I tried &lt;em&gt;hidtool scan&lt;/em&gt; - but it didn't find it.
I checked my other bluetooth devices, and they were found - but they also found the keyboard.&lt;/p&gt;
&lt;p&gt;Long story short: Turns out it was a &lt;a href="https://bugs.gentoo.org/show_bug.cgi?id=343367"&gt;bluez bug&lt;/a&gt; - thanks to Pacho Ramos for the hint.&lt;/p&gt;
&lt;p&gt;As all howtos and so on only cover some GUI frontends for Gnome and KDE, as well as the old (and deprecated) hidd, it wasn't that trivial to get the keyboard to work even after it was finally discovered by hcitool.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;jhe&lt;/em&gt; in #bluez-users on freenode gave me a brief description on how to do pairing without all the stuff mentioned above:&lt;/p&gt;
&lt;blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Install bluez with USE="test-programs" set &lt;/li&gt;
&lt;li&gt;Set the device to pairing mode&lt;/li&gt;
&lt;li&gt;Use &lt;em&gt;hcitool scan&lt;/em&gt; to get the device address&lt;/li&gt;
&lt;li&gt;Run &lt;em&gt;simple-agent hci0 $(hid device address)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Enter PIN on both sides, PC first, Keyboard second&lt;/li&gt;
&lt;li&gt;Run &lt;em&gt;bluez-test-input connect $(hid device address)&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;p&gt;After that it works fine.&lt;/p&gt;
&lt;p&gt;Using a frontend might be more viable though, seems the bluez distribution is not supposed to include the necessary tools, the test-programs are only optional.&lt;/p&gt;</summary><category term="gentoo"></category></entry></feed>