Ubuntu Linux CPU usage / CPU temperature high? Try this…

We have an Ubuntu based mini computer at which serves as little more than a network switch. CPU and other resource utilization should be next to nothing, but frequently this computer would have CPU temperatures around 80 degrees Celsius, and when you would watch the resource monitor the CPU activity was all over the place. Despite the computer only really showing a few percent of CPU usage, if you went toe the Resources Tab of System Monitor, the per-core CPU activity was all over the place.

As I mentioned, the computer in question is a simple network appliance that would never need to print, and upon closer inspection, it was the Linux “CUPS” Service. Once we disabled that, the CPU settled right down.

Continue reading “Ubuntu Linux CPU usage / CPU temperature high? Try this…”

Cannot locate base snap core22 – easy fix

A co-worker came to me recently because they had an Ubuntu Linux 22.04 computer on which restored a “Timeshift” backup, but suddenly Firefox wasn’t working. How or why it became corrupted was beyond me, but by the time I was ‘called in’ he had already tried several troubleshooting techniques, which had only seemed to make things worse. He had tried resetting, removing, and purging Firefox, and as other errors popped up they became things like cannot locate base snap core 22, or something about an inability to run certain hooks. I honestly didn’t even get a shot of the error message, but the good news was, that I had a fix.

The simple fix for this is to have your core runtime environment (the Core 22 base snap, or Core 20, or any other core you may be having this issue with) switch over to the beta branch, and then immediately switch it back to the production / stable branch. Two quick commands will take care of this:

sudo snap refresh --beta core22
sudo snap refresh --stable core22

Once finished, you can simply reinstall your problem snap: sudo snap install firefox – and then it began redownloading and reinstalling correctly.

Microsoft Outlook Office 365, how to Send From / As / On Behalf Of

These instructions are for Outlook on the Web.

Once you have been added to role or given an alias, you should be able to send “From” the alternate alias account. For example, if my email address was Robert@example.com, but I wanted to send as Bob@example.com. As long as the administrators have set me up correctly, I now have to figure out how to set it up. The first time you do it, you sometimes have to change a setting to show the “FROM” field so that you can then add or type in the email address. I pieced together a guide with some example pictures that will hopefully be helpful!

  1. Sign in to Outlook on the web.
  2. Click on New mail to start a message > then OPTIONS above the Message > then Show From.
  3. Click on From > then Other Email Address…

This will show the From field in Outlook web and allow you to type in the email you’re sending from (bob@example.com).

  1. Fill in the Alias address.

Now you’re good to compose and send your email! Every time after this, that Alias should show up automatically so that you can click on it instead of typing it in!

Generating a self-signed certificate PFX file with Powershell

Sometimes you need a self-signed SSL certificate for an internal project, but perhaps you’re restricted from using a 3rd party tool such as OpenSSL. Maybe this is for security reasons, a lack of external internet connectivity, or maybe you’re just working on something small and you need a quick solution. Well, Microsoft has you covered, as the ability to self-sign a certificate in Windows is quite simple.

Open a Powershell Command Line as an Administrator, then enter the following command (changing “computerhostname” to the hostname of the server the file will reside on, using the FQDN (ex. computername.local) if you can):
New-SelfSignedCertificate -DnsName “computerhostname” -CertStoreLocation “cert:\LocalMachine\My”

Then, Windows Key+R to open the run menu, type certlm.msc and press enter or click OK. This will open the Certificate Manager for the Local Machine.

To export the public and private certificate and key as a Private Information Exchange or PFX file (a Personal Information Exchange public/private key combo file) follow these steps:

  1. On the left side of Certificate Manager, expand “Personal” then click Certificates.
  2. Right click the certificate you just created, then click All Tasks, then Export.
  3. Next > YES > Next > leave the defaults (Personal Information Exchange, with “Include…” and “Enabled…” checked) > Next > Password (enter your desired password, which you will need later to use the PFX file), change the Encryption to AES256-SHA256 > Next > Browse and give the PFX file a destination and a name (demo.pfx) > Next > Finish > OK.