25 September 2019

Google Cloud Print on Ubuntu 16.04

As I wanted to be able to easily print from my phone and chromebook, Google Cloud Print was the solution.

Here are the simple steps that I used:

  1. sudo apt install google-cloud-print-connector
  2. gcp-cups-connector-util init
    • It will require you to enter a code at https://www.google.com/device to create the OAuth credentials
    • save the created config file somewhere safe
  3. gcp-cups-connector -config-filename gcp-cups-connector.config.json

Don't forget to install Cloud Print by Google LLC on your smart phone!

23 September 2019

Installing Unifi Controller on Ubuntu 16.04

Here are the steps that I had to do to get Ubiquiti Unifi Controller software installed on Ubuntu 16.04

  1. Add the gpg key:
    • sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
  2. Add the repo:
    • echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
  3. Update Sources:
    • sudo apt update
  4. Install the software:
    • sudo apt install unifi
Unfortunately, this resulted in JAVA_HOME not found errors in /usr/lib/unifi/logs/server.log. This is because the unifi software requires Java, but it couldn't find it. I tried to point to the Java 9 path, but that just resulted in errors like: /usr/lib/unifi/data/keystore (Permission denied). Apparently, the software only works with Java 8. To resolve this issue, I installed Java 8 and restared unifi with the following commands:
  • sudo apt-get install openjdk-8-jre
  • sudo service unifi restart
Then head over to https://localhost:8443 to complete the setup