Free $20 for DevOps Class – openbsd, freebsd, dragonflybsd and netbsd vps

Update : The offer seem no longer available.

I have to prepare for new class that required vps access. The class will teach unix based system like openbsd, freebsd, dragonfly bsd plus netbsd in 12 meets.

This class will be basic for devops but most important thing for me is my student can get full environment in every OS. Vps came to my mind and this March 2017 is really great since Vultr announce great news :

They double everything and they also provide ‘sanbox plan’ for beginner.

In nutshell you’ll get 1GB memory and 25Gb space vps on the OS you choose. SSD speed also superb :

dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 3.87756 s, 277 MB/s

For limited time Vultr offer free $20 that you can use for many things;

  • Set git server using gitlab.
  • Set up aws compatible cloud with minio
  • Testing zfs latest FreeBSD 12 vs Hammer in dragonflybsd
  • Tes mysql replicate while setting master in Germany Vps and mysql slave in Paris or Amsterdam.

Long time ago I’ll need $10 server to achieve that but now I just need $5 vps server /mo to get 1GB server which is awesome ๐Ÿ™‚

I just spread the news to let others know and grab your free $20 by using this link.

Long live the queen!

in Blog | 221 Words

Install Laravel Valet on macOS Sierra

Just quick note for myself when try Laravel Valet on macOS Sierra (10.12.2)

Installย  homebrew (if not installed) :

/usr/bin/ruby -e “$(curl -fsSL”

Install PHP 7.1


brew link libpng

Linking /usr/local/Cellar/libpng/1.6.28… 18 symlinks created

brew install homebrew/php/php71

test :

php -v

PHP 7.1.0 (cli) (built: Decย  2 2016 11:32:42) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies

Install Composer

brew install composer

Install Valet

composer global require laravel/valet
nano .bash_profile

Add this line :

export PATH=$PATH:~/.composer/vendor/bin


source .bash_profile
echo $PATH


valet install

[nginx] is not installed, installing it now via Brew… ?
[dnsmasq] is not installed, installing it now via Brew… ?

Valet installed successfully!

Start valet

valet start

Valet services have been started.

Install mysql

brew install mariadb
brew services start mariadb


in Blog | 163 Words

Hackintosh compatible laptops, will my laptop work?

My friend visit me yesterday after long time. He came with Macbook Pro and ask about a few unix command that he think I knew . In fact I never touch Mac OS system but I realized its not far from FreeBSD when we talk about terminal ๐Ÿ™‚

He told me that he decide to buy a Mac after struggle with hackintosh and due to lack of knowledge he admit that the process is not easy and he gave up. He want to document the process but he don’t have time. His brother seem attracted with the challenge and will continue the journey.

Apple OS X not allowed installed on non Apple hardware . For software license agreement click here.

I see it as challenge too and I prefer to collect all required information as part of preparation for Windows OS user andย  Laptop with intensive use.

Mental Preparation

Quick googling give me a fact that the process is not easy. Many people try to install it with great hope. Everything will be smooth and easy as Windows OS installation (only Next and choose Yes). In fact even after successful installation you’ll get another problem with wifi, touchpad and many more.

If you have working system using El Capitan then no need to rush for upgrade to Sierra unless you have strong reason ( Its a common to see too if something working well with Windows 7 not work with Windows 8 or Windows 10).

Time Preparation

Install fresh operating system (Windows or Linux Desktop) is easier for single OS. If you want dual booting system its more difficult since you need to learn about booting process (BIOS, UEFI etc). Time and patient needed also increased more for non familiar OS such Mac OS X.

If you busy then you will need to do it in free time and non stressful moment like weekend.

Hardware Preparation

Laptop is not same as PC where you can design it as you want. One component that I think I will need is 2nd hard drive for the following reasons :

  • my existing 750 GB hard drive almost full with os iso files (various linux distro).
  • SSD getting cheaper now. Adding HDD Caddy to replace Optical drive (CDROM) is perfect option.
  • I can use Optical Drive as external using sata optical drive usb cable.
  • I can experiment with hackintosh with this 2nd drive . When its fail I can retry it anytime without worry.

Knowing Laptop Specification

Know my laptop specification is the essential part. If I get stuck I can get help by supplying the information. Continue reading

How to open a port on Centos 7

Today I need to open a port on my Centos 7 box and I’m glad I know nothing but iptables which is give me ‘silent’ result ๐Ÿ™‚ . After digging a few command from Redhat documentation I found its extremely easy.

As usual I make my note here for my future reference in case I need copy and paste method :-).

Centos 7 comes with firewalld by default. Its use firewall-cmd . For my need to open port 8082 tcp then I just need to type :

firewall-cmd –get-active-zones

interfaces: eth0

Yes, I only have ‘public’ zone.

To open port 8082 :

firewall-cmd –zone=public –add-port=8082/tcp –permanent


Save it.

firewall-cmd –reload

To check if this port (8082) is opened :

firewall-cmd –zone=public –list-all

public (default, active)
interfaces: eth0
services: dhcpv6-client http ssh
ports: 3306/tcp 53/udp 8082/tcp
masquerade: no
rich rules:

Yes, 8082 listed.

Very neat in my opinion ๐Ÿ™‚


systemctl status firewalld

firewall-cmd –state

for check if the service (firewalld) run

Fix error: could not open file /var/lib/pacman/sync/apricity-core.db: Unrecognized archive format error

I don’t know what I’ve done when I want to upgrade android studio on my apricity box. The error is clear :

error: could not open file /var/lib/pacman/sync/apricity-core.db: Unrecognized archive format

The solution actually easy ๐Ÿ™‚

# rm -R /var/lib/pacman/sync/

and then

# pacman -Syuf

save and still see error ๐Ÿ™‚

Well, all solved after follow this guide carefully.

Case closed!