Improve Ubuntu 20.04 Battery by installing TLP for Linux

Laptop fan started running continuously, removed the application.

Refer: https://fossbytes.com/things-to-do-after-installing-ubuntu/

TLP is a great command-line tool for improving the battery performance for your laptop after installing Ubuntu 20.04 LTS. This advanced power management tool comes with automated background tasks that can help you get the most out of your battery.

To install TLP in Ubuntu 20.04 Focal Fossa,

sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

Install Docker on Ubuntu 20.04

Basic Installation

Refer: https://linuxconfig.org/how-to-install-docker-on-ubuntu-20-04-lts-focal-fossa

Use the apt command to install the docker.io package:

$ sudo apt install docker.io

Start docker and enable it to start after the system reboot:

$ sudo systemctl enable --now docker

Optionally give any user administrative privileges to docker:

$ sudo usermod -aG docker SOMEUSERNAME

Reboot Computer to Verify

$ reboot

Stop Docker from auto starting upon reboot

Refer: https://askubuntu.com/questions/766318/disable-docker-autostart-at-boot

sudo systemctl disable docker.service
sudo systemctl disable docker.socket

Then start and stop Docker as a service

sudo service docker start
sudo service docker stop

Check docker version:

$ docker --version

Verify Installation

$ docker run hello-world

Post Installation Items

Refer: https://docs.docker.com/engine/install/linux-postinstall/

Getting Teams to Work on Ubuntu

There's an issue getting the microphone to work out of the box on Ubuntu 20.04 and teams.  The microphone works but NOT the internal microphone.  It has to due with security and it seems like it's using the default browser's security settings.  The solution for now is to start Teams with sudo.

Create a Menu Entry for Teams as Sudo

Refer: https://www.tecmint.com/run-sudo-command-without-password-linux/

Allowing sudo for a program without a password

$ sudo visudo

At the end of the file, add the following, and save it:

mruckman ALL=(ALL) NOPASSWD: /usr/bin/teams

Copy Printer Setup HL2170W and Canon_MX920_Series

Refer: https://www.cyberciti.biz/tips/linux-migrate-printer-configuration.htm

Files for Setup:  home-printer-setup.zip

How to export Linux printer setup
$ sudo tar -cvzf /tmp/cups-$(hostname).tar.gz /etc/cups

Now login to new system and type the following commands:
$ cp original-filename.tar.gz /tmp/cups-$(hostname).tar.gz

$ sudo su
$ mv /etc/cups /etc/cups.backup
$ cd /
$ tar -zxvf /tmp/cups*

Finally, restart the cups service:
Refer: https://help.ubuntu.com/lts/serverguide/cups.html

$ /etc/init.d/cupsys restart

Refer: https://haydenjames.io/finding-linux-compatible-printers/

Convert XML or JSONto Java POJO Classes

Online Tool - http://pojo.sodhanalibrary.com/

Inside of IntelliJ Do the Following:

  • Open the XML File
  • Right-Click and choose "Generate XSD Schema from XML File..."
  • The Choose Tools, JAXB, Generate Java Code from Xml Schema using JAXB..."

IntelliJ Optimize Imports

Update: in IDEA 13 "Use single class import" does not prevent wildcard imports. The solution is to go to Preferences (⌘ + , on macOS / Ctrl + Alt + S on Windows and Linux) > Editor > Code Style > Java > Imports tab set Class count to use import with '*' and Names count to use static import with '*' to a higher value. Any value over 99 seems to work fine.

Import VirtualBox Image into Parallels

Guide: Converting Virtual Box virtual machine to Parallels Desktop.pdf

Solution

  • In the VirtualBox Manager, right-click on VM > Clone. ...
  • Launch the new clone of your VM,
  • Uninstall Guest Editions:
    $ sudo ./VBoxLinuxAdditions.run uninstall
  • Shut down the Guest OS properly. ( ..., Restart to make sure it's gone
  • Open Parallels Desktop (in the Applications folder) and choose File > Open.
  • Select  the *.vbox file from VirtualBox
  • Wait till conversion will be completed.

Refer: https://kb.parallels.com/122851

Pizza Dough / Pizza Bread

Pizza Dough

1 cup AP Flour 120 g
1 cup Bread Flour 120 g
1 tbls Softened Butter 14 g OR 2-1/4 tsp Olive Oil
1 tbls Sugar
1 tsp Yeast
1 tsp Salt

1/2 cup and 1 tbls Water 105-110F, Microwave water 25 secs microwave

Pizza Bread

Make the above recipe, but it in two containers and keep in the refrigerator for 2+ days.

Lightly dust parchment paper with flour, gently take out of container and set down, touch top with excess flour from board.

Preheat oven to 425, while it's heating cut slits on top of dough about 1" apart diagonally.

Bake for 20 minutes

Windows 10 God Mode

Refer: https://www.howtogeek.com/402458/enable-god-mode-in-windows-10/

Create a new folder in Windows 10 and name it to the following:

GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}