diff --git a/opsec/nextcloud/arch.html b/opsec/nextcloud/arch.html deleted file mode 100644 index 0bacab4..0000000 --- a/opsec/nextcloud/arch.html +++ /dev/null @@ -1,703 +0,0 @@ - - -
- - - - - - - -
Rent a VPS with debian 10+ (or just run it yourself, but make sure it is correctly port forwarded so that public ip points to the machine like a vps).
-click here for the debian version
-Once you have ssh'd into your debian server, we can start:
- -First we get every package we need:
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ pacman -Syy
-:: Synchronizing package databases...
- core 157.4 KiB 283 KiB/s 00:01 [------------------------------------------------------------------------------------------------------------------------------------------] 100%
- extra 1720.9 KiB 2.45 MiB/s 00:01 [------------------------------------------------------------------------------------------------------------------------------------------] 100%
- community 6.7 MiB 7.82 MiB/s 00:01 [------------------------------------------------------------------------------------------------------------------------------------------] 100%
- multilib 172.6 KiB 528 KiB/s 00:00 [------------------------------------------------------------------------------------------------------------------------------------------] 100%
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ pacman -S nextcloud
-resolving dependencies...
-:: There are 2 providers available for php-interpreter 8.2:
-:: Repository extra
- 1) php 2) php7
-
-Enter a number (default=1):
-looking for conflicting packages...
-
-Package (9) New Version Net Change Download Size
-
-extra/gd 2.3.3-4 0.67 MiB 0.15 MiB
-community/libavif 0.10.1-2 0.32 MiB 0.11 MiB
-extra/libde265 1.0.8-2 1.06 MiB 0.34 MiB
-extra/libheif 1.12.0-3 0.77 MiB 0.24 MiB
-extra/libxpm 3.5.13-3 0.14 MiB 0.05 MiB
-community/libyuv r2322+3aebf69d-1 1.65 MiB 0.26 MiB
-extra/php 8.1.8-1 24.04 MiB 4.21 MiB
-extra/php-gd 8.1.8-1 0.10 MiB 0.03 MiB
-community/nextcloud 24.0.2-1 345.65 MiB 98.34 MiB
-
-Total Download Size: 103.73 MiB
-Total Installed Size: 374.39 MiB
-
-:: Proceed with installation? [Y/n] y
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ pacman -S php-imagick php-intl
-
-resolving dependencies...
-:: There are 8 providers available for ttf-font:
-:: Repository extra
- 1) gnu-free-fonts 2) noto-fonts 3) ttf-bitstream-vera 4) ttf-croscore
-:: Repository community
- 5) ttf-dejavu 6) ttf-droid 7) ttf-ibm-plex 8) ttf-liberation
-
-Enter a number (default=1):
-looking for conflicting packages...
-
-Package (6) New Version Net Change Download Size
-
-extra/gnu-free-fonts 20120503-8 6.65 MiB 3.23 MiB
-extra/imagemagick 7.1.0.43-1 10.89 MiB 2.84 MiB
-extra/liblqr 0.4.2-3 0.09 MiB 0.03 MiB
-extra/libraqm 0.9.0-1 0.15 MiB 0.03 MiB
-community/php-imagick 3.7.0-2 0.51 MiB 0.12 MiB
-extra/php-intl 8.1.8-1 0.47 MiB 0.14 MiB
-
-Total Download Size: 6.39 MiB
-Total Installed Size: 18.75 MiB
-
-
-
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ vim /etc/php/php.ini
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ cat /etc/php/php.ini
-
-[...]
-
-memory_limit = 512M
-
-[...]
-
-extension=pdo_mysql
-extension=bcmath
-extension=bz2
-extension=exif
-extension=gd
-extension=iconv
-; in case you installed php-imagick (as recommended)
-extension=imagick
-; in case you also installed php-intl (as recommended)
-extension=intl
-
-[...]
-
-[Date]
-date.timezone = America/New_York
-
-:wq
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ cp /etc/php/php.ini /etc/webapps/nextcloud/php.ini
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ export NEXTCLOUD_PHP_CONFIG=/etc/webapps/nextcloud/php.ini
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ echo 'export NEXTCLOUD_PHP_CONFIG=/etc/webapps/nextcloud/php.ini' >> ~/.zshrc
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ install --owner=nextcloud --group=nextcloud --mode=700 -d /var/lib/nextcloud/sessions
-
-
-
-Then we setup the database:
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ mysql -u root -p
-Enter password:
-Welcome to the MariaDB monitor. Commands end with ; or \g.
-Your MariaDB connection id is 632
-Server version: 10.8.3-MariaDB Arch Linux
-
-Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
-
-Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
-
-MariaDB [(none)]> CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'xxxxxxxx';
-Query OK, 0 rows affected (0.257 sec)
-
-MariaDB [(none)]> CREATE DATABASE IF NOT EXISTS nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-Query OK, 1 row affected (0.012 sec)
-
-MariaDB [(none)]> GRANT ALL PRIVILEGES on nextcloud.* to 'nextcloud'@'localhost';
-Query OK, 0 rows affected (0.039 sec)
-
-MariaDB [(none)]> FLUSH privileges;
-Query OK, 0 rows affected (0.051 sec)
-
-MariaDB [(none)]> exit
-Bye
-
-
-Now to configure php-fpm:
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ pacman -S php-fpm
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ cp /etc/php/php.ini /etc/php/php-fpm.ini
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ vim /etc/php/php-fpm.ini
-
-[...]
-
-zend_extension=opcache
-
-[...]
-
-[opcache]
-opcache.enable = 1
-opcache.interned_strings_buffer = 8
-opcache.max_accelerated_files = 10000
-opcache.memory_consumption = 128
-opcache.save_comments = 1
-opcache.revalidate_freq = 1
-
-[...]
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ cat /etc/php/php-fpm.d/nextcloud.conf
-[nextcloud]
-
-user = nextcloud
-group = nextcloud
-
-listen = /run/php/nextcloud.sock
-
-listen.owner = nextcloud
-listen.group = http
-listen.mode = 0660
-pm = dynamic
-
-pm.max_children = 5
-
-pm.start_servers = 2
-
-pm.min_spare_servers = 1
-
-pm.max_spare_servers = 3
-
-;pm.max_spawn_rate = 32
-
-;pm.process_idle_timeout = 10s;
-
-access.log = /var/log/php-fpm/access/$pool.log
-
-access.format = "%{%Y-%m-%dT%H:%M:%S%z}t %R: \"%m %r%Q%q\" %s %f %{milli}d %{kilo}M %C%%"
-
-chdir = /usr/share/webapps/$pool
-
-env[HOSTNAME] = $HOSTNAME
-env[PATH] = /usr/local/bin:/usr/bin
-env[TMP] = /tmp
-env[TMPDIR] = /tmp
-env[TEMP] = /tmp
-
-php_value[date.timezone] = Europe/Berlin
-
-php_value[open_basedir] = /var/lib/$pool:/tmp:/usr/share/webapps/$pool:/etc/webapps/$pool:/dev/urandom:/usr/lib/php/modules:/var/log/$pool:/proc/meminfo
-
-php_value[session.save_path] = /var/lib/$pool/sessions
-php_value[session.gc_maxlifetime] = 21600
-php_value[session.gc_divisor] = 500
-php_value[session.gc_probability] = 1
-
-php_flag[expose_php] = false
-php_value[post_max_size] = 1000M
-php_value[upload_max_filesize] = 1000M
-
-php_flag[output_buffering] = off
-php_value[max_input_time] = 120
-php_value[max_execution_time] = 60
-
-php_value[memory_limit] = 768M
-
-php_value[apc.ttl] = 7200
-php_flag[apc.enable_cli] = 1
-
-php_value[extension] = bcmath
-php_value[extension] = bz2
-php_value[extension] = exif
-php_value[extension] = gd
-php_value[extension] = gmp
-; uncomment if php-imagick is installed and used
-php_value[extension] = imagick
-; uncomment if php-imap is installed and used
-; php_value[extension] = imap
-; recommended to enable
-php_value[extension] = intl
-php_value[extension] = iconv
-; uncomment if php-memcached is installed and used
-; php_value[extension] = memcached
-; uncomment exactly one of the pdo extensions
-php_value[extension] = pdo_mysql
-; php_value[extension] = pdo_pgsql
-; php_value[extension] = pdo_sqlite
-; uncomment if php-igbinary is installed and used
-; php_value[extension] = igbinary
-; uncomment if php-redis is installed and used (requires php-igbinary)
-; php_value[extension] = redis
-; uncomment if php-xsl is installed and used
-; php_value[extension] = xsl
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ mkdir -p /etc/systemd/system/php-fpm.service.d/
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ vim /etc/systemd/system/php-fpm.service.d/override.conf
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ cat /etc/systemd/system/php-fpm.service.d/override.conf
-[Service]
-ExecStart=
-ExecStart=/usr/bin/php-fpm --nodaemonize --fpm-config /etc/php/php-fpm.conf --php-ini /etc/php/php-fpm.ini
-ReadWritePaths=/var/lib/nextcloud
-ReadWritePaths=/etc/webapps/nextcloud/config
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ mkdir /var/log/php-fpm/access/ -p
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ systemctl enable --now php-fpm
-
-[ nihilism ] [ /dev/pts/12 ] [~]
-→ systemctl status php-fpm
-● php-fpm.service - The PHP FastCGI Process Manager
- Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
- Drop-In: /etc/systemd/system/php-fpm.service.d
- └─override.conf
- Active: active (running) since Mon 2022-07-11 16:01:22 UTC; 6s ago
- Main PID: 3396418 (php-fpm)
- Status: "Ready to handle connections"
- Tasks: 5 (limit: 11902)
- Memory: 13.1M
- CPU: 713ms
- CGroup: /system.slice/php-fpm.service
- ├─3396418 "php-fpm: master process (/etc/php/php-fpm.conf)"
- ├─3396435 "php-fpm: pool nextcloud"
- ├─3396436 "php-fpm: pool nextcloud"
- ├─3396437 "php-fpm: pool www"
- └─3396438 "php-fpm: pool www"
-
-Jul 11 16:01:15 nihilism systemd[1]: Starting The PHP FastCGI Process Manager...
-Jul 11 16:01:22 nihilism php-fpm[3396418]: [NOTICE] fpm is running, pid 3396418
-Jul 11 16:01:22 nihilism php-fpm[3396418]: [NOTICE] ready to handle connections
-Jul 11 16:01:22 nihilism systemd[1]: Started The PHP FastCGI Process Manager.
-Jul 11 16:01:22 nihilism php-fpm[3396418]: [NOTICE] systemd monitor interval set to 10000ms
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ chown nextcloud:www-data /run/php/nextcloud.sock
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ vim config/config.php
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ cat config/config.php
-<?php
-$CONFIG = array (
- 'datadirectory' => '/var/lib/nextcloud/data',
- 'logfile' => '/var/log/nextcloud/nextcloud.log',
- 'apps_paths' =>
-
-[...]
-
- 'trusted_domains' =>
- array (
- 0 => 'localhost',
- 1 => 'cloud.nowhere.moe',
- ),
- 'dbtype' => 'mysql',
-
-[...]
-
-
-
-
-
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ occ
-Nextcloud is not installed - only a limited number of commands are available
-Nextcloud 24.0.2
-
-Usage:
- command [options] [arguments]
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ occ maintenance:install \
- --database=mysql \
- --database-name=nextcloud \
- --database-host=localhost:/run/mysqld/mysqld.sock \
- --database-user=nextcloud \
-> --database-pass=xxxxx \
-> --admin-pass=xxxxx \
-> --admin-email=nihilist@nowhere.moe \
-> --data-dir=/var/lib/nextcloud/data
-
-Nextcloud was successfully installed
-
-[ nihilism ] [ /dev/pts/12 ] [share/webapps/nextcloud]
-→ systemctl restart nginx php-fpm mysql
-
-
-Then just login with the admin credentials you specified above
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- From here we need to install our letsencrypt certificate. If you don't have a domain name yet, go get one, or just go for the free alternative DuckDNS -and get one, mine currently is ech2.duckdns.org
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Now from here you can make backups just in case if the server goes down or harddrive gets corrupted, etc. You could use a script like this:
-
-#!/bin/bash
-#this must run as root !
-if [ "$EUID" -ne 0 ]
-then
- echo 'MUST RUN AS ROOT!'
- exit
-fi
-
-cd /var/www/nextcloud/data/nothing/files/
-#make sure the path to your user is correct!
-
-#run it at 3AM
-cooldate=$(date --iso-8601)
-echo $cooldate
-
-rm backup*.zip
-rm backup-$cooldate.zip
-zip -r backup-$cooldate.zip /var/www/nextcloud/data/nothing/files/
-
-#rsync backup-$cooldate.zip nothing@10.0.0.10:/home/nothing/backup/
-rsync backup-$cooldate.zip nothing@mainpc:/home/nothing/backup/
-
-rm backup*.zip
-
-#crontab -e
-#0 3 * * * /bin/bash /var/www/nextcloud/data/nothing/files/backup.sh
-
-#chmod u+x backup.shg
-
-#BACKUP_SERVER (here its 10.0.0.10)
-#https://git.void.yt/nothing/serverside/blob/master/ssh/ssh.sh
-#use this script to setup the key based ssh authentication, and then make sure your nextcloud server's root user has the private ssh key.
-
-
-Here i can make rsync login via ssh to my mainpc host thanks to the private key ssh authentication specified in ~/.ssh/config:
-
-root@home:/var/www/nextcloud/data/nothing/files# apt install rsync -y
-root@home:/var/www/nextcloud/data/nothing/files# cat ~/.ssh/config
-Host mainpc
- Hostname 10.0.0.10
- IdentityFile ~/.ssh/mainpc-10.pkey
- User nothing
-
-
-of course you would have created the ssh keys on your remote host (in this case : 192.168.0.18) and placed the private key in the server's /root/.ssh/ folder. - as comments at the end of the script imply, you can setup the cronjob to run backup.sh every day at 3 AM.g -
- -Now in order to mount your files as a webdav share on linux you can do the following:
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ apt-get install davfs2
-
- [ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo mkdir /mnt/cloud.void.yt
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo chown -R nothing:nothing /mnt/cloud.void.yt
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo mount -t davfs -o noexec https://cloud.void.yt/remote.php/webdav/ /mnt/cloud.void.yt/
-Please enter the username to authenticate with server
-https://cloud.void.yt/remote.php/webdav/ or hit enter for none.
- Username: nothing
-Please enter the password to authenticate user nothing with server
-https://cloud.void.yt/remote.php/webdav/ or hit enter for none.
- Password:
-/usr/bin/mount.davfs: warning: the server does not support locks
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ cd /mnt/cloud.void.yt
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [/mnt/cloud.void.yt]
-→ ls
- backup.sh Caldera Certs Cours Crypto Documents id_ed25519 KEEPASS.txt lost+found Notes nothing.ovpn Passwords.kdbx Photos Random_Files Readme.md SSH Templates 'void.yt setup'
-
-
-
-Now in order to make it persistant accross reboots, you need to make a fstab entry:
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo vim /etc/fstab
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ cat /etc/fstab
-
-#webdav entry
-https://cloud.void.yt/remote.php/webdav/ /mnt/cloud.void.yt davfs _netdev,noauto,user,uid=nothing,gid=nothing 0 0
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo vim /etc/davfs2/secrets
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo cat /etc/davfs2/secrets | tail -n2
-# personal webdav, nextcloud application password
-/mnt/cloud.void.yt nothing "mypassword"
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ sudo mount /mnt/cloud.void.yt/
-/usr/bin/mount.davfs: warning: the server does not support locks
-
-
-And that's it ! your nextcloud files have been mounted on a linux host.
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [~]
-→ cd /mnt/cloud.void.yt
-
-[ 10.55.55.2/32 ] [ /dev/pts/42 ] [/mnt/cloud.void.yt]
-→ ls -l
-total 46
--rw-r--r-- 1 nothing nothing 859 Apr 7 2021 backup.sh
-drwxr-xr-x 3 nothing nothing 0 Feb 16 13:14 Caldera
-drwxr-xr-x 9 nothing nothing 0 Jan 20 20:54 Certs
-drwxr-xr-x 8 nothing nothing 0 Mar 21 20:34 Cours
-drwxr-xr-x 2 nothing nothing 0 Oct 27 09:05 Crypto
-drwxr-xr-x 2 nothing nothing 0 Apr 7 2021 Documents
--rw-r--r-- 1 nothing nothing 411 Apr 7 2021 id_ed25519
--rw-r--r-- 1 nothing nothing 55 Apr 7 2021 KEEPASS.txt
-drwx------ 2 nothing nothing 0 Mar 27 14:07 lost+found
-drwxr-xr-x 2 nothing nothing 0 Aug 23 2021 Notes
--rw-r--r-- 1 nothing nothing 2914 Apr 7 2021 nothing.ovpn
--rw-r--r-- 1 nothing nothing 40510 Mar 26 21:40 Passwords.kdbx
-drwxr-xr-x 2 nothing nothing 0 Apr 7 2021 Photos
-drwxr-xr-x 9 nothing nothing 0 Mar 25 09:42 Random_Files
--rw-r--r-- 1 nothing nothing 1 May 27 2021 Readme.md
-drwxr-xr-x 7 nothing nothing 0 Jul 1 2021 SSH
-drwxr-xr-x 2 nothing nothing 0 Apr 7 2021 Templates
-drwxr-xr-x 2 nothing nothing 0 Jun 6 2021 'void.yt setup'
-
-
-Special thanks to skid9000 from the anjara.eu staff for helping me update this tutorial. (23/09/2020)
-
-
- RSS Feed
SimpleX Chat
-
-
Donate XMR: 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8
Contact: nihilist@contact.nowhere.moe (PGP)
-
In this tutorial we're going to cover how you can install an .onion only Nextcloud instance, it is a FOSS software meant to replace popular websites like google drive, which can be ideal to make sure that your files are backed up somewhere, all while preserving anonymity.
So for this tutorial we're going to go with a Debian server to install nextcloud via snap:
-
-su -
-apt update -y
-
-apt install snapd sudo curl mlocate nginx -y
-/sbin/usermod -aG sudo [NAME OF THE NON-PRIVILEGED USER]
-/sbin/ufw enable
-snap install core
-
-
-
-Using snap, installing nextcloud is fairly simple:
-
-snap install nextcloud
-
-ip a | grep inet
-curl ifconfig.me
-
-
-you can verify that the nextcloud server works by going at the ip adress of the server http://server_ip/ where you'll create the administrator account.
+follow the other tutorial that talks about how to setup a .onion domain here: http://blog.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/opsec/torwebsite/index.html
+Then just install nextcloud... wait a bit, and then check if it worked
Once that's done you should have access to your nextcloud instance, but instead of accessing it through the ip address, we'll set it up in such a way that we can access it through an .onion domain name.
-So we follow this tutorial to have our own custom .domain name:
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ cat /etc/tor/torrc
-
-HiddenServiceDir /var/lib/tor/onions/nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/
-HiddenServicePort 80 127.0.0.1:4443
-SocksPort 127.0.0.1:9050
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ systemctl restart tor@default
-
-
-Then we setup a reverse nginx proxy to make sure that the onion requests get redirected to the correct IP:
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ rm /etc/nginx/sites-*/default
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ cat /etc/nginx/sites-available/cloud.conf
-upstream cloudbackend {
- server 192.168.100.130:80;
-}
-
-server {
- ######## TOR WEBSITE ########
- listen 4443;
- listen [::]:4443;
- server_name cloud.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion;
-
- location / {
- proxy_pass http://cloudbackend;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "Upgrade";
- client_max_body_size 20G;
- }
-}
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ ln -s /etc/nginx/sites-available/cloud.conf /etc/nginx/sites-enabled/
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ nginx -s reload
-
-
+Boom that worked!
Now that we have the domain name pointing to the public ip address of the nextcloud server, we can setup the https certificate using let'sencrypt, just - ssh into your server once more and run the following commands:
+Now that we have the domain name pointing to the public ip address of the nextcloud server,just + ssh into your server once more and run the following commands: do some stuff to make it work, idk man
[ Wonderland ] [ /dev/pts/3 ] [~]
→ /var/snap/nextcloud/common/nextcloud/data# PATH=$PATH:/snap/bin/
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ /var/snap/nextcloud/common/nextcloud/data# which nextcloud.occ
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ /snap/bin/nextcloud.occ
-
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ /snap/bin/nextcloud.disable-https
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ /snap/bin/nextcloud.occ config:system:set trusted_domains 1 --value=cloud.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ /snap/bin/nextcloud.occ config:system:set overwritehost --value="cloud.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion"
-
-[ Wonderland ] [ /dev/pts/3 ] [~]
-→ /snap/bin/nextcloud.occ config:system:set overwriteprotocol --value="http"
+derland ] [ /dev/pts/3 ] [~]
+r/snap/nextcloud/common/nextcloud/data# which ne
+derland ] [ /dev/pts/3 ] [~]
+ap/bin/nextcloud.occ config:system:set overwritep"
-And once that's done, you can access your nextcloud instance from your onion domain:
-In order to upgrade your nextcloud, you can run the following, and also add it to cron to run automatically every day at midnight:
root@cloud:~# sudo snap refresh nextcloud
snap "nextcloud" has no updates available
@@ -204,12 +121,12 @@ root@cloud:~# crontab -e
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
-Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/274548350/682877d8-1d52-4029-9777-425f3da0f77c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221217T193407Z&X-Amz-Expires=300&X-Amz-Signature=1bf21514b0120917047558bc2d6de9d2f900d34dba04cfd3d30838b59ae4701e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=274548350&response-content-disposition=attachment%3B%20filename%3Dlinux_amd64.tar.gz&response-content-type=application%2Foctet-stream [following]
---2022-12-17 20:34:07-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/274548350/682877d8-1d52-4029-9777-425f3da0f77c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221217T193407Z&X-Amz-Expires=300&X-Amz-Signature=1bf21514b0120917047558bc2d6de9d2f900d34dba04cfd3d30838b59ae4701e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=274548350&response-content-disposition=attachment%3B%20filename%3Dlinux_amd64.tar.gz&response-content-type=application%2Foctet-stream
-Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
-Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
-HTTP request sent, awaiting response... 200 OK
-Length: 6326130 (6.0M) [application/octet-stream]
+Location: https://objects.githu1217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221217T193407Z&X-Amz-Expires=300&X-Amz-Signature=1bf21514b0120917047558bc2d6de9d2f900d34dba04cfd3d30838b59ae4701e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=274548350&response-content-disposition=attachment%3B%20filename%3Dlinux_amd64.tar.gz&response-content-type=application%2Foctet-stream [following]
+--2022-12-17 20:34:07-- https:CSVEH53A%2F20221217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221217T193407Z&X-Amz-Expires=300&X-Amz-Signature=1bf21514b0120917047558bc2d6de9d2f900d34dba04cfd3d30838b59ae4701e&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=274548350&response-content-disposition=attachment%3B%20filename%3Dlinux_amd64.tar.gz&response-content-type=application%2Foctet-stream
+Resolving objects.githubusercon
+Connecting to objects.githubuse
+HTTP request sent, awaiting res
+Length: 6326130 (6.0M) [applica
Saving to: ‘linux_amd64.tar.gz’
linux_amd64.tar.gz 100%[===========================================================================================================================================>] 6.03M 6.47MB/s in 0.9s
@@ -222,36 +139,17 @@ root@cloud:~# sudo cronitor configure --api-key 1234567890
Configuration File:
/etc/cronitor/cronitor.json
-
-Version:
-28.8
-
-API Key:
-1234567890
-
-Ping API Key:
-Not Set
-
-Environment:
-Not Set
-
-Hostname:
-cloud
-
-Timezone Location:
-{Europe/Paris}
-
-Debug Log:
Off
root@cloud:~# cronitor select
✔ /usr/bin/snap refresh nextcloud
-----► Running command: /usr/bin/snap refresh nextcloud
+extcloud
-snap "nextcloud" has no updates available
-----► ✔ Command successful Elapsed time 0.451s
+
+51s
+BLAM no need ot check, i know it worked.
Now you can install the official nextcloud client here
-
-[ cloud ] [ /dev/pts/1 ] [/snap/bin]
-→ apt install tor nextcloud-desktop -y
-
-
-Here as you try to login you'll first see that it can't resolve the .onion domain, which is normal as you need to tell nextcloud to use the local tor socks5 proxy, available on 127.0.01:9050
-Afterward, you need to copy the authorization link into the tor browser to validate the request:
-Once you have granted access, you can start to sync your nextcloud instance files locally:
-Once logged in you can check the progress in the system tray:
-Then let it sync, it can take a while due to the low bandwidth of Tor.
-And that's it ! You now have a local folder that is synchronized with your nextcloud instance.
+cya next time
@@ -297,9 +178,9 @@ snap "nextcloud" has no updates available- Until there is Nothing left.
Creative Commons Zero: No Rights Reserved
+ Until there is something more.
COPYRIGHT ALL RIGHTS RESERVED I AINT WORKING FOR FREE!
Donate XMR: 8AUYjhQeG3D5aodJDtqG499N5jXXM71gYKD8LgSsFB9BUV1o7muLv3DXHoydRTK4SZaaUBq4EAUqpZHLrX2VZLH71Jrd9k8
Contact: nihilist@contact.nowhere.moe (PGP)