Centos 7.1 – error repository

By Zilli,

Uncomment baseurl in this file: /etc/yum.repos.d/CentOS-Base.repo

#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

In this block:

name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

By uncomment, I mean change this:

#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/, to this: 
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ (remove the #).

  Category: OS
  Comments: None

VMware Fusion Export VM to OVA

By Zilli,

Command line method for exporting to the Open Virtual Appliance (OVA) format from VMware Fusion. Use the OVF tool. The following provides a command line synopsis.

# VMware Fusion Export VM to OVA
# Zilli 20180730

$ cd /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool
$ ./ovftool --acceptAllEulas \

> /Users/Me/Documents/Virtual\ Machines.localized/theVM.vmwarevm/TheVM.vmx \
> ~/Desktop/TheVM.ova

Opening VMX source: [...]
Opening OVA target: [...]
Writing OVA package: /Users/me/Desktop/TheVM.ova
Transfer Completed                    
Completed successfully

How to Find and Remove @eaDir Directories on Synology NAS

By Zilli,

Synology NAS @eaDir directories popping up everywhere. These are “hidden” folders equivalent to thumbs.db on Windows where the package stores thumbnail files associated with iTunes support. If you’re not using iTunes you don’t need these directories. You can remove them in two steps.

In SSH use the following to locate them:

cd /
find. -type d -name"@eaDir"

and if you’re feeling adventurous you can automatically delete them like so:

find . -type d -name "@eaDir" -print0 | xargs -0 rm -rf

Setting up Automatic Update for All WordPress Plugins

By Zilli,

You can set WordPress to automatically install all plugin updates by simply adding this code to your theme’s functions.php file or a site-specific plugin.

add_filter( 'auto_update_plugin', '__return_true' );

This filter tells WordPress automatic updater to automatically install plugin updates when they’re available.
If you also want to automatically update your themes, then you can add another code like this: