cPanel/WHM – Apache SpamAssassin add Domain to Blacklist or Whitelist from SSH Command Line

The domains are stored in the “~/.spamassassin/user_prefs” config file.

To blacklist a domain just add it to the config file.

blacklist_from *

To whitelist, change blacklist to whitelist

whitelist_from *

Save and exit the file.

LibreNMS Error: Missing dependencies! Run the following command to fix:

Received this error while trying to access LibreNMS in web browser.

Error: Missing dependencies! Run the following command to fix:

./scripts/composer_wrapper.php install –no-dev


Tried sshing into the LibreNMS server and running the script, but that didn’t fix the issue.

Ran ./validate.php and it came up with the some of the following errors.

[FAIL] Missing PHP extension: mbstring
[FIX] Please install mbstring
[FAIL] The poller (localhost.localdomain) has not completed within the last 5 minutes, check the cron job.
[WARN] Your install is over 24 hours out of date, last update: Thu, 7 May 2018 19:18:35 +0000
[FIX] Make sure your cron is running and run ./ by hand to see if there are any errors.

Installed mbstring.  You may need to change the number if yum is complaining about package conflicts.  Use “yum search mbstring” to show all the versions available.

yum install php71w-mbstring

Ran ./validate.php again and it wanted this script run

./scripts/composer_wrapper.php install --no-dev

Restart Apache

systemctl restart httpd

semanage Allow and Delete ports in CentOS

The commands are for CentOS, but should work on Fedora and RedHat.

If semanage is not installed refer to here.

You would typically use this along with the systems firewall to allow a port through.  Guide for firewalld and iptables.  If you change it in the firewall and fail to add/edit it in semanage you can potentially get weird behavior like sshd not wanting to start after changing the port.

Add port

semanage port -a -t ssh_port_t tcp 2222

The above command allows the sshd service to start, using port 2222.

List allowed ports

semanage port -l

You can use grep to filter the results


[admin@localhost ~]# semanage port -l | grep ssh
ssh_port_t tcp 2222, 22
[admin@localhost ~]#

Delete port

semanage port -d -p tcp 2222

Other examples

Allow SNMP

semanage port -a -t snmp_port_t tcp 2222


Install Ravencoin Wallet on Fedora

These instructions are for installing the Ravencoin wallet on Fedeora, but the instructions should work for CentOS, and be similar for Debian/Ubuntu Distros.

The Linux readme can be found here.

Install dependencies

sudo dnf -y install zeromq libevent boost libdb4 miniupnpc libdb4-cxx protobuf-lite-devel

Download the binaries.  Manually here or with wget.  Latest files should be on their github


Note if you don’t have wget installed, you can install it by running

sudo dnf install -y wget

Unzip the downloaded files

tar zxvf fedora27-x86_64.tar.gz

Change to the new directory

cd fedora

Launch the Raven Wallet GUI


Setup Android SDK with Unity

Download and install Android Studio from here

Open up Unity and go to Edit -> Preferences

In the Unity Preferences go to External Tools and under the Android heading under SDK click browse

Locate your Android SDK folder and select folder.  The SDK folder should be located under “C:\Users\User\AppData\Local\Android\Sdk”.  You can check where the Android SDK Location is in Android Studio under Configure -> SDK Manager.

Your preferences should look something like this.