Ubuntu Server 16.04 firewall UFW configure

Ubuntu using UFW, I found it is easy to config for most of the people.

Here is my basic example configure:

First install ufw:

Which also installed the iptables package.

Then check the status:

Shout be disabled for fresh setup.

Next all my configure and enable ufw at the END:

Final status should looks like this:

Clean up Ubuntu Server 16.04 after installation

Just want share my first todo after a fresh new Ubuntu Server 16.04 installation:

Remember check the file list before remove it if you are not sure what the package does:

I do this on a VM, therefor:

1.No require of LVM, because I just using the bare EXT4 filesystem.
2.MDadm for raid, no need for a VM.
3.LXD and SNAP, I don’t need run vms inside this VM.
4.grub-legacy-ec2 is for Amazon EC2, since this is a VMware VM it can be purge.

Only do these if you know what you are doing, run by your own risk.

Please let me know if you have any questions.

HHVM 3.18.0 crash on Ubuntu 16.04 with Nginx

Just try to bring up an new HHVM host on Ubuntu 16.04 with Nginx.

But HHVM keep crush error in /var/log/hhvm/error.log
It created error log in /tmp

Here is a example:

Run ls -alt /var/run/hhvm
Since upgrading to 3.18, hhvm is unable to open hhvm.hhbc as it is created as root instead of www-data.

For now the workaround is to add the following to your configuration: /etc/hhvm/server.ini

Restart the HHVM service.

And it works.

Hope HHVM team can fix it in the next release.

Reference: https://github.com/facebook/hhvm/issues/7674

HHVM 3.14 update missing error while loading shared libraries: libdouble-conversion.so.1 and liblz4.so.1

One of my Ubuntu 14.04 LTS server running HHVM for a while.
Recently the 3.14 update just came, after upgrade the HHVM won’t start:

Than I installed the libdouble-conversion library:

But still no luck:

I have to install liblz4 to fix it:

I noticed my Debian 8 Jessie server doesn’t have this issue, only the Ubuntu 14.04 LTS.

Just a heads up for every one test your code and server before you upgrade the production system.

I like (not love anymore, since version 3.10) HHVM, but it got some quality issues since Version 3.10.
Hope it just a temporary thing.

I will keep support HHVM but not suggest it in production system.

Have a nice weekend!

FreeRDP redirect Sound Audio Ubuntu

I need able to hear from the Windows Remote Desktop applications from FreeRDP in Ubuntu 14.04.

Here is my script:


Force Citrix Receiver for Linux not in full screen

Follow the Citrix Receiver for Linux OEM’s Reference Guide

I changed 3 parameters to force Citrix Receiver not start Full Screen but 1024*768 windowed.

Please notice if you already run the Citrix Receiver by local “User”, you may have to change the file in the /home/USERNAME/.ICACLIENT/config/All_Regions.ini

Linux Half-Life Dedicated Server Counter-Strike Server

Note 0: The old hldsupdatetool not longer works!!!!

It’s a lot to cover.
For now, only reference links:



How to install Counter-Strike 1.6 Server


I spin an new Ubuntu VM.
Note 1: 32bit is easier because of no lib32gcc1 required.
Download SteamCMD.

Note 2: for Counter-Strike: Condition Zero Dedicated Server

Note 3: for Counter-Strike Global Offensive Dedicated Server

Note 4: for Counter-Strike: Source Dedicated Server

Cisco VPN on Ubuntu 14.04 pcf convert to vpnc.conf

  1. First Install vpnc client
  2. Then convert a pcf to a vpnc configuration
  3. Copy the file to /etc/vpnc.conf then run vpnc
  4. To disconnect vpn connection

Magento on HHVM 3.3 Nginx 1.6 on Ubuntu 14.04 trusty

No more Varnish! Love HHVM!

1.First this VPS box running Ubuntu 14.04 trusty 64 bit with 2 GB Memory and 2 Core CPU.
Please follow HHVM, Nginx and MariaDB ‘s offical installation guide to install:

After installation I have these files under /etc/apt/sources.list.d/:



At this moment I have the version:

2.Share my Nginx config file:




3.My HHVM config file:



Thank you for the kind sharing from:

HHVM, MariaDB and Nginx Make WordPress Fly – Intro

Install HHVM, Nginx on Ubuntu 14.04 – Make WordPress Fly


HHVM Nginx WordPress a working tutorial


Fix HHVM 3.3 Bad Gateway error Debian Ubuntu

Found HHVM upgrade to 3.3 on Ubuntu Server 14.04 LTS:

The web server shows: Bad Gateway.

Try restart HHVM:

Install libgmp10 package, restart HHVM solve the problem: