Sunday, July 31, 2016

Installing a Signed SSL Certificate For Openfire 4 on CentOS

Openfire Logo


Openfire is a real time collaboration application server written in Java.

Checking Installed Certificates

To check for the installed certificates, run the following command:
/opt/openfire/jre/bin/keytool -list -v -keystore /opt/openfire/resources/security/keystore


The default password is changeit

Wednesday, June 22, 2016

Installing TWRP and Updating to Marshmallow ZUI 2.0 on Lenovo Zuk Z1

lenovo zuk z1

The Problem

I bought my Zuk Z1 from China, Ali Express, it came with Android Lolipop and ZUI 0.9.096.
Initially, I wanted to use ADB and Fastboot to unlock the bootloader and flash a new upgraded ZUI. Unfortunately, the phone, somehow, wouldn't unlock. I was able to see it with adb when it was powered on, however, when it was in fastboot mode, adb and fastboot were unable to detect it, despite trying different drivers.


Thursday, March 24, 2016

Blocking All Internet Access Except Specific Programs in Windows

Windows Firewall

Blocking All Connections and access to Internet

  1. Go to "Windows Firewall with Advanced Security"
  2. Action => Properties
  3. In Domain Profile, Private Profile and Public Profile, Select "Block" next to Outbound Connections

Friday, February 12, 2016

Pimping My Remote Control Car



Time to mess with some electronic components and pimp my Porsche remote car

Getting the LEDs and Resistors Ready

Saturday, January 2, 2016

Hardening PHPMyAdmin Installation

phpmyadmin logo

PHPMyAdmin is written in PHP and provides a user friendly interface that facilitates the database management, database optimization and query executions. However, the default settings of PHPMyAdmin are not secure and are vulnerable to several type attacks.

Saturday, December 12, 2015

Configuring SPF on Virtualmin

Configuring SPF in Virtualmin

What is SPF?

Sender Policy Framework (SPF) is an anti spamming technique that detects email spoofing and verify the sender's IP address, thus allowing only specific server(s) to send on behalf of a domain.

Configuring SPF:

1- Make sure you have a valid hostname and it's resolving to your server's main IP.
2- To check or change your hostname, go to Webmin => Networking => Network Configuration => Hostname and DNS Client.

Virtualmin SPF

3- Add the below to your domain records as a SPF or TXT record.
v=spf1 a mx ip4:xxx.xxx.xxx.xxx ~all
Where xxx.xxx.xxx.xxx is your server's main IP address.
Do this for every domain name you have it hosted in your virtualmin.


The below flowchart shows how SPF works:


SPF Flow


Question? Please leave a comment below!

Tuesday, August 25, 2015

Fix Yum Update Duplicate Packages Issue

Yum logo

First install yum utils if it's not installed
yum install yum-utils

1- Second, start with
yum-complete-transaction
yum update

2- If that doesn't work, try
yum clean all
yum update

3- If the above doesn't work, try the below:
yum update --skip-broken