Remove all orphaned packages from CentOS Linux. By orphaned packages we mean all packages which no longer serve a purpose of package dependencies.
CentOS – ClamAV issues
Clamd and freshclam will use 100% of core cpu process.
Solution
Edit file: /usr/lib/systemd/system/[email protected]
[Unit] 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 [Service] 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]
Check HTTP headers with cURL
Open terminal:
curl -I https://www.apple.com
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
macOS not shutting down since upgrading to new security upgrade
Send this commands via terminal:
rm -rf ~/Library/Caches/*
rm -rf ~/Library/Saved\ Application\ State/*
sudo rm -rf /Library/Caches/*
sudo rm -rf /System/Library/Caches/*
atsutil databases -removeUser
sudo atsutil databases -remove
sudo atsutil server -shutdown
sudo atsutil server -ping
sudo rm -rf /var/folders/*
Reboot system.
How to change PhotoStation Synology logo
Login via ssh:
ssh -2 [email protected]
sudo -i
Copy Your logo white template:
cp /yourlogo.png /var/packages/PhotoStation/target/photo/photo_new/images/White/logo_ps6.png
Copy Your logo dark template:
cp /yourlogo.png /var/packages/PhotoStation/target/photo/photo_new/images/Black/logo_ps6.png
Verify and Repair Disk Permissions via Terminal – macOS
Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
Read moreVerify and Repair Disk Permissions via Terminal – macOS
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