Tomáš Pospíšek's Notizblock

vmware-viewer on Debian buster

$ vmware-view
/usr/lib/vmware/view/bin/vmware-view: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
$ sudo ln -s /usr/lib/i386-linux-gnu/libpng16.so.16.36.0 /usr/lib/i386-linux-gnu/libpng12.so.0
$ vmware-view
[... seems to work ...]

... vmware should update their viewer

Tomáš Pospíšek, 2019-03-14

How to add badblocks to initramfs

The following works under Debian buster and probably will work under older and newer Debian releases and under Ubuntu. Maybe it will also work on other Linux distributions:

$ cat /etc/initramfs-tools/hooks/copy_badblocks
#!/bin/sh
PREREQ=""
prereqs()
{
     echo "$PREREQ"
}

case $1 in
prereqs)
     prereqs
     exit 0
     ;;
esac

. /usr/share/initramfs-tools/hook-functions
# Begin real processing below this line

copy_exec /sbin/badblocks /sbin
# update-initramfs -u

Tomáš Pospíšek, 2019-03-04

Articles