Daz Studio and Linux

1202123252654

Comments

  • mjc1016mjc1016 Posts: 15,001

    The reason why the Windows version doesn't work is it gets confused with the way WINE handles the permissions...

  • Ah, well, that's more than I knew before.  Thanks.  I knew there had to be a reason.  I just didn't know what it was.  Would it help at all to completely delete that folder with the windows version of postgresql?  I'm pretty sure it is connecting to the Linux version, it just won't populate or access the database I set up for it for some as yet unknown reason.

  • Quick question. I've come across a lot of files that are running amok with case which Windows doesn't care about and will still find the files.  Linux does care about case.  If I go through and fix my files, am I going to have to be careful about updates for those old poser files?

    Example:  Plushies are in the Poser Runtime.  First I need to change the mat files from .mt5 to .mc6.  I'm guessing those might be safe because even if those get updated DIM will update the .mt5 files and leave my .mc6 files alone.  But, in this case, I also have to go in and change the .cr2 file change a couple of file locations because the .cr2 says the file should be in textures:Littlefox... and is actually in Textures:Littlefox...  So will updates, cancel out my changes to those files?  At some point, I'll go in and save everything as a presets so that i have them in a .duf format, but will updates for any of the modified files also mess with the .duf presets I save or will they be independent of the things in the poser files?

    I'm working on a script to help do most of the leg work, but, still, I don't want to have to do this again if updates are going to break what I fix so the files all work in Linux.

  • mjc1016mjc1016 Posts: 15,001

    Don't go changing the cr2s...it's just asking for trouble down the road (yeah, updates and such).

    Make sure you have only 1 of each Daz format and each Runtime (Poser) directory.  Studio doesn't really care if it's textures or Textures...it will find it if the location says Textures and all you have is textures.  It's having both that will cause the most problems.  So pick a case (most things that are coming out lately are Cap-lower/Cap-lower/Cap-lower.lower format, so that would make the most sense and the most compatible for DIM.  One notable exception...the /data directory is all lower.  Be warned  some store items are DAZ 3D and others are Daz 3D (I think most are the second, at least G3 items...).  

     

  • mjc1016 said:

    Don't go changing the cr2s...it's just asking for trouble down the road (yeah, updates and such).

    Make sure you have only 1 of each Daz format and each Runtime (Poser) directory. 

    One each of what directory?  Like if there was a directory in Poser that says Texture and one that says texture, combine them and only have one?  Or do you mean something else?

    mjc1016 said:

    Studio doesn't really care if it's textures or Textures...it will find it if the location says Textures and all you have is textures.  It's having both that will cause the most problems.  So pick a case (most things that are coming out lately are Cap-lower/Cap-lower/Cap-lower.lower format, so that would make the most sense and the most compatible for DIM.  One notable exception...the /data directory is all lower.  Be warned  some store items are DAZ 3D and others are Daz 3D (I think most are the second, at least G3 items...).  

    Right now I'm just dealing with Poser stuff.  DS seems to be able to find most of the things that are in DS formats.  I did have one or two figures which were in DS format and still seem to want to try and find a file in the Poser Runtime, though.  I'm not sure why that is.

     

  • fixmypcmikefixmypcmike Posts: 19,583

    Connect does everything lower-case, so that might be the best standard to use.

  • mjc1016mjc1016 Posts: 15,001
    edited November 2016

    Connect does everything lower-case, so that might be the best standard to use.

    I didn't know that Connect did all lower case...

    But DIM still does mixed and I use DIM mostly.

     

    mjc1016 said:

    Don't go changing the cr2s...it's just asking for trouble down the road (yeah, updates and such).

    Make sure you have only 1 of each Daz format and each Runtime (Poser) directory. 

    One each of what directory?  Like if there was a directory in Poser that says Texture and one that says texture, combine them and only have one? 

    Exactly...just one textures directory and do that for each directory in your Runtime.

     

    Post edited by mjc1016 on
  • mjc1016 said:

    Connect does everything lower-case, so that might be the best standard to use.

    I didn't know that Connect did all lower case...

    But DIM still does mixed and I use DIM mostly.

     

    mjc1016 said:

    Don't go changing the cr2s...it's just asking for trouble down the road (yeah, updates and such).

    Make sure you have only 1 of each Daz format and each Runtime (Poser) directory. 

    One each of what directory?  Like if there was a directory in Poser that says Texture and one that says texture, combine them and only have one? 

    Exactly...just one textures directory and do that for each directory in your Runtime.

     

    Yeah, I don't have Connect working yet, so DIM is all I can use right now.  There aren't that many things in the textures folder.  I can move them to the other Textures directory and make sure everything stills works.  I'll test it out tomorrow when I get home.

    Wish I could get CMS working, but so far no luck. I might take another look at that this weekend, too.

  • fixmypcmikefixmypcmike Posts: 19,583

    I was just mentioning it because it suggests that if Daz 3D does develop a Linux version or updates the DIM zips to address case-sensitive systems, all lower-case is the most likely way they would go.

  • mjc1016mjc1016 Posts: 15,001

    It would be nice...then only the freebies and other store items would need adjusting, but a simple bulk file tool would work. 

  • Ah, would love a native Linux version of DS!  Until then, I'm muddling through, mostly.  :)

  • nicsttnicstt Posts: 11,715

    I was just mentioning it because it suggests that if Daz 3D does develop a Linux version or updates the DIM zips to address case-sensitive systems, all lower-case is the most likely way they would go.

    I wish they would; hell I'd consider paying for it.

  • nicstt said:

    I was just mentioning it because it suggests that if Daz 3D does develop a Linux version or updates the DIM zips to address case-sensitive systems, all lower-case is the most likely way they would go.

    I wish they would; hell I'd consider paying for it.

    Yep, me, too, as long as it wasn't ridiculously priced.

  • AllenArtAllenArt Posts: 7,169

     

     

    nicstt said:

    I was just mentioning it because it suggests that if Daz 3D does develop a Linux version or updates the DIM zips to address case-sensitive systems, all lower-case is the most likely way they would go.

    I wish they would; hell I'd consider paying for it.

    Yep ;)

    Laurie

  • Kendall SearsKendall Sears Posts: 2,995
    edited November 2016

    For the case issues, just use symlinks.  They work perfectly. "man ln" from the command line will answer your questions.  You want the -s option.

    Kendall

    Post edited by Kendall Sears on
  • For the case issues, just use symlinks.  They work perfectly. "man ln" from the command line will answer your questions.  You want the -s option.

    Kendall

    Okay, that's a new one for me.  I'll take a look and do some research.  Thanks.

  • Okay, did this....

     

    mjc1016 said:

    Connect does everything lower-case, so that might be the best standard to use.

    I didn't know that Connect did all lower case...

    But DIM still does mixed and I use DIM mostly.

     

    mjc1016 said:

    Don't go changing the cr2s...it's just asking for trouble down the road (yeah, updates and such).

    Make sure you have only 1 of each Daz format and each Runtime (Poser) directory. 

    One each of what directory?  Like if there was a directory in Poser that says Texture and one that says texture, combine them and only have one? 

    Exactly...just one textures directory and do that for each directory in your Runtime.

     

    Then, did this ...

     

    For the case issues, just use symlinks.  They work perfectly. "man ln" from the command line will answer your questions.  You want the -s option.

    Kendall

    Thanks, guys.  That worked!  I've only had this issue with one file now and when I went to track it down, it was actually because the file is missing.  The whole directory for that particular product is missing, actually, so I'll have to figure that one out and track it down.

    So, all that above?  A BIG help!!! I do appreciate the time you guys are taking to help me with getting everything working well.  :)

    So, would doing something like this fix the issue I have with DIM not seeing my install of DAZ Studio and Carrara?  Right now, DIM doesn't seem to be able to see them because they are in a 64 bit wine drive and DIM is in a 32 bit wine drive and apparently since DIM can't see them, it doesn't make the links or whatever it needs in the DAZ Studio My DAZ Library.  A lot of stuff that should be there is missing even though it is installed and in also in the Poser Runtime.  I'm guessing links weren't created since DIM didn't think that DAZ or Carrara were actually installed.  

    Still trying to get CMS sorted out as in actually get it working, but no luck yet.  @GumpOtaku gave me a suggestion to try to see if I can get that working and I'll probably try that out tonight.

  • fixmypcmikefixmypcmike Posts: 19,583
    So, would doing something like this fix the issue I have with DIM not seeing my install of DAZ Studio and Carrara?  Right now, DIM doesn't seem to be able to see them because they are in a 64 bit wine drive and DIM is in a 32 bit wine drive and apparently since DIM can't see them, it doesn't make the links or whatever it needs in the DAZ Studio My DAZ Library.  A lot of stuff that should be there is missing even though it is installed and in also in the Poser Runtime.  I'm guessing links weren't created since DIM didn't think that DAZ or Carrara were actually installed.  

    I'm not sure what links you're referring to?  DIM doesn't know or care what software you have installed except for installing plugins, for content it just installs to the location you specify

  • Okay, so I read what I wrote and read the things that I, apparently, misunderstood with regard to the product files.  I was thinking there should be a link for access to the files from within the My DAZ Library on the DAZ Studio side, but the Read Me page was referring to Categories and not what I had thought.  I don't have Categories working because no CMS working yet.  I really hope to get that working soon because not having categories is very frustrating.

    As to the plugins, no, I haven't been able to get any of my plugins installed other than Animate 2 which ships with DS.  They have downloaded into DIM, but install fails each time and I get the following:

    Installing product : GenX2 AddOn for Genesis 2
    WARNING: Killed Process 
    WARNING: QProcess: Destroyed while process is still running.
    Product installation failed : GenX2 AddOn for Genesis 2
    Install Queue finished in 1 min 0.1 sec.

    No idea what it means, but I assumed it was possible that it won't install if it can't see DS which I don't think it can yet.  Most of what I have had fail to install are plugins and Carrara content.  Out of over 2400 products that have installed with no problems, I have 128 products that won't install and they are all plugins and Carrara content with a few Photoshop brushes, but I know exactly what to do with the Photoshop brushes.

    So, would having a Symlink for DS and Carrara help with DIM actually see those across virtual drives and install those?  Can I manually install those without DIM?

  • fixmypcmikefixmypcmike Posts: 19,583

    In DIM's Settings > Applications are the paths to DS and Carrara somewhere DIM can't write to?

  • mjc1016mjc1016 Posts: 15,001

    Okay, so I read what I wrote and read the things that I, apparently, misunderstood with regard to the product files.  I was thinking there should be a link for access to the files from within the My DAZ Library on the DAZ Studio side, but the Read Me page was referring to Categories and not what I had thought.  I don't have Categories working because no CMS working yet.  I really hope to get that working soon because not having categories is very frustrating.

    As to the plugins, no, I haven't been able to get any of my plugins installed other than Animate 2 which ships with DS.  They have downloaded into DIM, but install fails each time and I get the following:

    Installing product : GenX2 AddOn for Genesis 2
    WARNING: Killed Process 
    WARNING: QProcess: Destroyed while process is still running.
    Product installation failed : GenX2 AddOn for Genesis 2
    Install Queue finished in 1 min 0.1 sec.

    No idea what it means, but I assumed it was possible that it won't install if it can't see DS which I don't think it can yet.  Most of what I have had fail to install are plugins and Carrara content.  Out of over 2400 products that have installed with no problems, I have 128 products that won't install and they are all plugins and Carrara content with a few Photoshop brushes, but I know exactly what to do with the Photoshop brushes.

    So, would having a Symlink for DS and Carrara help with DIM actually see those across virtual drives and install those?  Can I manually install those without DIM?

    I've been manually installing the plugins...

  • In DIM's Settings > Applications are the paths to DS and Carrara somewhere DIM can't write to?

    DIM has been able to install everything else so I would assume DIM can write to where DS and Carrara are.

     

    mjc1016 said:

    Okay, so I read what I wrote and read the things that I, apparently, misunderstood with regard to the product files.  I was thinking there should be a link for access to the files from within the My DAZ Library on the DAZ Studio side, but the Read Me page was referring to Categories and not what I had thought.  I don't have Categories working because no CMS working yet.  I really hope to get that working soon because not having categories is very frustrating.

    As to the plugins, no, I haven't been able to get any of my plugins installed other than Animate 2 which ships with DS.  They have downloaded into DIM, but install fails each time and I get the following:

    Installing product : GenX2 AddOn for Genesis 2
    WARNING: Killed Process 
    WARNING: QProcess: Destroyed while process is still running.
    Product installation failed : GenX2 AddOn for Genesis 2
    Install Queue finished in 1 min 0.1 sec.

    No idea what it means, but I assumed it was possible that it won't install if it can't see DS which I don't think it can yet.  Most of what I have had fail to install are plugins and Carrara content.  Out of over 2400 products that have installed with no problems, I have 128 products that won't install and they are all plugins and Carrara content with a few Photoshop brushes, but I know exactly what to do with the Photoshop brushes.

    So, would having a Symlink for DS and Carrara help with DIM actually see those across virtual drives and install those?  Can I manually install those without DIM?

    I've been manually installing the plugins...

    I'll try manually installing the plugins and see what happens.  Thanks.

  • mjc1016mjc1016 Posts: 15,001

    With manual install, you need to pay attention to the folders...

  • mjc1016 said:

    With manual install, you need to pay attention to the folders...

    Yeah, not the thing I do best, but I'll certainly try.  :)

  • mxon3xmxon3x Posts: 2
    edited December 2016
    mork said:

    Hm I think I can confirm that the issue with native postgreSQL and DAZ 4.9 is in this new cloud thingy. I have it working in 4.8 without further hassles. I'll note it in the beta thread.
    For whatever it's worth, here is a guide how I set up postgreSQL with DAZ 4.8 on linux:


    1. Install postgreSQL + citext extension
      sudo apt-get install postgresql postgresql-contrib-9.4

    2. Edit config file. Replace gedit with whatever editor you want/have.
      sudo gedit /etc/postgresql/9.4/main/postgresql.conf

    • Change to listen to all. Not exactly sure yet if needed.
          listen_address = '*'
    • Note the port number, you need it later.
    • Save & Exit editor.
    • Restart database
          sudo service postgresql restart
          or
          /etc/init.d/postgresql restart

    4. Add a password to the postgres user created by the installation:
      sudo passwd postgres

    5. Switch to postgres user.
      su - postgres

    6. Create a new database to hold daz content.
      createdb dazcontent

    7. Add a user to postgreSQL for DAZ.
    Note: there is a command "createuser" to do this and it should ask you
         some basic questions on how to set up the user. It didn't work
         for me, so I add the user using SQL.

        psql
        CREATE USER daz3d WITH PASSWORD 'mynewpassword';

    Note:
    You can list existing users with \du
    You can quit with \q
    You can list databases with \l

    8. Grant permissions to user.
    Ok. I'm a complete postgreSQL noob, I was unable to add the create role only, so I ended up adding Superuser permissions.
    That's okay for me right now, as only DAZ is using the database, but if you know how to do it right, please let me know. :)

       ALTER USER daz3d WITH Superuser;

    9. Activate citext extension on our new database
      \c dazcontent
      CREATE EXTENSION citext;

    10. Quit database client
      \q

    11. Test connection.
    Log back to your user.
      exit

    Try to connect
      psql -U daz3d -W -d dazcontent -p <PORT_NOTED_IN_3b> -h localhost

    Enter the password you have chosen in step 7.

    Port is very likely 5432. Hopefully it works. :)
    If it does not, you need to resolve it before advancing further,

    12. Set up DAZ to use our postgreSQL
    Switch to your wine bottle folder. Within there should be the drive_c folder.
    Edit the following file. If it does not exist, create it:
    gedit drive_c/users/<YOUR_USERNAME>/Application\ Data/DAZ\ 3D/cms/cmscfg.json

    It should look like this:

    {
        "Port" : 5432,
        "DatabaseClusterPath" : "C:/users/<YOUR_USERNAME>/Application Data/DAZ 3D/cms",
        "ConnectionURI" : "postgresql://daz3d:mynewpassword@localhost:5432/dazcontent"
    }

    Replace the port number with whatever you have noted in 3b, but likely it's 5432.
    Change DatabaseClusterPath to the path above, insert your username of course. Not sure
    if this is needed at all and for what.
    Most important is the newly added ConnectionURI, following these well hidden patchnotes (#4.6.3.36)

    Change these parts to whatever you have chosen along this guide:
    username: daz3d
    password: mynewpassword
    host    : localhost
    port    : 5432
    database: dazcontent

    Save & Exit.

    13. Start up DAZ3D and import meta data.
    Right click on the tab for "Content Library", there should be "Content DB Maintenance", click it. Then there is a checkbox "Re-Import Metadata...". check it and click "Accept". A new window will pop up, showing all your products that have such meta data. Import them all, that takes a while....

    Right click again on your "Content Library" tab, select "Scan Known Directories for Files". This will scan all the folders and add those assets to your database, which don't have meta data. Poser files for example.

    Both steps imply that you have already added your existing content library using the "Content Directory Manager", also found on the "Content Library" tab. :)

    14. That's it. It should be working.
    If it's not working, check the DAZ log file. You should be close. :)

    Hope it is of help to someone. :)

    Edit: typos, changed password to be more obvious, fixed SQL query, added details on meta-data import.

    I followed these steps and was able to connect to the database, start up DAZ Studio 4.8 and did not see a "start CMS" button. I assume it was connected and working fine, however .... smart content still did not load up (even after re-importing). So in a LAST DITCH EFFORT, I reinstalled my old Daz Studio 4.6 Pro (32bit) installation setup under Wine 1.8.5 (current stable) using Spatry's guide. Nothing special except the component installation (dependancies) for Windows. To my surprise smart content and the CMS worked flawlessly!! I did have to correct the "Content Management Service" install path from "C:\DAZ 3D\Content Management Service"" over to "C:\Program Files\DAZ 3D\Content Management Service" because it gave a warning the first time. Afterwards, all meta data is showing now... I'll link to Spatry's guide below.

    I hope this helps other people that want the meta data working with smart content, my load times even seem twice as fast in DS4.6Pro than they did in 4.8 and the 4.9 versions.

    http://www.cupoflinux.com/SBB/index.php?topic=2299.0

    Post edited by mxon3x on
  • brainmuffinbrainmuffin Posts: 1,205
    kyoto kid said:

    ..Daz just needs to compile Studio, Carrara, Bryce, and Hexagon for Linux.

    Agreed. It is my understanding their toolkit will allow such. Not sure about DIM though.

  • brainmuffinbrainmuffin Posts: 1,205

    I may have to try this again with Mint 18.

  • mxon3xmxon3x Posts: 2
    edited December 2016

    UPDATE: Daz Studio 4.8 Pro working with Smart Content / CMS

    • (+ IRAY? ... havn't tried it yet)

    Instructions:

    (WINE 1.8.5 - Current Stable)

    1. Follow Mork's guide to install Install postgreSQL locally - FIRST

    • See my previous post above for quoted instructions from page #6 of this thread.

    2. Install Daz Studio 4.8 (per Spatry's guide)

    3. Update:

    • "~/.PlayOnLinux/wineprefix/drive_c/users/your_user_name/Application Data/DAZ 3D/cms/cmscfg.json" file with the information you copied down from Mork's quide (step #12).

    4. Open Daz Studio 4.8

    • Content Library > Scan known directories for files.
    • Smart Content > Re-Import Metadata...

    5. Enjoy if it worked for you as well!! laugh

    • If this does not work for someone, i'm sorry but these instructions come with no additional support.
    • I only want to share with others what worked for me.
    Post edited by mxon3x on
  • kyoto kid said:

    ..Daz just needs to compile Studio, Carrara, Bryce, and Hexagon for Linux.

    Agreed. It is my understanding their toolkit will allow such. Not sure about DIM though.

    Although Qt is meant to be a cross-platform framework that doesn't appear to mean write-once-compile-all - there have been plenty of platform-specific issues of one kind and another, and DS does use code licensed from others (nVidia, DNA Reseach, and Optitex for example) which may or may not be cross-platform and may or may not be licensed for use in a Linux version.

  • mjc1016mjc1016 Posts: 15,001
    kyoto kid said:

    ..Daz just needs to compile Studio, Carrara, Bryce, and Hexagon for Linux.

    Agreed. It is my understanding their toolkit will allow such. Not sure about DIM though.

    Although Qt is meant to be a cross-platform framework that doesn't appear to mean write-once-compile-all - there have been plenty of platform-specific issues of one kind and another, and DS does use code licensed from others (nVidia, DNA Reseach, and Optitex for example) which may or may not be cross-platform and may or may not be licensed for use in a Linux version.

    3DL should be doable....not sure if it would need another license/addendum or not, but the Linux 3DL version is actually the faster one.  There's also a Linux version of Iray.  Postgre would be another easy one...

    But those are the small things...the big one is that it's VisualC and not a more 'generic'/standard version...

Sign In or Register to comment.