Archive | How to RSS feed for this section

Remove DRMs from Kobo’s KEPUB format

1 Nov

Kobo decided to go the proprietary Digital Restriction Management (DRM) way by providing some ebooks bought on their platform in their in-house Kepub format. This means that they can only be read on a Kobo device.

You might have noticed that, when trying to copy an ebook from your Kobo device to your desktop Calibre library, it tells you it can’t do that because the book is “virtual”.

You can actually remove the DRMs from that format by using a plugin called Obok, part of the great DeDRM toolbox provided by Apprentice Harper.

  1. Download the latest obok_plugin.zip file from GitHub;
  2. Open Calibre (if you don’t have this amazing ebook management app already, install it);
  3. Install the plugin: `Preferences > Plugins > Load plugin from file`;
  4. Use the Obok plugin with your device plugged in: select the problematic Kepub ebook(s) and let it do its magic. You can now copy the ebook to your library without those pesky DRMs!

Learn more about the Kepub format on wiki.mobileread.com.

This was tested with Calibre 2.71, Obok DeDRM 6.5.3 and a Kobo Touch with its software at version 3.19.5761.

Fix PGP error NO_PUBKEY when apt-get updating

28 Oct

It is common to find that a  sudo apt-get update does not do a clean job because of a couple of missing public keys. You might get something of the type:

W: GPG error: <a href="http://ppa.launchpad.net">http://ppa.launchpad.net</a> trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F

Usually, it is possible to directly fetch the missing public key from a popular key server like Ubuntu’s:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys PUBKEY

… where PUBKEY is replaced by the right identifier in your warning message.

That is usually enough and concludes with gpg: Total number processed: 1

However, if the key is not found on the server, you might have to look for it yourself. For example, in the case of the following error:

W: GPG error: http://download.opensuse.org  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F2AA0B1E5EF8303B

… the missing key was not available on the Ubuntu key server. I had to first check what exactly the problematic source’s URL looked like, which you can do by either using your distribution’s updater’s GUI (for example, Muon Update Manager > More… > Advanced … > Configure software sources), or by finding it in /etc/apt/sources.list or /etc/apt/sources.list.d/. In my case, the URL was http://download.opensuse.org/repositories/home:/antonbatenev:/tox/xUbuntu_14.04/, which is where I navigated to in my Internet browser to find a Release.key file.

Once you have downloaded that key, you can use the following command to add it to your keyring:

sudo apt-key add Downloads/Release.key

(Make sure you replace Downloads/Release.key with the right path/name.)

Now, you should be able to re-run sudo apt-get update and not run into any warning!

Add missing icons in Ring client

14 Sep

You might have noticed that your Ring desktop client (in my case, the ring package for an Ubuntu 14.04-based distro, version 20160908.1.07d3d92~dfsg1-1 at the time of writing, launched with the gnome-ring command) is missing some icons and shows a red “forbidden” sign instead.

Missing icons in Ring client

Missing icons in Ring client

I fixed that by simply installing a missing dependency called gnome-icon-theme-symbolic. You can do that by executing the following command in a terminal:

sudo apt-get install gnome-icon-theme-symbolic

Close and re-launch the client and the icons should be restored.

Fix two conflicting versions of Keybase

8 Sep

Not having updated keybase in a while (since 0.8.23!…), I ran into an issue after trying to get the latest version (1.0.17) as described on the website: an apt-cache policy keybase would tell me that I had the most recent version installed, whereas running keybase version would return the older one.

The problem is that keybase went from Node.js to Go, and the install method changed. The older version I had installed created a binary in usr/local/bin whereas the new version installed it in usr/bin.

You can see if that is your case by running the two following commands:

/usr/bin/keybase version
/usr/local/bin/keybase version

They should return different versions.

To fix that, you need to uninstall the older version with the following command:

sudo npm uninstall -g keybase

Then, run run_keybase and you should be good!

Install HWSD Viewer on an Ubuntu 14.04-based system

17 Aug

The Harmonized World Soil Database (HWSD) is a 30 arc-second raster database put together by a consortium of organisations: FAO, CAS, IIASA, ISRIC and JRC. It is a monumental collection of data about soil from all around the globe, and is therefore an important tool for researchers.

You can download the raw data or  visualise it on ISRIC’s online viewer, but there is a (closed-source) viewer app specially created to visualise, browse and query the data offline, the “HWSD Viewer”, which unfortunately was only developed for Windows.

To make the viewer work on and Ubuntu 14.04-based system (like KXStudio 14.04, but probably many other OS), you need to:

  1. Make sure you have Wine installed;
  2. Install the viewer, using the binary accessible from this FAO page;
  3. Install the missing runtime libraries thanks to Winetricks, with the following command:
winetricks jet40 mdac28

That should sort you out!

Specifically, what the Winetricks command resolves is:

  • The error message “This setup does not support installing on this operating system.” when trying to install MDAC from the Microsoft website;
  • The error message “Provider cannot be found. It may not be properly installed.” when the software realises Jet40 is not available.

HWSD viewer

Save

Save

Save

Save

Fix different locales being used in terminal output on Ubuntu 14.04(-based) distros with KDE

22 Jun

I was having an issue with a number of different languages being used simultaneously, and in a seemingly random fashion, in my terminal output (and in other apps), on my KXStudio 14.04 install. I remember having played around with locales a while ago, but I could not figure out how to go back to my terminal using only one language.

After searching for a bit, and figuring that /etc/default/locale wasn’t the source of the issue, I found that I had to edit ~/.KDE/env/setlocale.sh for it not to conflict anymore. It was specifically the following line that contained a bunch of different languages:

export LANGUAGE=en:fr:es:de

I replaced the series of language codes with the same value as the other lines, en_GB.UTF-8 in my case:

export LANGUAGE=en_GB.UTF-8

Save the script, and restart your computer. You should be good!

Hopefully this saves a few people some pain!

More on languages: this AskUbuntu question.

 

Install Clementine 1.3 on Puppy Linux Tahrpup 6.0

16 Jun

I installed Puppy Linux for the first time, on my old decaying netbook that serves as a music station. Puppy Linux is more than a distro, it is a multi-faceted Linux project that experiments with different concepts. It also is a solution for resuscitating an old computer as it is very light and snappy for a number of reasons. The stock audio player Guayadeque is a great app, but I was missing my good old Clementine for the network remote feature.

On the Ubuntu 14.04-based Tahrpup 6.0 version, the stock version of Clementine is quite outdated. To install the more recent Clementine 1.3, you will need to get the right DEB installer from the Clementine website (the one packaged for Ubuntu 14.04, in its 32-bit architecture version), execute it, and then resolve the missing dependencies.

On my fresh install, the missing dependencies were:

  • libprotobuf
  • libechonest
  • libglew
  • libgstreamer-plugins-base1.0
  • liblastfm
  • libfftw3
  • libcrypto++

To install them, you can use Puppy’s PPM tool located in “Menu > Setup”, search them and click one on each of them to add them to the list of packages to install. You just need to click on “Do it!” when you have them all listed.

A way to check for package dependencies is to use the built-in tool “Check dependencies installed pkg”, accessible from “Menu > Setup”.

After that, Clementine should run, but if you get a crash when trying to play a track, you might want to also install the following gstreamer 1.0 plugins in order to decode most formats:

  • gstreamer1.0-plugins-good
  • gstreamer1.0-plugins-bad
  • gstreamer1.0-plugins-ugly

Get the right locale for Evolution

27 Apr

An issue that has been bugging me for a while is that Evolution (3.10.4) somehow has the French locale even though most of my system is in British English (I use KXStudio 14.04, with the default KDE 4.13.3). Changing the locale and language preferences in the system settings wouldn’t help at all. That might have had to do with me playing around with settings and languages and software versions a lot, but there you go: I am not sure how I got there, but I found a solution.

This Linux Mint Forum thread put me on the right track. It seems there is a mismatch between the Evolution version that is installed and the base language pack in use (i.e. the Evolution version for which the strings in language-pack-en-base are written).

Here are the steps to get the extra file you need to change the language in evolution. (In my case, I wanted the en_GB locale, but you can replace it with whatever you want; you can also replace the version numbers with the corresponding Evolution version you have installed on your system.)


wget "https://download.gnome.org/sources/evolution/3.8/evolution-3.10.4.tar.xz"
tar -Jxvf evolution-3.10.4.tar.xz evolution-3.10.4/po/en_GB.po
msgfmt -cv -o ./evolution-3.10.mo ./evolution-3.10.4/po/en_GB.po
rm -rf evolution-3.10.4

This will extract and copy the right locale file into your /usr/share/locale-langpack/en/LC_MESSAGES/ folder. Close and open Evolution, and you should have the menus in the right locale. (Keep in mind that some email folders will still be in the original language if they were created that way in the first place!)

Exportez vos anniversaires depuis Facebook via Evolution

27 Apr

Si vous dépendez de Facebook pour vous rappeler des anniversaires de vos amis, il est possible de récupérer cette information pour l’avoir sous forme de tableur, ou pour les transférer à un autre calendrier. Voilà la marche à suivre :

Sur Facebook, allez dans « Évènements ». Dans une boîte sur la droite, vous trouverez des instructions pour ajouter des données à un calendrier externe. Copiez le lien « anniversaires » (il devrait commencer par « webcal:// »).

Dans Evolution, allez dans l’onglet Agenda et choisissez « Fichier > Nouveau > Agenda ». Sélectionnez « Type: Sur le Web » puis collez l’URL que vous avez copié dans la boîte « URL ».

Si tout se passe bien, vous avez à présent vos anniversaires dans votre agenda. Mais comme ce nouvel agenda reste connecté à votre compte Facebook, il se peut que vous vouliez extraire cette info et garder un fichier statique, sous forme de tableur par exemple.

Pour cela, il faut exporter l’agenda en question en format CSV (clic-droit sur son nom, « enregistrer sous > Format: .csv »). Vous pouvez à présent manipuler cette information comme vous le voulez, avec LibreOffice Calc par exemple, ou l’importer dans un autre calendrier, local ou externe à Evolution. Et ne plus dépendre de Facebook pour vous rappeler d’envoyer vos souhaits !

Use a Kyocera FS1118-MFP’s scan-to-email via iiNet

2 Feb

I am writing this as a note for future reference, but hopefully it will help others. I imagine this works the same for a number of other Kyocera devices. This is not very linked to Free Software, but I want to post things about using older hardware for obvious environmental reasons, and this was tested using a computer running KXStudio 14.04 and Firefox 44.0 – not that it makes any difference :)

After repeatedly asking Kyocera for Linux scanner drivers (or even just the code from the original Windows/Mac ones in order to adapt it) for the old printer/scanner I own (Kyocera FS1118-MFP Ecosys to be precise), I ended up giving the scan-to-email function another go. I did not manage to use Gmail’s SMTP server for some reason (I really did try…), and ended up using my ISP’s (iiNet).

In short, here are the steps to make it work:

  • Follow the steps in this Kyocera document to connect the printer to your router. I found it helpful to have the printer’s DHCP function turned on in order to see it pop up in my router configuration page (for my BobLite 4, I navigate to http://10.1.1.1, log into it, go to Status/Diagnostic > DHCP List) and have it’s IP address handy.
  • In your Internet browser, navigate to the printer’s IP address once connected. You will get to the Kyocera Command Center, where you can set up the SMTP server settings in Advanced > SMTP > General. Use the following settings:
    • SMTP Protocol: on
    • Port number: 25
    • Server name: mail.iinet.net.au
    • Authentication protocol: On
    • Authenticate as: Other
    • Login user name: your full iiNet email address
    • Login password: your iiNet account password
    • Sender address: whatever address you want error reports to be sent to
  • You can press the Test button to see if this works. It should return “OK”.
  • Click the Submit button tosave the settings.
  • Changes take effect straight away, so you can try scanning a document with the printer’s function Send, and adding your recipients’ email addresses in the Address Book.

Errors that you might encounter along the way:

  • Error 2102 – probably a problem with your local network of printer configuration
  • Error 3101 – probably a problem with the SMTP server

Note that these settings were used because we need a server that does not require SSL or TLS, which are not supported by this printer model. If your printer supports those protocols, you probably want to use a different port and server – refer to this Google Support page if you have an account with them; for iiNet, refer to this page to pick the right one.