Can’t find minimal tcmalloc on DragonFlyBSD

Quick note :

— Can’t find minimal tcmalloc
ERROR: Unable to find Intel TBB install directory.
CMake Error at CMake/HPHPFindLibs.cmake:296 (if):
if given arguments:

“LESS” “5005”

Unknown arguments specified
Call Stack (most recent call first):
CMake/HPHPSetup.cmake:125 (include)
third-party/CMakeLists.txt:18 (include)
— Configuring incomplete, errors occurred!
See also “/root/hhvm/hhvm/CMakeFiles/CMakeOutput.log”.
See also “/root/hhvm/hhvm/CMakeFiles/CMakeError.log”.

To solve that error :

# pkg install google-perftools
Updating Avalon repository catalogue…
Avalon repository is up-to-date.
All repositories are up-to-date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
google-perftools: 2.4

The process will require 5 MiB more space.
621 KiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching google-perftools-2.4.txz: 100% 621 KiB 79.5kB/s 00:08
Checking integrity… done (0 conflicting)
[1/1] Installing google-perftools-2.4…
[1/1] Extracting google-perftools-2.4: 100%

Building and Testing PHP 7 under DragonFlyBSD 4.0.5

DragonFlyBSD 4.0.5 is waiting for me to test it 🙂 . I love it for several factors :

  • Size; its iso file is light in size (only 200MB + in bz2 form)
  • Learning curve; no need to learn much as I’m familiar with FreeBSD 🙂

As I already try PHP7 in FreeBSD before :

  1. Install PHP 7 akan phpng on FreeBSD 10
  2. Using PHP 7 with lighttpd on FreeBSD 10

I want to test it in DragonFly BSD with nginx as web server. This time  I use virtualbox and I try Hammer File system (make sure to have minimum 50 GB in disk size to usse Hammer File System in DragonFly BSD).


With 60 GB in disk size and 2GB memory allocated to this virtual machine I’ll try PHP 7.


Installation step is no different like before.



DHCP for sure 🙂


Reboot it and change boot order to get start with next steps :

Login via ssh

$ ssh [email protected] -p 2222
The authenticity of host ‘[]:2222 ([]:2222)’ can’t be established.
ECDSA key fingerprint is bd:e0:2a:f5:44:86:8d:5a:cd:2a:56:26:6a:f1:08:ce.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘[]:2222’ (ECDSA) to the list of known hosts.
Permission denied (publickey).

Ups, I forgot to configure ssh server first after as post installation step in DragonFly BSD.

Retry login

$ ssh [email protected] -p 2222
[email protected]’s password:
Last login: Fri Jun 12 11:29:12 2015
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.

DragonFly v4.0.5-RELEASE (X86_64_GENERIC) #29: Sun Mar 22 17:42:50 PDT 2015

Welcome to DragonFly!

Need to see the calendar for this month? Simply type “cal”. To see the
whole year, type “cal -y”.
— Dru <[email protected]>

Looking around for hammer

# ps ax | grep hammer
-1 ?? B0L 0:00.00 (hammer-S3)
-1 ?? B0L 0:00.00 (hammer-S2)
-1 ?? B0L 0:00.01 (hammer-S1)
-1 ?? B0L 0:00.01 (hammer-S0)
-1 ?? B0L 0:00.01 (hammer-M)

# cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/serno/VBb247cd88-d6dc6e95.s1a /boot ufs rw 1 1
/dev/serno/VBb247cd88-d6dc6e95.s1b none swap sw 0 0
/dev/serno/VBb247cd88-d6dc6e95.s1d / hammer rw 1 1
/pfs/var /var null rw 0 0
/pfs/tmp /tmp null rw 0 0
/pfs/usr /usr null rw 0 0
/pfs/home /home null rw 0 0
/pfs/usr.obj /usr/obj null rw 0 0
/pfs/var.crash /var/crash null rw 0 0
/pfs/var.tmp /var/tmp null rw 0 0
proc /proc procfs rw 0 0

Well. Everything is on the right place 🙂

Lets get start install PHP 7 on DragonFly BSD :

# pkg update
Updating Avalon repository catalogue…
pkg: No address record
pkg: repository Avalon has no meta file, using default settings
pkg: No address record
pkg: Unable to update repository Avalon

Ups, looks like Avalon is not available at the moment.

My bad, I find out that nameserver is not work. Add Google public dns server.

# cat /etc/resolv.conf

Retry pkg update :

# pkg update
Updating Avalon repository catalogue…
Fetching meta.txz: 100% 264 B 0.3kB/s 00:01
Fetching packagesite.txz: 100% 4 MiB 138.8kB/s 00:34
Processing entries: 100%
Avalon repository update completed. 22075 packages processed

Continue reading

How to Permanently adjust screen brightness in Peppermint OS 5

My Dell laptop that running Peppermint OS 5 getting better each day. It can detect my wifi card and purge old one and that feature brought my brother in after frustrated for days with his Windows.

Another thing that I realize still need some work is brightness level. I must adjust brightness every time I restart my computer.

My current setting

$ cat /sys/class/backlight/acpi_video0/max_brightness
$ cat /sys/class/backlight/acpi_video0/actual_brightness

Yes, 6 is my preference level.

After look around I got the solution :

sudo add-apt-repository ppa:nrbrtx/sysvinit-backlight
sudo apt-get update
sudo apt-get install sysvinit-backlight

To check current brightness level using this script :

$ sudo service sysvinit-backlight status
Current brightness level for acpi_video0 = 6
Current brightness level for intel_backlight = 55

Well, good guess 🙂

Permanently save setting :

$ sudo service sysvinit-backlight stop
Saving acpi_video0 = 6
Saving intel_backlight = 55


Try restart my computer and it work perfectly 🙂

How to configure ssh access to virtualbox guest under NAT mode

Just quick note for my own 🙂

I need to ssh to my CentOS 6.6 box that run under Virtualbox with these steps :

1. NAT

Virtualbox will create private network using these address ( Just set eth0 configuration to DHCP and everything will be set.


2.  Port forwarding setup to port 2222

Click Setting -> Network -> Port Forwarding



3. Test ssh connection

ssh [email protected] -p 2222
The authenticity of host ‘[]:2222 ([]:2222)’ can’t be established.
RSA key fingerprint is ee:81:d0:da:7e:b4:fe:bc:cd:d7:93:e0:fc:c3:63:80.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘[]:2222’ (RSA) to the list of known hosts.

[email protected]’s password:
Last login: Tue Jun 2 10:57:58 2015
[[email protected] ~]#

[[email protected] ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:1F:5E:0D
inet addr: Bcast: Mask:
inet6 addr: fe80::a00:27ff:fe1f:5e0d/64 Scope:Link
RX packets:6410 errors:0 dropped:0 overruns:0 frame:0
TX packets:4175 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9148159 (8.7 MiB) TX bytes:234084 (228.5 KiB)

lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr: ::1/128 Scope:Host
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:600 (600.0 b) TX bytes:600 (600.0 b)

Of course the connection work on ‘temporary’ ip address. To make it permanent, editing /etc/sysconfig/ifcfg-eth0 needed to set ip address static.