http://www.politiker-stopp.de/gfx/politiker-stopp-print.png

blog.crash-override.net

Benjamins braindump

Hackers Diet Offline version 20140414

14 Apr 2014 | Read more... | 0 comments

I just released a new version of my Android App The Hackers Diet Offline. It’s mainly an optical update, using the Holo theme and generally looking and behaving better.

EOF

Read more... | 0 comments

making clusterssh / cssh work with sshrelays like NetIQ PUM

09 Apr 2014 | Read more... | 0 comments

I just absolutely hate bad software. Really, really, really HATE it. Yes, I’ve written bad software myself. Yes, there’s no objective measurement on what is bad software. I define bad software as software that doesn’t do what one would expect it to do.

With that definition, let’s look at clusterssh. clusterssh is a ssh wrapper where you can send input to multiple ssh sessions at once. For example, you could do:

cssh host1 host2 host3

and get three windows with the ssh connections to host1, host2 and host3 respectively and a fourth window with an input field for input to send to all three hosts at once. Nice.

BUT! (You know there had to be a but, right)

If you also have NetIQ PUM (Privileged User Manager) deployed - PUM is in its simplest form a ssh relay server - you can not connect to the target hosts directly, but need to go over a relay server. For example:

[blindcoder@flora:~]$ ssh pum-fwmgr 
blindcoder@pum-fwmgr's password: 
1) GH-dev-0xbad1dea-root - root@pum-fwmgr
2) GH-dev-0xbad1dea-root - root@pum-clnt-sles
Enter option (1-2): 2
root@pum-clnt-sles:~#

You can also hop to the target host directly like this:

[blindcoder@flora:~]$ ssh pum-fwmgr root@pum-clnt-sles
blindcoder@pum-fwmgr's password: 
root@pum-clnt-sles:~#

Nice and simple, right? So the logical next step would be to call cssh like this:

cssh "pum-fwmgr root@pum-clnt-sles"

Unfortunately, cssh mangles the parameter if it detects an @ in there and the call to ssh ends up being

ssh -l pum-fwmgr
root pum-fwmgr

which is as useless as it seems to be.

To mitigate this problem, I had to patch ClusterSSH/Helper.pm like this:

--- Helper.pm	2014-04-09 12:44:22.217264112 +0200
+++ Helper.pm	2014-04-09 12:44:18.889260645 +0200
@@ -108,19 +108,20 @@
                    \$command .= \$mstr;
                }
            }
-           if(\$user) {
-               unless("$comms" eq "telnet") {
-                   \$user = \$user ? "-l \$user " : "";
-                   \$command .= \$user;
-               }
-           }
+					 #if(\$user) {
+							 #unless("$comms" eq "telnet") {
+									 #\$user = \$user ? "-l \$user " : "";
+									 #\$user = \$user ? " \$user\\\@\$svr " : "";
+									 #\$command .= \$user;
+							 #}
+					 #}
            if("$comms" eq "telnet") {
                \$command .= "\$svr \$port";
            } else {
                if (\$port) {
-                   \$command .= "-p \$port \$svr";
+                   \$command .= "-p \$port \$user\\\@\$svr";
                } else {
-                 \$command .= "\$svr";
+                 \$command .= "\$user\\\@\$svr";
                }
            }
            if("$config_command") {

EOF

Read more... | 0 comments

Debian update broke my initramfs

17 Mar 2014 | Read more... | 0 comments

Yeah, short and to the point: apt-get update installed a new kernel and a new initramfs which somehow won’t create my LVM configuration. This is because my root= points to a UUID:

linux	/boot/vmlinuz-3.13-1-amd64 root=UUID=7303234e-a346-440a-8d55-9d562fad859a ro  quiet

The lvm2 bootscript only calls the required “lvm vgchange -aly” command if the $ROOT starts with fe[0-9] or /dev/root which it obviously doesn’t.

So I’ve created a /etc/initramfs-tools/scripts/local-top/debug-lvm2 with only that command in it:

lvm vgchange -aly --ignorelockingfailure

Now my laptop boots again.

EOF

Read more... | 0 comments

Project Zomboid Map 100% done

22 Oct 2013 | Read more... | 6 comments

A few days ago the Project Zomboid Map Project has been finished for version 2.9.9.17.
100% of the playing field have been mapped in high quality. That means 6000x6000 squares making up the current playing field.

The resulting map is about 78 Gigapixels in size, 15 Gigabyte of PNG files and over 100.000 screenshots stitched together.

Woohoooo!

EOF

Read more... | 6 comments

Conways Game of Life Uhr

22 Oct 2013 | Read more... | 0 comments

Vor ein paar Tagen sah ich auf hackaday.com einen Hack fuer eine Uhr, die Conways Game of Life spielt.
Da dachte ich mir, das kann ich auch.

Ich habe von getDigital ein LED Matrix Display welches ueber einen Raspberry die Uhrzeit ausgibt. Das entsprechende Programm habe ich so veraendert, dass es - entsprechend der Idee von hackaday - zur vollen Minute die Uhrzeit ausgibt, und danach Game of Life spielt.
Sollte das Spielfeld leer werden, wird ein Glider in die Mitte gesetzt.

Den Code gibts natuerlich bei mir im github repository.

EOF

Read more... | 0 comments

Recent posts

  • Hackers Diet Offline version 20140414

    I just released a new version of my Android App The Hackers Diet Offline. It’s mainly an optical update, using the Holo theme and generally...Read more...

  • making clusterssh / cssh work with sshrelays like NetIQ PUM

    I just absolutely hate bad software. Really, really, really HATE it. Yes, I’ve written bad software myself. Yes, there’s no objective measurement on what is...Read more...

  • Debian update broke my initramfs

    Yeah, short and to the point: apt-get update installed a new kernel and a new initramfs which somehow won’t create my LVM configuration. This is...Read more...

  • Project Zomboid Map 100% done

    A few days ago the Project Zomboid Map Project has been finished for version 2.9.9.17.100% of the playing field have been mapped in high quality....Read more...

  • Conways Game of Life Uhr

    Vor ein paar Tagen sah ich auf hackaday.com einen Hack fuer eine Uhr, die Conways Game of Life spielt.Da dachte ich mir, das kann ich...Read more...