Removing Duplicate E-mail Messages From A Mailbox

Linux, SysAdmin, Technical
Occasionally your mail delivery scheme might hiccup, leaving you with duplicate copies of email messages sitting in your mailboxes. I find this happens occasionally if something goes wrong with fetchmail - you kill the fetchmail process before it has expunged the deleted email from the remote POP3 server, so the next time you run fetchmail it downloads a second copy of each email. This is a simple process that I came up with to remove duplicate email messages from a maildir format mailbox. As a bit of background, a maildir mailbox is a small directory tree: $ du .boxes.xml-dev 4 .boxes.xml-dev/tmp 124 .boxes.xml-dev/new 52340 .boxes.xml-dev/cur 52920 .boxes.xml-dev $ Hierarchy is represented by components of the mailbox name separated by dots, so the mailbox above is called xml-dev and it is in the boxes mailbox. Messages are files in…
Read More

Fujitsu ScanSnap ix1500 not staying connected

Electronics, SysAdmin, Technical
Fujitsu ix1500 does not stay connected to Windows 10 Computers. So far the only thing that seems to work to get them to re-connect is a reboot, not exactly a great solution in most of my user's cases. Have tried all known troubleshooting, even some pretty far out there stuff. OK, so the issue was... drum roll please... Another Imaging device had been taking over the Scanner, my main suspect was an HP printer with scan function, once I had disabled the drivers for the other imaging units (that were not needed) it started working perfectly again. I appreciate the responses. So to be clear, the solution was Device Manager>imaging devices>disable all other devices https://community.spiceworks.com/topic/2176006-scansnap-fujitsu-ix500-not-staying-connected
Read More

How to run xmrig-proxy as a service

Crypto, Linux, SysAdmin, Technical
Create a systemd service unit for it. See the examples on the man page. The simplest example shows how easy it can be to create a service unit: [Unit] Description=Xmrigproxy [Service] User=ubuntu Group=ubuntu ExecStart=/home/ubuntu/xmrig-proxy-5.5.1/xmrig-proxy-notls Restart=always [Install] WantedBy=multi-user.target Alias=xmrigproxy.service Store this unit under /etc/systemd/system/xmrigproxy.service, then reload systemd to read this unit file with: $ sudo systemctl daemon-reload Start the service with: $ sudo systemctl start xmrigproxy.service And enable it during startup with: $ sudo systemctl enable xmrigproxy.service You can check the status of the service with: $ systemctl status xmrigproxy.service View the output of the program by using: $ journalctl -u xmrigproxy.service -f
Read More

How to use a YubiKey for Two-Factor Secure Shell Authentication

Linux, SysAdmin, Technical
What is Yubikey? YubiKeys are small USB dongles that you can plug into your computer. They can simulate keyboard input, allowing you to enter One Time Passwords (OTPs) with the press of a button to authenticate with services like Google, Dropbox and GitHub. YubiKeys can also be used when logging into a remote server. This guide will show you how to configure your server so that a YubiKey must be plugged in and tapped in order to log in to your server using ssh. Depending on your needs, you can also configure a password in addition to the YubiKey for an extra level of security. If you want to work through this guide but don’t have a YubiKey, you can find one at this link. As of this writing, any key that supports…
Read More

Document Moved Error after Upgrade to OpenCart 3.x.x.x

Linux, SysAdmin, Technical
If you have upgraded to OpenCart 3.x.x.x recently and are noticing a "Document Moved" Error when accessing extensions in your OpenCart Admin Panel It is due to a misconfigured line in your config.php file that resides inside your admin folder. (public_html/admin/config.php). You will find a line that says: define('OPENCART_SERVER', 'http://www.opencart.com/'); The line actually needs to read like this: define('OPENCART_SERVER', 'https://www.opencart.com/'); The problem is if you're running your OpenCart with HTTPS...Which you SHOULD be the non-https URL won't load from within the admin panel. The purpose of that URL is to grab the extension lists and extension advertisements and show them on the extensions page. Replace that one line and the issue will be resolved! I have referenced this error here, on the official OpenCart Github: https://github.com/opencart/opencart/issues/7269 And also made the…
Read More

Emails not sending after upgrade to OpenCart 3.x.x.x

Linux, SysAdmin, Technical
The issue is - OpenCart does not send emails after order checkout or account registration. I don't mean that the server is failing to send the mail (I'm running my own email server and there is no trace of any email being sent in the logs), but that the OpenCart installation doesn't even get to the code where mail is supposed to be sent. If I use the newsletter form in administration, all the emails are sent and delivered fine without any issues. All other applications on the same server using the same PHP and Sendmail are working without problems, as was the 2.3 OC installation with exactly the same settings. First thing to check: - Ensure your admin - > extensions - > events page has more than 30…
Read More

Opencart upgrade error `Could not load template adaptor`

Linux, SysAdmin, Technical
Upgrading one of my stores I encountered the following error: Fatal error: Uncaught Exception: Error: Could not load template adaptor ! in /home/u572407319/public_html/system/library/template.php:11 Stack trace: #0 /home/u572407319/public_html/system/storage/modification/system/engine/loader.php(81): Template->__construct(NULL) #1 /home/u572407319/public_html/install/controller/common/header.php(14): Loader- >view('common/header', Array) #2 /home/u572407319/public_html/system/storage/modification/system/engine/action.php(51): ControllerCommonHeader->index(Array) #3 /home/u572407319/public_html/system/storage/modification/system/engine/loader.php(24): Action- >execute(Object(Registry), Array) #4 /home/u572407319/public_html/install/controller/upgrade/upgrade.php(28): Loader- >controller('common/header') #5 /home/u572407319/public_html/system/storage/modification/system/engine/action.php(51): ControllerUpgradeUpgrade->index() #6 /home/u572407319/public_html/system/engine/router.php(34): Action->execute(Object(Registry)) #7 /home/u572407319/public_html/system/engine/router.php(29): Router in /home/u572407319/public_html/system/library/template.php on line 11 Below is what can be done to fix this: The issue is the template adapters are set by system/config/catalog.php // Template$_['template_engine'] = 'twig'; Way to resolve it is, clear your modification directory! (system/storage/modification)Make sure you leave index.html but clear everything else out of that directory then refresh your main site/page.
Read More

How to enable CAPTCHA in your OpenCart store

Linux, SysAdmin, Technical
If you get lots of spam messages from your OpenCart store contact form, or you have lots of fake customers registering everyday, you should start using CAPTCHA codes to avoid all the bots. Starting from version v2.1.0.1 OpenCart has two different CAPTCHA modules integrated which you can start using in just couple of minutes. Here you’ll find a tutorial how to enable OpenCart CAPTCHA. How to enable OpenCart CAPTCHA CAPTCHA fields can be added to all the default OpenCart forms: Customer registration formContact Us pageProduct reviewsReturns page form There are two versions of CAPTCHA in OpenCart – a basic version (where customer has to enter letters and numbers he/she sees in the picture) and Google reCAPTCHA version. It adds “I’m not a robot” field to OpenCart forms: Both CAPTCHA modules can be…
Read More