How to OCR to searchable PDF in Linux

 Posted by:   Posted on:    2 comments
There are multiple OCR (optical character recognition) engines for Linux, but most have a major drawback. They can only export plain text of the OCR'ed image and do not support embedding text into the PDF in order to make a searchable PDF.

By searchable PDF, we refer to a scanned PDF document that contains invisible OCR'ed text over the scanned image. The text should have the right size in order to be placed over the text portions from image. Every word from the text layer should overlay exactly on the portion of the image that contains that word.

Here are two software solutions that are able to create searchable PDFs. One is a native Linux OCR engine and the other is a free PDF reader with OCR capabilities running in Wine.

How to OCR to searchable PDF in Linux

How to compile and set up Dream DRM on Ubuntu

 Posted by:   Posted on:    7 comments
Dream is an open source software receiver and transmitter for DRM (Digital Radio Mondiale) standard. It is a cross-platform application, yet there are no up-to-date Linux packages for major distros. I tried to install existing packages and failed to launch Dream with a segmentation fault.

So I decided to build from source. Dream needs Qt development kit and some other libraries. For audio decoding and encoding, AAC libraries are needed. These are available in repositories, but most of the time they are compiled without DRM support. I will show you how to compile them with DRM support and make Dream detect them.

Update: Tested and working on Ubuntu 16.04 and 16.10.

The instructions below are based on the official instructions on Dream website. I updated them to work with newer Ubuntu releases and I also added a Desktop entry, so you can launch Dream from Dash. It should be noted that the source compiles on Qt5, yet Dream doesn't work (segmentation fault).

How to compile and set up Dream DRM on Ubuntu

Wine 1.8 is available in Wine Team PPA. Install it now!

 Posted by:   Posted on:    No comments
Wine 1.8 was released just a few days ago (on December 19th). This release comes with new features and improvements regarding font rendering, Direct2D and Direct3D graphics support, PulseAudio driver and OS reporting (it can report Windows version 8.1 and 10). It also features a Start Menu. See the full release notes on Wine website.

Wine 1.8 has been succesfully built and is now available from the Wine Team PPA (until today, it was only available in wine-builds PPA under a different package name: wine-devel).  To install it, all you have to do is add the PPA to your software sources and install wine1.8 package.
Wine 1.8 is now in Wine Team PPA. Install it now!

3 Ways to remove PPAs on Ubuntu

 Posted by:   Posted on:    1 comment
PPAs (Personal Package Archives) are software repositories used by Ubuntu and some of its derivatives. PPAs provide an easy way for developers to deliver updated software automatically to Linux users by uploading source packages to Launchpad.

Most of the time there's no need to use a PPA, because common software packages are already in the official repositories. But for custom builds, latest versions or simply packages that you can't find in the default repositories you need to use a PPA.

Sometimes, a PPA may not be needed anymore. Maybe the package from PPA has been added or updated also in the default repositories. Or you plan to upgrade the OS to a newer version and the packages for this version weren't yet built in the PPA (to prevent errors in this situation, Ubuntu automatically disables third party PPAs when upgrading). Or the PPA may not be maintained anymore and you get errors when updating apt cache.

3 Ways to remove PPAs on Ubuntu

How to add printer marks and bleeds to PDF documents

 Posted by:   Posted on:    2 comments
In a previous article I showed you how to add headers, footers and/or watermark to PDF documents using free software running on Linux. But that method doesn't work for bleeds and printer marks because these are supposed to be outside the page dimensions. And when overlaying two PDF documents with pdftk, it automatically resizes their pages to match. What is about to follow, is similar to the mentioned article, yet there is one important additional thing to do: increase the page size of the source PDF before adding the bleeds layer over it.

This tutorial has been made on Linux, yet the tools that I'm gonna use are cross-platform and free, so you can try it on other operating systems too. In short, to add printer marks and bleeds to a PDF document, you should generate a marks and bleeds only PDF for the source document page size, then increase pages size of the source document and at last overlay the marks and bleeds document.

How to add printer marks and bleeds to PDF documents

3 Ways to install VirtualBox in Ubuntu

 Posted by:   Posted on:    No comments
VirtualBox is a free virtualization software developed by Oracle. It runs on and can run all major operating systems. If your host computer has enough resources, VirtualBox can run multiple virtual machines at a time. It can also take screenshots and record screen of virtual machines. Overall it is a great tool for anyone looking to test new operating systems without making any changes to the host computer.

This post will describe three installation procedures for Linux (Ubuntu). You can install VirtualBox from the default repositories, from Oracle repositories or from deb file. Each has its advantages and disadvantages. Of course, the best method is the one that brings you the best results.

VirtualBox main window screenshot
VirtualBox main window

HF & VHF antenna amplifier without coils

 Posted by:   Posted on:    31 comments

The following receiving amplifier can be used for any kind of signal in the HF and VHF bands from about 1 MHz to 400 MHz. It offers quite linear gain across this band width without using any LC tuned circuits. Therefore it can be used for shortwave, FM and VHF signals and even AM band can be received, because the gain at 500 kHz is not less than 18dB. The circuit does not use coils. However, a choke will be required if you will power the amplifier through the feed cable. The circuit uses five RF transistors with a cut-off frequency of at least 600 MHz. The PCB is designed for the (S)S9018 transistors (EBC pinout), but you can use any kind of low power RF NPN transistors, like MPSH10 and even the old types like BF200 or BF214 (pay attention to pinout). S9018 transistors are cheap and widely available (you can find them in transistor packs).

The amplifier's input is unbalanced and it can be connected to any kind of antenna (after the balun if it is necessary). Because Q5 is placed in a common base configuration, the input impedance is high, thus the amplifier can be used with whip antennas too (they usually have high impedance at low frequencies). The output is 75 ohms unbalanced. The overall gain of this amplifier is 20 dB.

HF & VHF antenna amplifier without coils

How to install Ubuntu from Minimal CD (with UEFI)

 Posted by:   Posted on:    5 comments
Besides standard disc images, Ubuntu also offers a small image of only ~30...40 MB named Minimal CD. This contains a text-based installer, so you can use it on computers that fail to load the graphical environment of the installer. Only the packages required to run the installer are on the actual image and anything else will be downloaded from a repository that you can choose.

This has advantages and disadvantages. If you have a fast internet connection, this is actually a good way of installing Ubuntu or any of its official derivatives like Kubuntu, Xubuntu, Lubuntu or Ubuntu MATE. You will only get the packages you requested at their available versions from the repositories. This means that once installed, your OS will be updated. The disadvantages are of course related to the internet connection. The minimal ISO cannot boot in EFI mode yet you can make it EFI bootable. Also, the text installer may be a little difficult for inexperienced users.

This tutorial shows how to make an EFI bootable media from Minimal ISO and also how to install Ubuntu from it whether you're in EFI mode or not.

The ISO is less than 40 MB, thus it can be burned even on 80 mm CD or you can make a bootable flash drive. This is the perfect choice for any old, low speed USB flash drive. In order to make the bootable USB drive, you can use Rufus on Windows and dd command on Linux. You can get the Minimal ISO at http://cdimage.ubuntu.com/netboot/.

How to install Ubuntu from Minimal CD (with UEFI)

Set up the serial port in Wine

 Posted by:   Posted on:    7 comments
The serial port is not of much use today, but there are still some things that rely on serial port communication. For example DIY microcontrollers electronics projects or some firmware updaters require connecting devices via serial port.

Another issue is that modern computers no longer have serial ports. But this can be easily solved by using a USB-to-serial adapter when you need a serial port.

Windows detects and names serial ports as COM1, COM2, COM3, etc. It doesn't make the difference between genuine ports or USB adapters. Linux on the other hand names hardware ports as /dev/ttyS0, /dev/ttyS1, /dev/ttyS2, etc. and USB adapter ports as /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2, etc.

Set up the serial port in Wine