VirtualBox Guest Additions not working in Lubuntu 17.04 – Solved

Environnement:

Host OS: Windows 10 x64
VirtualBox Graphical User Interface
Version 5.1.26 r117224 (Qt5.6.2)

Guest OS: Lubuntu 17.04

VBOXADDITIONS_5.1.26_117224

Problem:

I manually installed VirtualBox Guest Additions from VBOXADDITIONS_5.1.26_117224 ISO and restarted the guest.

The bidirectional clipboard and the drag and drop still not working.

Solution:

Installation of Guest Additions from Ubuntu repository.

Command:

sudo apt-get install virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11

Because I didn’t uninstall the ISO version, the setup process it asked me if I want to use the maintainer version or the latest version. Personally I chosed Y for the maintainer version. Here is a sample:

Setting up virtualbox-guest-x11 (5.1.22-dfsg-0ubuntu1.17.04.1) …

Configuration file ‘/etc/X11/Xsession.d/98vboxadd-xclient’
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer’s version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation

It works! The above text was copied from clipboard directly from Guest OS Lubuntu 17.04 in Windows 10 host OS.

10 Ways to transform PDFs in Online Publications

The purpose of this article is to explore solutions that allow us to transform Adobe PDF files into a page turning digital book or magazine.

The main features that we are looking are:

  • multi-platform: desktop, tablet, mobile etc.
  • page-turning or flipping feature

Without being exhaustive, here is a list of the most popular solutions for online publications with links and screenshots.

PUB HTML5

http://pubhtml5.com/

http://pubhtml5.com/pricing.php

Issuu

https://issuu.com/

https://issuu.com/pricing

 

Calameo

https://en.calameo.com/

https://en.calameo.com/upgrade

Joomag

https://www.joomag.com/en

https://www.joomag.com/en/pricing

FlippingBook

https://flippingbook.com/

https://flippingbook.com/order-online

 

Hashdoc

https://www.hashdoc.com/

Zyyne

http://www.zyyne.com/site/

SlideShare

https://www.slideshare.net/

FlipHTML5

http://fliphtml5.com/

http://fliphtml5.com/fliphtml5-pricing.php

FlipBuilder

https://www.flipbuilder.com/

https://www.flipbuilder.com/flip-builder/

Categories Web

cPanel not starting with Internal Server Error – fix

The problem:

All websites are down with Internal Server Error 500

Symptoms:

Cpanel wasn’t loading with the following error:

Internal Server Error

500

Can’t fork: Cannot allocate memory at /usr/local/cpanel/Cpanel/SafeRun/InOut.pm line 40.
cpsrvd/11.62.0.15 Server at hostname.example.com

How I fixed it?

First of all I was trying to increase this limit by searching for “Max cPanel process memory” in:
“WHM Home » Server Configuration » Tweak Settings”

It was already over 512MB, the default value of 768MB. I increased to 1024MB. The Cpanel restart was unsuccessful.

As last resort I run the following commands:

/scripts/upcp –force

service cpanel restart

The first command will upgrade cPanel even if you got latest version of cPanel, in order to rule out any update inconsistencies.  Depending on the server configuration, this may run for about 10 minutes.

The second command will restart cPanel.

I hope that was helpful for you.

 

How to sync Microsoft Outlook with Google Calendar and other CalDav Calendars

For this purpose we need to use Outlook CalDav Synchronizer.

Here are the features and description from developer:

Free Outlook Plugin, which synchronizes events, tasks and contacts between Outlook and Google, SOGo, Horde or any other CalDAV or CardDAV server. Supported Outlook versions are 2016, 2013, 2010 and 2007.

Features:

  • free and open-source software (FOSS), the only free Outlook CalDav plugin (AGPL license)
  • tested CalDAV servers: SOGo, Google Calendar, Horde Kronolith, NextCloud, OwnCloud, SabreDAV, Synology NAS, GroupOffice, one.com , Yandex, OpenX-change, Posteo, Landmarks, Kolab, Zoho Calendar, GMX, Tine 2.0, Fruux, Mac OS X Server, iCloud, Mail.ru, Radicale, Cozy Cloud, Cyrus Imap 2.5
  • two-way-sync
  • modern WPF GUI
  • Supporting OAuth2 for Google
  • SSL/TLS support, support for self-signed certificates
  • Manual proxy configuration support for NTLM or basic auth proxies
  • Autodiscovery of calendars and adressbooks via well-known redirects or DNS SRV/TXT lookups
  • configurable sync range
  • sync multiple calendars per profile
  • sync reminders, categories, recurrences with exceptions, importance, transparency
  • sync organizer and attendees and own response status
  • task support
  • CardDAV support to sync contacts (distribution lists planned)
  • Google native Contacts API support with mapping of Google contact groups to Outlook categories.
  • Google Tasklists support (sync via Google Task Api with Outlook task folders)
  • sync contact pictures, categories, notes and x509 certificates
  • manual or time-triggered sync
  • change-triggered sync
  • sync triggered by Outlook Send/Receive
  • Category Filtering (sync CalDAV calendar to Outlook categories)
  • map CalDAV server colors to Outlook category colors
  • show reports of last sync runs and status
  • configurable system Tray Icon with notifications
  • bulk creation of multiple profiles
  • Use server settings from Outlook IMAP/POP3 account profile
  • Map Windows to standard IANA/Olson timezones
  • Configurable mapping of Outlook custom properties

The project page is here: https://sourceforge.net/projects/outlookcaldavsynchronizer/

IPP and Airprint shared printer on CentOS Linux

yum install cups -y
yum install foomatic* -y
yum install avahi avahi-tools -y

systemctl enable cups
 systemctl enable avahi-daemon
 systemctl start cups
 systemctl start avahi-daemon

after each change in configuration, restart both of them using

systemctl restart cups
 systemctl restart avahi-daemon

lynx localhost:631  – allow from remote, then from your computer go to prinserver:631 and configure cups via web gui.

If you can’t see the printer from IOS or OSX, check /etc/avahi/services if a proper .service file was created,

if not, use the python generator from here:

https://raw.github.com/tjfontaine/airprint-generate/master/airprint-generate.py

In order to use bonjour/airprint from Windows machines, install first

https://support.apple.com/kb/dl999?locale=en_GB

https://support.apple.com/kb/dl999?locale=en_GB

https://support.apple.com/kb/dl999?locale=en_GB

https://wiki.archlinux.org/index.php/Avahi

https://support.apple.com/kb/dl999?locale=en_GB

Handbrake Recipe

Again, a personal recipe, no questions asked

WORKFLOW:
profile ipad + CBR 2000 double pas
anamorphic none
1280×720 @2000

Join files:

Create a list.txt with the following content:
file ‘c:\TEST\1.mp4’
file ‘c:\TEST\2.mp4’
file ‘c:\TEST\3.mp4’
Run in CLI:
ffmpeg -f concat -i list.txt -codec copy out.mkv

mov > mp4 vlc not play in wmp

CentOS 7 root password reset

If we have a CentOS 7 or Red Hat Enterprise Linux (RHEL 7) with a selinux in enforced mode, the password resetting procedure need to be modified.

  • From the Grub menu type “e” in order to edit the default menu item.
  • Find the line that starts with “linux16”. At the end of this line append the text “rd.break”
  • touch /.autorelabel
  • Type exit once
  • type reboot

Reduce raster effect from old photo

This is a internal recipe, not a tutorial.

Scan at 9600 dpi (to enlarge a small photo)

Rotate the photo with 180 degree and scan again.

Place the second scan in another layer in Photoshop.

Rotate the second layer with 180 degree.

Use align layers function with 50% opacity of the top layer.

Flatten the image or respectively merge the 2 layers.

Apply a surface blur with the radius of 34 pixels and threshold of 100.

Resize the canvas (without re-sampling) to the desired size.

Re-sample  the image at 300 dpi, bi-cubic sharper (for print, and to reduce the blur effect).

Apply smart sharpen wiht the radius of 14.5 pixels (depends on the re-sampling ratio, should be the equivalent of the original blur radius)

Optionally adjust levels, with Black at 30.

I repeat, this was a personal recipe for a specific type of photo.

The idea is to scan at 180 degree. When you merge the inverted layers, the shadows are in opposite direction and naturally reduce the raster relief, but the raster is still present.

In order to reduce permanently the raster I used the blur / sharpen technique.

More advanced techniques use FFT. In my case I wasn’t successful with the FFT because I didn’t have time to learn the technique properly.