{"id":1012,"date":"2016-08-16T13:16:32","date_gmt":"2016-08-16T13:16:32","guid":{"rendered":"http:\/\/www.icantinternet.org\/?p=1012"},"modified":"2016-08-18T07:39:50","modified_gmt":"2016-08-18T07:39:50","slug":"linux-libreoffice-openoffice-doc-problems-on-networkdrives","status":"publish","type":"post","link":"https:\/\/beheydt.be\/en\/linux-libreoffice-openoffice-doc-problems-on-networkdrives\/","title":{"rendered":"LibreOffice &#038; OpenOffice on Linux gives .doc problems on networkdrives"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-3372\" src=\"https:\/\/beheydt.be\/wp-content\/uploads\/2011\/04\/tux-linux-300x290.jpg\" alt=\"tux-linux\" width=\"220\" height=\"213\" \/>You&#8217;re using Linux at work, while all the others are on Windows? You&#8217;re cool! Linux can handle just about anything, and has solutions for just about anything. However, sometimes you may just run into some issues. Using LibreOffice of OpenOffice to open documents which reside on a Windows network is one of those problems.<\/p>\n<p><strong>What does it do?<\/strong><br \/>\nLibreOffice and OpenOffice simply crash when you try to open a document in a samba folder. If you open Libre\/OpenOffice, and go via the &#8220;Open file&#8221; dialogue to open the file, Libre\/OpenOffice will tell you it cannot open files on a network drive.<\/p>\n<p><strong>The reason?<\/strong><br \/>\nLibreOffice and OpenOffice don&#8217;t use the byte-range blocks as MS Office does, and which is mandatory for the CIFS (Windows shared) folders.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignright wp-image-3370 size-medium\" src=\"https:\/\/beheydt.be\/wp-content\/uploads\/2011\/04\/openoffice-300x225.jpg\" alt=\"openoffice\" width=\"300\" height=\"225\" srcset=\"https:\/\/beheydt.be\/wp-content\/uploads\/2011\/04\/openoffice-300x225.jpg 300w, https:\/\/beheydt.be\/wp-content\/uploads\/2011\/04\/openoffice-768x576.jpg 768w, https:\/\/beheydt.be\/wp-content\/uploads\/2011\/04\/openoffice.jpg 808w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/>The solution?<\/strong><br \/>\nAdd an entry to your filesystem table (\/etc\/fstab) to mount the folders as CIFS, but tell your system to ignore the byte-range blocks.<\/p>\n<p><strong>How?<\/strong><br \/>\nFirst, we need a mountpoint, a directory where we can mount this network folder.<br \/>\nOpen a terminal, and create a directory with the name of your choice under the \/mnt directory: <em>&#8220;sudo mkdir \/mnt\/<\/em>&#8221;<\/p>\n<p>Then, make sure you have the samba filesystem package installed. If not, or if unsure do this: <em>&#8220;sudo apt-get install smbfs&#8221;<\/em><br \/>\nNow, we need to tell &#8220;mount&#8221; what and where to mount, so open \/etc\/fstab and edit! In a console, type <em>&#8220;sudo gedit \/etc\/fstab&#8221;<\/em> or if you&#8217;re using KDE type <em>&#8220;sudo kate \/etc\/fstab&#8221;<\/em> or just use any teksteditor you like! \ud83d\ude09<br \/>\nIn your fstab, add the following line: <em>&#8220;\/\/&lt;nameof_the_share_or_IP_address&gt;\/ \/mnt\/&lt;foldernameyoucreatedbefore&gt; cifs auto,iocharset=utf8,nobr1,username=&lt;windowsusernameyouneedtoconnect&gt;,password=&lt;windowsnetworkpasswordyouneedtoconnect&gt;,_netdev,uid=&lt;yourlinuxusername&gt;,gid=&lt;yourlinuxgroup_id&gt; 0 0&#8221;<\/em><\/p>\n<div class=\"alignleft\"><script src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\" async=\"\"><\/script><br \/>\n<!-- Beheydt_in_post --><br \/>\n<ins class=\"adsbygoogle\" style=\"display: inline-block; width: 300px; height: 250px;\" data-ad-client=\"ca-pub-2909160283016211\" data-ad-slot=\"3380843995\"><\/ins><br \/>\n<script>\/\/ <![CDATA[ (adsbygoogle = window.adsbygoogle || []).push({}); \/\/ ]]><\/script><\/div>\n<p>Save the file, close the editor, and in your terminal type <em>&#8220;sudo mount -a&#8221;<\/em> to see if the network drive has been mounted. If unsure, type &#8220;cd \/mnt\/&#8221; and do a &#8220;ls&#8221; to see what it brings you.<br \/>\nNormally, if the name of the share is registered on the network, you can use that in your fstab (to test it, type <em>&#8220;ping name_of_the_share&#8221;<\/em>), if not, you&#8217;ll have to use the ipaddress.<br \/>\nIf your network share is secured, you&#8217;ll need the login credentials to mount the drive. If it is unsecured, you can omit these credentials in your fstab, and just use &#8220;guest&#8221; instead.<br \/>\nMake sure you have the <em>&#8220;nobr1&#8221;<\/em> option in your fstab line!!! As this is the option that tells your apps to ignore the byte range blocks!<br \/>\nSo, if all goes well, I wish you some happy Libre\/OpenOffficing on your network shared windows folders!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;re using Linux at work, while all the others are on Windows? You&#8217;re cool! Linux can handle just about anything, and has solutions for just about anything. However, sometimes you may just run into some issues. Using LibreOffice of OpenOffice to open documents which reside on a Windows network is one of those problems. What [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3372,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[924],"tags":[505],"class_list":["post-1012","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-en","tag-linux-2"],"jetpack_featured_media_url":"https:\/\/beheydt.be\/wp-content\/uploads\/2011\/04\/tux-linux.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pbkKxJ-gk","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/posts\/1012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/comments?post=1012"}],"version-history":[{"count":0,"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/posts\/1012\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/media\/3372"}],"wp:attachment":[{"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/media?parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/categories?post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/beheydt.be\/en\/wp-json\/wp\/v2\/tags?post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}