nextcloud

Install Nextcloud client on ubuntu (v. 4)

nextcloud-square-logoBuild the Nextcloud client for ubuntu out of the ppa-repositories or from scratch. Install all required dependencies as shown above. But it might be necessary to install further binaries, it depends on your system:

Update series (history)
v. 4 – Feb. 12th, 2017: Changed PPA for Nextcloud client
v. 3 – Jan. 08th, 2017: Using PPA for Nextcloud client
v. 2 – Nov. 28th, 2016: updates to build process (…sed … Icon=Nextcloud…)
v. 1 – Oct. 10th, 2016: Initial Post

Using PPA for Nextcloud client

Add the Nextcloud repository to your Ubuntu installation

sudo -s
add-apt-repository ppa:nextcloud-devs/client
optional (if you used guide v.3 before):
rm /etc/apt/sources.list.d/ivaradi-ubuntu-nextcloud-client-ppa-xenial.list*

Update your System:

apt update

and install the Nextcloud client

apt install nextcloud-client

From now you find the Nextcloud client as expected in Ubuntu


Advanced / Manual installation

Ensure having all dependencies and pre-requirements in place:

sudo-s
apt install build-essential git 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

Change to your working-directory:

cd /usr/local/src

and start the Nextcloud procedure:

git clone https://github.com/nextcloud/client_theming.git
cd client_theming
git submodule update --init
cd client
git submodule update --init
cd ..
mkdir build-linux
cd build-linux
cmake -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client

Now we change the lower ‘n’ to an upper ‘N’, otherwise no icon would appear in Ubuntu’s dashboard:

sed -i 's/Icon=nextcloud/Icon=Nextcloud/g' src/gui/nextcloud.desktop
sed -i 's/Icon\[\(.*\)\]=nextcloud/Icon\[\1\]=Nextcloud/g' src/gui/nextcloud.desktop
make && make install

© c-rieger.de © c-rieger.de  © c-rieger.de

At least edit your environment (/etc/environment) and add the following row at the end of this file:

vi /etc/environment

Add the following row:

...
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/x86_64-linux-gnu

© c-rieger.de

Now reboot your system and enjoy your Nextcloud client by

(a) running “nextcloud” in a terminal

&copy, c-rieger.de

or

(b) start Nextcloud using Ubuntu’s dashboard.

© c-rieger.de


If the start fails with “nextcloud client nextcloud: error while loading shared libraries: libnextcloudsync.so.0…” please modify x86_64-linux-gnu.conf as shown in the solution toogle:

Solution
vi /etc/ld.so.conf.d/x86_64-linux-gnu.conf

Add the line:

/usr/local/lib/x86_64-linux-gnu

Then run:

ldconfig

Works for me on both, Mint and Mate.


© 2016, rieger::CLOUD

Enjoy your Nextcloud.