====Nextcloud====
{{tools:nextc1.jpg?200}}
===Host===
Debian bookworm [[:tools:kvm|VM]]
DUAL CORE
8GB RAM
80 GB HDD
NB CollaboraOnline recommends [[https://sdk.collaboraonline.com/docs/installation/Configuration.html#performance|4 cores]]
if you need that.
==AppImage==
Nextcloud apps can be binary blobs which depend on fuse and may also require X11 features such
as fonts. The X11 client depends on Qt
apt install fuse qt6-base-dev libasound2
===Server===
[[https://nextcloud.com/install/|Nextcloud]]
__MySQL__
apt install mariadb-server
rehash
mysql_secure_installation
mysql
CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
CREATE USER 'nextcloud'@'X.X.X.X' IDENTIFIED BY 'nextcloud';
GRANT ALL ON nextcloud.* TO 'nextcloud'@'X.X.X.X' WITH GRANT OPTION;
FLUSH PRIVILEGES;
__Apache/PHP__
apt install apache2 libapache2-mod-php php-mysql php-common php-gd php-xml php-mbstring php-zip php-curl php-pear php-json php-imagick php-dev php-soap php-bz2 php-bcmath php-gmp php-apcu libmagickcore-dev php-redis php-memcached
mkdir -p /var/www/htdocs
Download the [[https://download.nextcloud.com/server/releases/latest.zip|latest release]]. This ZIP file is approx 254 MB in size but the download seems to be throttled and this will take a while.
cd /var/www/htdocs
wget "https://download.nextcloud.com/server/releases/latest.zip"
unzip latest.zip
mv nextcloud nextcloud.example.com
chown -R www-data:www-data nextcloud.example.com
#https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html
ServerName nextcloud.example.com
DocumentRoot "/var/www/htdocs/nextcloud.example.com"
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
Dav off
CustomLog /var/log/apache2/nextcloud.example.com/access.log combined
ErrorLog /var/log/apache2/nextcloud.example.com/error.log
diff php.ini.dist php.ini
435c435
< memory_limit = 128M
---
> memory_limit = 1G
703c703
< post_max_size = 8M
---
> post_max_size = 2G
855c855
< upload_max_filesize = 2M
---
> upload_max_filesize = 2G
diff conf.d/10-opcache.ini.dist conf.d/10-opcache.ini
4c4,14
< opcache.jit=off
---
> ;opcache.jit=off
> ;
> opcache.enable=1
> opcache.enable_cli=1
> opcache.revalidate_freq = 60
> opcache.memory_consumption = 256M
> opcache.interned_strings_buffer = 128M
> opcache.max_accelerated_files=10000
> opcache.save_comments = 1
> opcache.jit = 1255
> opcache.jit_buffer_size = 8M
===Client===
[[https://nextcloud.com/install/|Nextcloud]]
Download the app image.
wget https://github.com/nextcloud-releases/desktop/releases/download/v3.16.2/Nextcloud-3.16.2-x86_64.AppImage
chmod +x Nextcloud-3.16.2-x86_64.AppImage
Run client
setenv DISPLAY somewhere:0.0
./Nextcloud-3.16.2-x86_64.AppImage
===Resources===
[[https://docs.nextcloud.com/server/latest/admin_manual/installation/|Admin manual]]
[[https://nextcloud.com/developer/|Developer homepage]]
[[https://github.com/CollaboraOnline/richdocumentscode|CollaboraOnline CODE]]
[[https://appimage.org/|App image]]
/*
[[https://linux.how2shout.com/step-by-step-guide-installing-nextcloud-on-debian-12/|Install guide (untested)]]
[[https://www.howtoforge.com/step-by-step-installing-nextcloud-on-debian-12/|Install guide (untested)]]
*/