Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-18-2012, 12:12 AM
|
#1
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
|
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.
|
|
|
11-18-2012, 12:27 AM
|
#2
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
|
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#
|
|
|
11-19-2012, 11:59 AM
|
#3
|
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453
Original Poster
|
Quote:
Originally Posted by catkin
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.
|
03-13-2014, 04:52 PM
|
#4
|
Member
Registered: Feb 2012
Location: Greater Montreal, QC, Canada (Eastern NA time zone as NYC)
Distribution: Fedora, multiple versions
Posts: 56
Rep:
|
.ODx and Samba
Quote:
Originally Posted by kikinovak
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
|
|
|
All times are GMT -5. The time now is 04:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|