All Projects â†’ nextcloud-snap â†’ nextcloud-snap

nextcloud-snap / nextcloud-snap

Licence: GPL-3.0 license
☁ī¸đŸ“Ļ Nextcloud packaged as a snap

Programming Languages

shell
77523 projects
ruby
36898 projects - #4 most used programming language
python
139335 projects - #7 most used programming language
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to nextcloud-snap

Nextcloud Snap
☁ī¸đŸ“Ļ Nextcloud packaged as a snap
Stars: ✭ 1,088 (-24.71%)
Mutual labels:  snap, nextcloud, file-sharing
Server
☁ī¸ Nextcloud server, a safe home for all your data
Stars: ✭ 17,723 (+1126.51%)
Mutual labels:  nextcloud, file-sharing
nextcloud announcements
ℹī¸ The latest Nextcloud news directly in your notifications
Stars: ✭ 16 (-98.89%)
Mutual labels:  nextcloud
checksum
Plugin for Nextcloud and ownCloud to create hashes of files.
Stars: ✭ 25 (-98.27%)
Mutual labels:  nextcloud
Django-WebApp
This is a web-app created using Python, Django. By using this user can login, upload files and also can view and download files uploaded by other users.
Stars: ✭ 285 (-80.28%)
Mutual labels:  file-sharing
aws-serverless-nextcloud
moved - https://github.com/f7o/aws-serverless-nextcloud
Stars: ✭ 78 (-94.6%)
Mutual labels:  nextcloud
files videoplayer
đŸ“ŧ Old video viewer for Nextcloud
Stars: ✭ 92 (-93.63%)
Mutual labels:  nextcloud
expo-file-manager
A file manager app made with React Native & Expo
Stars: ✭ 110 (-92.39%)
Mutual labels:  file-sharing
mediadc
Nextcloud Media Duplicate Collector application
Stars: ✭ 57 (-96.06%)
Mutual labels:  nextcloud
nextcloud-docker
☁ī¸ NextCloud with SSL and Docker
Stars: ✭ 30 (-97.92%)
Mutual labels:  nextcloud
previewgenerator
Nextcloud app to do preview generation in the background.
Stars: ✭ 355 (-75.43%)
Mutual labels:  nextcloud
weather
⛅ī¸ Weather app for Nextcloud
Stars: ✭ 41 (-97.16%)
Mutual labels:  nextcloud
filedrop-ws
📲 WebRTC file transfer - WebSockets server.
Stars: ✭ 111 (-92.32%)
Mutual labels:  file-sharing
nextcloud docker
Docker setup to run Nextcloud
Stars: ✭ 35 (-97.58%)
Mutual labels:  nextcloud
viewer
đŸ–ŧ Simple file viewer with slideshow for media
Stars: ✭ 68 (-95.29%)
Mutual labels:  nextcloud
backmeup
BackMeUp: An automated MySQL / MariaDB databases and files backup solution on *nix Machines using Amazon S3, WebDAV (ownCloud / NextCloud etc.), Google Drive and Dropbox.
Stars: ✭ 80 (-94.46%)
Mutual labels:  nextcloud
garlicshare
Private and self-hosted file sharing over the Tor network written in golang
Stars: ✭ 110 (-92.39%)
Mutual labels:  file-sharing
Android-SingleSignOn
Single sign-on for Nextcloud (Android Library Project)
Stars: ✭ 62 (-95.71%)
Mutual labels:  nextcloud
promo
🎉 Stickers, shirts, presentations etc!
Stars: ✭ 16 (-98.89%)
Mutual labels:  nextcloud
crocofile
A webbased file upload manager to share files by sharing an account
Stars: ✭ 40 (-97.23%)
Mutual labels:  file-sharing

Snappy Nextcloud

Nextcloud server packaged as a snap. It consists of:

  • Nextcloud 25
  • Apache 2.4
  • PHP 8.0
  • MySQL 8
  • Redis 6
  • mDNS for network discovery

How to install

Get it from the Snap Store

There are a number of releases available. By default you'll get the newest stable one, but you may be interested in others.

How to use

After install, assuming you and the device on which it was installed are on the same network, you should be able to reach the Nextcloud installation by visiting <hostname>.local in your browser. If your hostname is localhost or localhost.localdomain, like on an Ubuntu Core device, nextcloud.local will be used instead.

Upon visiting the Nextcloud installation for the first time, you'll be prompted for an admin username and password. After you provide that information you'll be logged in and able to create users, install apps, and upload files.

Note that this snap includes a service that runs cron.php every 15 minutes, which will automatically change the cron admin setting to Cron for you.

Removable media

Also note that the interface providing the ability to access removable media is not automatically connected upon install, so if you'd like to use external storage (or otherwise use a device in /media or /mnt for data), you need to give the snap permission to access removable media by connecting that interface:

$ sudo snap connect nextcloud:removable-media

System monitoring

The System application requires a bit more access to the system than the snap uses by default (e.g. the ability to monitor network hardware, etc.). If you'd like to utilize those features, you'll need to connect the interface that allows that kind of access:

$ sudo snap connect nextcloud:network-observe

Configuration

Beyond the typical Nextcloud configuration (either by using nextcloud.occ or editing /var/snap/nextcloud/current/nextcloud/config/config.php), the snap exposes extra configuration options via the snap set command.

HTTP/HTTPS port configuration

By default, the snap will listen on port 80. If you enable HTTPS, it will listen on both 80 and 443, and HTTP traffic will be redirected to HTTPS. But perhaps you're putting the snap behind a proxy of some kind, in which case you probably want to change those ports.

If you'd like to change the HTTP port (say, to port 81), run:

$ sudo snap set nextcloud ports.http=81

To change the HTTPS port (say, to port 444), run:

$ sudo snap set nextcloud ports.https=444

Note that, assuming HTTPS is enabled, this will cause HTTP traffic to be redirected to port 444. You can specify both of these simultaneously as well:

$ sudo snap set nextcloud ports.http=81 ports.https=444

Note: Let's Encrypt will expect that Nextcloud is exposed on ports 80 and 443. If you change ports and don't put Nextcloud behind a proxy such that ports 80 and 443 are sent to Nextcloud for that domain name, Let's Encrypt will be unable to verify ownership of your domain and will not grant certificates.

Also note: Nextcloud's automatic hostname detection can fail when behind a proxy; you might notice it redirecting incorrectly. If this happens, override the automatic detection (including the port if necessary), e.g.:

$ sudo nextcloud.occ config:system:set overwritehost --value="example.com:81"

PHP Memory limit configuration

By default, PHP will use 128M as the memory limit. If you notice images not getting previews generated, or errors about memory exhaustion in your Nextcloud log, you may need to set this to a higher value.

If you'd like to set the memory limit to a higher value (say, 512M), run:

$ sudo snap set nextcloud php.memory-limit=512M

To set it to be unlimited (not recommended), use -1:

$ sudo snap set nextcloud php.memory-limit=-1

Cronjob interval configuration

By default the cronjob interval is 15 minutes.

To adjust it (say, 10 minutes) simply run:

$ sudo snap set nextcloud nextcloud.cron-interval=10m

If you want to disable the cronjob completely, run:

$ sudo snap set nextcloud nextcloud.cron-interval=-1

To reenable it again simply set the nextcloud.cron-interval snap variable to a value that isn't -1

HTTP compression configuration

By default, the snap does not enable HTTP compression. To enable it, run:

$ sudo snap set nextcloud http.compression=true

To disable it, run:

$ sudo snap set nextcloud http.compression=false

Debug mode

By default, the snap installs itself in production mode, which prevents Apache and PHP from providing any detailed version or library information in the HTTP headers and error pages. Debug mode can be enabled with:

$ sudo snap set nextcloud mode=debug

"debug" and "production" are the only valid modes.

Included CLI utilities

There are a few CLI utilities included:

  • nextcloud.occ:
    • Nextcloud's occ configuration tool. You can always edit the config file directly (/var/snap/nextcloud/current/nextcloud/config/config.php) but the configuration tool provides a CLI interface for it. See nextcloud.occ -h for more information. Note that it requires sudo.
  • nextcloud.mysql-client:
    • MySQL client preconfigured to communicate with Nextcloud MySQL server. This may be useful in case you need to migrate Nextcloud installations. Note that it requires sudo.
  • nextcloud.mysqldump:
    • Dump Nextcloud database to stdout. You should probaby redirect its output to a file. Note that it requires sudo.
  • nextcloud.enable-https:
    • Enable HTTPS via self-signed certificates, Let's Encrypt, or custom certificates. HTTP will redirect to HTTPS. Non-custom certificates will automatically be kept up-to-date. See nextcloud.enable-https -h for more information. Note that it requires sudo.
  • nextcloud.disable-https:
    • Disable HTTPS (does not remove certificates). Note that it requires sudo.
  • nextcloud.manual-install:
    • Manually install Nextcloud instead of visiting it in your browser. This allows you to create the admin user via the CLI. Note that it requires sudo.
  • nextcloud.export:
    • Export data suitable for migrating servers. By default this includes the Nextcloud database, configuration, and data. See nextcloud.export -h for more information. Note that it requires sudo.
  • nextcloud.import:
    • Import data exported from another Nextcloud snap instance (via nextcloud.export). By default this imports the database, config, and data. See nextcloud.import -h for more information. Note that it requires sudo.

Where is my stuff?

  • $SNAP_DATA (/var/snap/nextcloud/current/ by default)
    • Logs (Apache, PHP, MySQL, Redis, and Nextcloud logs)
    • Keys and certificates
    • MySQL database
    • Redis database
    • Nextcloud config
    • Any Nextcloud apps installed by the user
  • $SNAP_COMMON (/var/snap/nextcloud/common/ by default)
    • Nextcloud data

Hacking

If you change something in the snap, build it, install it, and you can run a suite of acceptance tests against it. The tests are written in ruby, using capybara and rspec. To run the tests, you first need to install a few dependencies:

$ sudo apt install gcc g++ make qt5-default libqt5webkit5-dev ruby-dev zlib1g-dev
$ sudo gem install bundle
$ cd tests/
$ bundle install

Additionally, if you do not have X configured, install the following for a 'fake' X server.

$ sudo apt install xvfb

Make sure the snap has a user called "admin" with password "admin" (used for login tests):

$ sudo nextcloud.manual-install admin admin

And finally, run the tests:

$ cd tests/
$ rake test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].