{"id":2617,"date":"2023-01-26T16:04:36","date_gmt":"2023-01-26T16:04:36","guid":{"rendered":"https:\/\/orfeolibre.org\/inicio\/?post_type=knowledgebase&#038;p=2617"},"modified":"2023-02-01T23:22:40","modified_gmt":"2023-02-01T23:22:40","slug":"instalacion-servicio-unoconv-libreoffice","status":"publish","type":"knowledgebase","link":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/","title":{"rendered":"Instalaci\u00f3n servicio Unoconv &#8211; Libreoffice"},"content":{"rendered":"<h2>Descripci\u00f3n<\/h2>\n<p>Unoconv es un servicio de Libreoffice que permite usar sus funciones a traves de un socket<\/p>\n<h2>Prerequistos<\/h2>\n<p>Una maquina linux .. seguro<\/p>\n<h2>Instalaci\u00f3n<\/h2>\n<p>Se prefiere una version moderna de libreoffice 7+ ya que los 6 nos han dado guerra antes<\/p>\n<p>$&gt;\u00a0\u00a0 apt-get install -t\u00a0 buster-backports default-jre libreoffice-java-common unoconv<\/p>\n<p>OJO unoconv necesta los fuentes.<\/p>\n<h4>OJO El directorio de libreoffice UNOPATH son diferentes para RH y DEB.<\/h4>\n<p>Copiese el directorio de Skina de ftp\/pub\/linux\/downloads\/escritorio\/fonts\/skina a \/usr\/share\/fonts<\/p>\n<h2>Configuraci\u00f3n<\/h2>\n<h3>1.\u00a0 Para que corra a lo machaco<\/h3>\n<p>O a lo machaco .. ponerlo en el \/etc\/rc.local .<\/p>\n<p>$&gt; unoconv &#8211;listener &amp;<\/p>\n<h3>2. Lo elegante usando systemctl<\/h3>\n<p>Los pasos a seguir del proceso anterior:<\/p>\n<p>$&gt; sudo su<br \/>\n$&gt; vim \/etc\/systemd\/system\/unoconv.service<\/p>\n<p>Agrege el siguiente script<\/p>\n<pre>  [Unit] \r\n\u00a0 Description=Unoconv listener for document conversions \r\n\u00a0 Documentation=https:\/\/github.com\/dagwieers\/unoconv \r\n\u00a0 After=network.target remote-fs.target nss-lookup.target \r\n\r\n\u00a0 [Service] \r\n\u00a0 Type=simple \r\n\u00a0 Environment=\"UNO_PATH=\/lib\/libreoffice\/program\" \r\n \u00a0User=www-data \r\n \u00a0Group=www-data \r\n\u00a0 ExecStart=\/usr\/bin\/unoconv --listener \r\n\u00a0 Restart=on-abort \r\n\u00a0 StartLimitInterval=60 \r\n\u00a0 StartLimitBurst=10 \r\n\r\n\u00a0 [Install] \r\n\u00a0 WantedBy=multi-user.target\u00a0\u00a0\r\n<\/pre>\n<p>Para que pueda correr como apache es necesario crear directorios y darle permisos en el home del usuario de apache<\/p>\n<p>mkdir \/var\/www\/.cache\u00a0 \/var\/www\/.config<br \/>\nchown -R www-data:www-data\u00a0 \/var\/www\/.cache\u00a0 \/var\/www\/.config<\/p>\n<pre><\/pre>\n<p>Incluirlo en la secuencia de arranque<\/p>\n<p>$&gt; sudo systemctl daemon-reload<br \/>\n$&gt; sudo systemctl enable unoconv.service<br \/>\n$&gt; sudo systemctl start unoconv.service<\/p>\n<p>&nbsp;<\/p>\n<h2>Trucos<\/h2>\n<h3>1. C\u00f3rrelo con el la ultima version de libreoffice (ejm 7.4)<\/h3>\n<p>Descargue el libreoffice para debian (por ejemplo) descompr\u00edmalo e instale todo (apt-get install .\/libreoffice7.4*)<\/p>\n<p>Este lo va a instalar independiente del que tenga en \/opt\/libreoffe7.4 .. yo suelo tener opt como un vinculo simb\u00f3lico a \/usr\/local<\/p>\n<p>Luego install el unoconv descargado del sitio en \/usr\/local<\/p>\n<p>git clone https:\/\/github.com\/unoconv\/unoconv.git<\/p>\n<p>Y\u00a0luego cambie el servicio en systemctl<\/p>\n<p>vi \/etc\/systemd\/system\/unoconv.service<\/p>\n<p>Y cambie el UNO_PATH y el ejecutable<\/p>\n<p>\\# Environment=\u00bbUNO_PATH=\/lib\/libreoffice\/program\u00bb<br \/>\nEnvironment=\u00bbUNO_PATH=\/usr\/local\/libreoffice7.4\/program\u00bb<br \/>\n\\# ExecStart=\/usr\/bin\/unoconv &#8211;listener<br \/>\nExecStart=\/usr\/local\/unoconv\/unoconv &#8211;listener<\/p>\n<p>Recarge y reinicie<\/p>\n<p>systemctl daemon-reload<br \/>\nsystemctl\u00a0 stop unoconv<br \/>\nsystemctl\u00a0 start unoconv<br \/>\nsystemctl\u00a0 status unoconv<\/p>\n<p>Si quiere verifique que este corriendo<\/p>\n<p>ps aux | grep soff<\/p>\n<h2>Problemas<\/h2>\n<h3>1. Unoconv se me esta muriendo<\/h3>\n<p>He optado por poner en algunos caso monit para que lo mantenga arriba<\/p>\n<p>check process unoconv<br \/>\nmatching \u00abunoconv\u00bb<br \/>\nstart program = \u00ab\/bin\/systemctl start unoconv.service\u00bb<br \/>\nstop program = \u00ab\/bin\/systemctl stop unoconv.service\u00bb<\/p>\n<h3>2.\u00a0 DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives<\/h3>\n<p>Unoconv ya ha sido puesto en EOL .. o sea obsoleto y hay estos problemas.<\/p>\n<p>&#8211;<\/p>\n<h2>Referencias<\/h2>\n<p>&#8211;\u00a0 <a href=\"https:\/\/docs.moodle.org\/all\/es\/Universal_Office_Converter_(unoconv)\">https:\/\/docs.moodle.org\/all\/es\/Universal_Office_Converter_(unoconv)<\/a><\/p>\n<p>FIN<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Descripci\u00f3n Unoconv es un servicio de Libreoffice que permite usar sus funciones a traves de un socket Prerequistos Una maquina linux .. seguro Instalaci\u00f3n Se prefiere una version moderna de libreoffice 7+ ya que los [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[37],"class_list":["post-2617","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-otras-guias-instalacion-orfeo6"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Instalaci\u00f3n servicio Unoconv - Libreoffice - Orfeo SGDEA - Gesti\u00f3n Documental<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Instalaci\u00f3n servicio Unoconv - Libreoffice - Orfeo SGDEA - Gesti\u00f3n Documental\" \/>\n<meta property=\"og:description\" content=\"Descripci\u00f3n Unoconv es un servicio de Libreoffice que permite usar sus funciones a traves de un socket Prerequistos Una maquina linux .. seguro Instalaci\u00f3n Se prefiere una version moderna de libreoffice 7+ ya que los [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/\" \/>\n<meta property=\"og:site_name\" content=\"Orfeo SGDEA - Gesti\u00f3n Documental\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-01T23:22:40+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeo6\\\/otras-guias-instalacion-orfeo6\\\/instalacion-servicio-unoconv-libreoffice\\\/\",\"url\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeo6\\\/otras-guias-instalacion-orfeo6\\\/instalacion-servicio-unoconv-libreoffice\\\/\",\"name\":\"Instalaci\u00f3n servicio Unoconv - Libreoffice - Orfeo SGDEA - Gesti\u00f3n Documental\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/#website\"},\"datePublished\":\"2023-01-26T16:04:36+00:00\",\"dateModified\":\"2023-02-01T23:22:40+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeo6\\\/otras-guias-instalacion-orfeo6\\\/instalacion-servicio-unoconv-libreoffice\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeo6\\\/otras-guias-instalacion-orfeo6\\\/instalacion-servicio-unoconv-libreoffice\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/documentacion-orfeo\\\/documentacion-orfeo6\\\/otras-guias-instalacion-orfeo6\\\/instalacion-servicio-unoconv-libreoffice\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Instalaci\u00f3n servicio Unoconv &#8211; Libreoffice\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/#website\",\"url\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/\",\"name\":\"Orfeo SGDEA - Gesti\u00f3n Documental\",\"description\":\"Sistema de Gesti\u00f3n Documental de Archivo Electr\u00f3nico\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/orfeolibre.org\\\/inicio\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Instalaci\u00f3n servicio Unoconv - Libreoffice - Orfeo SGDEA - Gesti\u00f3n Documental","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/","og_locale":"es_ES","og_type":"article","og_title":"Instalaci\u00f3n servicio Unoconv - Libreoffice - Orfeo SGDEA - Gesti\u00f3n Documental","og_description":"Descripci\u00f3n Unoconv es un servicio de Libreoffice que permite usar sus funciones a traves de un socket Prerequistos Una maquina linux .. seguro Instalaci\u00f3n Se prefiere una version moderna de libreoffice 7+ ya que los [&hellip;]","og_url":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/","og_site_name":"Orfeo SGDEA - Gesti\u00f3n Documental","article_modified_time":"2023-02-01T23:22:40+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/","url":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/","name":"Instalaci\u00f3n servicio Unoconv - Libreoffice - Orfeo SGDEA - Gesti\u00f3n Documental","isPartOf":{"@id":"https:\/\/orfeolibre.org\/inicio\/#website"},"datePublished":"2023-01-26T16:04:36+00:00","dateModified":"2023-02-01T23:22:40+00:00","breadcrumb":{"@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/orfeolibre.org\/inicio\/documentacion-orfeo\/documentacion-orfeo6\/otras-guias-instalacion-orfeo6\/instalacion-servicio-unoconv-libreoffice\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/orfeolibre.org\/inicio\/"},{"@type":"ListItem","position":2,"name":"Instalaci\u00f3n servicio Unoconv &#8211; Libreoffice"}]},{"@type":"WebSite","@id":"https:\/\/orfeolibre.org\/inicio\/#website","url":"https:\/\/orfeolibre.org\/inicio\/","name":"Orfeo SGDEA - Gesti\u00f3n Documental","description":"Sistema de Gesti\u00f3n Documental de Archivo Electr\u00f3nico","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/orfeolibre.org\/inicio\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"}]}},"_links":{"self":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/2617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/comments?post=2617"}],"version-history":[{"count":7,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/2617\/revisions"}],"predecessor-version":[{"id":2663,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase\/2617\/revisions\/2663"}],"wp:attachment":[{"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/media?parent=2617"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/orfeolibre.org\/inicio\/wp-json\/wp\/v2\/knowledgebase_cat?post=2617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}