Patches and Bugfixes

Disable xdvi's status output to stdout

let g:Tex_ViewRule_dvi = 'xdvi -expertmode 1'

Bei Fehlermeldung charset conversion failed - vcdxbuild gab einen unbekannten Fehler zurück. (Fehlernummer 1) unter K3B/Settings/Configure K3B/Programs/User Parameter/vcdxbuild als Parameter: –filename-encoding=iso8859-1 eintragen

Items in Apple/Mac Mail do not save sent messages to the right folder when connecting via IMAP. The email will deliver normally but a copy is not kept on the server (or stored in a different folder on the server, ie. “sent messages”). The Mac or Apple Mail client requires that you specify that an IMAP folder be used for Sent mail. This can be simply done by:

  1. Clicking and highlighting the IMAP “Sent” Folder
  2. Clicking the “Mailbox” menu at the top
  3. Choosing “Use This Mailbox For” → “Sent”

To give “managers” access to a “admin” plugin, extend the file admin.php of the plugin:

class foobar extends DokuWiki_Admin_Plugin {
// ...
  function forAdminOnly() {return false;}
}

For an error like this:

dpkg: error processing /var/cache/apt/archives/AAA (--unpack):
trying to overwrite `/usr/lib/BBB', which is also in package CCC
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
AAA
E: Sub-process /usr/bin/dpkg returned an error code (1)

(where AAA,BBB,CCC are placeholder names, in case it wasn’t clear) do sudo dpkg -i –force-overwrite AAA # full path to AAA and then run apt-get -f install again.

With a LUKS encrypted volume on an external device, when the device is connected gnome-volume-manager calls gnome-mount which prompts for the encrypted volume password. If the volume is protected by a key-file gnome-mount fails and sudo cryptsetup luksOpen /dev name –key-file file.key is needed to be run manually.

Patch for /usr/lib/hal/scripts/linux/hal-luks-setup-linux to try using keyfile

The entry in /etc/crypttab *must* use the UUID in the device column, like this, for the script to work:

# <target name> <source device> <key file> <options>
mobile120 /dev/disk/by-uuid/408e7dbc-1cad-4eff-9a06-1b1f9f60d22a /media/key3/disk.key luks
--- hal-luks-setup-linux        2009-08-30 23:00:55.000000000 +0200
+++ hal-luks-setup-linux.modified       2009-08-30 23:00:18.000000000 +0200
@@ -3,10 +3,25 @@
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2.
 
-read PASSWORD 
-
 CRYPTSETUP=/sbin/cryptsetup
 
+# detect key-file protected volume
+LUKS="`grep \"${HAL_PROP_VOLUME_UUID#*_uuid_}\" /etc/crypttab`"
+MAPPER="`echo $LUKS | awk '{print $1}'`"
+DEVICE="`echo $LUKS | awk '{print $2}'`"
+KEYFILE="`echo $LUKS | awk '{print $3}'`"
+
+# if there is a key-file, attempt to open the LUKS device with it
+if [ "x${KEYFILE}" != "x" ]; then
+   if ! $CRYPTSETUP luksOpen $DEVICE luks_crypto_$HAL_PROP_VOLUME_UUID --key-file $KEYFILE 2> /dev/null; then
+    echo org.freedesktop.Hal.Device.Volume.Crypto.SetupPasswordError >&2
+    echo "Error setting up $HAL_PROP_BLOCK_DEVICE - bad key-file?" >&2
+    exit 1
+   fi
+else
+
+read PASSWORD
+
 if [ ! -f $CRYPTSETUP ]; then
     echo org.freedesktop.Hal.Device.Volume.Crypto.CryptSetupMissing >&2
     echo Error setting up $HAL_PROP_BLOCK_DEVICE - $CRYPTSETUP not found >&2
@@ -25,6 +40,8 @@
     exit 1
 fi
 
+fi
+
 hal-set-property --udi=$UDI --key="info.callouts.remove" --strlist-pre="hal-luks-remove" > /dev/null 2>&1
 
 exit 0

Ssh to different computers at a single IP address or to a computer with several operating systems installed: If there are several different fingerprints in known_hosts for the same host (IP), ssh will connect if at least one of them is correct. So what you should do is

  1. move your known_hosts file to a different filename
    mv .ssh/known_hosts .ssh/known_hosts.old
  2. connect to computer #1, so its host key is written to the (now empty) known_hosts file
    ssh you@yourfirstmachine -p port1
  3. add the new host key fingerprint to the old known_hosts file
    cat .ssh/known_hosts >>.ssh/known_hosts.old
  4. remove the new known_hosts file
    rm .ssh/known_hosts
  5. simply move the old known_hosts file with the added keys back again
    mv .ssh/known_hosts.old .ssh/known_hosts

There is /etc/ssh/ssh_config which has an option HashKnownHosts. If HashKnownHosts yes then the hostnames are not in plain text in the known_hosts file of the user. So, bash_completion is not able to get the hostnames.

eg. backspace not working in screen.

  • quick&dirty: deactivate Numlock
  • If you would prefer to use the number lock key with Mathematica, you can either use xmodmap to remap the mod_2 key to something other than number lock, or you can add the following to your ~/.Xresources file: secondaryModifierMask: Mod3Mask. Then reload your Xresources with $ xrdb -load ~/.Xresources. Now when you start Mathematica, the number lock key should not effect cell evaluation. You can also do this at the system-wide level by editing the following file as root: $TopDirectory/SystemFiles/FrontEnd/SystemResources/X/XMathematica where $!TopDirectory is where you have installed Mathematica, usually something like /usr/local/Wolfram/Mathematica/5.0 or /usr/local/Wolfram/Mathematica/5.1. In it find the following lines:
    ! Set these if you need to change what the FE uses for Primary (Command) 
    ! and Secondary (Option) modifier keys. 
    !*primaryModifierMask: Mod2Mask 
    !*secondaryModifierMask: Mod3Mask

and uncomment (delete the ! mark) within the line containing secondaryModifierMask. This will cause the modifier key to be mapped to Mod3 instead of Mod2 (which is usually number lock).

  • missing libstdc++.so.5
    apt-get install libstdc++
  • Warning: translation table syntax error
  • error complaining about the 'locale' settings
  • window list applet got stuck when the splash screen appeared
  • 'segmentation fault' & mathematica death

These are the steps I followed to make things work:

  • the locale and translation table errors are due to some X11 directories having been moved around out to their “hystorical” location.
    $ cd /usr/X11R6/lib/X11/
    $ sudo rm locale
    $ sudo ln -s /usr/share/X11/XKeysymDB XKeysymDB
    $ sudo ln -s /usr/share/X11/locale/ locale
  • run mathematica with -noSplashScreen option to avoid the crash-the-window-list problem
  • error while loading shared libraries: libdb.so.2: cannot open shared object file: No such file or directory Well, don't worry. The solution is very simple. Just install libdb1-compat by using Synatic Package Manager. Good Luck!!!
  • libLVMesaGL.so.3: cannot open shared object file: No such file or directory
    export LD_LIBRARY_PATH=/usr/local/lib/LabVIEW-6.1; labview
  • LabVIEW caught fatal signal 6.1 - Received SIGSEGV Reason: address not mapped to object Attempt to reference address: 0x0 Segmentation fault
    tune2fs -O ^dir_index /dev/yourpartition

    (cf. NI KnowledgeBase 3ANAI1DW)

  • computer/patches.txt
  • Last modified: 2020-10-29 22:13
  • by 127.0.0.1