Skip to content

RFC 3092

Etymology of "Foo"

  • The RFC 3092
  • Projects
    • avelsieve
    • check_process_runtime
    • CloudPress
  • About

Missing modules for paramiko and gio in duplicity foo

Posted on September 26, 2013 by peter

Since I upgraded some of my servers to the latest LTS of Ubuntu, I saw nice warning messages in my duplicity backup reports. I know, these are just warnings and no errors, but I don’t like to see any warning in a backup report of mine. Here is a sample:

Import of duplicity.backends.giobackend Failed: No module named gio
Import of duplicity.backends.sshbackend Failed: No module named paramiko

The paramiko problem was resolved easily by installing the python-paramiko package. The gio warning was not so easy to find. But after some digging I found the culprit in python-gobject-2. The following command line fixes the above warnings on a Debian based distribution:

apt-get install python-paramiko python-gobject-2
Posted in Foo, Linux

Apache Doesn’t Show Protected Folders… Foo

Posted on September 17, 2013 - November 12, 2013 by peter

After setting up a nice download area with password protection I ran into an interesting issue. And I don’t know why I haven’t encountered that problem before. It’s not that I never set up Apache configurations or have never heard of mod_auth and mod_autoindex.

But now to the problem itself. I had a set up for a download area and added a sub-folder that needed password protection. Here is the configuration:

<Directory /srv/www/myroot/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride None
         Order allow,deny
         Allow from all
</Directory>
<Directory /srv/www/myroot/downloads/protected/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride None
         Order allow,deny
         Allow from all
         AuthType Basic
         AuthName "Download area for Foo Bar"
         AuthUserFile /etc/apache2/private/htpasswd
         Require user me myself
</Directory>

Looks good, doesn’t it? Well, not 100% good. The folder protected didn’t show up in the directory index. After some additional coffee, a couple of face palms and a quick browse through Google and the Apache documentation I found the culprit. The setting ShowForbidden in the options for mod_autoindex. If it is not set everything that is forbidden or needs authentication will not show up in the directory index. Here is the tweaked version of the configuration (change in bold):

<Directory /srv/www/myroot/>
         Options Indexes FollowSymLinks MultiViews
         IndexOptions +ShowForbidden
         AllowOverride None
         Order allow,deny
         Allow from all
</Directory>
<Directory /srv/www/myroot/downloads/protected/>
         Options Indexes FollowSymLinks MultiViews
         AllowOverride None
         Order allow,deny
         Allow from all
         AuthType Basic
         AuthName "Download area for Foo Bar"
         AuthUserFile /etc/apache2/private/htpasswd
         Require user me myself
</Directory>
Posted in Apache, Foo

Eclipse Huge Tab Bar Foo

Posted on September 13, 2013 - September 13, 2013 by peter

On my odyssey to find the right desktop environment for me I am back in Gnome land. In its latest incarnation Gnome 3 it looks nice and seems to be actually usable. I still don’t like that they removed more or less all useful configuration options. But finally there are some tools that make up for that (i.e. Gnome Tweak Tool).

But I am digressing. One of the many issues that I had afterwards was Eclipse. I don’t like using Eclipse (or in this case MyEclipse) in the first place but after the switch to Gnome it was worse than ever. And it was not so much Eclipse in itself it was more the fonts and the way the widgets were drawn. The fonts I fixed with a general font settings overhaul for the desktop. But certain parts of the UI just were huge and didn’t scale nicely. The toolbar on top fit always in one row but now I have two rows. And although the fonts were smaller the tabs and toolbars were drawn like they had to accommodate a much huger font. It is just an utter waste of space.

eclipse-tab-foo-before-1
eclipse-tab-foo-before-2

The solution was actually quite easy. Just open or create the GTK 2.0 configuration file (.gtkrc-2.0) in your home directory and add the following lines:

style "compact-toolbar"
{
  GtkToolbar::internal-padding = 0
  xthickness = 1
  ythickness = 1
}

style "compact-button"
{
  xthickness = 0
  ythickness = 0
}

class "GtkToolbar"                       style "compact-toolbar"
widget_class "*<GtkToolbar>*<GtkButton>" style "compact-button"

Afterwards restart Eclipse and all is good.

eclipse-tab-foo-after-1 eclipse-tab-foo-after-2

Posted in Foo, Linux

CloudPress Foo

Posted on September 12, 2013 - September 12, 2013 by peter

In the wake of all the NSA scandals I finally took the time and created a full blown cloud solution for my family. I used a lot of components that are readily available (Owncloud, Roundcube, WordPress, etc.) and could create a very well rounded solution for us. In order to integrate everything I used the Roundcube plugin for Owncloud and CloudPress to integrate with WordPress.

But of course I ran into trouble. The Roundcube plugin worked out of the box and I have no problem letting people set up their own accounts. But the CloudPress plugin to sync the user accounts made some trouble.

After some digging the problem was obvious. The file that you can download contains conflict tags from a CVS update. This is kinda odd but easy to fix. After I removed the tags and the broken/old code the sync worked fine but still some images of the plugin didn’t show up.

Some more digging and that was resolved as well. Now I have a nice solution for my family to write blog posts and collaborate. To make life easier for other people I decided to release the fixes that I applied. So please give a warm welcome to my own patches for CloudPress. And now click here to go to my project page.

Posted in CloudPress, Foo, Linux, Owncloud, Projects, Wordpress

Ubuntu Sleep Foo… Resolved… Kinda…

Posted on June 21, 2013 - January 13, 2014 by peter

After a lot of searching, testing, trying stupid stuff, ripping hair out, frustration, and what not, I finally found a hint what is going on here.

To recap you can read here and here or just continue reading.

So, if you didn’t follow the links, then here a quick recap. My machine, after installing a ton of new hardware (new motherboard, processor, cooler, memory, graphics adapter) and re-installing Ubuntu started acting weirdly. It was in standby, when I returned to the office (it is a server!) or some service was not responding (because it was in standby).

After looking at the usual suspects like kernel, drivers, certain pieces of hardware, I first suspected the UPS to cause this. But I never could find a reason for that trigger in the UPS and even without the UPS the problem prevailed.

Afterwards followed a phase where I suspected the desktop environment because XFCE reacted differently than KDE and so on. But digging into this also didn’t resolve anything. But I learned a lot about UPower in the process.

Finally I had the opportunity to see it happen in real time and it was an eye opener. I have a TV and a Blu-Ray player in my home office to be able to watch… okay, listen to a DVD or a Netflix movie. But it never occurred to me that my “random” sleep events always happened when the TV and/or the Blu-Ray player was used.

Conclusion… well, it is not a software problem at all. It is a hardware problem. and now we are dealing with a different kind of problem. Either I have a problem with the electric in my office or, much simpler, my power supply is not strong enough. Remember, that I replaced everything but the power supply?

I guess my next step is to get a new power supply. Which would also help me to get my Windows machine back up and running because I can rotate power supplies… yeah

Posted in Foo, Hardware, Linux

DLL Foo… OK, it is DLL Hell

Posted on March 23, 2013 - August 27, 2013 by peter

It’s been a while since the last post and now Windows makes headlines. At least here. But enough of the whining and back to business.

The DLL hell problem. Well, everybody using Windows sooner or later became acquainted with this nice place. Nowadays the hell is not as hot anymore because programs are nice and install DLL’s in the program directory and Windows looks there first. Plus, it has a lot of automagic mechanisms that try to find the correct DLL.

But what if you have two pieces of software in the same directory and they need the same DLL,… but in different versions. You might think you are in hell, but fear not, there is a solution.

There are multiple ways for Windows to load a DLL and in this particular case the standard mechanisms fail. So we have to nudge Windows into the right direction. And the best way to do that is to dive into the registry, quel surprise.

As a first step you have to create two separate folders where the DLL’s will reside. Lets call them LibA and LibB. Now we have to force Windows to use the correct DLL for the correct executable. This is done by adding a sub key to the registry to the following key:

HKEY_LOCAL_MACHINE\SOTWARE\Microsoft\Windows\CurrentVersions\App Paths

This new sub key needs to get as the name the name of the .exe file, like TestApp1.exe or TestApp2.exe.

Into the Standard value Windows needs to get again the executable but this time with the full path, like “C:\Program Files\TestApp\TestApp1.exe”.

And last, but not least, you create for each of these keys a new string value with the name Path. After you assign the path to the DLL folder to that string value (for instance C:\Program Files\TestApp\LibA) everything should work. Just restart the application and you are good to go.

Posted in Windows

PS3 Media Server made easy

Posted on November 29, 2012 - March 20, 2014 by peter

After some struggles to get the PS3 Media Server to run on Ubuntu 11.10 (Oneiric Ozelot), somebody must heard my prayers (not that I prayed, but anywhoo). You can install PMS now using a PPA and there is even some official documentation from Ubuntu available here. And the official PMS forum thread can be found here.

This new repository makes it kinda foolproof to install PMS on Ubuntu and here everybody is happy to have their movies and music again.

Posted in DLNA, Linux, PS3, Ubuntu

Black Screen After Ubuntu 12.10 Installation Foo

Posted on November 11, 2012 - November 11, 2012 by peter

We are a step further. I changed the partitioning so that the new and bigger core.img of GRUB fits on the disk. I manually selected the boot device because the drive enumeration changed with the new kernel. All is good. The system is installed and boots….

But all I got is a blank screen and a bunch of hard disk led’s that are working overtime. So I thought it might be a problem with the syncing of the newly created RAID. Time to take a nap…

After the nap and some other things, I returned and still all is black. But the keyboard reacts to Num Lock changes and it seems alive. Just no video. So the framebuffer hit me again. Why is that used by default anyways? Lets switch it off.

That sounds easy and it is. Just restart and in the GRUB menu screen hit e for edit the entry of Ubuntu. You get a nice EMACS style editor where you can remove the line that says:

gfxmode $linux_gfx_mode

After the change press F10 to boot the modified entry.

In my case I could see that one of my RAID’s was in degraded mode and the system was waiting for input. I really don’t understand why we are not in text mode here or why the framebuffer is not able to show this information. Anywhoo, I am now fixing my RAID and hope this information might help others.

Posted in Foo, Linux, Ubuntu

Ubuntu 12.10 Upgrade, LVM and RAID Foo

Posted on November 8, 2012 - November 8, 2012 by peter

And here we go again. It was about time to update my server to the latest Ubuntu. Everything seemed fine and the installation went its usual way. Beforehand I made sure that I new what partition will be what and what data on what partition is worth keeping.

The partitioning tool in manual mode did what it should do, the packages installed and then came the famous question if you want to install GRUB in the MBR. Of course I selected “yes” and all I got was an error.

Switching to the fourth console (I chose the server ISO) revealed the culprit. Obviously the size of the core.img increased again. Here an excerpt of the error message:

/usr/sbin/grub-bios-setup: warning: your core.img is unusally large. It won't fit in the empedding area.
/usr/sbin/grub-bios-setup: error: embedding is not possible, but this is required for RIAD and LVM install.

This turned out to be a little problem. The RAID partitions start too early for the new  GRUB 2.00 but I have some data on this RAID that I need to keep.

Luckily I had another RAID device with enough space so that I could backup all my data. And now I can start the installation again, but this time I have to wipe the the LVM and the RAID on the boot drives.

Posted in Linux, Ubuntu

Ubuntu Random Sleep Foo

Posted on March 29, 2012 - September 12, 2013 by peter

I am really getting frustrated. I ruled out more or less everything. I have no UI connection to the battery in the UPS anymore but still the system goes either randomly to sleep (KDE, Unity, Gnome) or logs out and messes up the X server (XFCE).

The interesting thing is that I can distinguish between the log out screen of Unity/Gnome and XFCE. When running XFCE I all of a sudden see the logout screen of Unity/Gnome and not of XFCE. So something in the system of Gnome/KDE causes a log out or a sleep.

I am ready to go back to a simple window manager but still not sure if that really will help my problem.

Lets see what the next release of Ubuntu brings. At least it is not that long anymore…

Posted in Foo, Linux

Posts navigation

Older posts
Newer posts
Proudly powered by WordPress | Theme: micro, developed by DevriX.