After spending days of trial and error, I have installed DAZ Studio 184.108.40.206 for Windows (32-bit) on Linux (Debian 8.3 64-bit). The DAZ CMS is connected to the PostgreSQL running on Linux.
Now it is in working condition, I can use the DAZ Connect on it too.
I would like to share the steps I performed. The following steps assumed wine is already installed.
0. Use winetricks to get the followings: vcrun2005, vcrun2010, d3dx9
1. Install PostgreSQL
sudo apt-get install postgresql postgresql-contrib-9.4
sudo apt-get install pgadmin3
Notes: pgadmin3 is optional.
2. Setup DAZ Studio Content DB
sudo -u postgres psql
CREATE ROLE dzcms LOGIN
SUPERUSER INHERIT CREATEDB CREATEROLE REPLICATION;
CREATE DATABASE "Content"
WITH OWNER = dzcms
ENCODING = 'UTF8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
CREATE EXTENSION citext
ALTER ROLE dzcms
SET search_path = dzcontent, public;