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 Edited Apr 17, 2017
Hi. I realize this is somewhat off-topic, but it does play into this same subject matter... which is running Daz studio on linux.

After installing Daz studio under Wine, I wanted to start using luxrender and Reality. This causes me some headaches: Reality has to be installed in newer windows than XP, so I installed that under Win 7. That works. If you tell Reality to render the scene, it uses its bundled luxrender.exe windows executable. But that crashes directly after or during importing the scene. It isn't clear why, and google didn't give me (m)any links to how luxrender can work under Wine...
The other possibility is to not render using the bundled luxrender.exe windows executable but to export it, and render it under linux native. That however, leads to an unexpected issue: the models and props aren't all exported, many of the files in the export are just pointing back to the windows pathnames, so C:/users/antadev/My Documents/ etc. The upside is that the file is plain ascii, so some intelligent search and replace with for example 'sed' should make those paths linux-parseable, but it's still a pain, and a drawback since what I really wanted was rendering it on a different computer. This would necessitate copying or sharing all of the Daz studio library content with it, which is... well, unfortunate.

As long as the windows luxrender keeps crashing, using network rendering using that would seem impossible. That's sad because using network rendering would be the simplest.

I suppose converting the paths inside the .lxs file is for now the easiest thing to try... I can report back the results if desired. But it would be a hassle to do this every time.

I wonder if other people have worked with luxrender in combination with linux/wine, or are planning to, or are interested, so we can perhaps compare notes, tips, etc. Maybe someone solved it already?

[edit: darn... I should have posted this under the 64-bit thread. I'm using 64 bit Daz]
Reply
:iconamyaimei:
amyaimei Featured By Owner Apr 17, 2017
There is a Linux version of LuxRender, see www.luxrender.net/en_GB/standa…
I found some links you may be interested:
luxrenderds.deviantart.com/
deslea.deviantart.com/art/Tuto…
www.versluis.com/2014/11/how-t…

Sorry! I don't have experience with LuxRender.  I can't help you.
Reply
:iconantadev:
antadev Featured By Owner Apr 18, 2017
Hi.

Thanks for the help! Your first link was ancient. And the other ones do not talk about luxrender, but 3Delight. However! The versluis link is right on the money; it seeks to do exactly what I am trying to do, only in 3Delight instead of Luxrender. And, unavoidably, he ran into the very same problem as I did, and he describes a solution to it here: www.versluis.com/2015/06/how-t…
That is for 3Delight, not for luxrender. But, I think it's very useful still. Not only can I change render engine back to 3Delight, but it may offer some ideas and/or scripting that maybe can be reused. I just hope that still works as described now in 2017... I'll have to try this soon.
thanks...!!!
Reply
:iconamyaimei:
amyaimei Featured By Owner Apr 18, 2017
Thanks for the updates.  I read about some articles where the authors said the rib created by DAZ Studio only good for 3Delight.  Again these articles are old, I'm not sure if it is still the case.
Reply
:iconantadev:
antadev Featured By Owner Apr 18, 2017
Yes. Allow me to explain. The RIB is only good for 3Delight. And Reality is only good for Luxrender. But, both of these have an inherent problem: they do not bundle all the necessary materials like textures etc with their export file. So, if you render on the same system, with the same OS, they will follow the links to the library files and it will work. But, if you are on an other system, or an other operating system, the links will point nowhere. Linux doesn't know where to find a C: drive, and windows will not know where /var/lib/ is, to give an example.

So both of the render engine exports suffer from this issue.
However, for 3Delight, there is a helper script that gathers all the needed textures etc. and I found that script thanks to your link.  For Reality/Luxrender, there doesn't seem to be any helper script like this.

Thanks again, and all the best! You rendering with iray? My GPU isn't supported and the render times by CPU coupled with the fact that during the iray render my system is near-unusable drive me crazy. That is why I'm trying to offload the rendering.
Reply
:iconamyaimei:
amyaimei Featured By Owner Apr 18, 2017
I seldom use iray because I don't have the hardware to do it in a reasonable time.  Most of the time, I use 3Delight.
Reply
: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,833
Favourites
8 (who?)
Comments
63
×