CentOS – ClamAV issues

Clamd and freshclam will use 100% of core cpu process.



Edit file: /usr/lib/systemd/system/[email protected]

Description = clamd scanner (%i) daemon
Documentation=man:clamd(8) man:clamd.conf(5) https://www.clamav.net/documents/
# Check for database existence
# [email protected]@/main.{c[vl]d,inc}
# [email protected]@/daily.{c[vl]d,inc}
After = syslog.target nss-lookup.target network.target

Type = forking
ExecStart = /usr/sbin/clamd -c /etc/clamd.d/%i.conf
Restart = on-failure
TimeoutSec = 180

Adding TimeoutSec (180 seconds were enough for me)

Run this commands:

systemctl daemon-reload
systemctl start [email protected]

How to fix spotlight search on a macOS

Important: We have a current backup of your Mac.

Open Terminal:

Now type in the following commands into Terminal, in the exact order they are shown:

sudo mdutil -i off /
sudo mdutil -i on /
sudo mdutil -E /

The first command turns spotlight off
The second command turns spotlight back on
The final command restarts the spotlight index.
If, after a few minutes, spotlight is still not indexing, try running this command, followed by the three commands above:

sudo rm -rf /.Spotlight-V100

How to use Time Machine to back up your Mac to a Windows shared folder – macOS

The issue that makes Time Machine more difficult in terms of options for backup locations is that it requires use of Apple’s proprietary HFS+ filesystem. Although I’m certain the HFS+ features that Time Machine uses for file versioning and linking could be “mimicked” for use on other more open filesystems, the reality is that Apple chose HFS+ and supports that filesystem exclusively in Time Machine (in fact as of this writing Apple’s new APFS isn’t even supported for Time Machine backups as of yet).

  • Create a Windows share location
  • Make the remote share automatically mount
  • make Time Machine use the remote share and file
  • Check Time Machine

Read moreHow to use Time Machine to back up your Mac to a Windows shared folder – macOS

macOS Software Update via Terminal

To get a list of available software updates, type the following command:

softwareupdate -l

You will see a list of available updates. You can then install all available software updates with the following command:

sudo softwareupdate -iva

The use of sudo is required to get superuser privileges to actually install the updates. You can also install only the recommended updates with:

sudo softwareupdate -irv

Read moremacOS Software Update via Terminal

If unable to unmount drive on macOS

You can try booting from OS X recovery by holding CMD + R at the time of startup. Once booted from OS X recovery, select Terminal from the utilities and then at the unix prompt enter:

  • diskutil list
  • then press return and look for the disk identifier and enter the following command with the disk identifier

sudo diskutil unmountDisk /dev/(enter here disk identifier name)

  • Press return and enter your admin password if prompted. This should unmount all volumes of the physical drive.
  • If still the above method didn’t work, then the last option is to force the entire disk to unmount.
  • For that using the terminal application again, enter the following command:

sudo diskutil unmount force /dev/(enter here disk identifier name)

  • Then press return and enter the admin password if prompted. This will definetely unmount the entire disk and all its related volume.