Category Archives: Software

How to Identify and Stop and Remove a Docker Container

This pertains to Ubuntu Server 16.04 running Apache2.x, PHP7.x, and MySQL.  NextCloud 12 is installed and running on a domain with an SSL certificate issued by a public CA (on www.mydomain.tld and mydomain.tld).  I tried to integrate Collabora (Docker) obtaining its own SSL on a subdomain (office.mydomain.tld)

It became necessary to remove and reinstall the Collabora docker container / image. My two SSL certificates were conflicting after Collabora was installed and enabled in NextCloud 12. There was a failed configuration when I following the guided instructions for integrating Collabora online with NextCloud.  Incidentally, the installation mistake occurred  during the “run” phase. I mistakenly (and understandably) entered the sub-domain “office.mydomain.tld” (i.e. the subdomain where my collabora SSL certificate will address) rather than entering the already configured nextcloud domain www.mydomain.tld.  See the correct run command at the end of this Article.

Open terminal or putty ssh connection:

To See All docker containers:
sudo docker ps -a

To Stop a running docker container:
sudo docker stop <container id>
Example:
sudo docker stop 94fc7ad48626

Check the status again:
sudo docker ps -a

To Remove a stopped docker container:
sudo docker rm <container id>
Example:
sudo docker rm 94fc7ad48626

If there is an error at the removal step, it may be necessary to either restart apache or reboot the system.  Restarting Apache did not work for me.  I rebooted the system.

After reboot, check the status again and the container ID should be gone/empty. CONGRATULATIONS.  

When you reinstall Collabora:

Example to run the docker container referencing correct sub-domain of the previously installed nextcloud:
sudo docker run -t -d -p 127.0.0.1:9980:9980 -e ‘domain=nextcloud\\.your-domain\\.com’ –restart always –cap-add MKNOD collabora/code

I am not sure whether I should again first pull the docker Collabora/code before the docker run.  I will let you know.

 

Footnotes:  URL References / Credits:

https://docs.docker.com/engine/reference/commandline/stop/

https://help.nextcloud.com/t/collabora-docker-remove/4851

Prerequisites For Installing CMS Made Simple Version 2.1.6

Readme File for CMS Made Simple (PDF)

Requirements:

  1. The installation assistant requires a PHP environment with a minimum version of PHP 5.4.0.
  2. For new installations of CMS Made Simple you should create a new mysql database and database user. The database user
  3. must have ALL PRIVILEGES to all tables within the new database.
  4. CMS Made Simple itself requires at least PHP 5.4.11 with numerous libraries enabled (the install assistant will
    check for these) including json, tokenizer, xml, and gd.
  5. Your PHP environment must include the PHAR extension (yes, even for the expanded installer). This is for expanding the archive(s) included within the installation assistant.

DAA Opt-Out of Targeted Advertising Interest-based Advertising

Digital Advertising Alliance Consumer Choice Page

Go here using the particular browser that you wish to set your opt-out cookies:

http://www.aboutads.info/choices/

Microsoft Opt-Out regarding browser and apps:

http://choice.microsoft.com/en-us/opt-out

 

Toggle Preferences on/off for Microsoft and Internet Explorer:

  • Personalized ads in this browser.
  • Personalized ads when you use your Microsoft Account.

 

Windows Server Prerequisites to Installing MailEnable Server

Set the Computer / Mail Server name in Windows:  Example, mail.YourDomain.com

Bind the local static IP on the server’s network interface card that will be used to receive port forwarding from your public IP address on your router, such as TCP ports 25, 53, 80, 110, 143, 587, etc.  An example of the local IP might be 192.168.0.60, depending on the subnet you have configured

Win 2008 Server R2 — Add Role Wizard

  • Add DNS Server
  • Add Web Server — IIS Services
  • Add ASP.Net — and add the required / supporting role services too

Enable Windows Features — MailEnable server requires installation of the .Net 2.0 framework  — But, you should instead enable the .Net 3.51 features, which already include the .Net 2.0 API’s

You are now ready to download and install the latest edition of MailEnable server

Install and Use Import-Export Tools In Mozilla Thunderbird

Installation of the Add-On Import-Export Tools:

GoogleSearch

 

 

  • On the Add-ons page, click the yellow Download Now button and save the ImportExportTools.xpi file to a new or empty existing folder on your hard disk.  Remember the path where the file was downloaded. because you will need to find it in the next steps.

AddonPage

 

  • Open Thunderbird email account.  Make sure you Menu is Enable (see below).
  • On the Thunderbird Menu select Tools, and from the Drop Down List select Add-ons.

Menu-Tools-add-ons

 

  • Find and click on the little Gear at to top right corner of the Add-ons Extensions Manager next to the search add-ons box.
  • In the drop down list select “Install Add-ons from File.”

Add-Extension-From-File

Find and Select and Open the Import-Export-Tools.xpi file that you just downloaded to a folder on your hard disk. Select it and click the Open Button.

Open-XPI-File

 

  • Select the Install Now button in the bottom right corner of the Software Installation action box.

Select-Install-XPI

  • And after the Addon is installed, click the Restart Now button to restart Thunderbird and activate the addon for this email account.

restart-to-enable-addon

  • When Thunderbird restarts, close the Add-on Manager Tab.
  • You will find Import Export Tools on the Tools Menu of Thunderbird.  Select tools, then point  to Import Export Tools from the Tools drop down list.  You will see all the options for importing and exporting messages, etc.

USING IMPORT EXPORT TOOLS TO BACKUP MESSAGES TO YOUR HARD DRIVE.  HERE IS MY RECOMMENDED BACKUP METHOD:

  • Select the folder you wish to backup such as the INBOX.
  • On the Menu, select TOOLS, point to IMPORT EXPORT TOOLS, point to EXPORT ALL MESSAGES IN THE FOLDER, and select EML FORMAT.
  • Navigate to your downloads folder, and create a subfolder with the name of your email account, and create a subfolder called INBOX on your hard drive.  Select that subfolder to export all the messages in your Thunderbird INBOX to that new subfolder.
  • When your email messages are somehow corrupted or deleted from your email account inbox, or if you wish to create a new email account (such as an IMAP account) for which you want to IMPORT the messages to the new INBOX of the IMAP account, and have them Synchronized / Uploaded to the IMAP server Inbox, well you then have the ability to IMPORT all the Messages from your hard disk sub-folder located in your customer downloads path at / INBOX / MESSAGES folder that was created when you exported all of your EML files to a backup.
  • The EML files will be backed-up into a MESSAGES sub-folder under the INBOX backup folder that you created, and the folder path to those files will look something like the following image.  The files with the blue Tbird Icon are all *.EML files. All email attachments are preserved.

EML-Files-Backup

 

NOTE, you can do a separate backup of all the email messages in each email folder of your email account, such as SENT ITEMS, and DRAFTS, and IMPORTANT folder, etc.  Just make a separate backup folder for each.  You can import them folder-by-folder if you ever need to reconstruct your Email Account.

[Solved] Exchange 2003 smtp;554 5.6.1 Caused by Thunderbird – Body Type Not Supported

Diagnostic-Code: smtp; 554 5.6.1 Body type not supported by remote host

You try to send an email from Mozilla Thunderbird, but your Exchange Server 2003 returns the email to you as undeliverable with the diagnostic message as follows:

The message contains a content type that is not supported <mailservername.domain.com #5.6.1 smtp;554 5.6.1 Body type not suported by remote host>

Reporting-MTA: dns; dns.yourdomain.local
Action: failed
Status: 5.6.1
x-Supplemental-Info: <YourExchangeServerName #5.6.1 smtp;554 5.6.1 Body type not supported by Remote Host >

Your Exchange Server Logs probably show this message:

smtp;554 5.6.1 Body type not supported by Remote Host

If you can send email through Outlook Web Access but not through Thunderbird email client, then there must be a problem with the handshake of encoding methods between Thunderbird and Exchange 2003.

SOLUTION:  Open Thunderbird and try this:

  • Go to Tools -> Options -> Advanced -> Config Editor. See bottom right corner of this image for Config Editor button:

000Capture

  • Click on the “I’ll be careful, I promise!” button.
  • Type “mime” into the Filter box.
  • Double Click “mail.strictly_mime” to change the setting from “false” to “true”.  Or, you can right-click “mail.strictly_mime” and left click toggle True
  • Close all the windows that have popped up in the process.
  • Restart Thunderbird.
  • Test outgoing email now.

0004Capture

Show All System Tray Icons In Windows 10

In Windows 10, someone decided to change the name of the System Tray.  It is now called the Notification Area.

Here is how to show all Icons in the Windows Notification Area. (Well, it’s one way to get there.)

  1. Right-click a free spot on the Taskbar and left-click select Properties.  The Taskbar and Start Menu Properties will appear.Capture01
  2. Next to the words “Notification Area:” Click the Customize Button. Edge will open and the left menu will automatically highlight Notifications and Actions. Capture03
  3. Select the Link on the right that says “Select which icons appear on the taskbar.”  Why they call it the Taskbar at this point is a misnomer, or rather misleading. But this will take you to the appropriate “Settings” screen for Taskbar / or  / Notification Area Icons.Capture02
  4. Select or Turn “ON” or “OFF” beneath the phrase “Always show all icons in the Notification Area.”
  5. X-out of Edge.