How to install FreeBSD 10 step by step

Horray, FreeBSD 10 is out and ready to serve as usual :-) .  After getting iso file for i386 I quickly set Virtualbox using memory 512MB and space 20GB plus setting ethernet as Bridge. Fire up start button bring me to installation screen. Major release always excite me and I try to document installation process in case others need it.

Lets get start :

By default Virtualbox will set iso file as first boot device and I get this screen.


Let the default option or wait for autobot. Press Space to pause and choose other option.

read more »

Configure SSH Server on DragonFlyBSD After First Time Installation

I used to access server via ssh after first time installation of an server and since I use ‘common’ IP then I get famous message.

Get rid of that message :

$ ssh-keygen -f "/home/alamsyah/.ssh/known_hosts" -R
/home/alamsyah/.ssh/known_hosts updated.
Original contents retained as /home/alamsyah/.ssh/known_hosts.old

Then I try ssh

$ ssh alam@
The authenticity of host ‘ (’ can’t be established.
ECDSA key fingerprint is 25:e4:32:fb:04:35:f8:63:fb:28:d9:55:2d:51:1e:8d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘’ (ECDSA) to the list of known hosts.
Permission denied (publickey).

Ups, Permission denied.

After google and read manual I got solution for editing ssh configuration


Yes, ee is exist here in case you wondering about text editor here :-)


Change “PasswordAuthentication” value from no to yes and save the file starting by press ESC button.

Restart ssh service


Retry ssh access from terminal or putty

$ ssh alam@
alam@’s password:
Last login: Thu Jan 16 11:24:46 2014
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.

DragonFly v3.6.0-RELEASE (GENERIC) #10: Sun Nov 24 07:57:21 PST 2013

Welcome to DragonFly!

Having trouble using fetch through a firewall?  Try setting the environment
variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details.
> su

Great. This step give me more confident to explore the machine.

Install DragonFlyBSD part 2

At previous post I already show about requirement and installation steps of DragonFly BSD till configure area. In this post I’ll continue with Configuration of system. Lets get start.

DragonFly BSD provide the options via ‘sysinstall’ looks like interface as seen on this picture.


Configure TimeZone

Click on “select timezone” to configure timezone.

read more »

Install DragonFlyBSD part 1

Since first release I always want to try how DragonFlyBSD work. DragonFlyBSD that I call DFLYBSD is FreeBSD 4.8 version that evolved into new operating system with their own filesystem called HammerFS but of course UFS still supported.
I have spare time and want to install latest version (in time of writing I download version 3.6.0) on my VirtualBox under Ubuntu 13.04 Desktop.

So here we go :

1. Download latest version from here.

2. Create Space on VirtualBox with memory 512MB and 10GB hard disk plus bridge ethernet connection.

3. Use CD connect to iso file and start the machine.


Type ‘installer’ and hit Enter button.

read more »

Install Varnish with Apache on FreeBSD 9.2

Today I want to try to install Varnish on FreeBSD. A few scenarios  on my mind. Install varnish with nginx, lighttpd or cherokee with different port under Apache as front end. Due to lack of experience with Varnish I’ll start with Varnish using Apache first. Others will follow :-)

Lets get started

Check Apache installation

# pkg_info | grep apache
apache22-2.2.26     Version 2.2.x of Apache web server with prefork MPM.

Check location of varnish

# whereis varnish
varnish: /usr/ports/www/varnish

Install varnish

# cd /usr/ports/www/varnish && make install


This port has installed the following files which may act as network
servers and may therefore pose a remote security risk to the system.

This port has installed the following startup scripts which may cause
these network services to be started at boot time.

If there are vulnerabilities in these programs there may be a security
risk to the system. FreeBSD makes no guarantee about the security of
ports included in the Ports Collection. Please type ‘make deinstall’
to deinstall the port if this is a concern.

For more information, and contact details about the security
status of this software, see the following webpage:

Check it

# pkg_info | grep varnish
varnish-3.0.4       The Varnish high-performance HTTP accelerator

Configure Varnish

Add varnish on rc.conf

# echo 'varnishd_enable=YES' >> /etc/rc.conf

Starting Varnish

# /usr/local/etc/rc.d/varnishd start
Starting varnishd.
Classic hash: 16383 buckets

Check if varnish really run?

# /usr/local/etc/rc.d/varnishd status
varnishd is not running.


View varnish configuration

# ee /usr/local/etc/varnish/default.vcl

Inside the file I see these :

 # Default backend definition.  Set this to point to your content
# server.
# backend default {
#     .host = “”;
#     .port = “8080”;
# }

It means the content need to run on port 8080.

Remove all # mark to be like this :

backend default {
.host = “”;
.port = “8080”;

save the file.

Change apache configuration to run on port 8080.

# ee /usr/local/etc/apache22/httpd.conf


Listen 80


Listen 8080

save the fle.

Restart apache

# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 770.
Performing sanity check on apache22 configuration:
Syntax OK
Starting apache22.

# ps -ax | grep httpd
944 ??  Ss    0:00.11 /usr/local/sbin/httpd -DNOHTTPACCEPT
945 ??  S     0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
946 ??  I     0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
947 ??  I     0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
948 ??  I     0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT
949 ??  I     0:00.00 /usr/local/sbin/httpd -DNOHTTPACCEPT

Retry to run varnish

# /usr/local/etc/rc.d/varnishd start
Starting varnishd.
Classic hash: 16383 buckets

Check varnish
# ps -ax | grep varnish
963 ??  Ss    0:00.00 varnishd: Varnish-Mgr (varnishd)
964 ??  S     0:00.03 varnishd: Varnish-Chld (varnishd)
966  0  R+    0:00.00 grep varnish

Check Varnish

Check via phpinfo file, I can see it run on Varnish :


Interesting. I’ll continue this experiment with different web server as soon as possible.

See you.

P.S : you can enable varnish log

# echo 'varnishlog_enable=YES' >> /etc/rc.conf
# /usr/local/etc/rc.d/varnishlog start
Starting varnishlog.