Archive for the ‘linux’ Category

plasmoid-networkmanagement - How to connect?

Saturday, October 23rd, 2010

After Will’s talk about new KDE Features for 11.4 on the openSUSE Conference, I thought I’d finally give the networkmanagement plasmoid a try and installed it.
While it looks neat and apparently would show additional information about my connection (compared to knetworkmanager), I was unable to find a button or other UI element that would allow me to connect to a 3G Network.

Has anyone managed to use this for connecting? How?

I was just lucky that I had nm-applet installed, otherwise I would not even have had a way to get online at all… :-)

Nifty dnsmasq Trick: Reverse Lookup using a specific Server

Tuesday, June 22nd, 2010

With dnsmasq, it’s easy to look up a whole domain using a special dns server. The option is

   --server=/foo.corp/10.11.12.13

This will look up everything “*.foo.corp” using nameserver 10.11.12.13. So far, so good. But today I also needed the reverse lookup for a specific IP adress zone to be done via a specific nameserver. Reading the manpage, I found no option for that, but then I remembered stuff that I had learnt in a distant past: that reverse lookups are actually a name lookup of the in-addr.arpa zone, with the “reversed” IP address. So I tried

  --server=/10.in-addr.arpa/10.11.12.13

and that one works fine, looking up everything 10.x.x.x using 10.11.12.13.

And it still was much easier than using ugly bind. That’s why I prefer dnsmasq in daily use over bind, dhcpd and all the other crap. It just works ;)

Rebuilding a single kernel module

Wednesday, April 28th, 2010

Due to Bug 596844, I had to rebuild the i915 module with a patch. I have done things like that quite often over the last years, and every time I have to dig through the documentation, so I’ll put it up here in the hope that I’ll find it easier in the future and that it might be useful for somebody else ;)

There are only a few steps, following the README.SUSE in the kernel-source package:

  • install the kernel-syms and kernel-source packages
  • copy the kernel sources to some other place where you have write access as a normal user (this is not in the README, but I hate doing stuff like that as root, so I’m doing it anyway)
  • patch the source
  • build the module

Or, as an almost-copy’n'pasteable list of commands:

cd /tmp
cp -a /usr/src/linux/ . # do not only copy the symlink ;)
cd linux/drivers/gpu/drm/i915/
patch < /tmp/i915-nofbc.diff # your diff
make -C /usr/src/linux-obj/x86_64/desktop M=$(pwd)
ls -l i915.ko

You need to adjust the directory given to “make -C” to your desired kernel flavour, of course, but that’s it. Copy the module over to /lib/modules and reboot (I usually save the old module somewhere else, in case something goes wrong, but you probably figured that out already).

Followup: Accounts in Claws-Mail

Wednesday, April 14th, 2010

Just to let everyone know that it was me being blind and not Claws-Mail lacking the function to rearrange the Folder list. As Paul pointed out in his comment on my post, there is “File -> Change Folder Order”, pretty much on top of all other options. So no need to pull out your favourite editor and mess around with XML files ;)

(Sometimes I’m wondering why I am not finding easy stuff like that anymore. My wife or children would probably have found it immediately. Maybe I’m not looking hard enough, because I’m not expecting it to be there? Maybe I’m just spoiled by 10 Years of using console tools for almost everything? I know that I tried to drag and drop the accounts, even though I do not really like drag-n-drop for such configuration changes, because it could happen accidentally. Or, in other words, the “Change Folder Order” menu entry is pretty well matching my personal taste of how such things should be implemented, but I did not find it anyway. Am I the usability designers nightmare after all? Who knows ;) )

Claws-Mail trick of the day: plugins

Monday, April 12th, 2010

Today I found another useful trick for claws-mail users. I switched from an old i586 machine to a brand new x86-64 thinkpad. I copied my $HOME over. Then I wondered, where all my claws-mail plugins had gone.

Starting it from the command line showed (wrapped for your reading pleasure):

** (claws-mail:9938): WARNING **: plugin loading error:
   /usr/lib/claws-mail/plugins/rssyl.so:
   cannot open shared object file:
   No such file or directory

Uhm, yes. This is an 64bit system, so the plugins are installed in /usr/lib64/claws-mail/…
Two possible solutions to the problem came into my mind.

  • creating a softlink from /usr/lib64/claws-mail to /usr/lib/claws-mail
  • changing the configuration

The second method was actually easier, and is probably more future-proof (If I reinstall the machine, I might forget to create that link…)

I checked the config file in ~/.claws-mail/clawsrc and found a section

[Plugins_GTK2]
/usr/lib/claws-mail/plugins/rssyl.so
/usr/lib/claws-mail/plugins/pgpcore.so
/usr/lib/claws-mail/plugins/smime.so
/usr/lib/claws-mail/plugins/pgpmime.so
/usr/lib/claws-mail/plugins/pgpinline.so

I simply duplicated the plugins and substituted /usr/lib with /usr/lib64. As a result, I now get the “plugin loading error”-lines on both machines, because the i586 can only find the plugins in /usr/lib and the x86-64 only those in /usr/lib64, but since claws-mail does not really care and just works, I also just ignore them.

It will be interesting what happens once I use the GUI to add another plugin, but I will care for that when it happens :)

Rearranging Accounts in Claws-Mail

Sunday, April 11th, 2010

I recently added a new account to my Claws-Mail configuration. That account will soon become one of my main accounts, so I was not happy about it being shown on the bottom of the folder list, below all my less important accounts.
Using the GUI, I could not find a way to move it around. I already thought about manually changing the configuration, editing all the references for all accounts.
Fortunately, when looking around the ~/.claws-mail directory that contains everything, I found folderlist.xml which is an easy to understand (and edit) XML file that describes how the folders are displayed. I did no fancy stuff, just moved the <folder type=”imap”…> … </folder> block, that corresponds to the new account up to the first place and voilá — it works.
BTW: Claws-Mail is still my favourite email client after using it for over a year - that clearly is a new record ;)

PAN/NAP made even easier…

Tuesday, March 23rd, 2010

I wrote last year about how to use bluetooth networking to connect to the internet via a mobile phone. Since then, I had heard rumours that NetworkManager was now able to do this as well, but I actually never managed to find out how to do that (admittedly, I never looked too hard).
Today I checked again.
Since those are the “reference implementations”, I started GNOME’s nm-applet and bluetooth-applet instead of knetworkmanager and kbluetooth. I still could not find anything related to bluetooth in nm-applet’s UI. Then I looked a bit farther and found Dan Williams’ post about it.
Long story short: I deleted my phone from bluetooth-applet’s “known hosts” and re-paired it again. There it asked me if I want to access the internet via my mobile phone, which I confirmed. After that, nm-applet has now an entry for “PANU” which is the Phone’s connection.
Working well and pretty cool, too. One more workaround that’s not needed anymore.

For completeness, I also tried to remove and pair the phone with kbluetooth, but apart from it not working at all (never asking for a PIN), it also did not ask for the internet connection stuff. So for now, if you want Bluetooth networking, just use nm-applet and bluetooth-applet.

$HOME full? WTF?

Wednesday, January 27th, 2010

Today I discovered that my $HOME was nearly full. My machine has only moderate space for the encrypted /home partition, but there were almost 2GB free until a few days ago, so I decided to look where the space went.

It was easy: ~/.xsession-errors was over 1,5GB. I looked who was wanting to tell me lots of important stuff and found out that about every KDE4 program produced several debug lines, almost every second.
Since I doubt that anybody will ever want to look at 1,5GB logfiles, I just decided to redirect it to /dev/null in /usr/bin/startkde. Now only my submitrequest number 30607 needs to be accepted into KDE:KDE4:Factory:Desktop, so that everyone benefits from this solution.

Note: it took 15 days for the logfile to get that big, but to be honest: I don’t want to reboot every two weeks, only to keep KDE4 from crapping my home directory.
Second Note: If there had been any significant updates in FACTORY in the last two months, I would probably not even have noticed the problem, but there were none ;)

More KDE4 rants

Saturday, December 19th, 2009

Seeing that I apparently hit a nerve for some people with my last post, here is the next thing that really annoys me every day in KDE4.

Notifications.

Those ugly passive pop-ups that appear on the display near the area where you have configured the “system tray” to be on the panels. From the beginning they were an example of uglyness. After quite some time they at least stopped to be drawn one over the other, so they are no longer totally unusable, but they still are not pretty.
One example: most of them are too small, so that the text they should show me gets cut off and I have to guess what the system wants to tell me.

As much as I detest GNOME, their unobtrusive notifications in the lower right corner are much more stylish and less disturbing than the KDE4 ones.

And it is not QT’s fault: a proprietary application like skype, using QT, can do it in almost the same way as GNOME, so it is definitely possible.

Programs using the root window considered obsolete in KDE4

Saturday, December 19th, 2009

See https://bugs.kde.org/show_bug.cgi?id=219249. Unfortunately this means that my wife and kids will not get upgraded to KDE4 once I’ll replace their 11.0 installations but will probably get GNOME instead. Because no xsnow (for my wife) and no xpenguins (for my kids) - that’s just not an option.