Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Server Hosting Support
  3. Linux/Wine server install tips

Linux/Wine server install tips

Scheduled Pinned Locked Moved BO2 Server Hosting Support
11 Posts 4 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Minamiundefined Offline
    Minamiundefined Offline
    Minami
    Contributor
    wrote on last edited by
    #2

    It's really good, it will help Linux beginners 👍

    1 Reply Last reply
    0
    • chacha18undefined Offline
      chacha18undefined Offline
      chacha18
      wrote on last edited by chacha18
      #3

      8/ Update 09/01/2021 :
      In order to lauch the plutonium built-in updater you need those things:

      • install dotnet48 :
      WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks --force dotnet48
      
      • install d3dcompiler_47 (native):
      WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks d3dcompiler_47
      
      • install vcrun2005 and vcrun2019 (native):
      WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks vcrun2005 vcrun2019
      

      GUI will launch correctly and start update process without crashing when you click on it. But when the update is finished it may crash if you have no 3D accel (it is the case for me because i'm running it on a VM).

      Still not very usable for automation because the GUI is still showing, even with "-update-only" because at the end of the process it stay opened. maybe a good idea for an update ? 😄 A silent/terminal option would be a great feature ...

      PS: Devs, pls tell me if I missed something..

      1 Reply Last reply
      1
      • Xerxesundefined Offline
        Xerxesundefined Offline
        Xerxes
        Plutonium Staff
        wrote on last edited by
        #4

        You could try to register ping.exe as debugger for the launcher, that's what I did on windows to get rid of the launcher.

        chacha18undefined 1 Reply Last reply
        0
        • Xerxesundefined Xerxes

          You could try to register ping.exe as debugger for the launcher, that's what I did on windows to get rid of the launcher.

          chacha18undefined Offline
          chacha18undefined Offline
          chacha18
          wrote on last edited by
          #5

          Xerxes How did you do that ? I know how to attach gdb but how do you attach another exe ? is it a non-documented plutonium feature ?

          1 Reply Last reply
          0
          • Xerxesundefined Offline
            Xerxesundefined Offline
            Xerxes
            Plutonium Staff
            wrote on last edited by
            #6

            It's a windows feature that with a bit of luck works with wine too.

            1 Reply Last reply
            0
            • chacha18undefined Offline
              chacha18undefined Offline
              chacha18
              wrote on last edited by
              #7

              Finally, I ended up with another solution:

              • launching plutonium.exe in a xvfb screen (so no more display)
              • monitoring tcp/http connection of plutonium.exe with lsof to catch end of download

              It seems to work atm !

              1 Reply Last reply
              0
              • Xerxesundefined Offline
                Xerxesundefined Offline
                Xerxes
                Plutonium Staff
                wrote on last edited by
                #8

                That seems a bit over complicated considering the updater and launcher are 2 different executables, so starting the updater and then waiting until the launcher starts would work too.

                But good job as long as it works!

                chacha18undefined 1 Reply Last reply
                0
                • Xerxesundefined Xerxes

                  That seems a bit over complicated considering the updater and launcher are 2 different executables, so starting the updater and then waiting until the launcher starts would work too.

                  But good job as long as it works!

                  chacha18undefined Offline
                  chacha18undefined Offline
                  chacha18
                  wrote on last edited by
                  #9

                  Xerxes

                  Problem is that at the end of the update process, the update windows stay opened waiting for confirmation so i dont think I had other choice...

                  Anyway, the trick is pretty easy (exports from previous script needed):

                  Xvfb :99 -ac &
                  pid=$!
                  DISPLAY=:99 $WINEPATH/bin/wine $WINEPREFIX/plutonium.exe -install-dir 'C:\\CODBO2'  -update-only
                  while [ ! "$(lsof -i | grep plutonium)" ]; do sleep 1; done
                  sleep 30
                  while [  "$(lsof -i | grep plutonium)" ]; do sleep 1; done
                  
                  killall plutonium.exe
                  kill -9 $pid
                  

                  Note1: you may need to install killall :

                  apt install killall
                  

                  Note2: you may need to launch the script in root to have the right to execute xvfb (not sure), but updater need to be executed by user, so you can add (in front of wine command) :

                  su <user> -c <command line ...>
                  
                  1 Reply Last reply
                  0
                  • Jimoundefined Offline
                    Jimoundefined Offline
                    Jimo
                    wrote on last edited by
                    #10

                    chacha18 said in Linux/Wine server install tips:

                    WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks --force dotnet48

                    none of this shit work

                    chacha18undefined 1 Reply Last reply
                    0
                    • Jimoundefined Jimo

                      chacha18 said in Linux/Wine server install tips:

                      WINE=~/.local/share/wine/wine-6.0-rc5-staging-tkg-amd64/bin/wine WINEARCH=win32 WINEPREFIX=~/.local/share/wineprefix/CODBBO2 ./winetricks --force dotnet48

                      none of this shit work

                      chacha18undefined Offline
                      chacha18undefined Offline
                      chacha18
                      wrote on last edited by
                      #11

                      Jimo very helpful coment...

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Donate