How to install virtual Ftp hosting with PureFTP on FreeBSD 10 : Part 2 – TLS & Unix Auth

In 1st part of this post I have very general setting for pure-ftp configured. In this post we’ll explore about testing functionality of this ftp server using simple auth plus how configure TLS section.

To test the server I need to add user. I used to use sysinstall for this purpose but since sysinstall no longer available on FreeBSD then I use bsdconfig.

Introduce bsdconfig

From bsconfig manual :

bsdconfig is used to set up many system configuration settings, both for
new systems, as well as changing configuration settings of existing systems.

bsdconfig optionally takes    a command as an    argument.  If invoked with no arguments,
it will bring up an interactive    menu listing the available modules.

I like gui version so I type bsdconfig or you can use full path : /usr/sbin/bsdconfig

If not available you can install it.

From ports

# /usr/ports/sysutils/bsdconfig && make install

From pkg

# pkg install bsdconfig

For pure-ftp purpose I need bsdconfig for add new user :


Choose “Login/Group Management”

bsdconfig as sysinstall replacement

Continue reading

in Blog | 800 Words

How to install virtual Ftp hosting with PureFTP on FreeBSD 10 : Part 1 – Setup

My friend who work as R & D for small company told me about new policy from their management. Every one must backup their work once in a week and that backup also include internet backup. Such solution like dropbox is not allowed since their management a bit worry about control. What if they need to conduct audit of their backup or see bad pattern from there. One of management person told him about FTP as alternative that located in vps. Since my friend never use ftp before he ask me to create demo for him. Not a big deal since I ever work with such solution, utilize pureftp as ftp server and mysql as database server where they store user information like directory, password etc. In this post I’ll use FreeBSD 10 as operating system.


I use Vultr as vps provider. In reality I should use their ‘strorage series‘ that utilize sata storage. But for demo purpose and speed access. I choose performance series.

How to install virtual Ftp hosting with PureFTP on FreeBSD 10 : choose storage series

Operating system

FreeBSD 10 x64 with latest patch (automatic freebsd-update using posti install) from vultr.

Continue reading

DragonFlyBSD pkg : initial impression

After use pkg in FreeBSD 10 and very satisfied with the result I feel curious about its brother, DragonFlyBSD.

I install DragonFlyBSD 3.8.2 using 32 bit inside my virtualbox ( I think its same if I run with vps that provide custom iso like vultr).

After configure ssh server for network access, I start test pkg command :

$ ssh alam@
alam@’s password:
Last login: Tue Oct 21 08:17:01 2014
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California.  All rights reserved.

DragonFly v3.8.2-RELEASE (GENERIC) #7: Thu Aug 14 21:26:32 PDT 2014

Welcome to DragonFly!

To erase a line you’ve written at the command prompt, use “Ctrl-U”.
— Dru <>
> su

# pkg update
Updating repository catalogue
pkg: Not Found
pkg: repository Avalon has no meta file, using default settings
Fetching digests.txz: 100% of 977 KB
Fetching packagesite.txz: 100% of 4 MB

Adding new entries: 100%
Incremental update completed, 20921 packages processed:
0 packages updated, 0 removed and 20921 added.
dflybsd# pkg info

bind98-9.8.7P1_5               BIND DNS suite with updated DNSSEC and DNS64
ca_root_nss-3.16.1             The root certificate bundle from the Mozilla Project
cdrtools-3.00_2                CD/DVD/BluRay and ISO-9660 image creation and extraction tools
curl-7.37.1_2                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
cvsps-2.1_1                    Create patchset information from CVS
expat-2.1.0_1                  XML 1.0 parser written in C
gettext-             GNU gettext package
git-2.0.2                      Distributed source code management tool
indexinfo-0.2                  Utility to regenerate the GNU info page index
isc-dhcp42-server-4.2.6_2      The ISC Dynamic Host Configuration Protocol server
libxml2-2.9.1_1                XML parser library for GNOME
openssl-1.0.1_13               SSL and crypto library
pkg-1.3.6                      Package manager


Preinstalled package after I type pkg update is more than FreeBSD offer but I like it, I have git, curl and bind out of box 🙂

See what version of compiler DragonFlyBSD use

# cc -v
Using built-in specs.
Target: i386-pc-dragonflybsd
Configured with: DragonFly/i386 system compiler (c, c++, objc, LTO)
Thread model: posix
gcc version 4.7.3 [DragonFly] Release/2013-04-11

Try find wordpress

# pkg search wordpress


Looks like the version is bit out date but not big problem for me as wordpress provide easy upgrade procedure.

Good news for me is PHP also available in 5.2 version.

Try install it via pkg

# pkg install php52
Updating repository catalogue
pkg: Not Found
pkg: repository Avalon has no meta file, using default settings
Avalon repository is up-to-date
All repositories are up-to-date
The following 1 packages will be affected (of 0 checked):

New packages to be INSTALLED:
php52: 5.2.17_15

The process will require 7 MB more space
1 MB to be downloaded

Proceed with this action [y/N]: y
Fetching php52-5.2.17_15.txz: 100% of 1 MB
Checking integrity… done (0 conflicting)
[1/1] Installing php52-5.2.17_15: 100%

I don’t understand about error message above (Avalon has no meta file) so I ignore it 🙂

Looks like I love DragonFlyBSD too. Same pkg and no hard learning curve 🙂

How to install latest WordPress on FreeBSD 10 : enable web server

In my last post I decide to investigate how to install wordpress on FreeBSD 10 (latest version of FreeBSD at the moment). I use two methods of installation; first using ports and second using pkg. After try it myself I prefer to use pkg for future deployment for following reason :

  1. Fast installation; you don’t have to wait for hours as you did with ports.
  2. More secure; you have binary package. No need for compiler stuff installed in my server.

Of course ports can supply you with so many different options with its dialog but as Michael W Lucas said, he prefer to do other job that pay his bills than watch compile process. Me too 🙂

Ok, back to wordpress. Last install is not complete one as I don’t see web server and database.

pkg info result

# pkg info

ca_root_nss-3.17.1             The root certificate bundle from the Mozilla Project
curl-7.38.0_2                  Non-interactive tool to get files from FTP, GOPHER, HTTP(S) servers
freetype2-2.5.3_2              Free and portable TrueType font rendering engine
jpeg-8_5                       IJG’s jpeg compression utilities
kbproto-1.0.6                  KB extension headers
libICE-1.0.9,1                 Inter Client Exchange library for X11
libSM-1.2.2_2,1                Session Management library for X11
libX11-1.6.2_2,1               X11 library
libXau-1.0.8_2                 Authentication Protocol library for X11
libXaw-1.0.12_2,2              X Athena Widgets library
libXdmcp-1.1.1_2               X Display Manager Control Protocol library
libXext-1.3.2_2,1              X11 Extension library
libXmu-1.1.2_2,1               X Miscellaneous Utilities libraries
libXp-1.0.2_2,1                X print library
libXpm-3.5.11_2                X Pixmap library
libXt-1.1.4_2,1                X Toolkit library
libpthread-stubs-0.3_6         This library provides weak aliases for pthread functions
libxcb-1.10_2                  The X protocol C-language Binding (XCB) library
libxml2-2.9.1_1                XML parser library for GNOME
pcre-8.35_1                    Perl Compatible Regular Expressions library
php5-5.4.33_1                  PHP Scripting Language
php5-curl-5.4.33_1             The curl shared extension for php
php5-gd-5.4.33_1               The gd shared extension for php
php5-mysql-5.4.33_1            The mysql shared extension for php
php5-tokenizer-5.4.33_1        The tokenizer shared extension for php
php5-xml-5.4.33_1              The xml shared extension for php
php5-zip-5.4.33_1              The zip shared extension for php
pkg-1.3.8_3                    Package manager
png-1.5.18                     Library for manipulating PNG images
printproto-1.0.5               Print extension headers
t1lib-5.1.2_4,1                Type 1 font rasterization library for Unix/X11
wordpress-4.0,1                State-of-the-art semantic personal publishing platform
xextproto-7.3.0                XExt extension headers
xproto-7.0.26                  X11 protocol headers

Lets continue : Continue reading

How to install WordPress on FreeBSD 10

As one of the famous content management system WordPress is one my favourite since 2007 (this blog use serendipity , blogspot custom domain then change to wordpress) and stick to it till now. For me this software is simple to use and I can handle the maintenance.

This time I’ll show how to install wordpress on FreeBSD 10 using two methods : ports and pkg way.

For this purpose I use FreeBSD 10 provided by vultr. I use 768 MB VPS located on New Jersey.

Update FreeBSD

# freebsd-update fetch

# freebsd-update install

# uname -a

FreeBSD 10.0-RELEASE-p9 FreeBSD 10.0-RELEASE-p9 #0: Mon Sep 15 14:35:52 UTC 2014  amd64

Continue reading