-
-
Save hgye/5e74d6c5f444b5f2ada32238f510265b to your computer and use it in GitHub Desktop.
nextcloud on Raspberry Pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nextcloud on Raspberry Pi | |
=== | |
### ubuntu core | |
- nextcloudPi [image](https://ubuntu.com/appliance/nextcloud/raspberry-pi) | |
- snapcraft, specilly for IoT | |
- similar with CoreOS(FCOS), which is using ```rpm-tree```, instead ubuntu core using snap | |
- snap [set proxy](https://askubuntu.com/questions/764610/how-to-install-snap-packages-behind-web-proxy-on-ubuntu-16-04) | |
``` | |
$ sudo snap set system proxy.http="http://<proxy_addr>:<proxy_port>" | |
$ sudo snap set system proxy.https="http://<proxy_addr>:<proxy_port>" | |
``` | |
- [using classic](https://askubuntu.com/questions/902905/install-applications-in-ubuntu-core) | |
``` | |
sudo snap install classic --devmode --edge | |
sudo classic | |
``` | |
### occ use example | |
- add trusted domains | |
``` | |
sudo nextcloud.occ config:system:set trusted_domains 2 --value=your.domain | |
``` | |
- list external_files | |
``` | |
sudo nextcloud.occ files_external:list | |
``` | |
- files scan | |
``` | |
sudo nextcloud.occ files:scan --all | |
``` | |
### usb hdd as external storage | |
- mount on ubuntu core, [using systemd.mount](https://askubuntu.com/questions/853847/fstab-in-ubuntu-core-16-to-mount-external-hd) | |
``` | |
sudo vi /etc/systemd/system/media-data.mount | |
[Unit] | |
Description=Mount unit for data | |
[Mount] | |
What=/dev/disk/by-uuid/4E1AEA7B1AEA6007 | |
Where=/media/data | |
Type=ntfs | |
Options=umask=0000,iocharset=utf8,codepage=936 | |
[Install] | |
WantedBy=multi-user.target | |
sudo systemctl daemon-reload | |
sudo systemctl start media-data.mount | |
sudo systemctl enable media-data.mount | |
``` | |
- external storage [can't upload files](https://help.nextcloud.com/t/permissions-issue-with-data-storage-snap-solved/81023/5) | |
``` | |
sudo snap connect nextcloud:removable-media | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment