Skip to content
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.

Document new libsmbclient-php for external smb storages #1447

Closed
ghost opened this issue Aug 9, 2015 · 22 comments
Closed

Document new libsmbclient-php for external smb storages #1447

ghost opened this issue Aug 9, 2015 · 22 comments
Assignees

Comments

@ghost
Copy link

ghost commented Aug 9, 2015

SMB external storage now based on libsmbclient (owncloud/core#10673)

from https://github.com/owncloud/core/wiki/ownCloud-8.1-Features

In the linked PR the following is stated:

New SMB storage backend based on https://github.com/icewind1991/SMB which supports either wrapping smbclient or use libsmbclient directly trough libsmbclient-php.

Currently the only place where libsmbclient/php5-libsmbclient is noticed is for the EE:

https://doc.owncloud.org/server/8.1/admin_manual/release_notes.html#windows-network-drive
https://doc.owncloud.org/server/8.1/admin_manual/enterprise_external_storage/windows-network-drive_configuration.html

@ghost
Copy link
Author

ghost commented Aug 9, 2015

On Debian/Ubuntu for example libsmbclient-php is not available. Only:

http://packages.ubuntu.com/search?keywords=php-smb
https://packages.debian.org/search?keywords=php-smb

which are both depending on a non-available package "php5-smbclient".

I think thats really something what should be clarified.

@RobinMcCorkell
Copy link

Note: we do not need the php-smb package, that's a version of @icewind1991 's 'SMB' project, which is included in the ownCloud source tree. We just need the mystery 'php5-smbclient'

@ghost
Copy link
Author

ghost commented Aug 9, 2015

Thanks for the clarification. I just had a short search on the net and found the OBS repositories where it seems the php5-smbclient was/is included in the oC 7 repositories:

http://download.opensuse.org/repositories/isv:/ownCloud:/community:/7.0/xUbuntu_14.10/
http://download.opensuse.org/repositories/isv:/ownCloud:/community:/7.0/Debian_7.0/

but is now missing in 8.1:

http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/xUbuntu_14.10/
http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/Debian_7.0/

Edit

According to: owncloud/core#13022 the php5-smbclient is only packaged for the EE and not for the CE in oC 7.

@jnweiger
Copy link
Contributor

php5-libsmbclient is now available from the 8.1 Linux repositories too. Here are the install instructions: https://software.opensuse.org/download.html?project=isv%3AownCloud%3Acommunity%3A8.1&package=php5-libsmbclient

@carlaschroder
Copy link
Contributor

Ok then, to be totally awesomely perfectly crystal clear: php5-libsmbclient, which is special oC secret sauce (ok, not very secret) is required for SMB external storage? And not standard distro packages like smbclient or libsmbclient?

@RealRancor @Xenopathic @jnweiger

@RobinMcCorkell
Copy link

@carlaschroder Correct. php5-libsmbclient (or variations thereof, another common name is libsmbclient-php) provides the PHP module that ownCloud can use to directly interface with the libsmbclient code. The alternative, which is still supported, is to use the smbclient binary to connect, but this has obvious performance and reliability drawbacks compared to the native library.

@carlaschroder
Copy link
Contributor

Excellent. Thanks @Xenopathic

@mickg10
Copy link

mickg10 commented Aug 15, 2015

Note that the packages referenced above do not work for 32-bit versions of linux that a good many people run.

@ghost
Copy link
Author

ghost commented Aug 15, 2015

@mickg10 Maybe report this to the core tracker to get it fixed?

@carlaschroder
Copy link
Contributor

It's php5-libsmbclient for all distros. See http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/

@jnweiger
Copy link
Contributor

@mickg10 here is the list of Platforms for which we build php5-libsmbclient. 32bit are there too.
https://build.opensuse.org/package/show/isv:ownCloud:community:8.1/php5-libsmbclient

@carlaschroder
Copy link
Contributor

master: 6e446e4
stable8.1: c69675a

@carlaschroder
Copy link
Contributor

I think you can close this, @RealRancor. If the docs need further tweaking please open a new issue.

@adrianoafonso
Copy link

Hello there
@carlaschroder I can't install php5-libsmbclient on my raspberry pi 1. Is it available for this platform?

I tried:

echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/Debian_7.0/ /' >> /etc/apt/sources.list.d/php5-libsmbclient.list
wget http://download.opensuse.org/repositories/isv:ownCloud:community:8.1/Debian_7.0/Release.key
apt-key add - < Release.key

apt-get update
apt-get install php5-libsmbclient

And also with this repository:

deb http://download.opensuse.org/repositories/isv:/ownCloud:/community/Debian_7.0/ /

@RobinMcCorkell
Copy link

@adrianoafonso The binary packages in the repositories are only for x86 and x86_64, not armv6h. You will need to compile it yourself.

@RobinMcCorkell
Copy link

@jnweiger Raspberry Pi 1 is an armv6h board, not armv7l 😞

@jnweiger
Copy link
Contributor

right. armv6l added too. Let's see.

@adrianoafonso
Copy link

Thanks for the answers @Xenopathic and @jnweiger!
That's as enlighten me!
I hope that could be solved, believe me, that are many people accessing this http://www.adrianoafonso.net/blog/2014/criar-um-servidor-owncloud-debian/ using rasps 1 and 2.

@adrianoafonso
Copy link

Hello there again.
Just reporting that I updated today:

Start-Date: 2016-06-23  10:58:42
Commandline: apt-get upgrade
Upgrade: php5-libsmbclient:amd64 (0.5.0-9.1, 0.5.0-9.2), libxslt1.1:amd64 (1.1.28-2+b2, 1.1.28-2+deb8u1)
End-Date: 2016-06-23  10:58:46

And any of the CIFS shares that I had configured broke down.
Trying to rollback php5-libsmbclient 0.5.0-9.1.

@ghost
Copy link
Author

ghost commented Jun 23, 2016

@adrianoafonso The issue tracker here is used for issues / requests for the documentation. :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants