Linux distribution packages for the desktop clients - help out!

So. We’ve got a branded client in this repo:

And it can be built for Linux, we’ll do Windows and Mac! RC’s are already up on https://nextcloud.com/install/ and awaiting your feedback.

Who’s in for some testing & package building?

Here are instructions for moving your accounts over provided by @nickvergessen

3 Likes

Hi, I’ve tried to follow the instructions, but they are very insufficient for a “git noob” like me and many users I guess :wink: Pretty bad, because I have many computers under Ubuntu and I’d love to have the same features I have under Windows


I’ve done these steps, but I have an error at the end :

  • sudo apt install git cmake
  • git clone https://github.com/nextcloud/client_theming.git
  • cd client-theming
  • git submodule update --init
  • cd client
  • git submodule update --init
  • cd 
 (two or three dots ?)
  • mkdir build-linux (so it has to be created in client-theming rep ?)
  • cd build-linux
  • cmake -D OEM_THEME_DIR=pwd/
/nextcloudtheme 
/client (returns errors at the end)
  • make (returns error (not specified target and makefile)
    

1 Like

Must be two (99%)

correct[quote=“Ecphrasis, post:3, topic:2538”]
cmake -D OEM_THEME_DIR=pwd/
/nextcloudtheme 
/client (returns errors at the end)
[/quote]

That’s probably because you have missing dependencies. Please post the output. Maybe you can try to install the build dependencies of the ownCloud client https://github.com/owncloud/client/blob/master/doc/building.rst#linux

You could also use the packaged ownCloud client of course :slight_smile:

I created a PR to make the “setup of the repo” easier: Make the submodule one command by LEDfan · Pull Request #17 · nextcloud/client_theming · GitHub

Hi, I have been working on an AppImage:

Don’t forget the ’ ’ around pwd and a space between pwd and /
/nextcloudtheme

Has anyone already made an ubuntu 16.04 package? is there a ppa available?
I am reluctant to compile my own client for the moment.

Regards,

Bert

2 Likes

Hello all, after 10 days no reply. Untill Nextcloud-client packages pop up in the distribution repos, would it be possible to at least have an precompiled package for the main linux distro’s? Debian, Fedora, Ubuntu would cover about 95-99% of the market, right?
This part of the migration is a blocking part.

1 Like

Indeed, it would be great to have at least deb and rpm files. Someone probably must go through the documentation and figure out how to do this: https://wiki.debian.org/Packaging

Personally, I still use the owncloud-client on Linux for the moment because it is just a different branding.

1 Like

At the moment, the README does not list the build requirements; without them, the cmake ...; make; make install dance will not work for naive users. I have had a qualified success by installing the following requirements on Linux Mint 18 (derived from Ubuntu 16.04 ‘Xenial Xerus’). ‘Qualified succes’ means:

  • cmake ... succeeded, only warning about a missing kf5 and qt5linguist
  • make and sudo make install succeeded
  • The nextcloud command nonetheless failed, with the message “nextcloud: error while loading shared libraries: libnextcloudsync.so.0: cannot open shared object file: No such file or directory”.

I hope that soon I can test this list on a clean Vagrantbox and submit a patch to the README; for now, I will place the list here. If anyone uses this list to build-and-install their own client, could you please reply whether it worked or failed?

The list:

  • qt5-default
  • qt5-qmake
  • libinotifytools0-dev
  • qt5keychain-dev
  • libqt5webkit5-dev
  • doxygen

The installation commands now become:

sudo apt install qt5-default qt5-qmake libinotifytools0-dev \
    qt5keychain-dev libqt5webkit5-dev doxygen
mkdir build-linux
cd build-linux
cmake -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
make
make install

I repeat, this doesn’t lead to a working installation. But it gets closer. We’ll get there.

tflidd wrote:

Personally, I still use the owncloud-client on Linux for the moment because it is just a different branding.

Yep, sudo apt install owncloud-client worked for me, too. Thanks for that tip.

Make sure that you install from the SuSE repo and not the default one in ubuntu which is probably out of date (current version is 2.2.4).

tflidd wrote:

Make sure that you install from the SuSE repo and not the default one in ubuntu which is probably out of date (current version is 2.2.4).

Wow, I had no idea the OpenSUSE repos also offered .deb packages of some programs. This is good news for me. Ubuntu 16.04’s owncloud-client version is 2.1.1.

For other users, here is a step-by-step:

  1. Go to openSUSE Software

  2. Click on the Ubuntu 16.04 foldout, then click on ‘show unstable packages’

  3. There are two editions of 2.2.4. Click on the name of the one you like. I picked the one with only a 64bit build. The other one (can’t link it, sorry – only 2 links per post for new users) will probably also work – it says it has build errors, but those are only on platforms RHEL_6, SLE_11_SP4, and Univention_4.1, so for Ubuntu it should be fine.

  4. Click ‘Download package’; it’s at the right of the topmost white block.

  5. Select your operating system (Ubuntu or Debian).

  6. Copy-paste and run the commands they tell you. If you’re impatient (but patient enough to read all these instructions), you skip all the steps above and run this (if you have a 64-bit processor, otherwise you need the other package):

     wget http://download.opensuse.org/repositories/isv:ownCloud:desktop:qt5deb/Ubuntu_16.04/Release.key
     sudo apt-key add - < Release.key
     sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop:/qt5deb/Ubuntu_16.04/ /' > /etc/apt/sources.list.d/owncloud-client.list"
     sudo apt-get update
     sudo apt-get install owncloud-client
    

Thanks again, tflidd!

note that someone with an account on the OpenBuildService could quite easily clone the openSUSE repo from ownCloud and upload the tarballs from Nextcloud, building packages for Ubuntu and/or other distributions. It is work of course but not super hard :wink:

Doing that would be greatly appreciated!

I have an account for the OpenBuildService. I’ll try find out how it works. I’ve never really used it before.
However I don’t have to much hope since I wasn’t even able to compile it for Debian 8 manually.

1 Like

I have success !!: (Linux Mint 18)

sudo apt install cmake openssl libssl-dev sqlite3 libsqlite3-dev qt5-default libqt5webkit5-dev qttools5-dev qttools5-dev-tools python-sphinx texlive-latex-base inotify-tools qt5keychain-dev git cmake
cd /usr/local/src
sudo git clone https://github.com/nextcloud/client_theming.git
cd client_theming
sudo git submodule update --init
cd client
sudo git submodule update --init
cd 

sudo mkdir build-linux
cd build-linux
sudo apt-get install build-essential -y
sudo cmake -D OEM_THEME_DIR=pwd/
/nextcloudtheme 
/client
sudo make && sudo make install

sudo nano /etc/environment
Insert this:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu

Save and quit.

Then at:

/usr/local/src/client_theming/build-linux/bin

you will find nextcloud executable.

All of this i have found at various sources.

1 Like

Has there been any progress on this issue already?

Kind regards,

Bert

I have no problems whith this compilation. Only one thing: I have publish at this Quote some minimal corrections that make the dirferrence to work ot not, Im sorry very much.

Text before # symbol you havenÂŽt to write to command line at terminal. (Sooorryyy, my english is basic)

Hi Picapedra,

Thank you for the detailed instructions of

I was hoping more for something in the lines of

add-apt-repository xxxyyyzzznextcloudppaaaabbbcc

apt-get update

apt-get install nextcloud-client.

:slight_smile:

I hope someone has the time to set up a ppa or something similar.

Regards,

Bert

1 Like

Any news on a an offcial PPA ?

1 Like