convert pdf to svg

A good website is Convertio: it can convert, for free, your pdf to an svg absolutely identical, from a graphical point of view, with your original pdf, and the text remain text.

But on the other hand the resulting svg file is much bigger than the original pdf, because it is not optimized at all.

Regex replace short paragraph

To replace a paragraph <p> of less than x characters (30 in the example below) with a title (<h3> in the same example), you can use this regex code

search: <p>(.{0,29})</p>
replace: <h3>\1</h3>

Cardbook layout problems with TB

If you have some layout problems with Cardbook (addressbook manager) in the latest releases of Thunderbird you can try to install the latest release of Cardbook as a file from their website.

chroot in linux

Chroot is a very useful feature in Linux systems: you can update a Linux installation on your PC not within that installation, as usually we can do, but from another installation.

I.g. if you have Linux1 on /dev/sda2 and Linux2 on /dev/sda3 and you cannot login into Linux2, you can try to solve the problem by doing an update of Linux2 from Linux1. Using chroot.

There are very good guides on the web, but, let us repeat the essential steps

  • first of all be sure of the correct name of the partition you want chroot in (i.g. /dev/sda3, or /dev/sdb2)
  • create a /mnt where you will mount that installation, i.g. /mnt/chroot
  • mount that installation in /mnt/chroot: sudo mount -t ext4 /dev/sda3 /mnt/chroot (note that etx4 is if that is the filesystem, but it could be btrfs as well or another filesystem)
  • mount efi partion (if you have efi): sudo mount -t vfat /dev/sda1 /mnt/chroot/boot/efi/
  • mount virtual folders of that installation: for i in dev proc sys run; do sudo mount --bind /$i /mnt/chroot/$i; done
  • Do the chroot: sudo chroot /mnt/chroot

What you do now, within the terminal where you did the chroot is what you could do if you were in that installation (Linux2).
Typically you should do these commands

  • apt update (without sudo before apt: you are already acting as superuser)
  • apt upgrade (or apt full-upgrade)
  • update-grub

Afterwards you can exit with:

  • for i in /dev /proc /sys /run /; do sudo umount -l /mnt/chroot/$i; done
  • and: sudo umount /dev/sda2 /mnt/chroot/boot/efi/
  • and: sudo umount /dev/sda3 /mnt(chroot

Note that these last two commands could be not necessary.

Syncing MS Outlook and Thunderbird

There could be synchronization problems between Thunderbird and the webmail of MS Outlook.

A good, complete guide is here. Because a fault in syncro can be due to the lack of “subscription”, the most important thing is to subscribe all you folders you need to see in TB:

  • right mouse on the account
  • -> subscribe
  • choose what folders subscribe

Like in this screenshot:

Kodi in OpenaTV 7.4

After months, today I managed to get Kodi work in my OpenATV 7.4. In this way

  • I downloaded this file from OpenaTV forum
  • and copied the 7.4 content in /usr/bin decoder folder
  • then modified the file advancedsettings.xml (in /usr/share/kodi/system), to set Enigma2Player instead of E2player as Kodi default video player.

Now I have Kodi working in OpenaTV 7.4

Warning: with this release (7.4) it occurs that Kodi freezes.

In that case, reboot and put the usb with saved settings.

black screen after booting (no login screen)

To solve this problem that could happen with some kernels, you could try to modifiy the file grub in /etc/default.
So that you don’t have more a line like

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" (or similar) 

but a line with only

GRUB_CMDLINE_LINUX_DEFAULT="quiet".