Monday, October 17, 2016

Playing With Linux Vim

Vim Logo

Vim (Vi Improved) in a Unix/Linux text editor. It's an improved version of Vi and is used in most modern Linux distributions from the command line or as an independent graphical user interface application.

Vim has two modes, command mode and insert mode. Command mode is where you issue commands such as write, quit, search. And insert mode is where you edit the text file and delete or add characters.

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 ~all
Where 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!