LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-17-2012, 11:12 PM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,410

Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
Strange bug with Open Office and Samba


Hi,

Our school's network (Slackware 14.0 server and desktop clients) mainly uses NFS for file sharing, but I've also setup a Samba file and print server for those teachers and students who have Windows and Mac OS X laptops.

I'm experiencing a strange bug with files on the Samba shares. I can open PDF files with Evince OK. I can open simple text files with Leafpad. But I can't open ODT or ODS files with Open Office.

I've googled a bit and found out that the bug seems to be in Open Office, which apparently can't always open files on Samba shares correctly.

Now I've experienced a bit more on my office's network, which has got more or less the same setup than the one in the school: NFS and NIS on a Slackware 14.0 server, Slackware 14.0 + Xfce + various addons on all the desktop clients. To my bewilderment, everything works OK here. I can create an ODT file with OO Writer, move it to the Samba server, and then open it from another desktop with another OO Writer. So Open Office doesn't seem to be the culprit, the more so since these are the exact same binaries - and the same version - I installed in the school.

Which leaves me clueless.
 
Old 11-17-2012, 11:27 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,514
Blog Entries: 27

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Is the samba share with the problem .odt and .ods files writeable by the user? OOo needs to write a hidden lockfile in the same place as the file it is editing (it is called .~lock.<whatever>.odt#
 
Old 11-19-2012, 10:59 AM   #3
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,410

Original Poster
Rep: Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630Reputation: 630
Quote:
Originally Posted by catkin View Post
Is the samba share with the problem .odt and .ods files writeable by the user? OOo needs to write a hidden lockfile in the same place as the file it is editing (it is called .~lock.<whatever>.odt#
OK, I found the solution to the problem, and it was indeed a permission problem, though a nasty one, not the kind you'd expect. Some files could be opened on some machines with some applications, but the overall behaviour was rather erratic. I could access everything on my laptop, though not on the desktop clients.

After an unnerving couple of hours, I found out. Our desktop clients' home directories are located centrally on the server and exported via NFS. Now NFS' default behaviour is to prevent root from accessing the user home directories. It looks like this also prevents GVFS from working correctly. I edited /etc/exports on the server and added the no_root_squash option. All of a sudden, everything worked as expected.

Once again, I managed to avoid a career as a boat repairman on an island without computers.
 
2 members found this post helpful.
Old 03-13-2014, 03:52 PM   #4
Bruce from Canada
LQ Newbie
 
Registered: Feb 2012
Location: Greater Montreal, QC, Canada (Eastern NA time zone as NYC)
Distribution: Fedora, multiple versions
Posts: 26

Rep: Reputation: Disabled
.ODx and Samba

Quote:
Originally Posted by kikinovak View Post
Hi,

Our school's network (Slackware 14.0 server and desktop clients) mainly uses NFS for file sharing, but I've also setup a Samba file and print server for those teachers and students who have Windows and Mac OS X laptops.

I'm experiencing a strange bug with files on the Samba shares. I can open PDF files with Evince OK. I can open simple text files with Leafpad. But I can't open ODT or ODS files with Open Office.

I've googled a bit and found out that the bug seems to be in Open Office, which apparently can't always open files on Samba shares correctly.

Now I've experienced a bit more on my office's network, which has got more or less the same setup than the one in the school: NFS and NIS on a Slackware 14.0 server, Slackware 14.0 + Xfce + various addons on all the desktop clients. To my bewilderment, everything works OK here. I can create an ODT file with OO Writer, move it to the Samba server, and then open it from another desktop with another OO Writer. So Open Office doesn't seem to be the culprit, the more so since these are the exact same binaries - and the same version - I installed in the school.

Which leaves me clueless.
In experiencing the loading of .ODx files directly through Samba, I have always noticed it is very slow and can be arduous. Generally, I find it far safer and faster to copy the file into the local LVM, then Edit, then copy back, overwriting.

If the file is very small and simple, you might get away with it, but if it is a 25 sheet .ODS, loaded with a ton of formulae, Better not!!

Saving that way is apt to be even more srduous and less reliable. If you have a crash, it may also leave the file at either end locked - even worse!

Good luck! << bonne chance! >>

Bruce from Canada
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS office files open in read only mode from samba share Toushi Linux - Networking 6 05-19-2011 11:39 AM
open office crashed? gave long bug report SSJGoku Linux - Newbie 1 05-15-2009 07:34 PM
Open Office wont load files from PC using SAMBA cleanriver Linux - Software 1 03-30-2008 07:40 PM
SUSE 10, Samba + Open Office EclipseAgent Suse/Novell 3 10-28-2005 03:28 PM
Right Mouse Click Bug In Open Office 2 0n Ubuntu 5.10 jasongunnisthedevil Linux - Software 0 10-17-2005 07:54 AM


All times are GMT -5. The time now is 10:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration