2024-06-03
This commit is contained in:
		
							
								
								
									
										87
									
								
								_-Review/nextcloud.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										87
									
								
								_-Review/nextcloud.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,87 @@ | ||||
| --- | ||||
| type: "topic" | ||||
| created: "2024-01-07T02:07:29.965Z" | ||||
| updated: "2024-01-07T02:07:29.965Z" | ||||
| --- | ||||
|  | ||||
| # Nextcloud | ||||
|  | ||||
| ```bash | ||||
| wsl.exe --update | ||||
| wsl.exe --export Ubuntu Ubuntu/Ubuntu-Nexcloud-001.tar | ||||
| wsl.exe --unregister Ubuntu | ||||
| wsl.exe --import Ubuntu-Nexcloud Ubuntu-Nexcloud Ubuntu/Ubuntu-Nexcloud-001.tar | ||||
| wsl.exe -d Ubuntu-Nexcloud | ||||
| wsl.exe --export Ubuntu Ubuntu/Ubuntu-Nexcloud-002.tar | ||||
| wsl.exe --unregister Ubuntu-Nexcloud | ||||
| ``` | ||||
|  | ||||
| ```bash Wed Dec 27 2023 15:46:18 GMT-0700 (Mountain Standard Time) | ||||
| # https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-20-04 | ||||
| sudo -i | ||||
| snap remove --purge nextcloud | ||||
| snap install nextcloud | ||||
| snap changes nextcloud | ||||
| snap info nextcloud | ||||
| snap connections nextcloud | ||||
| cat /snap/nextcloud/current/meta/snap.yaml | ||||
| nextcloud.manual-install mikepharesjr@msn.com w1DNt6sm4pP#3Aqv8pwp | ||||
| # nextcloud.occ user:resetpassword mikepharesjr@msn.com | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| http://phares3757.redirectme.net/.well-known/acme-challenge/IBKnRjtytG-16XUhhnWxXqNsOCZxot4R91iK2QidKXo | ||||
| https://localhost/index.php/login?direct=1&user=admin | ||||
| ``` | ||||
|  | ||||
| ```bash Fri Jan 05 2024 11:06:01 GMT-0700 (Mountain Standard Time) | ||||
| snap stop nextcloud | ||||
| nano /etc/hosts | ||||
| ls /var/snap/nextcloud/current/certs/live | ||||
| # ufw allow 80,443/tcp | ||||
| # nextcloud.enable-https lets-encrypt | ||||
| # nextcloud.enable-https self-signed | ||||
| # ufw allow 80,443/tcp | ||||
| nextcloud.disable-https | ||||
| snap set nextcloud ports.http=8081 | ||||
| snap set nextcloud php.memory-limit=-1 | ||||
| snap get nextcloud php.memory-limit | ||||
| # https://github.com/nextcloud-snap/nextcloud-snap | ||||
| snap connect nextcloud:removable-media | ||||
| mv /var/snap/nextcloud/common/nextcloud/data /mnt/d | ||||
| # cat /var/snap/nextcloud/current/nextcloud/config/config.php | ||||
| nano /var/snap/nextcloud/current/nextcloud/config/config.php | ||||
| snap start nextcloud | ||||
| nextcloud.occ config:system:set overwrite.cli.url --value=https://nextcloud.laundry.phares.myftp.org | ||||
| nextcloud.occ config:system:set overwriteprotocol --value=https | ||||
| nextcloud.occ config:system:get trusted_domains | ||||
| nextcloud.occ config:system:set trusted_domains 1 --value=nextcloud.laundry.phares.myftp.org | ||||
| nextcloud.occ config:system:get trusted_domains | ||||
| nextcloud.mysql-client | ||||
| nextcloud.export -b | ||||
| snap restart nextcloud | ||||
| ``` | ||||
|  | ||||
| ```conf | ||||
| 'check_data_directory_permissions' => false, | ||||
| 'datadirectory' => '/mnt/d/data', | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| snap start nextcloud | ||||
| nextcloud.occ files:scan --all | ||||
| nextcloud.occ preview:generate-all -vvv | ||||
| nextcloud.export -b | ||||
| nextcloud.import -b /var/snap/nextcloud/common/backups/20240106-185539 | ||||
| ``` | ||||
|  | ||||
| ```bash Wed Dec 27 2023 15:46:18 GMT-0700 (Mountain Standard Time) | ||||
| # https://help.nextcloud.com/t/tutorial-nextcloud-on-wsl2-windows-10-20h2/102198 | ||||
| # Open an Notepad in Windows and post the following block. | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| wsl --export Ubuntu-Nexcloud Ubuntu-Nexcloud-002.tar | ||||
| wsl --unregister Ubuntu-Nexcloud | ||||
| wsl -d Ubuntu-Nexcloud | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user