NEXTCLOUD APPS TALK (WEBRTC) DAN COLLABORA OFFICE

NEXTCLOUD APPS TALK (WEBRTC)  DAN COLLABORA OFFICE
=======================================================================================


Asslamualaikum

salam floss (free libre open source software) gnu linux :)

-----------------------------------


kali ini kita akan mencoba membuat server NEXTCLOUD sangat aman dari spy2 dengan gnu linux os  :)

----------------------------

jangan lupa donasi ke sifo ok :D

===================================================


==============================



cara mudah dan sederhana install  nextcloud server

-----------------------------------
----------------------------
------------



1. install gnu linux os di komputer server

aku rekomendasikan distro gnu linux = av linux mx edition :)

pakai distro gnu linux os lain juga bisa menyusuaikan :)

os lain nonfloss (os jendela, os buah) juga bisa tapi ga rekomendasi :D


jangan lupa konekan ke internet lewat wifi theter dari hp android / wifi router yang terhubung ke internet biar mudah :D



====================
2. install apache2 web server

sudo apt install apache2 apache2-utils



===================

3. install php8.1 dan plugin2nya yang dibutuhkan nexcloud server :)


a. sudo update

b. sudo apt install -y lsb-release ca-certificates apt-transport-https software-
properties-common wget unzip  -y



d. echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo
tee /etc/apt/sources.list.d/sury-php.list


e.  wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add -


g. sudo apt update

h, sudo apt full-upgrade



i. sudo apt install php8.1 PHP8.1-ctype PHP8.1-curl php8.1-sqlite3 php8.1-zip php8.1-dom php8.1-xmlwriter  php8.1-xmlreader php8.1-mbstring php8.1-pgsql php8.1-mysql php8.1-gd


j. hidupkan modnya  sudo a2enmod php8.1*



=====================

4. download dan seting nextcloud server


a. cd /tmp


b. wget https://download.nextcloud.com/server/releases/latest.zip


c. masuk root

su


d. unzip lastest.zip

maka akan jadi folder nexcloud



e. pindahkan folder nextcloudku ke /var/www/html

mv nextcloud /var/www/html




f. cd /var/www/html



g. chmod -R 755 nextcloud


h. chown -R www-data:www-data nextcloud

i. kate /var/www/html/nextcloud/config/config.php8

edited trusted domain tambahkan  "*"


ini agar bisa diakses dijaringan lokal dll :)




============


5. atur / settinng apache2 web server nya :)

a. kate /etc/apache2/sites-available/nextcloud.conf

-------------------
<VirtualHost *:8080>
ServerName nextcloud
ServerAdmin webmaster@nexcloud
DocumentRoot /var/www/html/
<Directory /var/www/html/nextcloud>
Allowoverride all
</Directory>
</VirtualHost>

--------------------


b. a2ensite nextcloud.conf


---------------------------


c. systemctl restart apache2


===================================


7. seting nextcloudnya

a. buka dengan web browser (firefox, flakon, chromium , dll)

127.0.0.1/nexcloud


b. atur nama , pasword, data base pakai sqlite aja biar mudah :)


c. ok tunggu sampai selesai :)


d. kalau sudah selesai login dengan dengan username dan password yang kita buat tadi :)


e. nexcloud siap untuk digunakan :)

f. masuk file dan kita bisa upload , download , upload folder dengan drag and drop, install apps2 tambahan buat nexcloud server dll :D


==================================

nb

biar bisa upload file besar

1. kate /etc/php/8.1/apache2/php.ini


cari dan edit

-------------------

upload_max_filesize = 900M

post_max_size = 900M

memory_limit = 9000 G

-------------------------


jangan lupa save dan tutup ok :)


2. sudo systemctl restart apache2





===========================
============
==================





CARA MENGINSTALL  DAN MENSETING APACHE DAN NGINX MENGGUNAKAN SSL



1. edit port apache2


# nano /etc/apache2/ports.conf [On Debian/Ubuntu]
# nano /etc/httpd/conf/httpd.conf [On RHEL/CentOS]


Listen 8080


=================================


2. untuk install cert dengan certbot


a. install certboot


sudo apt install certbot -y


----------------------


b. masuk ke /etc/letsencrypt/live/

cd /etc/letsencrypt/live/

==============

buat folder localhost di /etc/letsencrypt/live/


mkdir localhost


===================

c. buat lokalhost cert dengn certbot

harus di /etc/letsencrypt/live/localhost biar mudah :D

******************
openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

**************************



openssl genrsa > privkey.pem
openssl req -new -x509 -key privkey.pem > fullchain.pem


===========================


kemudian


ls -lah /etc/letsencrypt/live/localhost/


=====================
3. install nginx

sudo apt install nginx -y


==============

4. setting nginx


nano  /etc/nginx/sites-available/matrix


atau


kate /etc/nginx/sites-available/matrix



kemudian masukan kode berikut ini


*********************

server {
    listen 447 ssl;
    server_name localhost;

    ssl_certificate /etc/letsencrypt/live/localhost/localhost.crt;
    ssl_certificate_key /etc/letsencrypt/live/localhost/localhost.key;

    location ~  {
        proxy_pass http://127.0.0.1:8008;
        proxy_set_header X-Forwarded-For $remote_addr;
        # Nginx by default only allows file uploads up to 1M in size
        # Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
        client_max_body_size 900M;
    }
}




# This is used for Matrix Federation
# which is using default TCP port '8448'
server {
    listen 8448 ssl;
    server_name localhost;

    ssl_certificate /etc/letsencrypt/live/localhost/localhost.crt;
    ssl_certificate_key /etc/letsencrypt/live/localhost/localhost.key;

    

   
    location ~  {
         proxy_pass http://127.0.0.1:2083;
        proxy_set_header X-Forwarded-For $remote_addr;
       
    }
}




server {
     listen 448 ssl;
    server_name localhost;

    ssl_certificate /etc/letsencrypt/live/localhost/localhost.crt;
    ssl_certificate_key /etc/letsencrypt/live/localhost/localhost.key;

    
    location ~  {
        proxy_pass http://127.0.0.1:2082;
        proxy_set_header X-Forwarded-For $remote_addr;
       
    }
}




server {
     listen 449 ssl;
    server_name localhost;

    ssl_certificate /etc/letsencrypt/live/localhost/localhost.crt;
    ssl_certificate_key /etc/letsencrypt/live/localhost/localhost.key;

    
    location ~  {
        proxy_pass http://127.0.0.1:80;
        proxy_set_header X-Forwarded-For $remote_addr;
       
    }
}





server {
     listen 442 ssl;
    server_name localhost;

    ssl_certificate /etc/letsencrypt/live/localhost/localhost.crt;
    ssl_certificate_key /etc/letsencrypt/live/localhost/localhost.key;

    
    location ~  {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header X-Forwarded-For $remote_addr;
       
    }
}







server {
   listen       192.168.43.97:9999 ssl;
  server_name  localhost;
 
    ssl_certificate /etc/letsencrypt/live/localhost/localhost.crt;
    ssl_certificate_key /etc/letsencrypt/live/localhost/localhost.key;
 
  location / {
     proxy_pass http://192.168.43.97:8080/;
     root   /usr/share/nginx/html;
     proxy_redirect off;
     proxy_set_header X-Forwarded-Host $host;
     proxy_set_header X-Forwarded-Server $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     
     
  }
}



********************************************


lalu

ln -s /etc/nginx/sites-available/matrix /etc/nginx/sites-enabled/



=====================


5. restart nginx

sudo systemctl restart nginx

sudo systemctl enable nginx





================





=======


6. restart apache2 dan nginx

sudo systemctl restart apache2

sudo systemctl restart nginx

=================================

7. buka nexcloud di web browser

https://192.168.43.97:9999


==============

8. login


============

9. masuk nextcloud apps store

================

10. kita install registration, talk , nextcloud office , collabora office build in


cd /var/www/html/nextcloud

--------------------------------------------------------------------
a. registration

sudo -u www-data php -d memory_limit=512M ./occ app:install registration



setelah diinstall lebih baik matikan verifikasi email di setting

kita bisa mendaftar di menu utama

maukan email , stelah itu  username dan password, terus login

--------------------------

b. nexcloud office dan Collabora Online - Built-in CODE Server

sudo -u www-data php -d memory_limit=512M ./occ app:install richdocuments

sudo -u www-data php -d memory_limit=512M ./occ app:install richdocumentscode


---------------------

c. talk

sudo -u www-data php -d memory_limit=512M ./occ app:install spreed


--------------

d. update all nextcloud apps


sudo -u www-data php -d memory_limit=512M ./occ app:update --all


============================


11. nexcloud office /Collabora Online - Built-in CODE Server

ini adalah aplikasi mirip office online :)



cara setting

a. masuk ke setting

b. pilih nextcloud office administartion

c. pilih Collabora Online - Built-in CODE Server


==========================


cara membuat / membuka dokumen office baru

a. masuk ke file

b. tambahkan / upload / buka file doc, spread sheet , presentation


==============

12. kita masuk ke talk / web chat / web rtc

pilih talk

untuk vcall /video conference harus https



https://192.168.43.97:9999/nextcloud/index.php/apps/spreed/






================================


demikianlah tutor ini dibuat


bermanfaat insya Allah

mohon maaf jika ada yang kurang atau salah :)

sukses semua :)

amin ya Allah

=========================

jangan lupa yang ingin donasi ke sifo (anton wibowo)

BISA LEWAT DANA

088806190316

=======================

tulisan ini menggunakan lisensi floss full creative common (cc)

==============================

referensi

1. https://en.wikipedia.org/wiki/AV_Linux

2. https://en.wikipedia.org/wiki/Nextcloud

3. https://nextcloud.com/

4. https://apps.nextcloud.com/apps/richdocumentscode

5. https://apps.nextcloud.com/apps/spreed

6. https://apps.nextcloud.com/apps/registration


==============================================

salam floss (free libre open source software) gnu linux

Wasalamualaikum

============================


video tutor sederhana :)








Komentar

Postingan populer dari blog ini

oprek2 openwrt x84/x64 untuk pc

MEMBUAT SERVER CCTV / SECURITY CAM / KEMERA KEMAANAN SECARA SEDERHANA DENGAN ZONE MINDER

BLAJAR GNU DI GNU LINUX OS DENGAN SANGAT CEPAT