понедельник, 19 сентября 2016 г.

Два Libre\Open Office на одном ПК

Задача: запустить libreoffice в  headless режиме на 2х портах на 1м пк
Решение:
  1. Открыть cmd 
  2. Создать папки c:\tmp\1 c:\tmp\2
  3. Перейти в папку офиса C:\Program Files (x86)\LibreOffice 5\program\ Выполнить 1 раз:
    soffice.exe "-env:UserInstallation=file:///C:/tmp/1/"
    soffice.exe" "-env:UserInstallation=file:///C:/tmp/2/"
  4. Запускаем 1 и 2й офис headless:
    "C:\Program Files (x86)\LibreOffice 5\program\soffice.exe" "-env:UserInstallation=file:///C:/tmp/1/" -accept="socket,host=0.0.0.0,port=8100;urp;StarOffice.ServiceManager" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore
    "C:\Program Files (x86)\LibreOffice 5\program\soffice.exe" "-env:UserInstallation=file:///C:/tmp/2/" -accept="socket,host=0.0.0.0,port=8101;urp;StarOffice.ServiceManager" -headless -nodefault -nofirststartwizard -nolockcheck -nologo -norestore