Don’t update my resolv.conf

Yesterday my cousin borrow my laptop. Using guess account on my peppermint OS 5 He surf many site without hassle. This morning I got problem with dns. I see many messages around ‘dns probe no internet’ . I guess my cousin doing something with laptop but when I see my dig result i got nothing.

Try cat /etc/resolv.conf I see no nameserver beside 127.0.0.1 which is common . I decide to add more entry :

# cat /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
nameserver 192.168.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4

save the file.

# resolvconf -d IFACE wlan0 --disable-updates

done.

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).

dflybsd405_hammer

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

dflybsd405_specs

Installation step is no different like before.

dflybsd405_user

 

DHCP for sure :-)

dflybsd405_dhcp

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

Login via ssh

$ ssh alam@127.0.1.1 -p 2222
The authenticity of host ‘[127.0.1.1]:2222 ([127.0.1.1]: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 ‘[127.0.1.1]: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 alam@127.0.1.1 -p 2222
alam@127.0.1.1’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 <genesis@istar.ca>
>

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: http://mirror-master.dragonflybsd.org/dports/dragonfly:4.0:x86:64/LATEST/meta.txz: No address record
pkg: repository Avalon has no meta file, using default settings
pkg: http://mirror-master.dragonflybsd.org/dports/dragonfly:4.0:x86:64/LATEST/packagesite.txz: 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
nameserver 127.0.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4

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
100
$ cat /sys/class/backlight/acpi_video0/actual_brightness
6

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
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
save
Saving acpi_video0 = 6
Saving intel_backlight = 55

Nice.

Try restart my computer and it work perfectly :-)