Replace the Google photo, setup a private photo service by yourself
井民全, Jing, mqjing@gmail.com
This document shows you how to setup a raspberry pi board to a privates storage system to replace Google photo by a simple procedure. You could check the Google doc for a well-format version.
Table of Contents
1. Download the Rasperry Pi Image & Setup
1.2. Install and Run NextCloud
4.1. Download the NextCloud App
4.2. Access to your storage cloud
5.1. [maintain, list user] How to run occ command in NextCloudPi?
1. Download the Rasperry Pi Image & Setup
=> [rapi, install, headless] How to connect your Raspberry PI at the first time boot after flash the image (view)
1.1. Install Docker
# install sudo apt-get install curl -y sudo curl -sSL https://get.docker.io/ | sh # check docker -v # add $USER to the docker group sudo usermod -aG docker ${USER} su - ${USER} # apply the new group membership # check groups # check to see the group name: docker docker run hello-world # test the docker command e.g. |
1.2. Install and Run NextCloud
Try the official command
docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi 192.168.1.109 |
Verify
2. Activate the NextCloudPi
https://YOUR-RASPBERRYPI-IP
e.g.
The Information
NextCloudPi access: https://nextcloudpi.local:4443 user: ncp passwd: YX8VJ/lmjgP1KqJzFd6c/IFE8xu2CzQazLFrQSfmfVQ change passwd: nc-passwd NextCloud access: https://nextcloudpi.local user: ncp passwd: pjKPE5JNJViLyWY1axsnUGLqlBOswpXDBIb4Fx9bbbo change passwd: Nextcloud user configuration |
3. Access to your NextCloud
Address: https://YOUR-RASPEBERRYPI-IP
Using the nextcloud username ncp and the passwd to login.
E.g.
4. Setup iPhone App
4.1. Download the NextCloud App
4.2. Access to your storage cloud
4.3. Setup Auto Upload
4.4. See the Transfers Queue
5. Maintenance
5.1. [maintain, list user] How to run occ command in NextCloudPi?
"Q: 如何在 nextcloudpi 執行 osc 指令? => step 1: 切進 docker sudo docker exec -it -u 33 nextcloudpi bash e.g. step 2: goto the occ location cd /var/www/nextcloud step 3: run the command php ./occ user:list" e.g. |
5.2. Too many Request
Usually, this happened when you changed the passwd.
Step 1: Get your iPhone IP address [General] -> [Wi-Fi] -> Information Get the ip is 192.168.1.100 E.g. Step 2: Get into the docker instance via the www-data (id=33) user sudo docker exec -it -u 33 nextcloudpi bash Step 3: Reset the bruteforce for the IP cd /var/www/nextcloud php occ security:bruteforce:reset 192.168.1.100 References |
6. Debug
-
bash
-
sudo docker exec -it nextcloudpi bash
7. References