Shop Mobile More Submit  Join Login
After spending days of trial and error, I have installed DAZ Studio 4.9.0.63 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;

\c Content

CREATE EXTENSION citext
 SCHEMA public
 VERSION "1.0";

ALTER ROLE dzcms
 SET search_path = dzcontent, public;

3. Modify PostgreSQL configuration to allow dzcms logon without password.
sudo -u postgres vi /etc/postgresql/9.4/main/pg_hba.conf
Change "md5" to "trust" for both IPv4 and IPv6 local connections:
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust

4. Restart PostgreSQL
sudo /etc/init.d/postgresql restart

5. Install DAZ Studio 4.9 by using wine as "Windows XP."  It is VERY IMPORTANT, I spent days to figure out why the CMS is not working just because I installed it by using wine as "Windows 7."

6. Setup DAZ Studio CMS connection before starting DAZ Studio.
Create the file .wine/drive_c/users/<your_linux_user_name>/Application Data/DAZ 3D/cms/cmscfg.json with the following contents:
{
  "Port" : 5432,
  "ConnectionURI" : "postgresql://dzcms@localhost:5432/Content"
}

7. Start DAZ Studio, the database Content should be populated after that.  You can check it by using psql command-line or pgadmin3 GUI.
Add a Comment:
 
:iconantadev:
antadev Featured By Owner Mar 21, 2017
Hi. Thanks a lot for this. I followed your guide exactly. But Daz studio doesn't 'see' the CMS, and complains.  I did some light research... when I run 'netstat -an |grep 5432' under linux I see no connection attempt from any application. Just the two lines LISTEN lines from postgresql, one for v4 and v6.
Then I attached strace to the running Daz3d exe. But that didn't show signs of network connection attempts either, though that is hard to discern in between all the rest... But I'm stuck I guess... if it -allegedly- doesn't even try to connect it's hard to debug... Any idea?
Reply
:iconamyaimei:
amyaimei Featured By Owner Mar 21, 2017
Please check this:

6. Setup DAZ Studio CMS connection before starting DAZ Studio.

Create the file .wine/drive_c/users/<your_linux_user_name>/Application Data/DAZ 3D/cms/cmscfg.json with the following contents:
{
  "Port" : 5432,
  "ConnectionURI" : "postgresql://dzcms@localhost:5432/Content"
}

There should be no space around the "@".
Reply
:iconarkbishop:
arkbishop Featured By Owner May 29, 2016  Hobbyist Digital Artist
This is cool, thanks for sharing
Reply
:iconamyaimei:
amyaimei Featured By Owner May 30, 2016
You're welcome.  I just got the latest DAZ Studio 4.9.2.70 (64-bit) running with Debian 8.4 (64-bit) and wine 1.9.10 (Staging) today!
Reply
:iconchanteur-de-vent:
Chanteur-de-Vent Featured By Owner Mar 7, 2016  Hobbyist General Artist
I wonder if the sliders are as buggy as in the 64 bit version. I managed to install DAZ 4.8 64-bit with wine-staging (there was a forum about it over at DAZ), but the sliders kept jumping back, even when holding the mouse. So if you keep the mouse button pressed, to slide the slider, it would sometimes jump back to the middle before you would release the button.

Drives me completely crazy. Is it also present in the 32bit version?
Reply
:iconamyaimei:
amyaimei Featured By Owner Mar 7, 2016
Could you share the link to the forum?  I would like to check it out.
I knew that if it is a VM, there are issues with the mouse.  I tried that with a Windows VM with a Linux host.  
In my case, the sliders are fine with 32-bit version DAZ Studio running with a 32-bit wine on a 64-bit Linux (Debian 8.3). 
I really like to see a native Linux version of DAZ Studio but I think it less likely to become reality. 
Reply
:iconchanteur-de-vent:
Chanteur-de-Vent Featured By Owner Mar 11, 2016  Hobbyist General Artist
It's this one: www.daz3d.com/forums/discussio…, although I think you've commented as one of the last people on it. If you dig through the long thread, you can find a clear instruction on how to install DAZStudio 4.8 with wine-staging on a 64-bit wine prefix.

I managed to do that, but as I said, the sliders are quite buggy. But if the 32-bit version is ok, then maybe I could drop the extra 4 gb, make a scene in 32bit version and then just render it in the 64bit version. I'm an Iray user, so I really need the 64bit. Even if the shaders need to be done in 64bit as well, there are no sliders involved in the process, so it should be fine. But try posing a dress when the sliders are all you have! 

I also am all in for native Linux version. Even a "one version only" and not supported one. I really wonder if we couldn't make a kickstarter goal or something for it, all DAZ needs is to make a cost estimation for one version. Then at least we would be safe for about 5 years or so. Actually DAZStudio is the only program keeping me glued to Windows, otherwise I would have switched completely already. 
Reply
:iconamyaimei:
amyaimei Featured By Owner Mar 11, 2016
I'm on the same boat too.  DAZ Studio is the only program that keeps me on Windows.  I wonder how different of making a Mac OSX version and a Linux version.
Thanks for the link.  In fact, I tried their steps but DAZ Studio 64-bit doesn't work in my Linux and wine setup.  That's why I posted recently to that discussion thread.  I don't have hardware to run DAZ Studio with Iray, 32-bit is fine for me.  I just upgraded to 4.9.1.30 without any issue.
Reply
:iconchanteur-de-vent:
Chanteur-de-Vent Featured By Owner Mar 14, 2016  Hobbyist General Artist
Did you use a normal wine installation or wine-staging, like the guy in the forum specified? My normal wine wouldn't take DAZ4.8 64-bit either, but wine-staging would. 

As for MAC vs Linux, they have different binaries unfortunately. I already tried to highjack the MAC version, but it wouldn't convert to linux. Yet, the Operating systems should be very similar, so I don't see why they couldn't make an effort at least once.
Reply
:iconamyaimei:
amyaimei Featured By Owner Mar 14, 2016
I'm using normal wine.  Thanks for the tips.  I may try the 64-bit version when I have time.
Reply
:iconchanteur-de-vent:
Chanteur-de-Vent Featured By Owner Mar 18, 2016  Hobbyist General Artist
Let me know how it works for you, especially if it works better than my Ubuntu. I still hope there is a Linux solution to the DAZ problem. :)
Reply
:iconamyaimei:
amyaimei Featured By Owner Apr 2, 2016
Ubuntu has software version later than Debian, which I am using.  I wonder if I will get better result than you.  I'll still exploring other distributions.
Reply
(1 Reply)
:iconareg5:
areg5 Featured By Owner Feb 28, 2016  Hobbyist Digital Artist
I know nothing about linux, but if it's 64 bit why run the 32 bit Daz?
Reply
:iconamyaimei:
amyaimei Featured By Owner Feb 29, 2016
There are some issues running 64 bit Windows program in Linux using wine (a Windows emulator).  That's the reason.
Reply
:iconareg5:
areg5 Featured By Owner Mar 1, 2016  Hobbyist Digital Artist
I see.
Reply
:iconwickedprince:
WickedPrince Featured By Owner Feb 28, 2016
Sounds like a scary project to me. Glad you were clever and courageous enough to get it to work. :)
Reply
:icondaywalker03:
daywalker03 Featured By Owner Feb 27, 2016  Hobbyist Digital Artist
How does it handle rendering? I'm assuming just 3Delight is available in the 32 bit version of DAZ Studio, of course.
Reply
:iconamyaimei:
amyaimei Featured By Owner Feb 27, 2016
It works well with 3Delight rendering.
I don't have a graphics card can handle Iray.  Therefore, I can't tell. 
Reply
:icongaffthehorse:
GafftheHorse Featured By Owner Edited Jul 23, 2016
Hi
Just got into Daz3d, been running 32bit on Archlinux successfully. Hopefully will get CMS running thanks to your journal entry.

I have the 64bit version installed, on a 64bit wine prefix, but running into problems with content, dim won't run for me on 64bit, there are issues with 32bit programs (which dim is) on 64bit wine prefixes.

As regards rendering. You can output on advanced render with 3Delight as rib files (www.daz3d.com/forums/viewthrea…) and use the native linux 3Delight renderer (I've managed to get a couple of more complex scenes done that way - and much quicker).

There's also a native Luxrender for linux (but you'd need the luxus package to write the lux native files for that). There don't appear to be packages for 3Delight or Luxrender in the Ubuntu repo though, as I have Ubuntu on a netbook, I checked, so it may not be in the debian repo). There might be an independant .deb though. I got them through the Archlinux AUR.
Reply
:iconamyaimei:
amyaimei Featured By Owner Jul 24, 2016
Which wine version are you using?  From what I have experimented, I noticed that the wine staging is the easiest one to have DAZ Studio 4.9 installed.  I'm currently using wine-1.9.14 (Staging) and DAZ Studio 4.9.2.70 Pro (64-bit)
Reply
:icongaffthehorse:
GafftheHorse Featured By Owner Jul 25, 2016
I have 1.9.15 and 1.9.13 installed currently for 64bit. Daz 4.9.2.70 is I think using 1.9.13. It was running fine last night for a while then crashed (I'll try again with a more minimal desktop or window manager (probably openbox). I'm using Playonlinux, winetricks on Archlinux on 4-core AMD system with ATI 'Kabini' GPU - OSS Radeon drivers.

Still have yet to sort out PostgresSQL. I'm reading up on it as I'm sure there is another way than giving PostgresSQL user sudo privileges, possibly using pam to permit access to needed files.

In the meantime I'm still experimenting with the 32bit version. The lack of CMS on the 32bit version is not much of an issue as DIM is available. DIM won't run on my 64bit prefix though, so I copied My Library over from the 32bit prefix as a stopgap measure to continue testing the 64bit version.

Really delighted with the native 'Linux 3Delight though, much faster and more reliable than through Daz3d. Itching to try out the native Luxrender, but I'd need the luxus package for that, and I'm not spending money until I've gotten more confidence in Daz3d 64bit on wine.
Reply
:iconamyaimei:
amyaimei Featured By Owner Jul 25, 2016
Are you able to follow my steps to use the Linux's PostgresSQL?
In order for the CMS installation to pass, do not give the PostgresSQL user sudo privileges, and make sure that the your wine is run as Windows XP mode.
Reply
:icongaffthehorse:
GafftheHorse Featured By Owner Jul 25, 2016
There is another set of instructions on page 6 of the 'Daz Studio and linux' forum of daz3d forums, I haven't followed either yours or it yet, I'm comparing the two. It was the other one that did www.daz3d.com/forums/discussio… (step 8). Yours are pretty clear though.

Basically I don't like running a lot of commands I don't fully understand on my system (they would not work verbatim anyway, Arch is a rolling distro, and already using SystemD not init, different package manager and package requirements, and a few paths might be different), so I have to review them first.

I'm reading through a few other guides to get a gist of the generic steps, first point wiki.archlinux.org/index.php/P…

Archwiki is a good info source for 'Linux info, even if you don't run that distro.

I run all 32bit applications in Windows XP mode in wine, Windows7 for 64bit.
Reply
:iconamyaimei:
amyaimei Featured By Owner Jul 26, 2016
In fact, archlinux is good for learning Linux.  I use Debian because it is very stable with my hardware.
Share your experiences when you can get it to work in your environment.
Reply
(1 Reply)
:iconmcmxc2:
MCMXC2 Featured By Owner Feb 27, 2016  Hobbyist Filmographer
Interesting... too bad it's just the 32 bit version, but it's worth a try, thank you!
Reply
:iconamyaimei:
amyaimei Featured By Owner Feb 27, 2016
All my tools are on Linux.  This is one step closer to using just one environment instead of dual boot the system.  It will save me a lot of disk space!
Reply
:iconmcmxc2:
MCMXC2 Featured By Owner Feb 27, 2016  Hobbyist Filmographer
Cool!
Reply
:iconamyaimei:
amyaimei Featured By Owner Feb 27, 2016
I'm not brave enough to try 64 bit wine with 64 bit DAZ Studio.
All these testings already distracted me from making the dress for G3F I started recently.
Reply
:iconmcmxc2:
MCMXC2 Featured By Owner Feb 27, 2016  Hobbyist Filmographer
... uhmmm... so... maybe it may work!
Reply
:iconamyaimei:
amyaimei Featured By Owner Feb 27, 2016
If you have time, try it and see if it will work.
For the 32-bit version, the most difficult part is to get the CMS installed and connected.
I checked the wine 64-bit bugs list at bugs.winehq.org/buglist.cgi?ke… before I started.
The issue with MSVC 2010 redistributables may make the CMS installation fails. 
Reply
:iconmcmxc2:
MCMXC2 Featured By Owner Feb 27, 2016  Hobbyist Filmographer
Damn:(
Reply
:iconamyaimei:
amyaimei Featured By Owner May 2, 2016
I tried the 64-bit version with wine 1.8.  It works!!!:happybounce: 
Reply
(1 Reply)
Add a Comment:
 
×

:iconamyaimei: More from amyaimei





Details

Submitted on
February 27, 2016
Link
Thumb

Stats

Views
2,649 (6 today)
Favourites
8 (who?)
Comments
57
×