[2025] Mastering NFS Setup: TrueNAS & NextCloud Integration Tutorial - Change NextCloud Data Folder

Опубликовано: 13 Март 2025
на канале: Francis Techworld
120
5

Hello everyone, In this final episode of our series, we dive deep into the technical details of integrating Tune Last with Next Cow using NFS. Follow along as we set up the necessary configurations, optimize storage with deduplication and compression, and achieve seamless file transfers. Whether you're a beginner or an expert, this tutorial will help you save space and enhance your private cloud setup. Don't forget to like, comment, and subscribe for more tech tutorials!"

NFS ppt:
https://
docs.google.com/presentation/d/1GEfmWYOqAchznok2r8IojbBIFWRtkJz3/edit?usp=sharing&ouid=109196574617668938944&rtpof=true&sd=true

Reference:
https://
docs.nextcloud.com/server/27/admin_manual/installation/example_ubuntu.html

Command:
sudo apt update && sudo apt upgrade
sudo apt install apache2 mariadb-server libapache2-mod-php php-gd php-mysql \
php-curl php-mbstring php-intl php-gmp php-bcmath php-xml php-imagick php-zip

sudo mysql

CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
GRANT ALL PRIVILEGES ON nextcloud.* TO 'username'@'localhost';
FLUSH PRIVILEGES;

mkdir nextcloud
cd nextcloud/
wget https://
download.nextcloud.com/server/releases/latest.zip
apt install unzip
unzip latest.zip
ls
sudo cp -r nextcloud /var/www
sudo chown -R www-data:www-data /var/www/nextcloud
nano /etc/apache2/sites-available/nextcloud.conf
a2ensite nextcloud.conf
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime
a2enmod setenvif
Satisfy Any
service apache2 restart
ip a
clear
service apache2 restart
ip a
a2enmod ssl
a2ensite default-ssl
service apache2 reload
chown -R www-data:www-data /var/www/nextcloud/
nano 50-cloud-init.yaml
sudo netplan apply
sudo apt install nfs-common
sudo mkdir -p /mnt/nfs_share
sudo nano /etc/fstab
192.168.255.219:/mnt/TN219/ncstorage/ /mnt/nfs_share nfs defaults 0 0
sudo mount -a
systemctl daemon-reload
sudo mount -a
sudo mkdir -p /mnt/nfs_share
sudo chown -R www-data:www-data /mnt/nfs_share
sudo chmod 750 /mnt/nfs_share
sudo cp -a /var/www/nextcloud/data/. /mnt/nfs_share/
sudo -u www-data php /var/www/nextcloud/occ files:scan --all
sudo systemctl start apache2

Hashtags: #PrivateCloud #TechTutorial #NextCloud